Regenerate

This commit is contained in:
Vivia Nikolaidou 2020-04-30 18:05:39 +03:00 committed by Sebastian Dröge
parent 4644ec39ab
commit 6fc1452a6d
72 changed files with 1709 additions and 108 deletions

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_app_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -952,7 +952,11 @@ pub struct GstAudioSinkClass {
pub write: Option<unsafe extern "C" fn(*mut GstAudioSink, gpointer, c_uint) -> c_int>,
pub delay: Option<unsafe extern "C" fn(*mut GstAudioSink) -> c_uint>,
pub reset: Option<unsafe extern "C" fn(*mut GstAudioSink)>,
pub _gst_reserved: [gpointer; 4],
pub pause: Option<unsafe extern "C" fn(*mut GstAudioSink)>,
pub resume: Option<unsafe extern "C" fn(*mut GstAudioSink)>,
pub stop: Option<unsafe extern "C" fn(*mut GstAudioSink)>,
pub clear_all: Option<unsafe extern "C" fn(*mut GstAudioSink)>,
pub _gst_reserved: [gpointer; 0],
}
impl ::std::fmt::Debug for GstAudioSinkClass {
@ -966,6 +970,10 @@ impl ::std::fmt::Debug for GstAudioSinkClass {
.field("write", &self.write)
.field("delay", &self.delay)
.field("reset", &self.reset)
.field("pause", &self.pause)
.field("resume", &self.resume)
.field("stop", &self.stop)
.field("clear_all", &self.clear_all)
.finish()
}
}

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_audio_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -199,7 +199,22 @@ pub struct GstAggregatorClass {
*mut gst::GstQuery,
) -> gboolean,
>,
pub _gst_reserved: [gpointer; 20],
pub negotiate: Option<unsafe extern "C" fn(*mut GstAggregator) -> gboolean>,
pub sink_event_pre_queue: Option<
unsafe extern "C" fn(
*mut GstAggregator,
*mut GstAggregatorPad,
*mut gst::GstEvent,
) -> gst::GstFlowReturn,
>,
pub sink_query_pre_queue: Option<
unsafe extern "C" fn(
*mut GstAggregator,
*mut GstAggregatorPad,
*mut gst::GstQuery,
) -> gboolean,
>,
pub _gst_reserved: [gpointer; 17],
}
impl ::std::fmt::Debug for GstAggregatorClass {
@ -224,6 +239,9 @@ impl ::std::fmt::Debug for GstAggregatorClass {
.field("negotiated_src_caps", &self.negotiated_src_caps)
.field("decide_allocation", &self.decide_allocation)
.field("propose_allocation", &self.propose_allocation)
.field("negotiate", &self.negotiate)
.field("sink_event_pre_queue", &self.sink_event_pre_queue)
.field("sink_query_pre_queue", &self.sink_query_pre_queue)
.finish()
}
}
@ -1745,6 +1763,8 @@ extern "C" {
pub fn gst_aggregator_get_buffer_pool(self_: *mut GstAggregator) -> *mut gst::GstBufferPool;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_aggregator_get_latency(self_: *mut GstAggregator) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_aggregator_negotiate(self_: *mut GstAggregator) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_aggregator_set_latency(
self_: *mut GstAggregator,
@ -1755,6 +1775,8 @@ extern "C" {
pub fn gst_aggregator_set_src_caps(self_: *mut GstAggregator, caps: *mut gst::GstCaps);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_aggregator_simple_get_next_time(self_: *mut GstAggregator) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_aggregator_update_segment(self_: *mut GstAggregator, segment: *mut gst::GstSegment);
//=========================================================================
// GstAggregatorPad
@ -1856,6 +1878,8 @@ extern "C" {
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_base_sink_get_processing_deadline(sink: *mut GstBaseSink) -> gst::GstClockTime;
pub fn gst_base_sink_get_render_delay(sink: *mut GstBaseSink) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_base_sink_get_stats(sink: *mut GstBaseSink) -> *mut gst::GstStructure;
pub fn gst_base_sink_get_sync(sink: *mut GstBaseSink) -> gboolean;
pub fn gst_base_sink_get_throttle_time(sink: *mut GstBaseSink) -> u64;
pub fn gst_base_sink_get_ts_offset(sink: *mut GstBaseSink) -> gst::GstClockTimeDiff;
@ -1916,6 +1940,8 @@ extern "C" {
pub fn gst_base_src_get_do_timestamp(src: *mut GstBaseSrc) -> gboolean;
pub fn gst_base_src_is_async(src: *mut GstBaseSrc) -> gboolean;
pub fn gst_base_src_is_live(src: *mut GstBaseSrc) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_base_src_negotiate(src: *mut GstBaseSrc) -> gboolean;
pub fn gst_base_src_new_seamless_segment(
src: *mut GstBaseSrc,
start: i64,
@ -1961,6 +1987,8 @@ extern "C" {
pub fn gst_base_transform_is_in_place(trans: *mut GstBaseTransform) -> gboolean;
pub fn gst_base_transform_is_passthrough(trans: *mut GstBaseTransform) -> gboolean;
pub fn gst_base_transform_is_qos_enabled(trans: *mut GstBaseTransform) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_base_transform_reconfigure(trans: *mut GstBaseTransform) -> gboolean;
pub fn gst_base_transform_reconfigure_sink(trans: *mut GstBaseTransform);
pub fn gst_base_transform_reconfigure_src(trans: *mut GstBaseTransform);
pub fn gst_base_transform_set_gap_aware(trans: *mut GstBaseTransform, gap_aware: gboolean);

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_base_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -207,6 +207,11 @@ extern "C" {
pub fn gst_harness_pull(h: *mut GstHarness) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_harness_pull_event(h: *mut GstHarness) -> *mut gst::GstEvent;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_harness_pull_until_eos(
h: *mut GstHarness,
buf: *mut *mut gst::GstBuffer,
) -> gboolean;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_harness_pull_upstream_event(h: *mut GstHarness) -> *mut gst::GstEvent;
#[cfg(any(feature = "v1_6", feature = "dox"))]
@ -439,6 +444,11 @@ extern "C" {
test_clock: *mut GstTestClock,
pending_id: *mut gst::GstClockID,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_test_clock_process_id(
test_clock: *mut GstTestClock,
pending_id: gst::GstClockID,
) -> gboolean;
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_test_clock_process_id_list(
test_clock: *mut GstTestClock,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_check_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -26,6 +26,9 @@ use libc::{
#[allow(unused_imports)]
use glib::{gboolean, gconstpointer, gpointer, GType};
// Aliases
pub type GESFrameNumber = i64;
// Enums
pub type GESAssetLoadingReturn = c_int;
pub const GES_ASSET_LOADING_ERROR: GESAssetLoadingReturn = 0;
@ -55,6 +58,7 @@ pub type GESError = c_int;
pub const GES_ERROR_ASSET_WRONG_ID: GESError = 0;
pub const GES_ERROR_ASSET_LOADING: GESError = 1;
pub const GES_ERROR_FORMATTER_MALFORMED_INPUT_FILE: GESError = 2;
pub const GES_ERROR_INVALID_FRAME_NUMBER: GESError = 3;
pub type GESTextHAlign = c_int;
pub const GES_TEXT_HALIGN_LEFT: GESTextHAlign = 0;
@ -166,6 +170,7 @@ pub const GES_VIDEO_TEST_CHROMA_ZONE_PLATE: GESVideoTestPattern = 16;
pub const GES_VIDEO_TEST_PATTERN_SOLID: GESVideoTestPattern = 17;
// Constants
pub const GES_FRAME_NUMBER_NONE: i64 = 9223372036854775807;
pub const GES_META_DESCRIPTION: *const c_char = b"description\0" as *const u8 as *const c_char;
pub const GES_META_FORMATTER_EXTENSION: *const c_char =
b"extension\0" as *const u8 as *const c_char;
@ -175,6 +180,7 @@ pub const GES_META_FORMATTER_RANK: *const c_char = b"rank\0" as *const u8 as *co
pub const GES_META_FORMATTER_VERSION: *const c_char = b"version\0" as *const u8 as *const c_char;
pub const GES_META_FORMAT_VERSION: *const c_char =
b"format-version\0" as *const u8 as *const c_char;
pub const GES_META_MARKER_COLOR: *const c_char = b"marker-color\0" as *const u8 as *const c_char;
pub const GES_META_VOLUME: *const c_char = b"volume\0" as *const u8 as *const c_char;
pub const GES_META_VOLUME_DEFAULT: c_double = 1.000000;
pub const GES_MULTI_FILE_URI_PREFIX: *const c_char =
@ -204,6 +210,41 @@ pub const GES_TRACK_TYPE_TEXT: GESTrackType = 8;
pub const GES_TRACK_TYPE_CUSTOM: GESTrackType = 16;
// Unions
#[repr(C)]
#[derive(Copy, Clone)]
pub union GESClipClass_ABI {
pub _ges_reserved: [gpointer; 20],
pub abi: GESClipClass_ABI_abi,
}
impl ::std::fmt::Debug for GESClipClass_ABI {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESClipClass_ABI @ {:?}", self as *const _))
.field("_ges_reserved", unsafe { &self._ges_reserved })
.field("abi", unsafe { &self.abi })
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union GESTrackElementClass_ABI {
pub _ges_reserved: [gpointer; 20],
pub abi: GESTrackElementClass_ABI_abi,
}
impl ::std::fmt::Debug for GESTrackElementClass_ABI {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GESTrackElementClass_ABI @ {:?}",
self as *const _
))
.field("_ges_reserved", unsafe { &self._ges_reserved })
.field("abi", unsafe { &self.abi })
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union GESVideoSourceClass_ABI {
@ -492,13 +533,16 @@ pub type GESBaseXmlFormatterPrivate = *mut _GESBaseXmlFormatterPrivate;
#[derive(Copy, Clone)]
pub struct GESClipAssetClass {
pub parent: GESAssetClass,
pub _ges_reserved: [gpointer; 4],
pub get_natural_framerate:
Option<unsafe extern "C" fn(*mut GESClipAsset, *mut c_int, *mut c_int) -> gboolean>,
pub _ges_reserved: [gpointer; 3],
}
impl ::std::fmt::Debug for GESClipAssetClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESClipAssetClass @ {:?}", self as *const _))
.field("parent", &self.parent)
.field("get_natural_framerate", &self.get_natural_framerate)
.field("_ges_reserved", &self._ges_reserved)
.finish()
}
@ -515,7 +559,7 @@ pub struct GESClipClass {
pub parent_class: GESContainerClass,
pub create_track_element: GESCreateTrackElementFunc,
pub create_track_elements: GESCreateTrackElementsFunc,
pub _ges_reserved: [gpointer; 20],
pub ABI: GESClipClass_ABI,
}
impl ::std::fmt::Debug for GESClipClass {
@ -523,6 +567,21 @@ impl ::std::fmt::Debug for GESClipClass {
f.debug_struct(&format!("GESClipClass @ {:?}", self as *const _))
.field("create_track_element", &self.create_track_element)
.field("create_track_elements", &self.create_track_elements)
.field("ABI", &self.ABI)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GESClipClass_ABI_abi {
pub can_add_effects: gboolean,
}
impl ::std::fmt::Debug for GESClipClass_ABI_abi {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESClipClass_ABI_abi @ {:?}", self as *const _))
.field("can_add_effects", &self.can_add_effects)
.finish()
}
}
@ -708,10 +767,10 @@ pub struct GESFormatterClass {
pub can_load_uri: GESFormatterCanLoadURIMethod,
pub load_from_uri: GESFormatterLoadFromURIMethod,
pub save_to_uri: GESFormatterSaveToURIMethod,
pub name: *const c_char,
pub description: *const c_char,
pub extension: *const c_char,
pub mimetype: *const c_char,
pub name: *mut c_char,
pub description: *mut c_char,
pub extension: *mut c_char,
pub mimetype: *mut c_char,
pub version: c_double,
pub rank: gst::GstRank,
pub _ges_reserved: [gpointer; 4],
@ -800,6 +859,34 @@ pub struct _GESLayerPrivate(c_void);
pub type GESLayerPrivate = *mut _GESLayerPrivate;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GESMarkerClass {
pub parent_class: gobject::GObjectClass,
}
impl ::std::fmt::Debug for GESMarkerClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESMarkerClass @ {:?}", self as *const _))
.field("parent_class", &self.parent_class)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GESMarkerListClass {
pub parent_class: gobject::GObjectClass,
}
impl ::std::fmt::Debug for GESMarkerListClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESMarkerListClass @ {:?}", self as *const _))
.field("parent_class", &self.parent_class)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GESMetaContainerInterface {
@ -950,7 +1037,8 @@ pub struct GESProjectClass {
unsafe extern "C" fn(*mut GESProject, *mut glib::GError, *mut c_char, GType) -> gboolean,
>,
pub loaded: Option<unsafe extern "C" fn(*mut GESProject, *mut GESTimeline) -> gboolean>,
pub _ges_reserved: [gpointer; 4],
pub loading: Option<unsafe extern "C" fn(*mut GESProject, *mut GESTimeline) -> gboolean>,
pub _ges_reserved: [gpointer; 3],
}
impl ::std::fmt::Debug for GESProjectClass {
@ -963,6 +1051,7 @@ impl ::std::fmt::Debug for GESProjectClass {
.field("missing_uri", &self.missing_uri)
.field("loading_error", &self.loading_error)
.field("loaded", &self.loaded)
.field("loading", &self.loading)
.field("_ges_reserved", &self._ges_reserved)
.finish()
}
@ -987,6 +1076,20 @@ impl ::std::fmt::Debug for GESSourceClass {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GESSourceClipAssetClass {
pub parent_class: GESClipAssetClass,
}
impl ::std::fmt::Debug for GESSourceClipAssetClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESSourceClipAssetClass @ {:?}", self as *const _))
.field("parent_class", &self.parent_class)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GESSourceClipClass {
@ -1146,7 +1249,9 @@ pub struct GESTimelineElementClass {
),
>,
pub get_layer_priority: Option<unsafe extern "C" fn(*mut GESTimelineElement) -> u32>,
pub _ges_reserved: [gpointer; 16],
pub get_natural_framerate:
Option<unsafe extern "C" fn(*mut GESTimelineElement, *mut c_int, *mut c_int) -> gboolean>,
pub _ges_reserved: [gpointer; 15],
}
impl ::std::fmt::Debug for GESTimelineElementClass {
@ -1171,6 +1276,7 @@ impl ::std::fmt::Debug for GESTimelineElementClass {
.field("get_track_types", &self.get_track_types)
.field("set_child_property", &self.set_child_property)
.field("get_layer_priority", &self.get_layer_priority)
.field("get_natural_framerate", &self.get_natural_framerate)
.finish()
}
}
@ -1244,7 +1350,9 @@ impl ::std::fmt::Debug for GESTrackClass {
#[derive(Copy, Clone)]
pub struct GESTrackElementAssetClass {
pub parent_class: GESAssetClass,
pub _ges_reserved: [gpointer; 4],
pub get_natural_framerate:
Option<unsafe extern "C" fn(*mut GESTrackElementAsset, *mut c_int, *mut c_int) -> gboolean>,
pub _ges_reserved: [gpointer; 3],
}
impl ::std::fmt::Debug for GESTrackElementAssetClass {
@ -1254,6 +1362,7 @@ impl ::std::fmt::Debug for GESTrackElementAssetClass {
self as *const _
))
.field("parent_class", &self.parent_class)
.field("get_natural_framerate", &self.get_natural_framerate)
.field("_ges_reserved", &self._ges_reserved)
.finish()
}
@ -1285,7 +1394,7 @@ pub struct GESTrackElementClass {
*mut *mut gobject::GParamSpec,
) -> gboolean,
>,
pub _ges_reserved: [gpointer; 20],
pub ABI: GESTrackElementClass_ABI,
}
impl ::std::fmt::Debug for GESTrackElementClass {
@ -1298,10 +1407,33 @@ impl ::std::fmt::Debug for GESTrackElementClass {
.field("changed", &self.changed)
.field("list_children_properties", &self.list_children_properties)
.field("lookup_child", &self.lookup_child)
.field("ABI", &self.ABI)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GESTrackElementClass_ABI_abi {
pub default_has_internal_source: gboolean,
pub default_track_type: GESTrackType,
}
impl ::std::fmt::Debug for GESTrackElementClass_ABI_abi {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GESTrackElementClass_ABI_abi @ {:?}",
self as *const _
))
.field(
"default_has_internal_source",
&self.default_has_internal_source,
)
.field("default_track_type", &self.default_track_type)
.finish()
}
}
#[repr(C)]
pub struct _GESTrackElementPrivate(c_void);
@ -1353,7 +1485,7 @@ pub type GESTransitionPrivate = *mut _GESTransitionPrivate;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GESUriClipAssetClass {
pub parent_class: GESClipAssetClass,
pub parent_class: GESSourceClipAssetClass,
pub discoverer: *mut gst_pbutils::GstDiscoverer,
pub sync_discoverer: *mut gst_pbutils::GstDiscoverer,
pub discovered: Option<
@ -1442,6 +1574,12 @@ impl ::std::fmt::Debug for GESVideoSourceClass {
#[derive(Copy, Clone)]
pub struct GESVideoSourceClass_ABI_abi {
pub disable_scale_in_compositor: gboolean,
pub needs_converters: Option<unsafe extern "C" fn(*mut GESVideoSource) -> gboolean>,
pub get_natural_size:
Option<unsafe extern "C" fn(*mut GESVideoSource, *mut c_int, *mut c_int) -> gboolean>,
pub create_filters: Option<
unsafe extern "C" fn(*mut GESVideoSource, *mut glib::GPtrArray, gboolean) -> gboolean,
>,
}
impl ::std::fmt::Debug for GESVideoSourceClass_ABI_abi {
@ -1454,6 +1592,9 @@ impl ::std::fmt::Debug for GESVideoSourceClass_ABI_abi {
"disable_scale_in_compositor",
&self.disable_scale_in_compositor,
)
.field("needs_converters", &self.needs_converters)
.field("get_natural_size", &self.get_natural_size)
.field("create_filters", &self.create_filters)
.finish()
}
}
@ -1711,7 +1852,8 @@ impl ::std::fmt::Debug for GESBaseTransitionClip {
pub struct GESBaseXmlFormatter {
pub parent: GESFormatter,
pub priv_: *mut GESBaseXmlFormatterPrivate,
pub _ges_reserved: [gpointer; 4],
pub xmlcontent: *mut c_char,
pub _ges_reserved: [gpointer; 3],
}
impl ::std::fmt::Debug for GESBaseXmlFormatter {
@ -1916,6 +2058,26 @@ impl ::std::fmt::Debug for GESLayer {
}
}
#[repr(C)]
pub struct GESMarker(c_void);
impl ::std::fmt::Debug for GESMarker {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESMarker @ {:?}", self as *const _))
.finish()
}
}
#[repr(C)]
pub struct GESMarkerList(c_void);
impl ::std::fmt::Debug for GESMarkerList {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESMarkerList @ {:?}", self as *const _))
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GESMultiFileSource {
@ -2055,6 +2217,20 @@ impl ::std::fmt::Debug for GESSourceClip {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GESSourceClipAsset {
pub parent_instance: GESClipAsset,
}
impl ::std::fmt::Debug for GESSourceClipAsset {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESSourceClipAsset @ {:?}", self as *const _))
.field("parent_instance", &self.parent_instance)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GESTestClip {
@ -2292,7 +2468,7 @@ impl ::std::fmt::Debug for GESUriClip {
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GESUriClipAsset {
pub parent: GESClipAsset,
pub parent: GESSourceClipAsset,
pub priv_: *mut GESUriClipAssetPrivate,
pub __ges_reserved: [gpointer; 4],
}
@ -2501,8 +2677,8 @@ extern "C" {
klass: *mut GESFormatterClass,
name: *const c_char,
description: *const c_char,
extension: *const c_char,
mimetype: *const c_char,
extensions: *const c_char,
caps: *const c_char,
version: c_double,
rank: gst::GstRank,
);
@ -2606,6 +2782,12 @@ extern "C" {
//=========================================================================
pub fn ges_clip_get_type() -> GType;
pub fn ges_clip_add_asset(clip: *mut GESClip, asset: *mut GESAsset) -> *mut GESTrackElement;
pub fn ges_clip_add_child_to_track(
clip: *mut GESClip,
child: *mut GESTrackElement,
track: *mut GESTrack,
error: *mut *mut glib::GError,
) -> *mut GESTrackElement;
pub fn ges_clip_find_track_element(
clip: *mut GESClip,
track: *mut GESTrack,
@ -2619,6 +2801,11 @@ extern "C" {
) -> *mut glib::GList;
pub fn ges_clip_get_layer(clip: *mut GESClip) -> *mut GESLayer;
pub fn ges_clip_get_supported_formats(clip: *mut GESClip) -> GESTrackType;
pub fn ges_clip_get_timeline_time_from_source_frame(
clip: *mut GESClip,
frame_number: GESFrameNumber,
error: *mut *mut glib::GError,
) -> gst::GstClockTime;
pub fn ges_clip_get_top_effect_index(clip: *mut GESClip, effect: *mut GESBaseEffect) -> c_int;
pub fn ges_clip_get_top_effect_position(
clip: *mut GESClip,
@ -2643,6 +2830,15 @@ extern "C" {
// GESClipAsset
//=========================================================================
pub fn ges_clip_asset_get_type() -> GType;
pub fn ges_clip_asset_get_frame_time(
self_: *mut GESClipAsset,
frame_number: GESFrameNumber,
) -> gst::GstClockTime;
pub fn ges_clip_asset_get_natural_framerate(
self_: *mut GESClipAsset,
framerate_n: *mut c_int,
framerate_d: *mut c_int,
) -> gboolean;
pub fn ges_clip_asset_get_supported_formats(self_: *mut GESClipAsset) -> GESTrackType;
pub fn ges_clip_asset_set_supported_formats(
self_: *mut GESClipAsset,
@ -2760,6 +2956,7 @@ extern "C" {
track_types: GESTrackType,
) -> *mut GESClip;
pub fn ges_layer_add_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean;
pub fn ges_layer_get_active_for_track(layer: *mut GESLayer, track: *mut GESTrack) -> gboolean;
pub fn ges_layer_get_auto_transition(layer: *mut GESLayer) -> gboolean;
pub fn ges_layer_get_clips(layer: *mut GESLayer) -> *mut glib::GList;
pub fn ges_layer_get_clips_in_interval(
@ -2772,10 +2969,44 @@ extern "C" {
pub fn ges_layer_get_timeline(layer: *mut GESLayer) -> *mut GESTimeline;
pub fn ges_layer_is_empty(layer: *mut GESLayer) -> gboolean;
pub fn ges_layer_remove_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean;
pub fn ges_layer_set_active_for_tracks(
layer: *mut GESLayer,
active: gboolean,
tracks: *mut glib::GList,
) -> gboolean;
pub fn ges_layer_set_auto_transition(layer: *mut GESLayer, auto_transition: gboolean);
pub fn ges_layer_set_priority(layer: *mut GESLayer, priority: c_uint);
pub fn ges_layer_set_timeline(layer: *mut GESLayer, timeline: *mut GESTimeline);
//=========================================================================
// GESMarker
//=========================================================================
pub fn ges_marker_get_type() -> GType;
//=========================================================================
// GESMarkerList
//=========================================================================
pub fn ges_marker_list_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_marker_list_new() -> *mut GESMarkerList;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_marker_list_add(
list: *mut GESMarkerList,
position: gst::GstClockTime,
) -> *mut GESMarker;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_marker_list_get_markers(list: *mut GESMarkerList) -> *mut glib::GList;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_marker_list_move(
list: *mut GESMarkerList,
marker: *mut GESMarker,
position: gst::GstClockTime,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_marker_list_remove(list: *mut GESMarkerList, marker: *mut GESMarker) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_marker_list_size(list: *mut GESMarkerList) -> c_uint;
//=========================================================================
// GESMultiFileSource
//=========================================================================
@ -2851,6 +3082,8 @@ extern "C" {
project: *mut GESProject,
profile: *mut gst_pbutils::GstEncodingProfile,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_project_add_formatter(project: *mut GESProject, formatter: *mut GESFormatter);
pub fn ges_project_create_asset(
project: *mut GESProject,
id: *const c_char,
@ -2896,6 +3129,11 @@ extern "C" {
//=========================================================================
pub fn ges_source_clip_get_type() -> GType;
//=========================================================================
// GESSourceClipAsset
//=========================================================================
pub fn ges_source_clip_asset_get_type() -> GType;
//=========================================================================
// GESTestClip
//=========================================================================
@ -2975,6 +3213,14 @@ extern "C" {
timeline: *mut GESTimeline,
name: *const c_char,
) -> *mut GESTimelineElement;
pub fn ges_timeline_get_frame_at(
self_: *mut GESTimeline,
timestamp: gst::GstClockTime,
) -> GESFrameNumber;
pub fn ges_timeline_get_frame_time(
self_: *mut GESTimeline,
frame_number: GESFrameNumber,
) -> gst::GstClockTime;
pub fn ges_timeline_get_groups(timeline: *mut GESTimeline) -> *mut glib::GList;
pub fn ges_timeline_get_layer(timeline: *mut GESTimeline, priority: c_uint) -> *mut GESLayer;
pub fn ges_timeline_get_layers(timeline: *mut GESTimeline) -> *mut glib::GList;
@ -3034,6 +3280,15 @@ extern "C" {
self_: *mut GESTimelineElement,
deep: gboolean,
) -> *mut GESTimelineElement;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_timeline_element_edit(
self_: *mut GESTimelineElement,
layers: *mut glib::GList,
new_layer_priority: i64,
mode: GESEditMode,
edge: GESEdge,
position: u64,
) -> gboolean;
pub fn ges_timeline_element_get_child_properties(
self_: *mut GESTimelineElement,
first_property_name: *const c_char,
@ -3058,6 +3313,12 @@ extern "C" {
self_: *mut GESTimelineElement,
) -> gst::GstClockTime;
pub fn ges_timeline_element_get_name(self_: *mut GESTimelineElement) -> *mut c_char;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_timeline_element_get_natural_framerate(
self_: *mut GESTimelineElement,
framerate_n: *mut c_int,
framerate_d: *mut c_int,
) -> gboolean;
pub fn ges_timeline_element_get_parent(
self_: *mut GESTimelineElement,
) -> *mut GESTimelineElement;
@ -3210,6 +3471,8 @@ extern "C" {
pub fn ges_track_get_caps(track: *mut GESTrack) -> *const gst::GstCaps;
pub fn ges_track_get_elements(track: *mut GESTrack) -> *mut glib::GList;
pub fn ges_track_get_mixing(track: *mut GESTrack) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_track_get_restriction_caps(track: *mut GESTrack) -> *mut gst::GstCaps;
pub fn ges_track_get_timeline(track: *mut GESTrack) -> *const GESTimeline;
pub fn ges_track_remove_element(track: *mut GESTrack, object: *mut GESTrackElement)
-> gboolean;
@ -3269,6 +3532,7 @@ extern "C" {
pub fn ges_track_element_get_nleobject(object: *mut GESTrackElement) -> *mut gst::GstElement;
pub fn ges_track_element_get_track(object: *mut GESTrackElement) -> *mut GESTrack;
pub fn ges_track_element_get_track_type(object: *mut GESTrackElement) -> GESTrackType;
pub fn ges_track_element_has_internal_source(object: *mut GESTrackElement) -> gboolean;
pub fn ges_track_element_is_active(object: *mut GESTrackElement) -> gboolean;
pub fn ges_track_element_list_children_properties(
object: *mut GESTrackElement,
@ -3308,12 +3572,21 @@ extern "C" {
property_name: *const c_char,
binding_type: *const c_char,
) -> gboolean;
pub fn ges_track_element_set_has_internal_source(
object: *mut GESTrackElement,
has_internal_source: gboolean,
);
pub fn ges_track_element_set_track_type(object: *mut GESTrackElement, type_: GESTrackType);
//=========================================================================
// GESTrackElementAsset
//=========================================================================
pub fn ges_track_element_asset_get_type() -> GType;
pub fn ges_track_element_asset_get_natural_framerate(
self_: *mut GESTrackElementAsset,
framerate_n: *mut c_int,
framerate_d: *mut c_int,
) -> gboolean;
pub fn ges_track_element_asset_get_track_type(asset: *mut GESTrackElementAsset)
-> GESTrackType;
pub fn ges_track_element_asset_set_track_type(
@ -3368,6 +3641,8 @@ extern "C" {
pub fn ges_uri_clip_asset_get_info(
self_: *const GESUriClipAsset,
) -> *mut gst_pbutils::GstDiscovererInfo;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_uri_clip_asset_get_max_duration(self_: *mut GESUriClipAsset) -> gst::GstClockTime;
pub fn ges_uri_clip_asset_get_stream_assets(self_: *mut GESUriClipAsset) -> *const glib::GList;
pub fn ges_uri_clip_asset_is_image(self_: *mut GESUriClipAsset) -> gboolean;
@ -3382,11 +3657,17 @@ extern "C" {
asset: *mut GESUriSourceAsset,
) -> *mut gst_pbutils::GstDiscovererStreamInfo;
pub fn ges_uri_source_asset_get_stream_uri(asset: *mut GESUriSourceAsset) -> *const c_char;
pub fn ges_uri_source_asset_is_image(asset: *mut GESUriSourceAsset) -> gboolean;
//=========================================================================
// GESVideoSource
//=========================================================================
pub fn ges_video_source_get_type() -> GType;
pub fn ges_video_source_get_natural_size(
self_: *mut GESVideoSource,
width: *mut c_int,
height: *mut c_int,
) -> gboolean;
//=========================================================================
// GESVideoTestSource
@ -3495,6 +3776,11 @@ extern "C" {
meta_item: *const c_char,
dest: *mut i64,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_meta_container_get_marker_list(
container: *mut GESMetaContainer,
key: *const c_char,
) -> *mut GESMarkerList;
pub fn ges_meta_container_get_meta(
container: *mut GESMetaContainer,
key: *const c_char,
@ -3580,6 +3866,12 @@ extern "C" {
meta_item: *const c_char,
value: u64,
) -> gboolean;
pub fn ges_meta_container_register_static_meta(
container: *mut GESMetaContainer,
flags: GESMetaFlag,
meta_item: *const c_char,
type_: GType,
) -> gboolean;
pub fn ges_meta_container_set_boolean(
container: *mut GESMetaContainer,
meta_item: *const c_char,
@ -3615,6 +3907,12 @@ extern "C" {
meta_item: *const c_char,
value: i64,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_meta_container_set_marker_list(
container: *mut GESMetaContainer,
meta_item: *const c_char,
list: *const GESMarkerList,
) -> gboolean;
pub fn ges_meta_container_set_meta(
container: *mut GESMetaContainer,
meta_item: *const c_char,
@ -3641,6 +3939,8 @@ extern "C" {
//=========================================================================
pub fn ges_add_missing_uri_relocation_uri(uri: *const c_char, recurse: gboolean) -> gboolean;
pub fn ges_deinit();
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn ges_find_formatter_for_uri(uri: *const c_char) -> *mut GESAsset;
pub fn ges_init() -> gboolean;
pub fn ges_init_check(
argc: *mut c_int,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_editing_services_sys;
@ -546,6 +546,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GESFormatterClass>(),
},
),
(
"GESFrameNumber",
Layout {
size: size_of::<GESFrameNumber>(),
alignment: align_of::<GESFrameNumber>(),
},
),
(
"GESGroup",
Layout {
@ -588,6 +595,20 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GESLayerClass>(),
},
),
(
"GESMarkerClass",
Layout {
size: size_of::<GESMarkerClass>(),
alignment: align_of::<GESMarkerClass>(),
},
),
(
"GESMarkerListClass",
Layout {
size: size_of::<GESMarkerListClass>(),
alignment: align_of::<GESMarkerListClass>(),
},
),
(
"GESMetaContainerInterface",
Layout {
@ -728,6 +749,20 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GESSourceClip>(),
},
),
(
"GESSourceClipAsset",
Layout {
size: size_of::<GESSourceClipAsset>(),
alignment: align_of::<GESSourceClipAsset>(),
},
),
(
"GESSourceClipAssetClass",
Layout {
size: size_of::<GESSourceClipAssetClass>(),
alignment: align_of::<GESSourceClipAssetClass>(),
},
),
(
"GESSourceClipClass",
Layout {
@ -1076,16 +1111,26 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GES_CHILDREN_UPDATE_ALL_VALUES", "3"),
("(gint) GES_CHILDREN_UPDATE_OFFSETS", "2"),
("(gint) GES_EDGE_END", "1"),
("(gint) GES_EDGE_END", "1"),
("(gint) GES_EDGE_NONE", "2"),
("(gint) GES_EDGE_NONE", "2"),
("(gint) GES_EDGE_START", "0"),
("(gint) GES_EDGE_START", "0"),
("(gint) GES_EDIT_MODE_NORMAL", "0"),
("(gint) GES_EDIT_MODE_NORMAL", "0"),
("(gint) GES_EDIT_MODE_RIPPLE", "1"),
("(gint) GES_EDIT_MODE_RIPPLE", "1"),
("(gint) GES_EDIT_MODE_ROLL", "2"),
("(gint) GES_EDIT_MODE_ROLL", "2"),
("(gint) GES_EDIT_MODE_SLIDE", "4"),
("(gint) GES_EDIT_MODE_SLIDE", "4"),
("(gint) GES_EDIT_MODE_TRIM", "3"),
("(gint) GES_EDIT_MODE_TRIM", "3"),
("(gint) GES_ERROR_ASSET_LOADING", "1"),
("(gint) GES_ERROR_ASSET_WRONG_ID", "0"),
("(gint) GES_ERROR_FORMATTER_MALFORMED_INPUT_FILE", "2"),
("(gint) GES_ERROR_INVALID_FRAME_NUMBER", "3"),
("GES_FRAME_NUMBER_NONE", "9223372036854775807"),
("GES_META_DESCRIPTION", "description"),
("GES_META_FORMATTER_EXTENSION", "extension"),
("GES_META_FORMATTER_MIMETYPE", "mimetype"),
@ -1093,6 +1138,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("GES_META_FORMATTER_RANK", "rank"),
("GES_META_FORMATTER_VERSION", "version"),
("GES_META_FORMAT_VERSION", "format-version"),
("GES_META_MARKER_COLOR", "marker-color"),
("(guint) GES_META_READABLE", "1"),
("(guint) GES_META_READ_WRITE", "3"),
("GES_META_VOLUME", "volume"),

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -60,6 +60,9 @@ pub const GST_GL_RGBA8: GstGLFormat = 32856;
pub const GST_GL_RGBA16: GstGLFormat = 32859;
pub const GST_GL_DEPTH_COMPONENT16: GstGLFormat = 33189;
pub const GST_GL_DEPTH24_STENCIL8: GstGLFormat = 35056;
pub const GST_GL_RGB10_A2: GstGLFormat = 32857;
pub const GST_GL_R16: GstGLFormat = 33322;
pub const GST_GL_RG16: GstGLFormat = 33324;
pub type GstGLQueryType = c_int;
pub const GST_GL_QUERY_NONE: GstGLQueryType = 0;
@ -139,7 +142,7 @@ pub const GST_GL_API_OPENGL_NAME: *const c_char = b"opengl\0" as *const u8 as *c
pub const GST_GL_BASE_MEMORY_ALLOCATOR_NAME: *const c_char =
b"GLBaseMemory\0" as *const u8 as *const c_char;
pub const GST_GL_BUFFER_ALLOCATOR_NAME: *const c_char = b"GLBuffer\0" as *const u8 as *const c_char;
pub const GST_GL_COLOR_CONVERT_FORMATS: *const c_char = b"{ RGBA, RGB, RGBx, BGR, BGRx, BGRA, xRGB, xBGR, ARGB, ABGR, Y444, I420, YV12, Y42B, Y41B, NV12, NV21, YUY2, UYVY, AYUV, VUYA, GRAY8, GRAY16_LE, GRAY16_BE, RGB16, BGR16, ARGB64 }\0" as *const u8 as *const c_char;
pub const GST_GL_COLOR_CONVERT_FORMATS: *const c_char = b"{ RGBA, RGB, RGBx, BGR, BGRx, BGRA, xRGB, xBGR, ARGB, ABGR, Y444, I420, YV12, Y42B, Y41B, NV12, NV21, NV16, NV61, YUY2, UYVY, Y210, AYUV, VUYA, Y410, GRAY8, GRAY16_LE, GRAY16_BE, RGB16, BGR16, ARGB64 \0" as *const u8 as *const c_char;
pub const GST_GL_CONTEXT_TYPE_CGL: *const c_char =
b"gst.gl.context.CGL\0" as *const u8 as *const c_char;
pub const GST_GL_CONTEXT_TYPE_EAGL: *const c_char =
@ -155,7 +158,7 @@ pub const GST_GL_DISPLAY_CONTEXT_TYPE: *const c_char =
pub const GST_GL_MEMORY_ALLOCATOR_NAME: *const c_char = b"GLMemory\0" as *const u8 as *const c_char;
pub const GST_GL_MEMORY_PBO_ALLOCATOR_NAME: *const c_char =
b"GLMemoryPBO\0" as *const u8 as *const c_char;
pub const GST_GL_MEMORY_VIDEO_FORMATS_STR: *const c_char = b"{ RGBA, BGRA, RGBx, BGRx, ARGB, ABGR, xRGB, xBGR, RGB, BGR, RGB16, BGR16, AYUV, VUYA, I420, YV12, NV12, NV21, YUY2, UYVY, Y41B, Y42B, Y444, GRAY8, GRAY16_LE, GRAY16_BE, ARGB64 }\0" as *const u8 as *const c_char;
pub const GST_GL_MEMORY_VIDEO_FORMATS_STR: *const c_char = b"{ RGBA, BGRA, RGBx, BGRx, ARGB, ABGR, xRGB, xBGR, RGB, BGR, RGB16, BGR16, AYUV, VUYA, Y410, I420, YV12, NV12, NV21, NV16, NV61, YUY2, UYVY, Y210, Y41B, Y42B, Y444, GRAY8, GRAY16_LE, GRAY16_BE, ARGB64\0" as *const u8 as *const c_char;
pub const GST_GL_RENDERBUFFER_ALLOCATOR_NAME: *const c_char =
b"GLRenderbuffer\0" as *const u8 as *const c_char;
pub const GST_GL_TEXTURE_TARGET_2D_STR: *const c_char = b"2D\0" as *const u8 as *const c_char;
@ -188,6 +191,7 @@ pub const GST_GL_DISPLAY_TYPE_DISPMANX: GstGLDisplayType = 16;
pub const GST_GL_DISPLAY_TYPE_EGL: GstGLDisplayType = 32;
pub const GST_GL_DISPLAY_TYPE_VIV_FB: GstGLDisplayType = 64;
pub const GST_GL_DISPLAY_TYPE_GBM: GstGLDisplayType = 128;
pub const GST_GL_DISPLAY_TYPE_EGL_DEVICE: GstGLDisplayType = 256;
pub const GST_GL_DISPLAY_TYPE_ANY: GstGLDisplayType = 4294967295;
pub type GstGLPlatform = c_uint;
@ -391,6 +395,35 @@ impl ::std::fmt::Debug for GstGLBaseMemoryAllocatorClass {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstGLBaseSrcClass {
pub parent_class: gst_base::GstPushSrcClass,
pub supported_gl_api: GstGLAPI,
pub gl_start: Option<unsafe extern "C" fn(*mut GstGLBaseSrc) -> gboolean>,
pub gl_stop: Option<unsafe extern "C" fn(*mut GstGLBaseSrc)>,
pub fill_gl_memory:
Option<unsafe extern "C" fn(*mut GstGLBaseSrc, *mut GstGLMemory) -> gboolean>,
pub _padding: [gpointer; 4],
}
impl ::std::fmt::Debug for GstGLBaseSrcClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBaseSrcClass @ {:?}", self as *const _))
.field("parent_class", &self.parent_class)
.field("supported_gl_api", &self.supported_gl_api)
.field("gl_start", &self.gl_start)
.field("gl_stop", &self.gl_stop)
.field("fill_gl_memory", &self.fill_gl_memory)
.finish()
}
}
#[repr(C)]
pub struct _GstGLBaseSrcPrivate(c_void);
pub type GstGLBaseSrcPrivate = *mut _GstGLBaseSrcPrivate;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstGLBuffer {
@ -549,7 +582,8 @@ pub struct GstGLDisplayClass {
pub object_class: gst::GstObjectClass,
pub get_handle: Option<unsafe extern "C" fn(*mut GstGLDisplay) -> uintptr_t>,
pub create_window: Option<unsafe extern "C" fn(*mut GstGLDisplay) -> *mut GstGLWindow>,
pub _padding: [gpointer; 4],
pub get_foreign_display: Option<unsafe extern "C" fn(*mut GstGLDisplay) -> gboolean>,
pub _padding: [gpointer; 3],
}
impl ::std::fmt::Debug for GstGLDisplayClass {
@ -558,6 +592,7 @@ impl ::std::fmt::Debug for GstGLDisplayClass {
.field("object_class", &self.object_class)
.field("get_handle", &self.get_handle)
.field("create_window", &self.create_window)
.field("get_foreign_display", &self.get_foreign_display)
.finish()
}
}
@ -580,6 +615,25 @@ impl ::std::fmt::Debug for GstGLDisplayEGLClass {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstGLDisplayEGLDeviceClass {
pub object_class: GstGLDisplayClass,
pub _padding: [gpointer; 4],
}
impl ::std::fmt::Debug for GstGLDisplayEGLDeviceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstGLDisplayEGLDeviceClass @ {:?}",
self as *const _
))
.field("object_class", &self.object_class)
.field("_padding", &self._padding)
.finish()
}
}
#[repr(C)]
pub struct _GstGLDisplayPrivate(c_void);
@ -1053,7 +1107,8 @@ pub struct GstGLWindowClass {
Option<unsafe extern "C" fn(*mut GstGLWindow, c_int, c_int, c_int, c_int) -> gboolean>,
pub queue_resize: Option<unsafe extern "C" fn(*mut GstGLWindow)>,
pub controls_viewport: Option<unsafe extern "C" fn(*mut GstGLWindow) -> gboolean>,
pub _reserved: [gpointer; 3],
pub has_output_surface: Option<unsafe extern "C" fn(*mut GstGLWindow) -> gboolean>,
pub _reserved: [gpointer; 2],
}
impl ::std::fmt::Debug for GstGLWindowClass {
@ -1076,6 +1131,7 @@ impl ::std::fmt::Debug for GstGLWindowClass {
.field("set_render_rectangle", &self.set_render_rectangle)
.field("queue_resize", &self.queue_resize)
.field("controls_viewport", &self.controls_viewport)
.field("has_output_surface", &self.has_output_surface)
.finish()
}
}
@ -1128,6 +1184,32 @@ impl ::std::fmt::Debug for GstGLBaseMemoryAllocator {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstGLBaseSrc {
pub parent: gst_base::GstPushSrc,
pub display: *mut GstGLDisplay,
pub context: *mut GstGLContext,
pub out_info: gst_video::GstVideoInfo,
pub out_caps: *mut gst::GstCaps,
pub running_time: gst::GstClockTime,
pub _padding: [gpointer; 4],
pub priv_: *mut GstGLBaseSrcPrivate,
}
impl ::std::fmt::Debug for GstGLBaseSrc {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBaseSrc @ {:?}", self as *const _))
.field("parent", &self.parent)
.field("display", &self.display)
.field("context", &self.context)
.field("out_info", &self.out_info)
.field("out_caps", &self.out_caps)
.field("running_time", &self.running_time)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstGLBufferAllocator {
@ -1242,6 +1324,24 @@ impl ::std::fmt::Debug for GstGLDisplayEGL {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstGLDisplayEGLDevice {
pub parent: GstGLDisplay,
pub device: gpointer,
pub _padding: [gpointer; 4],
}
impl ::std::fmt::Debug for GstGLDisplayEGLDevice {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayEGLDevice @ {:?}", self as *const _))
.field("parent", &self.parent)
.field("device", &self.device)
.field("_padding", &self._padding)
.finish()
}
}
#[cfg(any(feature = "wayland", feature = "dox"))]
#[repr(C)]
#[derive(Copy, Clone)]
@ -1966,12 +2066,19 @@ extern "C" {
pub fn gst_gl_base_filter_get_type() -> GType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_gl_base_filter_find_gl_context(filter: *mut GstGLBaseFilter) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_gl_base_filter_get_gl_context(filter: *mut GstGLBaseFilter) -> *mut GstGLContext;
//=========================================================================
// GstGLBaseMemoryAllocator
//=========================================================================
pub fn gst_gl_base_memory_allocator_get_type() -> GType;
//=========================================================================
// GstGLBaseSrc
//=========================================================================
pub fn gst_gl_base_src_get_type() -> GType;
//=========================================================================
// GstGLBufferAllocator
//=========================================================================
@ -2144,6 +2251,8 @@ extern "C" {
data: gpointer,
compare_func: glib::GCompareFunc,
) -> *mut GstGLWindow;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_gl_display_get_foreign_display(display: *mut GstGLDisplay) -> gboolean;
pub fn gst_gl_display_get_gl_api(display: *mut GstGLDisplay) -> GstGLAPI;
pub fn gst_gl_display_get_gl_api_unlocked(display: *mut GstGLDisplay) -> GstGLAPI;
pub fn gst_gl_display_get_gl_context_for_thread(
@ -2152,10 +2261,18 @@ extern "C" {
) -> *mut GstGLContext;
pub fn gst_gl_display_get_handle(display: *mut GstGLDisplay) -> uintptr_t;
pub fn gst_gl_display_get_handle_type(display: *mut GstGLDisplay) -> GstGLDisplayType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_gl_display_remove_context(display: *mut GstGLDisplay, context: *mut GstGLContext);
pub fn gst_gl_display_remove_window(
display: *mut GstGLDisplay,
window: *mut GstGLWindow,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_gl_display_retrieve_window(
display: *mut GstGLDisplay,
data: gpointer,
compare_func: glib::GCompareFunc,
) -> *mut GstGLWindow;
//=========================================================================
// GstGLDisplayEGL
@ -2172,6 +2289,17 @@ extern "C" {
display: uintptr_t,
) -> gpointer;
//=========================================================================
// GstGLDisplayEGLDevice
//=========================================================================
pub fn gst_gl_display_egl_device_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_gl_display_egl_device_new(device_index: c_uint) -> *mut GstGLDisplayEGLDevice;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_gl_display_egl_device_new_with_egl_device(
device: gpointer,
) -> *mut GstGLDisplayEGLDevice;
//=========================================================================
// GstGLDisplayWayland
//=========================================================================
@ -2642,6 +2770,8 @@ extern "C" {
);
pub fn gst_gl_window_get_window_handle(window: *mut GstGLWindow) -> uintptr_t;
pub fn gst_gl_window_handle_events(window: *mut GstGLWindow, handle_events: gboolean);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_gl_window_has_output_surface(window: *mut GstGLWindow) -> gboolean;
pub fn gst_gl_window_queue_resize(window: *mut GstGLWindow);
pub fn gst_gl_window_quit(window: *mut GstGLWindow);
pub fn gst_gl_window_resize(window: *mut GstGLWindow, width: c_uint, height: c_uint);
@ -2669,6 +2799,13 @@ extern "C" {
posx: c_double,
posy: c_double,
);
pub fn gst_gl_window_send_scroll_event(
window: *mut GstGLWindow,
posx: c_double,
posy: c_double,
delta_x: c_double,
delta_y: c_double,
);
pub fn gst_gl_window_set_close_callback(
window: *mut GstGLWindow,
callback: GstGLWindowCB,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_gl_sys;
@ -322,6 +322,20 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstGLBaseMemoryTransfer>(),
},
),
(
"GstGLBaseSrc",
Layout {
size: size_of::<GstGLBaseSrc>(),
alignment: align_of::<GstGLBaseSrc>(),
},
),
(
"GstGLBaseSrcClass",
Layout {
size: size_of::<GstGLBaseSrcClass>(),
alignment: align_of::<GstGLBaseSrcClass>(),
},
),
(
"GstGLBuffer",
Layout {
@ -429,6 +443,20 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstGLDisplayEGLClass>(),
},
),
(
"GstGLDisplayEGLDevice",
Layout {
size: size_of::<GstGLDisplayEGLDevice>(),
alignment: align_of::<GstGLDisplayEGLDevice>(),
},
),
(
"GstGLDisplayEGLDeviceClass",
Layout {
size: size_of::<GstGLDisplayEGLDeviceClass>(),
alignment: align_of::<GstGLDisplayEGLDeviceClass>(),
},
),
(
"GstGLDisplayType",
Layout {
@ -799,7 +827,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_GL_BASE_MEMORY_TRANSFER_NEED_DOWNLOAD", "1048576"),
("(guint) GST_GL_BASE_MEMORY_TRANSFER_NEED_UPLOAD", "2097152"),
("GST_GL_BUFFER_ALLOCATOR_NAME", "GLBuffer"),
("GST_GL_COLOR_CONVERT_FORMATS", "{ RGBA, RGB, RGBx, BGR, BGRx, BGRA, xRGB, xBGR, ARGB, ABGR, Y444, I420, YV12, Y42B, Y41B, NV12, NV21, YUY2, UYVY, AYUV, VUYA, GRAY8, GRAY16_LE, GRAY16_BE, RGB16, BGR16, ARGB64 }"),
("GST_GL_COLOR_CONVERT_FORMATS", "{ RGBA, RGB, RGBx, BGR, BGRx, BGRA, xRGB, xBGR, ARGB, ABGR, Y444, I420, YV12, Y42B, Y41B, NV12, NV21, NV16, NV61, YUY2, UYVY, Y210, AYUV, VUYA, Y410, GRAY8, GRAY16_LE, GRAY16_BE, RGB16, BGR16, ARGB64 "),
("(gint) GST_GL_CONTEXT_ERROR_CREATE_CONTEXT", "4"),
("(gint) GST_GL_CONTEXT_ERROR_FAILED", "0"),
("(gint) GST_GL_CONTEXT_ERROR_OLD_LIBS", "3"),
@ -818,6 +846,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_GL_DISPLAY_TYPE_COCOA", "4"),
("(guint) GST_GL_DISPLAY_TYPE_DISPMANX", "16"),
("(guint) GST_GL_DISPLAY_TYPE_EGL", "32"),
("(guint) GST_GL_DISPLAY_TYPE_EGL_DEVICE", "256"),
("(guint) GST_GL_DISPLAY_TYPE_GBM", "128"),
("(guint) GST_GL_DISPLAY_TYPE_NONE", "0"),
("(guint) GST_GL_DISPLAY_TYPE_VIV_FB", "64"),
@ -828,7 +857,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_GL_LUMINANCE_ALPHA", "6410"),
("GST_GL_MEMORY_ALLOCATOR_NAME", "GLMemory"),
("GST_GL_MEMORY_PBO_ALLOCATOR_NAME", "GLMemoryPBO"),
("GST_GL_MEMORY_VIDEO_FORMATS_STR", "{ RGBA, BGRA, RGBx, BGRx, ARGB, ABGR, xRGB, xBGR, RGB, BGR, RGB16, BGR16, AYUV, VUYA, I420, YV12, NV12, NV21, YUY2, UYVY, Y41B, Y42B, Y444, GRAY8, GRAY16_LE, GRAY16_BE, ARGB64 }"),
("GST_GL_MEMORY_VIDEO_FORMATS_STR", "{ RGBA, BGRA, RGBx, BGRx, ARGB, ABGR, xRGB, xBGR, RGB, BGR, RGB16, BGR16, AYUV, VUYA, Y410, I420, YV12, NV12, NV21, NV16, NV61, YUY2, UYVY, Y210, Y41B, Y42B, Y444, GRAY8, GRAY16_LE, GRAY16_BE, ARGB64"),
("(guint) GST_GL_PLATFORM_ANY", "4294967295"),
("(guint) GST_GL_PLATFORM_CGL", "8"),
("(guint) GST_GL_PLATFORM_EAGL", "16"),
@ -839,12 +868,15 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_GL_QUERY_NONE", "0"),
("(gint) GST_GL_QUERY_TIMESTAMP", "2"),
("(gint) GST_GL_QUERY_TIME_ELAPSED", "1"),
("(gint) GST_GL_R16", "33322"),
("(gint) GST_GL_R8", "33321"),
("(gint) GST_GL_RED", "6403"),
("GST_GL_RENDERBUFFER_ALLOCATOR_NAME", "GLRenderbuffer"),
("(gint) GST_GL_RG", "33319"),
("(gint) GST_GL_RG16", "33324"),
("(gint) GST_GL_RG8", "33323"),
("(gint) GST_GL_RGB", "6407"),
("(gint) GST_GL_RGB10_A2", "32857"),
("(gint) GST_GL_RGB16", "32852"),
("(gint) GST_GL_RGB565", "36194"),
("(gint) GST_GL_RGB8", "32849"),

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -183,6 +183,7 @@ pub const GST_MTS_DESC_EXT_DVB_DTS_NEUTRAL: GstMpegtsDVBExtendedDescriptorType =
pub const GST_MTS_DESC_EXT_DVB_VIDEO_DEPTH_RANGE: GstMpegtsDVBExtendedDescriptorType = 16;
pub const GST_MTS_DESC_EXT_DVB_T2MI: GstMpegtsDVBExtendedDescriptorType = 17;
pub const GST_MTS_DESC_EXT_DVB_URI_LINKAGE: GstMpegtsDVBExtendedDescriptorType = 19;
pub const GST_MTS_DESC_EXT_DVB_AC4: GstMpegtsDVBExtendedDescriptorType = 21;
pub type GstMpegtsDVBLinkageHandOverType = c_int;
pub const GST_MPEGTS_DVB_LINKAGE_HAND_OVER_RESERVED: GstMpegtsDVBLinkageHandOverType = 0;
@ -380,6 +381,21 @@ pub const GST_MPEGTS_RUNNING_STATUS_PAUSING: GstMpegtsRunningStatus = 3;
pub const GST_MPEGTS_RUNNING_STATUS_RUNNING: GstMpegtsRunningStatus = 4;
pub const GST_MPEGTS_RUNNING_STATUS_OFF_AIR: GstMpegtsRunningStatus = 5;
pub type GstMpegtsSCTESpliceCommandType = c_int;
pub const GST_MTS_SCTE_SPLICE_COMMAND_NULL: GstMpegtsSCTESpliceCommandType = 0;
pub const GST_MTS_SCTE_SPLICE_COMMAND_SCHEDULE: GstMpegtsSCTESpliceCommandType = 4;
pub const GST_MTS_SCTE_SPLICE_COMMAND_INSERT: GstMpegtsSCTESpliceCommandType = 5;
pub const GST_MTS_SCTE_SPLICE_COMMAND_TIME: GstMpegtsSCTESpliceCommandType = 6;
pub const GST_MTS_SCTE_SPLICE_COMMAND_BANDWIDTH: GstMpegtsSCTESpliceCommandType = 7;
pub const GST_MTS_SCTE_SPLICE_COMMAND_PRIVATE: GstMpegtsSCTESpliceCommandType = 255;
pub type GstMpegtsSCTESpliceDescriptor = c_int;
pub const GST_MTS_SCTE_DESC_AVAIL: GstMpegtsSCTESpliceDescriptor = 0;
pub const GST_MTS_SCTE_DESC_DTMF: GstMpegtsSCTESpliceDescriptor = 1;
pub const GST_MTS_SCTE_DESC_SEGMENTATION: GstMpegtsSCTESpliceDescriptor = 2;
pub const GST_MTS_SCTE_DESC_TIME: GstMpegtsSCTESpliceDescriptor = 3;
pub const GST_MTS_SCTE_DESC_AUDIO: GstMpegtsSCTESpliceDescriptor = 4;
pub type GstMpegtsSatellitePolarizationType = c_int;
pub const GST_MPEGTS_POLARIZATION_LINEAR_HORIZONTAL: GstMpegtsSatellitePolarizationType = 0;
pub const GST_MPEGTS_POLARIZATION_LINEAR_VERTICAL: GstMpegtsSatellitePolarizationType = 1;
@ -396,6 +412,7 @@ pub const GST_MPEGTS_ROLLOFF_AUTO: GstMpegtsSatelliteRolloff = 4;
pub type GstMpegtsScteStreamType = c_int;
pub const GST_MPEGTS_STREAM_TYPE_SCTE_SUBTITLING: GstMpegtsScteStreamType = 130;
pub const GST_MPEGTS_STREAM_TYPE_SCTE_ISOCH_DATA: GstMpegtsScteStreamType = 131;
pub const GST_MPEGTS_STREAM_TYPE_SCTE_SIT: GstMpegtsScteStreamType = 134;
pub const GST_MPEGTS_STREAM_TYPE_SCTE_DST_NRT: GstMpegtsScteStreamType = 149;
pub const GST_MPEGTS_STREAM_TYPE_SCTE_DSMCC_DCB: GstMpegtsScteStreamType = 176;
pub const GST_MPEGTS_STREAM_TYPE_SCTE_SIGNALING: GstMpegtsScteStreamType = 192;
@ -506,6 +523,8 @@ pub const GST_MPEGTS_SECTION_ATSC_MGT: GstMpegtsSectionType = 13;
pub const GST_MPEGTS_SECTION_ATSC_ETT: GstMpegtsSectionType = 14;
pub const GST_MPEGTS_SECTION_ATSC_EIT: GstMpegtsSectionType = 15;
pub const GST_MPEGTS_SECTION_ATSC_STT: GstMpegtsSectionType = 16;
pub const GST_MPEGTS_SECTION_ATSC_RRT: GstMpegtsSectionType = 17;
pub const GST_MPEGTS_SECTION_SCTE_SIT: GstMpegtsSectionType = 18;
pub type GstMpegtsStreamType = c_int;
pub const GST_MPEGTS_STREAM_TYPE_RESERVED_00: GstMpegtsStreamType = 0;
@ -702,6 +721,70 @@ impl ::std::fmt::Debug for GstMpegtsAtscMultString {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstMpegtsAtscRRT {
pub protocol_version: u8,
pub names: *mut glib::GPtrArray,
pub dimensions_defined: u8,
pub dimensions: *mut glib::GPtrArray,
pub descriptors: *mut glib::GPtrArray,
}
impl ::std::fmt::Debug for GstMpegtsAtscRRT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscRRT @ {:?}", self as *const _))
.field("protocol_version", &self.protocol_version)
.field("names", &self.names)
.field("dimensions_defined", &self.dimensions_defined)
.field("dimensions", &self.dimensions)
.field("descriptors", &self.descriptors)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstMpegtsAtscRRTDimension {
pub names: *mut glib::GPtrArray,
pub graduated_scale: gboolean,
pub values_defined: u8,
pub values: *mut glib::GPtrArray,
}
impl ::std::fmt::Debug for GstMpegtsAtscRRTDimension {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstMpegtsAtscRRTDimension @ {:?}",
self as *const _
))
.field("names", &self.names)
.field("graduated_scale", &self.graduated_scale)
.field("values_defined", &self.values_defined)
.field("values", &self.values)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstMpegtsAtscRRTDimensionValue {
pub abbrev_ratings: *mut glib::GPtrArray,
pub ratings: *mut glib::GPtrArray,
}
impl ::std::fmt::Debug for GstMpegtsAtscRRTDimensionValue {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstMpegtsAtscRRTDimensionValue @ {:?}",
self as *const _
))
.field("abbrev_ratings", &self.abbrev_ratings)
.field("ratings", &self.ratings)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstMpegtsAtscSTT {
@ -1447,6 +1530,92 @@ impl ::std::fmt::Debug for GstMpegtsPatProgram {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstMpegtsSCTESIT {
pub encrypted_packet: gboolean,
pub encryption_algorithm: u8,
pub pts_adjustment: u64,
pub cw_index: u8,
pub tier: u16,
pub splice_command_length: u16,
pub splice_command_type: GstMpegtsSCTESpliceCommandType,
pub splice_time_specified: gboolean,
pub splice_time: u64,
pub splices: *mut glib::GPtrArray,
pub descriptors: *mut glib::GPtrArray,
}
impl ::std::fmt::Debug for GstMpegtsSCTESIT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsSCTESIT @ {:?}", self as *const _))
.field("encrypted_packet", &self.encrypted_packet)
.field("encryption_algorithm", &self.encryption_algorithm)
.field("pts_adjustment", &self.pts_adjustment)
.field("cw_index", &self.cw_index)
.field("tier", &self.tier)
.field("splice_command_length", &self.splice_command_length)
.field("splice_command_type", &self.splice_command_type)
.field("splice_time_specified", &self.splice_time_specified)
.field("splice_time", &self.splice_time)
.field("splices", &self.splices)
.field("descriptors", &self.descriptors)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstMpegtsSCTESpliceEvent {
pub insert_event: gboolean,
pub splice_event_id: u32,
pub splice_event_cancel_indicator: gboolean,
pub out_of_network_indicator: gboolean,
pub program_splice_flag: gboolean,
pub duration_flag: gboolean,
pub splice_immediate_flag: gboolean,
pub program_splice_time_specified: gboolean,
pub program_splice_time: u64,
pub break_duration_auto_return: gboolean,
pub break_duration: u64,
pub unique_program_id: u16,
pub avail_num: u8,
pub avails_expected: u8,
}
impl ::std::fmt::Debug for GstMpegtsSCTESpliceEvent {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstMpegtsSCTESpliceEvent @ {:?}",
self as *const _
))
.field("insert_event", &self.insert_event)
.field("splice_event_id", &self.splice_event_id)
.field(
"splice_event_cancel_indicator",
&self.splice_event_cancel_indicator,
)
.field("out_of_network_indicator", &self.out_of_network_indicator)
.field("program_splice_flag", &self.program_splice_flag)
.field("duration_flag", &self.duration_flag)
.field("splice_immediate_flag", &self.splice_immediate_flag)
.field(
"program_splice_time_specified",
&self.program_splice_time_specified,
)
.field("program_splice_time", &self.program_splice_time)
.field(
"break_duration_auto_return",
&self.break_duration_auto_return,
)
.field("break_duration", &self.break_duration)
.field("unique_program_id", &self.unique_program_id)
.field("avail_num", &self.avail_num)
.field("avails_expected", &self.avails_expected)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstMpegtsSDT {
@ -1715,6 +1884,7 @@ extern "C" {
// GstMpegtsAtscMGT
//=========================================================================
pub fn gst_mpegts_atsc_mgt_get_type() -> GType;
pub fn gst_mpegts_atsc_mgt_new() -> *mut GstMpegtsAtscMGT;
//=========================================================================
// GstMpegtsAtscMGTTable
@ -1726,10 +1896,31 @@ extern "C" {
//=========================================================================
pub fn gst_mpegts_atsc_mult_string_get_type() -> GType;
//=========================================================================
// GstMpegtsAtscRRT
//=========================================================================
pub fn gst_mpegts_atsc_rrt_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_mpegts_atsc_rrt_new() -> *mut GstMpegtsAtscRRT;
//=========================================================================
// GstMpegtsAtscRRTDimension
//=========================================================================
pub fn gst_mpegts_atsc_rrt_dimension_get_type() -> GType;
pub fn gst_mpegts_atsc_rrt_dimension_new() -> *mut GstMpegtsAtscRRTDimension;
//=========================================================================
// GstMpegtsAtscRRTDimensionValue
//=========================================================================
pub fn gst_mpegts_atsc_rrt_dimension_value_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_mpegts_atsc_rrt_dimension_value_new() -> *mut GstMpegtsAtscRRTDimensionValue;
//=========================================================================
// GstMpegtsAtscSTT
//=========================================================================
pub fn gst_mpegts_atsc_stt_get_type() -> GType;
pub fn gst_mpegts_atsc_stt_new() -> *mut GstMpegtsAtscSTT;
pub fn gst_mpegts_atsc_stt_get_datetime_utc(
stt: *mut GstMpegtsAtscSTT,
) -> *mut gst::GstDateTime;
@ -1741,6 +1932,12 @@ extern "C" {
pub fn gst_mpegts_atsc_string_segment_get_string(
seg: *mut GstMpegtsAtscStringSegment,
) -> *const c_char;
pub fn gst_mpegts_atsc_string_segment_set_string(
seg: *mut GstMpegtsAtscStringSegment,
string: *mut c_char,
compression_type: u8,
mode: u8,
) -> gboolean;
//=========================================================================
// GstMpegtsAtscVCT
@ -2116,6 +2313,18 @@ extern "C" {
pub fn gst_mpegts_pat_program_get_type() -> GType;
pub fn gst_mpegts_pat_program_new() -> *mut GstMpegtsPatProgram;
//=========================================================================
// GstMpegtsSCTESIT
//=========================================================================
pub fn gst_mpegts_scte_sit_get_type() -> GType;
pub fn gst_mpegts_scte_sit_new() -> *mut GstMpegtsSCTESIT;
//=========================================================================
// GstMpegtsSCTESpliceEvent
//=========================================================================
pub fn gst_mpegts_scte_splice_event_get_type() -> GType;
pub fn gst_mpegts_scte_splice_event_new() -> *mut GstMpegtsSCTESpliceEvent;
//=========================================================================
// GstMpegtsSDT
//=========================================================================
@ -2154,6 +2363,10 @@ extern "C" {
pub fn gst_mpegts_section_get_atsc_mgt(
section: *mut GstMpegtsSection,
) -> *const GstMpegtsAtscMGT;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_mpegts_section_get_atsc_rrt(
section: *mut GstMpegtsSection,
) -> *const GstMpegtsAtscRRT;
pub fn gst_mpegts_section_get_atsc_stt(
section: *mut GstMpegtsSection,
) -> *const GstMpegtsAtscSTT;
@ -2167,6 +2380,9 @@ extern "C" {
pub fn gst_mpegts_section_get_nit(section: *mut GstMpegtsSection) -> *const GstMpegtsNIT;
pub fn gst_mpegts_section_get_pat(section: *mut GstMpegtsSection) -> *mut glib::GPtrArray;
pub fn gst_mpegts_section_get_pmt(section: *mut GstMpegtsSection) -> *const GstMpegtsPMT;
pub fn gst_mpegts_section_get_scte_sit(
section: *mut GstMpegtsSection,
) -> *const GstMpegtsSCTESIT;
pub fn gst_mpegts_section_get_sdt(section: *mut GstMpegtsSection) -> *const GstMpegtsSDT;
pub fn gst_mpegts_section_get_tdt(section: *mut GstMpegtsSection) -> *mut gst::GstDateTime;
pub fn gst_mpegts_section_get_tot(section: *mut GstMpegtsSection) -> *const GstMpegtsTOT;
@ -2179,12 +2395,21 @@ extern "C" {
section: *mut GstMpegtsSection,
element: *mut gst::GstElement,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_mpegts_section_from_atsc_mgt(mgt: *mut GstMpegtsAtscMGT) -> *mut GstMpegtsSection;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_mpegts_section_from_atsc_rrt(rrt: *mut GstMpegtsAtscRRT) -> *mut GstMpegtsSection;
pub fn gst_mpegts_section_from_atsc_stt(stt: *mut GstMpegtsAtscSTT) -> *mut GstMpegtsSection;
pub fn gst_mpegts_section_from_nit(nit: *mut GstMpegtsNIT) -> *mut GstMpegtsSection;
pub fn gst_mpegts_section_from_pat(
programs: *mut glib::GPtrArray,
ts_id: u16,
) -> *mut GstMpegtsSection;
pub fn gst_mpegts_section_from_pmt(pmt: *mut GstMpegtsPMT, pid: u16) -> *mut GstMpegtsSection;
pub fn gst_mpegts_section_from_scte_sit(
sit: *mut GstMpegtsSCTESIT,
pid: u16,
) -> *mut GstMpegtsSection;
pub fn gst_mpegts_section_from_sdt(sdt: *mut GstMpegtsSDT) -> *mut GstMpegtsSection;
//=========================================================================
@ -2233,5 +2458,13 @@ extern "C" {
-> *mut GstMpegtsSection;
pub fn gst_mpegts_parse_descriptors(buffer: *mut u8, buf_len: size_t) -> *mut glib::GPtrArray;
pub fn gst_mpegts_pat_new() -> *mut glib::GPtrArray;
pub fn gst_mpegts_scte_cancel_new(event_id: u32) -> *mut GstMpegtsSCTESIT;
pub fn gst_mpegts_scte_null_new() -> *mut GstMpegtsSCTESIT;
pub fn gst_mpegts_scte_splice_in_new(event_id: u32, splice_time: u64) -> *mut GstMpegtsSCTESIT;
pub fn gst_mpegts_scte_splice_out_new(
event_id: u32,
splice_time: u64,
duration: u64,
) -> *mut GstMpegtsSCTESIT;
}

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_mpegts_sys;
@ -308,6 +308,27 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstMpegtsAtscMultString>(),
},
),
(
"GstMpegtsAtscRRT",
Layout {
size: size_of::<GstMpegtsAtscRRT>(),
alignment: align_of::<GstMpegtsAtscRRT>(),
},
),
(
"GstMpegtsAtscRRTDimension",
Layout {
size: size_of::<GstMpegtsAtscRRTDimension>(),
alignment: align_of::<GstMpegtsAtscRRTDimension>(),
},
),
(
"GstMpegtsAtscRRTDimensionValue",
Layout {
size: size_of::<GstMpegtsAtscRRTDimensionValue>(),
alignment: align_of::<GstMpegtsAtscRRTDimensionValue>(),
},
),
(
"GstMpegtsAtscSTT",
Layout {
@ -658,6 +679,34 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstMpegtsRunningStatus>(),
},
),
(
"GstMpegtsSCTESIT",
Layout {
size: size_of::<GstMpegtsSCTESIT>(),
alignment: align_of::<GstMpegtsSCTESIT>(),
},
),
(
"GstMpegtsSCTESpliceCommandType",
Layout {
size: size_of::<GstMpegtsSCTESpliceCommandType>(),
alignment: align_of::<GstMpegtsSCTESpliceCommandType>(),
},
),
(
"GstMpegtsSCTESpliceDescriptor",
Layout {
size: size_of::<GstMpegtsSCTESpliceDescriptor>(),
alignment: align_of::<GstMpegtsSCTESpliceDescriptor>(),
},
),
(
"GstMpegtsSCTESpliceEvent",
Layout {
size: size_of::<GstMpegtsSCTESpliceEvent>(),
alignment: align_of::<GstMpegtsSCTESpliceEvent>(),
},
),
(
"GstMpegtsSDT",
Layout {
@ -998,6 +1047,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MPEGTS_SECTION_ATSC_EIT", "15"),
("(gint) GST_MPEGTS_SECTION_ATSC_ETT", "14"),
("(gint) GST_MPEGTS_SECTION_ATSC_MGT", "13"),
("(gint) GST_MPEGTS_SECTION_ATSC_RRT", "17"),
("(gint) GST_MPEGTS_SECTION_ATSC_STT", "16"),
("(gint) GST_MPEGTS_SECTION_ATSC_TVCT", "11"),
("(gint) GST_MPEGTS_SECTION_BAT", "7"),
@ -1006,6 +1056,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MPEGTS_SECTION_NIT", "6"),
("(gint) GST_MPEGTS_SECTION_PAT", "1"),
("(gint) GST_MPEGTS_SECTION_PMT", "2"),
("(gint) GST_MPEGTS_SECTION_SCTE_SIT", "18"),
("(gint) GST_MPEGTS_SECTION_SDT", "8"),
("(gint) GST_MPEGTS_SECTION_TDT", "9"),
("(gint) GST_MPEGTS_SECTION_TOT", "10"),
@ -1054,6 +1105,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MPEGTS_STREAM_TYPE_SCTE_DST_NRT", "149"),
("(gint) GST_MPEGTS_STREAM_TYPE_SCTE_ISOCH_DATA", "131"),
("(gint) GST_MPEGTS_STREAM_TYPE_SCTE_SIGNALING", "192"),
("(gint) GST_MPEGTS_STREAM_TYPE_SCTE_SIT", "134"),
("(gint) GST_MPEGTS_STREAM_TYPE_SCTE_SUBTITLING", "130"),
("(gint) GST_MPEGTS_STREAM_TYPE_SCTE_SYNC_DATA", "194"),
("(gint) GST_MPEGTS_STREAM_TYPE_SL_FLEXMUX_PES_PACKETS", "18"),
@ -1201,6 +1253,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MTS_DESC_DVB_VBI_TELETEXT", "70"),
("(gint) GST_MTS_DESC_DVB_XAIT_LOCATION", "125"),
("(gint) GST_MTS_DESC_EXTERNAL_ES_ID", "32"),
("(gint) GST_MTS_DESC_EXT_DVB_AC4", "21"),
("(gint) GST_MTS_DESC_EXT_DVB_C2_DELIVERY_SYSTEM", "13"),
("(gint) GST_MTS_DESC_EXT_DVB_CP", "2"),
("(gint) GST_MTS_DESC_EXT_DVB_CPCM_DELIVERY_SIGNALLING", "1"),
@ -1290,6 +1343,17 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MTS_DESC_TARGET_BACKGROUND_GRID", "7"),
("(gint) GST_MTS_DESC_VIDEO_STREAM", "2"),
("(gint) GST_MTS_DESC_VIDEO_WINDOW", "8"),
("(gint) GST_MTS_SCTE_DESC_AUDIO", "4"),
("(gint) GST_MTS_SCTE_DESC_AVAIL", "0"),
("(gint) GST_MTS_SCTE_DESC_DTMF", "1"),
("(gint) GST_MTS_SCTE_DESC_SEGMENTATION", "2"),
("(gint) GST_MTS_SCTE_DESC_TIME", "3"),
("(gint) GST_MTS_SCTE_SPLICE_COMMAND_BANDWIDTH", "7"),
("(gint) GST_MTS_SCTE_SPLICE_COMMAND_INSERT", "5"),
("(gint) GST_MTS_SCTE_SPLICE_COMMAND_NULL", "0"),
("(gint) GST_MTS_SCTE_SPLICE_COMMAND_PRIVATE", "255"),
("(gint) GST_MTS_SCTE_SPLICE_COMMAND_SCHEDULE", "4"),
("(gint) GST_MTS_SCTE_SPLICE_COMMAND_TIME", "6"),
("(gint) GST_MTS_TABLE_ID_14496_OBJET_DESCRIPTOR", "5"),
("(gint) GST_MTS_TABLE_ID_14496_SCENE_DESCRIPTION", "4"),
(

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -319,6 +319,8 @@ extern "C" {
pub fn gst_buffer_get_net_address_meta(buffer: *mut gst::GstBuffer) -> *mut GstNetAddressMeta;
pub fn gst_net_address_meta_api_get_type() -> GType;
pub fn gst_net_control_message_meta_api_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_net_utils_set_socket_tos(socket: *mut gio::GSocket, qos_dscp: c_int) -> gboolean;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_ptp_deinit();
#[cfg(any(feature = "v1_6", feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_net_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -618,6 +618,8 @@ extern "C" {
pub fn gst_encoding_profile_get_restriction(
profile: *mut GstEncodingProfile,
) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_encoding_profile_get_single_segment(profile: *mut GstEncodingProfile) -> gboolean;
pub fn gst_encoding_profile_get_type_nick(profile: *mut GstEncodingProfile) -> *const c_char;
pub fn gst_encoding_profile_is_enabled(profile: *mut GstEncodingProfile) -> gboolean;
pub fn gst_encoding_profile_is_equal(
@ -649,6 +651,11 @@ extern "C" {
profile: *mut GstEncodingProfile,
restriction: *mut gst::GstCaps,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_encoding_profile_set_single_segment(
profile: *mut GstEncodingProfile,
single_segment: gboolean,
);
//=========================================================================
// GstEncodingTarget

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_pbutils_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_player_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -31,8 +31,8 @@ pub const GST_RTCP_RTPFB_TYPE_NACK: GstRTCPFBType = 1;
pub const GST_RTCP_RTPFB_TYPE_TMMBR: GstRTCPFBType = 3;
pub const GST_RTCP_RTPFB_TYPE_TMMBN: GstRTCPFBType = 4;
pub const GST_RTCP_RTPFB_TYPE_RTCP_SR_REQ: GstRTCPFBType = 5;
pub const GST_RTCP_RTPFB_TYPE_TWCC: GstRTCPFBType = 15;
pub const GST_RTCP_PSFB_TYPE_SLI: GstRTCPFBType = 2;
pub const GST_RTCP_PSFB_TYPE_AFB: GstRTCPFBType = 15;
pub const GST_RTCP_PSFB_TYPE_TSTN: GstRTCPFBType = 6;
pub const GST_RTCP_PSFB_TYPE_VBCN: GstRTCPFBType = 7;
@ -929,6 +929,15 @@ extern "C" {
pub fn gst_rtp_buffer_compare_seqnum(seqnum1: u16, seqnum2: u16) -> c_int;
pub fn gst_rtp_buffer_default_clock_rate(payload_type: u8) -> u32;
pub fn gst_rtp_buffer_ext_timestamp(exttimestamp: *mut u64, timestamp: u32) -> u64;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtp_buffer_get_extension_onebyte_header_from_bytes(
bytes: *mut glib::GBytes,
bit_pattern: u16,
id: u8,
nth: c_uint,
data: *mut u8,
size: *mut c_uint,
) -> gboolean;
pub fn gst_rtp_buffer_map(
buffer: *mut gst::GstBuffer,
flags: gst::GstMapFlags,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_rtp_sys;
@ -406,6 +406,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_RTCP_RTPFB_TYPE_RTCP_SR_REQ", "5"),
("(gint) GST_RTCP_RTPFB_TYPE_TMMBN", "4"),
("(gint) GST_RTCP_RTPFB_TYPE_TMMBR", "3"),
("(gint) GST_RTCP_RTPFB_TYPE_TWCC", "15"),
("(gint) GST_RTCP_SDES_CNAME", "1"),
("(gint) GST_RTCP_SDES_EMAIL", "3"),
("(gint) GST_RTCP_SDES_END", "0"),

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -78,6 +78,8 @@ pub const GST_RTSP_AUTH_CHECK_URL: *const c_char =
b"auth.check.url\0" as *const u8 as *const c_char;
pub const GST_RTSP_ONVIF_BACKCHANNEL_REQUIREMENT: *const c_char =
b"www.onvif.org/ver20/backchannel\0" as *const u8 as *const c_char;
pub const GST_RTSP_ONVIF_REPLAY_REQUIREMENT: *const c_char =
b"onvif-replay\0" as *const u8 as *const c_char;
pub const GST_RTSP_PERM_MEDIA_FACTORY_ACCESS: *const c_char =
b"media.factory.access\0" as *const u8 as *const c_char;
pub const GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT: *const c_char =
@ -122,7 +124,8 @@ pub type GstRTSPClientSessionFilterFunc = Option<
unsafe extern "C" fn(*mut GstRTSPClient, *mut GstRTSPSession, gpointer) -> GstRTSPFilterResult,
>;
pub type GstRTSPKeepAliveFunc = Option<unsafe extern "C" fn(gpointer)>;
pub type GstRTSPMessageSentFunc = Option<unsafe extern "C" fn(gpointer)>;
pub type GstRTSPMessageSentFunc =
Option<unsafe extern "C" fn(*mut GstRTSPStreamTransport, gpointer)>;
pub type GstRTSPSendFunc =
Option<unsafe extern "C" fn(*mut gst::GstBuffer, u8, gpointer) -> gboolean>;
pub type GstRTSPSendListFunc =
@ -271,6 +274,23 @@ pub struct GstRTSPClientClass {
pub make_path_from_uri: Option<
unsafe extern "C" fn(*mut GstRTSPClient, *const gst_rtsp::GstRTSPUrl) -> *mut c_char,
>,
pub adjust_play_mode: Option<
unsafe extern "C" fn(
*mut GstRTSPClient,
*mut GstRTSPContext,
*mut *mut gst_rtsp::GstRTSPTimeRange,
*mut gst::GstSeekFlags,
*mut c_double,
*mut gst::GstClockTime,
*mut gboolean,
) -> gst_rtsp::GstRTSPStatusCode,
>,
pub adjust_play_response: Option<
unsafe extern "C" fn(
*mut GstRTSPClient,
*mut GstRTSPContext,
) -> gst_rtsp::GstRTSPStatusCode,
>,
pub closed: Option<unsafe extern "C" fn(*mut GstRTSPClient)>,
pub new_session: Option<unsafe extern "C" fn(*mut GstRTSPClient, *mut GstRTSPSession)>,
pub options_request: Option<unsafe extern "C" fn(*mut GstRTSPClient, *mut GstRTSPContext)>,
@ -375,7 +395,7 @@ pub struct GstRTSPClientClass {
*mut GstRTSPContext,
) -> gst_rtsp::GstRTSPStatusCode,
>,
pub _gst_reserved: [gpointer; 4],
pub _gst_reserved: [gpointer; 2],
}
impl ::std::fmt::Debug for GstRTSPClientClass {
@ -391,6 +411,8 @@ impl ::std::fmt::Debug for GstRTSPClientClass {
.field("params_set", &self.params_set)
.field("params_get", &self.params_get)
.field("make_path_from_uri", &self.make_path_from_uri)
.field("adjust_play_mode", &self.adjust_play_mode)
.field("adjust_play_response", &self.adjust_play_response)
.field("closed", &self.closed)
.field("new_session", &self.new_session)
.field("options_request", &self.options_request)
@ -1462,8 +1484,15 @@ extern "C" {
pub fn gst_rtsp_client_get_connection(
client: *mut GstRTSPClient,
) -> *mut gst_rtsp::GstRTSPConnection;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_client_get_content_length_limit(client: *mut GstRTSPClient) -> c_uint;
pub fn gst_rtsp_client_get_mount_points(client: *mut GstRTSPClient) -> *mut GstRTSPMountPoints;
pub fn gst_rtsp_client_get_session_pool(client: *mut GstRTSPClient) -> *mut GstRTSPSessionPool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_client_get_stream_transport(
client: *mut GstRTSPClient,
channel: u8,
) -> *mut GstRTSPStreamTransport;
pub fn gst_rtsp_client_get_thread_pool(client: *mut GstRTSPClient) -> *mut GstRTSPThreadPool;
pub fn gst_rtsp_client_handle_message(
client: *mut GstRTSPClient,
@ -1484,6 +1513,8 @@ extern "C" {
client: *mut GstRTSPClient,
conn: *mut gst_rtsp::GstRTSPConnection,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_client_set_content_length_limit(client: *mut GstRTSPClient, limit: c_uint);
pub fn gst_rtsp_client_set_mount_points(
client: *mut GstRTSPClient,
mounts: *mut GstRTSPMountPoints,
@ -1553,6 +1584,14 @@ extern "C" {
play: gboolean,
unit: gst_rtsp::GstRTSPRangeUnit,
) -> *mut c_char;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_media_get_rate_control(media: *mut GstRTSPMedia) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_media_get_rates(
media: *mut GstRTSPMedia,
rate: *mut c_double,
applied_rate: *mut c_double,
) -> gboolean;
pub fn gst_rtsp_media_get_retransmission_time(media: *mut GstRTSPMedia) -> gst::GstClockTime;
pub fn gst_rtsp_media_get_status(media: *mut GstRTSPMedia) -> GstRTSPMediaStatus;
pub fn gst_rtsp_media_get_stream(media: *mut GstRTSPMedia, idx: c_uint) -> *mut GstRTSPStream;
@ -1567,13 +1606,19 @@ extern "C" {
media: *mut GstRTSPMedia,
sdp: *mut gst_sdp::GstSDPMessage,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_media_has_completed_sender(media: *mut GstRTSPMedia) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_media_is_bind_mcast_address(media: *mut GstRTSPMedia) -> gboolean;
pub fn gst_rtsp_media_is_eos_shutdown(media: *mut GstRTSPMedia) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_media_is_receive_only(media: *mut GstRTSPMedia) -> gboolean;
pub fn gst_rtsp_media_is_reusable(media: *mut GstRTSPMedia) -> gboolean;
pub fn gst_rtsp_media_is_shared(media: *mut GstRTSPMedia) -> gboolean;
pub fn gst_rtsp_media_is_stop_on_disconnect(media: *mut GstRTSPMedia) -> gboolean;
pub fn gst_rtsp_media_is_time_provider(media: *mut GstRTSPMedia) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_media_lock(media: *mut GstRTSPMedia);
pub fn gst_rtsp_media_n_streams(media: *mut GstRTSPMedia) -> c_uint;
pub fn gst_rtsp_media_prepare(media: *mut GstRTSPMedia, thread: *mut GstRTSPThread)
-> gboolean;
@ -1581,12 +1626,20 @@ extern "C" {
media: *mut GstRTSPMedia,
range: *mut gst_rtsp::GstRTSPTimeRange,
) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_media_seek_full(
media: *mut GstRTSPMedia,
range: *mut gst_rtsp::GstRTSPTimeRange,
flags: gst::GstSeekFlags,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_media_seek_trickmode(
media: *mut GstRTSPMedia,
range: *mut gst_rtsp::GstRTSPTimeRange,
flags: gst::GstSeekFlags,
rate: c_double,
trickmode_interval: gst::GstClockTime,
) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_rtsp_media_seekable(media: *mut GstRTSPMedia) -> gst::GstClockTimeDiff;
pub fn gst_rtsp_media_set_address_pool(media: *mut GstRTSPMedia, pool: *mut GstRTSPAddressPool);
@ -1628,6 +1681,8 @@ extern "C" {
media: *mut GstRTSPMedia,
mode: GstRTSPPublishClockMode,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_media_set_rate_control(media: *mut GstRTSPMedia, enabled: gboolean);
pub fn gst_rtsp_media_set_retransmission_time(
media: *mut GstRTSPMedia,
time: gst::GstClockTime,
@ -1652,6 +1707,8 @@ extern "C" {
) -> gboolean;
pub fn gst_rtsp_media_suspend(media: *mut GstRTSPMedia) -> gboolean;
pub fn gst_rtsp_media_take_pipeline(media: *mut GstRTSPMedia, pipeline: *mut gst::GstPipeline);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_media_unlock(media: *mut GstRTSPMedia);
pub fn gst_rtsp_media_unprepare(media: *mut GstRTSPMedia) -> gboolean;
pub fn gst_rtsp_media_unsuspend(media: *mut GstRTSPMedia) -> gboolean;
pub fn gst_rtsp_media_use_time_provider(media: *mut GstRTSPMedia, time_provider: gboolean);
@ -1849,6 +1906,8 @@ extern "C" {
// GstRTSPOnvifClient
//=========================================================================
pub fn gst_rtsp_onvif_client_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_onvif_client_new() -> *mut GstRTSPClient;
//=========================================================================
// GstRTSPOnvifMedia
@ -1887,6 +1946,10 @@ extern "C" {
pub fn gst_rtsp_onvif_media_factory_has_backchannel_support(
factory: *mut GstRTSPOnvifMediaFactory,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_onvif_media_factory_has_replay_support(
factory: *mut GstRTSPOnvifMediaFactory,
) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_rtsp_onvif_media_factory_set_backchannel_bandwidth(
factory: *mut GstRTSPOnvifMediaFactory,
@ -1897,6 +1960,11 @@ extern "C" {
factory: *mut GstRTSPOnvifMediaFactory,
launch: *const c_char,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_onvif_media_factory_set_replay_support(
factory: *mut GstRTSPOnvifMediaFactory,
has_replay_support: gboolean,
);
//=========================================================================
// GstRTSPOnvifServer
@ -1937,6 +2005,8 @@ extern "C" {
pub fn gst_rtsp_server_get_auth(server: *mut GstRTSPServer) -> *mut GstRTSPAuth;
pub fn gst_rtsp_server_get_backlog(server: *mut GstRTSPServer) -> c_int;
pub fn gst_rtsp_server_get_bound_port(server: *mut GstRTSPServer) -> c_int;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_server_get_content_length_limit(server: *mut GstRTSPServer) -> c_uint;
pub fn gst_rtsp_server_get_mount_points(server: *mut GstRTSPServer) -> *mut GstRTSPMountPoints;
pub fn gst_rtsp_server_get_service(server: *mut GstRTSPServer) -> *mut c_char;
pub fn gst_rtsp_server_get_session_pool(server: *mut GstRTSPServer) -> *mut GstRTSPSessionPool;
@ -1944,6 +2014,8 @@ extern "C" {
pub fn gst_rtsp_server_set_address(server: *mut GstRTSPServer, address: *const c_char);
pub fn gst_rtsp_server_set_auth(server: *mut GstRTSPServer, auth: *mut GstRTSPAuth);
pub fn gst_rtsp_server_set_backlog(server: *mut GstRTSPServer, backlog: c_int);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_server_set_content_length_limit(server: *mut GstRTSPServer, limit: c_uint);
pub fn gst_rtsp_server_set_mount_points(
server: *mut GstRTSPServer,
mounts: *mut GstRTSPMountPoints,
@ -2140,6 +2212,14 @@ extern "C" {
pub fn gst_rtsp_stream_get_publish_clock_mode(
stream: *mut GstRTSPStream,
) -> GstRTSPPublishClockMode;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_stream_get_rate_control(stream: *mut GstRTSPStream) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_stream_get_rates(
stream: *mut GstRTSPStream,
rate: *mut c_double,
applied_rate: *mut c_double,
) -> gboolean;
pub fn gst_rtsp_stream_get_retransmission_pt(stream: *mut GstRTSPStream) -> c_uint;
pub fn gst_rtsp_stream_get_retransmission_time(stream: *mut GstRTSPStream)
-> gst::GstClockTime;
@ -2303,6 +2383,8 @@ extern "C" {
stream: *mut GstRTSPStream,
mode: GstRTSPPublishClockMode,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_stream_set_rate_control(stream: *mut GstRTSPStream, enabled: gboolean);
pub fn gst_rtsp_stream_set_retransmission_pt(stream: *mut GstRTSPStream, rtx_pt: c_uint);
pub fn gst_rtsp_stream_set_retransmission_time(
stream: *mut GstRTSPStream,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_rtsp_server_sys;
@ -645,6 +645,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
"GST_RTSP_ONVIF_BACKCHANNEL_REQUIREMENT",
"www.onvif.org/ver20/backchannel",
),
("GST_RTSP_ONVIF_REPLAY_REQUIREMENT", "onvif-replay"),
("GST_RTSP_PERM_MEDIA_FACTORY_ACCESS", "media.factory.access"),
(
"GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT",

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -808,12 +808,23 @@ extern "C" {
conn: *mut GstRTSPConnection,
timeout: *mut glib::GTimeVal,
) -> GstRTSPResult;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_connection_connect_usec(
conn: *mut GstRTSPConnection,
timeout: i64,
) -> GstRTSPResult;
#[cfg(any(feature = "v1_8", feature = "dox"))]
pub fn gst_rtsp_connection_connect_with_response(
conn: *mut GstRTSPConnection,
timeout: *mut glib::GTimeVal,
response: *mut GstRTSPMessage,
) -> GstRTSPResult;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_connection_connect_with_response_usec(
conn: *mut GstRTSPConnection,
timeout: i64,
response: *mut GstRTSPMessage,
) -> GstRTSPResult;
pub fn gst_rtsp_connection_do_tunnel(
conn: *mut GstRTSPConnection,
conn2: *mut GstRTSPConnection,
@ -854,23 +865,45 @@ extern "C" {
conn: *mut GstRTSPConnection,
timeout: *mut glib::GTimeVal,
) -> GstRTSPResult;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_connection_next_timeout_usec(conn: *mut GstRTSPConnection) -> i64;
pub fn gst_rtsp_connection_poll(
conn: *mut GstRTSPConnection,
events: GstRTSPEvent,
revents: *mut GstRTSPEvent,
timeout: *mut glib::GTimeVal,
) -> GstRTSPResult;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_connection_poll_usec(
conn: *mut GstRTSPConnection,
events: GstRTSPEvent,
revents: *mut GstRTSPEvent,
timeout: i64,
) -> GstRTSPResult;
pub fn gst_rtsp_connection_read(
conn: *mut GstRTSPConnection,
data: *mut u8,
size: c_uint,
timeout: *mut glib::GTimeVal,
) -> GstRTSPResult;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_connection_read_usec(
conn: *mut GstRTSPConnection,
data: *mut u8,
size: c_uint,
timeout: i64,
) -> GstRTSPResult;
pub fn gst_rtsp_connection_receive(
conn: *mut GstRTSPConnection,
message: *mut GstRTSPMessage,
timeout: *mut glib::GTimeVal,
) -> GstRTSPResult;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_connection_receive_usec(
conn: *mut GstRTSPConnection,
message: *mut GstRTSPMessage,
timeout: i64,
) -> GstRTSPResult;
pub fn gst_rtsp_connection_reset_timeout(conn: *mut GstRTSPConnection) -> GstRTSPResult;
pub fn gst_rtsp_connection_send(
conn: *mut GstRTSPConnection,
@ -884,6 +917,19 @@ extern "C" {
n_messages: c_uint,
timeout: *mut glib::GTimeVal,
) -> GstRTSPResult;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_connection_send_messages_usec(
conn: *mut GstRTSPConnection,
messages: *mut GstRTSPMessage,
n_messages: c_uint,
timeout: i64,
) -> GstRTSPResult;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_connection_send_usec(
conn: *mut GstRTSPConnection,
message: *mut GstRTSPMessage,
timeout: i64,
) -> GstRTSPResult;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_rtsp_connection_set_accept_certificate_func(
conn: *mut GstRTSPConnection,
@ -902,6 +948,11 @@ extern "C" {
param: *const c_char,
value: *const c_char,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_connection_set_content_length_limit(
conn: *mut GstRTSPConnection,
limit: c_uint,
);
pub fn gst_rtsp_connection_set_http_mode(conn: *mut GstRTSPConnection, enable: gboolean);
pub fn gst_rtsp_connection_set_ip(conn: *mut GstRTSPConnection, ip: *const c_char);
pub fn gst_rtsp_connection_set_proxy(
@ -939,6 +990,13 @@ extern "C" {
size: c_uint,
timeout: *mut glib::GTimeVal,
) -> GstRTSPResult;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_connection_write_usec(
conn: *mut GstRTSPConnection,
data: *const u8,
size: c_uint,
timeout: i64,
) -> GstRTSPResult;
pub fn gst_rtsp_connection_accept(
socket: *mut gio::GSocket,
conn: *mut *mut GstRTSPConnection,
@ -1149,6 +1207,10 @@ extern "C" {
pub fn gst_rtsp_url_free(url: *mut GstRTSPUrl);
pub fn gst_rtsp_url_get_port(url: *const GstRTSPUrl, port: *mut u16) -> GstRTSPResult;
pub fn gst_rtsp_url_get_request_uri(url: *const GstRTSPUrl) -> *mut c_char;
pub fn gst_rtsp_url_get_request_uri_with_control(
url: *const GstRTSPUrl,
control_path: *const c_char,
) -> *mut c_char;
pub fn gst_rtsp_url_set_port(url: *mut GstRTSPUrl, port: u16) -> GstRTSPResult;
pub fn gst_rtsp_url_parse(urlstr: *const c_char, url: *mut *mut GstRTSPUrl) -> GstRTSPResult;
@ -1192,6 +1254,11 @@ extern "C" {
watch: *mut GstRTSPWatch,
timeout: *mut glib::GTimeVal,
) -> GstRTSPResult;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_rtsp_watch_wait_backlog_usec(
watch: *mut GstRTSPWatch,
timeout: i64,
) -> GstRTSPResult;
pub fn gst_rtsp_watch_write_data(
watch: *mut GstRTSPWatch,
data: *const u8,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_rtsp_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_sdp_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -62,6 +62,7 @@ pub type GstClockType = c_int;
pub const GST_CLOCK_TYPE_REALTIME: GstClockType = 0;
pub const GST_CLOCK_TYPE_MONOTONIC: GstClockType = 1;
pub const GST_CLOCK_TYPE_OTHER: GstClockType = 2;
pub const GST_CLOCK_TYPE_TAI: GstClockType = 3;
pub type GstCoreError = c_int;
pub const GST_CORE_ERROR_FAILED: GstCoreError = 1;
@ -114,6 +115,7 @@ pub const GST_EVENT_TOC: GstEventType = 30750;
pub const GST_EVENT_PROTECTION: GstEventType = 33310;
pub const GST_EVENT_SEGMENT_DONE: GstEventType = 38406;
pub const GST_EVENT_GAP: GstEventType = 40966;
pub const GST_EVENT_INSTANT_RATE_CHANGE: GstEventType = 46090;
pub const GST_EVENT_QOS: GstEventType = 48641;
pub const GST_EVENT_SEEK: GstEventType = 51201;
pub const GST_EVENT_NAVIGATION: GstEventType = 53761;
@ -122,6 +124,7 @@ pub const GST_EVENT_STEP: GstEventType = 58881;
pub const GST_EVENT_RECONFIGURE: GstEventType = 61441;
pub const GST_EVENT_TOC_SELECT: GstEventType = 64001;
pub const GST_EVENT_SELECT_STREAMS: GstEventType = 66561;
pub const GST_EVENT_INSTANT_RATE_SYNC_TIME: GstEventType = 66817;
pub const GST_EVENT_CUSTOM_UPSTREAM: GstEventType = 69121;
pub const GST_EVENT_CUSTOM_DOWNSTREAM: GstEventType = 71686;
pub const GST_EVENT_CUSTOM_DOWNSTREAM_OOB: GstEventType = 74242;
@ -472,6 +475,7 @@ pub const GST_ELEMENT_FACTORY_TYPE_DEPAYLOADER: GstElementFactoryListType = 256;
pub const GST_ELEMENT_FACTORY_TYPE_ENCODER: GstElementFactoryListType = 2;
pub const GST_ELEMENT_FACTORY_TYPE_ENCRYPTOR: GstElementFactoryListType = 2048;
pub const GST_ELEMENT_FACTORY_TYPE_FORMATTER: GstElementFactoryListType = 512;
pub const GST_ELEMENT_FACTORY_TYPE_HARDWARE: GstElementFactoryListType = 4096;
pub const GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS: GstElementFactoryListType = 281474976710656;
pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_ANY: GstElementFactoryListType = 18446462598732840960;
pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO: GstElementFactoryListType = 1125899906842624;
@ -507,6 +511,7 @@ pub const GST_META_TAG_MEMORY_STR: *const c_char = b"memory\0" as *const u8 as *
pub const GST_MSECOND: GstClockTimeDiff = 1000000;
pub const GST_NSECOND: GstClockTimeDiff = 1;
pub const GST_PARAM_CONTROLLABLE: c_int = 512;
pub const GST_PARAM_DOC_SHOW_DEFAULT: c_int = 8192;
pub const GST_PARAM_MUTABLE_PAUSED: c_int = 2048;
pub const GST_PARAM_MUTABLE_PLAYING: c_int = 4096;
pub const GST_PARAM_MUTABLE_READY: c_int = 1024;
@ -518,6 +523,7 @@ pub const GST_PROTECTION_UNSPECIFIED_SYSTEM_ID: *const c_char =
pub const GST_QUERY_NUM_SHIFT: c_int = 8;
pub const GST_QUERY_TYPE_BOTH: GstQueryTypeFlags = 3;
pub const GST_SECOND: GstClockTimeDiff = 1000000000;
pub const GST_SEGMENT_INSTANT_FLAGS: c_int = 912;
pub const GST_SEQNUM_INVALID: c_int = 0;
pub const GST_TAG_ALBUM: *const c_char = b"album\0" as *const u8 as *const c_char;
pub const GST_TAG_ALBUM_ARTIST: *const c_char = b"album-artist\0" as *const u8 as *const c_char;
@ -811,6 +817,7 @@ pub const GST_MESSAGE_STREAM_COLLECTION: GstMessageType = 2147483652;
pub const GST_MESSAGE_STREAMS_SELECTED: GstMessageType = 2147483653;
pub const GST_MESSAGE_REDIRECT: GstMessageType = 2147483654;
pub const GST_MESSAGE_DEVICE_CHANGED: GstMessageType = 2147483655;
pub const GST_MESSAGE_INSTANT_RATE_REQUEST: GstMessageType = 2147483656;
pub const GST_MESSAGE_ANY: GstMessageType = 4294967295;
pub type GstMetaFlags = c_uint;
@ -926,6 +933,8 @@ pub const GST_SEEK_FLAG_SNAP_AFTER: GstSeekFlags = 64;
pub const GST_SEEK_FLAG_SNAP_NEAREST: GstSeekFlags = 96;
pub const GST_SEEK_FLAG_TRICKMODE_KEY_UNITS: GstSeekFlags = 128;
pub const GST_SEEK_FLAG_TRICKMODE_NO_AUDIO: GstSeekFlags = 256;
pub const GST_SEEK_FLAG_TRICKMODE_FORWARD_PREDICTED: GstSeekFlags = 512;
pub const GST_SEEK_FLAG_INSTANT_RATE_CHANGE: GstSeekFlags = 1024;
pub type GstSegmentFlags = c_uint;
pub const GST_SEGMENT_FLAG_NONE: GstSegmentFlags = 0;
@ -934,9 +943,11 @@ pub const GST_SEGMENT_FLAG_TRICKMODE: GstSegmentFlags = 16;
pub const GST_SEGMENT_FLAG_SKIP: GstSegmentFlags = 16;
pub const GST_SEGMENT_FLAG_SEGMENT: GstSegmentFlags = 8;
pub const GST_SEGMENT_FLAG_TRICKMODE_KEY_UNITS: GstSegmentFlags = 128;
pub const GST_SEGMENT_FLAG_TRICKMODE_FORWARD_PREDICTED: GstSegmentFlags = 512;
pub const GST_SEGMENT_FLAG_TRICKMODE_NO_AUDIO: GstSegmentFlags = 256;
pub type GstStackTraceFlags = c_uint;
pub const GST_STACK_TRACE_SHOW_NONE: GstStackTraceFlags = 0;
pub const GST_STACK_TRACE_SHOW_FULL: GstStackTraceFlags = 1;
pub type GstStreamFlags = c_uint;
@ -4226,6 +4237,7 @@ extern "C" {
offset: ssize_t,
size: ssize_t,
) -> *mut GstBuffer;
pub fn gst_buffer_copy(buf: *const GstBuffer) -> *mut GstBuffer;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_buffer_copy_deep(buf: *const GstBuffer) -> *mut GstBuffer;
pub fn gst_buffer_copy_into(
@ -4348,6 +4360,7 @@ extern "C" {
pub fn gst_buffer_n_memory(buffer: *mut GstBuffer) -> c_uint;
pub fn gst_buffer_peek_memory(buffer: *mut GstBuffer, idx: c_uint) -> *mut GstMemory;
pub fn gst_buffer_prepend_memory(buffer: *mut GstBuffer, mem: *mut GstMemory);
pub fn gst_buffer_ref(buf: *mut GstBuffer) -> *mut GstBuffer;
pub fn gst_buffer_remove_all_memory(buffer: *mut GstBuffer);
pub fn gst_buffer_remove_memory(buffer: *mut GstBuffer, idx: c_uint);
pub fn gst_buffer_remove_memory_range(buffer: *mut GstBuffer, idx: c_uint, length: c_int);
@ -4372,10 +4385,12 @@ extern "C" {
pub fn gst_buffer_set_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean;
pub fn gst_buffer_set_size(buffer: *mut GstBuffer, size: ssize_t);
pub fn gst_buffer_unmap(buffer: *mut GstBuffer, info: *mut GstMapInfo);
pub fn gst_buffer_unref(buf: *mut GstBuffer);
#[cfg(any(feature = "v1_10", feature = "dox"))]
pub fn gst_buffer_unset_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean;
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_buffer_get_max_memory() -> c_uint;
pub fn gst_buffer_replace(obuf: *mut *mut GstBuffer, nbuf: *mut GstBuffer) -> gboolean;
//=========================================================================
// GstBufferList
@ -4385,6 +4400,7 @@ extern "C" {
pub fn gst_buffer_list_new_sized(size: c_uint) -> *mut GstBufferList;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_buffer_list_calculate_size(list: *mut GstBufferList) -> size_t;
pub fn gst_buffer_list_copy(list: *const GstBufferList) -> *mut GstBufferList;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_buffer_list_copy_deep(list: *const GstBufferList) -> *mut GstBufferList;
pub fn gst_buffer_list_foreach(
@ -4397,7 +4413,9 @@ extern "C" {
pub fn gst_buffer_list_get_writable(list: *mut GstBufferList, idx: c_uint) -> *mut GstBuffer;
pub fn gst_buffer_list_insert(list: *mut GstBufferList, idx: c_int, buffer: *mut GstBuffer);
pub fn gst_buffer_list_length(list: *mut GstBufferList) -> c_uint;
pub fn gst_buffer_list_ref(list: *mut GstBufferList) -> *mut GstBufferList;
pub fn gst_buffer_list_remove(list: *mut GstBufferList, idx: c_uint, length: c_uint);
pub fn gst_buffer_list_unref(list: *mut GstBufferList);
//=========================================================================
// GstCaps
@ -4484,6 +4502,7 @@ extern "C" {
features: *mut GstCapsFeatures,
) -> *mut GstCaps;
pub fn gst_caps_normalize(caps: *mut GstCaps) -> *mut GstCaps;
pub fn gst_caps_ref(caps: *mut GstCaps) -> *mut GstCaps;
pub fn gst_caps_remove_structure(caps: *mut GstCaps, idx: c_uint);
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_caps_set_features(caps: *mut GstCaps, index: c_uint, features: *mut GstCapsFeatures);
@ -4501,7 +4520,10 @@ extern "C" {
pub fn gst_caps_subtract(minuend: *mut GstCaps, subtrahend: *mut GstCaps) -> *mut GstCaps;
pub fn gst_caps_to_string(caps: *const GstCaps) -> *mut c_char;
pub fn gst_caps_truncate(caps: *mut GstCaps) -> *mut GstCaps;
pub fn gst_caps_unref(caps: *mut GstCaps);
pub fn gst_caps_from_string(string: *const c_char) -> *mut GstCaps;
pub fn gst_caps_replace(old_caps: *mut *mut GstCaps, new_caps: *mut GstCaps) -> gboolean;
pub fn gst_caps_take(old_caps: *mut *mut GstCaps, new_caps: *mut GstCaps) -> gboolean;
//=========================================================================
// GstCapsFeatures
@ -4603,7 +4625,11 @@ extern "C" {
pub fn gst_date_time_new_from_g_date_time(dt: *mut glib::GDateTime) -> *mut GstDateTime;
pub fn gst_date_time_new_from_iso8601_string(string: *const c_char) -> *mut GstDateTime;
pub fn gst_date_time_new_from_unix_epoch_local_time(secs: i64) -> *mut GstDateTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_date_time_new_from_unix_epoch_local_time_usecs(usecs: i64) -> *mut GstDateTime;
pub fn gst_date_time_new_from_unix_epoch_utc(secs: i64) -> *mut GstDateTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_date_time_new_from_unix_epoch_utc_usecs(usecs: i64) -> *mut GstDateTime;
pub fn gst_date_time_new_local_time(
year: c_int,
month: c_int,
@ -4759,6 +4785,17 @@ extern "C" {
pub fn gst_event_new_flush_start() -> *mut GstEvent;
pub fn gst_event_new_flush_stop(reset_time: gboolean) -> *mut GstEvent;
pub fn gst_event_new_gap(timestamp: GstClockTime, duration: GstClockTime) -> *mut GstEvent;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_event_new_instant_rate_change(
rate_multiplier: c_double,
new_flags: GstSegmentFlags,
) -> *mut GstEvent;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_event_new_instant_rate_sync_time(
rate_multiplier: c_double,
running_time: GstClockTime,
upstream_running_time: GstClockTime,
) -> *mut GstEvent;
pub fn gst_event_new_latency(latency: GstClockTime) -> *mut GstEvent;
pub fn gst_event_new_navigation(structure: *mut GstStructure) -> *mut GstEvent;
#[cfg(any(feature = "v1_6", feature = "dox"))]
@ -4803,6 +4840,7 @@ extern "C" {
pub fn gst_event_new_tag(taglist: *mut GstTagList) -> *mut GstEvent;
pub fn gst_event_new_toc(toc: *mut GstToc, updated: gboolean) -> *mut GstEvent;
pub fn gst_event_new_toc_select(uid: *const c_char) -> *mut GstEvent;
pub fn gst_event_copy(event: *const GstEvent) -> *mut GstEvent;
pub fn gst_event_copy_segment(event: *mut GstEvent, segment: *mut GstSegment);
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_event_get_running_time_offset(event: *mut GstEvent) -> i64;
@ -4825,6 +4863,19 @@ extern "C" {
);
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_event_parse_group_id(event: *mut GstEvent, group_id: *mut c_uint) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_event_parse_instant_rate_change(
event: *mut GstEvent,
rate_multiplier: *mut c_double,
new_flags: *mut GstSegmentFlags,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_event_parse_instant_rate_sync_time(
event: *mut GstEvent,
rate_multiplier: *mut c_double,
running_time: *mut GstClockTime,
upstream_running_time: *mut GstClockTime,
);
pub fn gst_event_parse_latency(event: *mut GstEvent, latency: *mut GstClockTime);
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_event_parse_protection(
@ -4887,6 +4938,7 @@ extern "C" {
pub fn gst_event_parse_tag(event: *mut GstEvent, taglist: *mut *mut GstTagList);
pub fn gst_event_parse_toc(event: *mut GstEvent, toc: *mut *mut GstToc, updated: *mut gboolean);
pub fn gst_event_parse_toc_select(event: *mut GstEvent, uid: *mut *mut c_char);
pub fn gst_event_ref(event: *mut GstEvent) -> *mut GstEvent;
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_event_set_group_id(event: *mut GstEvent, group_id: c_uint);
#[cfg(any(feature = "v1_4", feature = "dox"))]
@ -4898,7 +4950,11 @@ extern "C" {
pub fn gst_event_set_stream(event: *mut GstEvent, stream: *mut GstStream);
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_event_set_stream_flags(event: *mut GstEvent, flags: GstStreamFlags);
pub fn gst_event_unref(event: *mut GstEvent);
pub fn gst_event_writable_structure(event: *mut GstEvent) -> *mut GstStructure;
pub fn gst_event_replace(old_event: *mut *mut GstEvent, new_event: *mut GstEvent) -> gboolean;
pub fn gst_event_steal(old_event: *mut *mut GstEvent) -> *mut GstEvent;
pub fn gst_event_take(old_event: *mut *mut GstEvent, new_event: *mut GstEvent) -> gboolean;
//=========================================================================
// GstIterator
@ -5002,9 +5058,11 @@ extern "C" {
info: *mut GstMapInfo,
flags: GstMapFlags,
) -> gboolean;
pub fn gst_memory_ref(memory: *mut GstMemory) -> *mut GstMemory;
pub fn gst_memory_resize(mem: *mut GstMemory, offset: ssize_t, size: size_t);
pub fn gst_memory_share(mem: *mut GstMemory, offset: ssize_t, size: ssize_t) -> *mut GstMemory;
pub fn gst_memory_unmap(mem: *mut GstMemory, info: *mut GstMapInfo);
pub fn gst_memory_unref(memory: *mut GstMemory);
//=========================================================================
// GstMessage
@ -5083,6 +5141,11 @@ extern "C" {
debug: *const c_char,
details: *mut GstStructure,
) -> *mut GstMessage;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_message_new_instant_rate_request(
src: *mut GstObject,
rate_multiplier: c_double,
) -> *mut GstMessage;
pub fn gst_message_new_latency(src: *mut GstObject) -> *mut GstMessage;
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_message_new_need_context(
@ -5205,6 +5268,7 @@ extern "C" {
tag_list: *mut GstTagList,
entry_struct: *const GstStructure,
);
pub fn gst_message_copy(msg: *const GstMessage) -> *mut GstMessage;
#[cfg(any(feature = "v1_10", feature = "dox"))]
pub fn gst_message_get_num_redirect_entries(message: *mut GstMessage) -> size_t;
pub fn gst_message_get_seqnum(message: *mut GstMessage) -> u32;
@ -5266,6 +5330,11 @@ extern "C" {
message: *mut GstMessage,
structure: *mut *const GstStructure,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_message_parse_instant_rate_request(
message: *mut GstMessage,
rate_multiplier: *mut c_double,
);
pub fn gst_message_parse_new_clock(message: *mut GstMessage, clock: *mut *mut GstClock);
pub fn gst_message_parse_progress(
message: *mut GstMessage,
@ -5382,6 +5451,7 @@ extern "C" {
message: *mut GstMessage,
structure: *mut *const GstStructure,
);
pub fn gst_message_ref(msg: *mut GstMessage) -> *mut GstMessage;
pub fn gst_message_set_buffering_stats(
message: *mut GstMessage,
mode: GstBufferingMode,
@ -5417,8 +5487,13 @@ extern "C" {
message: *mut GstMessage,
idx: c_uint,
) -> *mut GstStream;
pub fn gst_message_unref(msg: *mut GstMessage);
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_message_writable_structure(message: *mut GstMessage) -> *mut GstStructure;
pub fn gst_message_replace(
old_message: *mut *mut GstMessage,
new_message: *mut GstMessage,
) -> gboolean;
//=========================================================================
// GstMeta
@ -5633,6 +5708,7 @@ extern "C" {
);
pub fn gst_query_add_buffering_range(query: *mut GstQuery, start: i64, stop: i64) -> gboolean;
pub fn gst_query_add_scheduling_mode(query: *mut GstQuery, mode: GstPadMode);
pub fn gst_query_copy(q: *const GstQuery) -> *mut GstQuery;
pub fn gst_query_find_allocation_meta(
query: *mut GstQuery,
api: GType,
@ -5850,7 +5926,9 @@ extern "C" {
pub fn gst_query_set_uri_redirection(query: *mut GstQuery, uri: *const c_char);
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_query_set_uri_redirection_permanent(query: *mut GstQuery, permanent: gboolean);
pub fn gst_query_unref(q: *mut GstQuery);
pub fn gst_query_writable_structure(query: *mut GstQuery) -> *mut GstStructure;
pub fn gst_query_replace(old_query: *mut *mut GstQuery, new_query: *mut GstQuery) -> gboolean;
//=========================================================================
// GstReferenceTimestampMeta
@ -5868,12 +5946,15 @@ extern "C" {
segment: *const GstSegment,
info: *mut GstStructure,
) -> *mut GstSample;
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_sample_copy(buf: *const GstSample) -> *mut GstSample;
pub fn gst_sample_get_buffer(sample: *mut GstSample) -> *mut GstBuffer;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_sample_get_buffer_list(sample: *mut GstSample) -> *mut GstBufferList;
pub fn gst_sample_get_caps(sample: *mut GstSample) -> *mut GstCaps;
pub fn gst_sample_get_info(sample: *mut GstSample) -> *const GstStructure;
pub fn gst_sample_get_segment(sample: *mut GstSample) -> *mut GstSegment;
pub fn gst_sample_ref(sample: *mut GstSample) -> *mut GstSample;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_sample_set_buffer(sample: *mut GstSample, buffer: *mut GstBuffer);
#[cfg(any(feature = "v1_6", feature = "dox"))]
@ -5884,6 +5965,7 @@ extern "C" {
pub fn gst_sample_set_info(sample: *mut GstSample, info: *mut GstStructure) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_sample_set_segment(sample: *mut GstSample, segment: *const GstSegment);
pub fn gst_sample_unref(sample: *mut GstSample);
//=========================================================================
// GstSegment
@ -6001,6 +6083,10 @@ extern "C" {
// GstStructure
//=========================================================================
pub fn gst_structure_get_type() -> GType;
pub fn gst_structure_from_string(
string: *const c_char,
end: *mut *mut c_char,
) -> *mut GstStructure;
pub fn gst_structure_new(
name: *const c_char,
firstfield: *const c_char,
@ -6258,10 +6344,11 @@ extern "C" {
value: *mut gobject::GValue,
);
pub fn gst_structure_to_string(structure: *const GstStructure) -> *mut c_char;
pub fn gst_structure_from_string(
string: *const c_char,
end: *mut *mut c_char,
) -> *mut GstStructure;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_structure_take(
oldstr_ptr: *mut *mut GstStructure,
newstr: *mut GstStructure,
) -> gboolean;
//=========================================================================
// GstTagList
@ -6286,6 +6373,7 @@ extern "C" {
tag: *const c_char,
...
);
pub fn gst_tag_list_copy(taglist: *const GstTagList) -> *mut GstTagList;
pub fn gst_tag_list_foreach(
list: *const GstTagList,
func: GstTagForeachFunc,
@ -6450,9 +6538,11 @@ extern "C" {
index: c_uint,
value: *mut *const c_char,
) -> gboolean;
pub fn gst_tag_list_ref(taglist: *mut GstTagList) -> *mut GstTagList;
pub fn gst_tag_list_remove_tag(list: *mut GstTagList, tag: *const c_char);
pub fn gst_tag_list_set_scope(list: *mut GstTagList, scope: GstTagScope);
pub fn gst_tag_list_to_string(list: *const GstTagList) -> *mut c_char;
pub fn gst_tag_list_unref(taglist: *mut GstTagList);
pub fn gst_tag_list_copy_value(
dest: *mut gobject::GValue,
list: *const GstTagList,
@ -6680,6 +6770,11 @@ extern "C" {
-> *mut GstElement;
#[cfg(any(feature = "v1_10", feature = "dox"))]
pub fn gst_bin_get_suppressed_flags(bin: *mut GstBin) -> GstElementFlags;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_bin_iterate_all_by_element_factory_name(
bin: *mut GstBin,
factory_name: *const c_char,
) -> *mut GstIterator;
pub fn gst_bin_iterate_all_by_interface(bin: *mut GstBin, iface: GType) -> *mut GstIterator;
pub fn gst_bin_iterate_elements(bin: *mut GstBin) -> *mut GstIterator;
pub fn gst_bin_iterate_recurse(bin: *mut GstBin) -> *mut GstIterator;
@ -7238,6 +7333,10 @@ extern "C" {
) -> *mut GstContext;
#[cfg(any(feature = "v1_8", feature = "dox"))]
pub fn gst_element_get_contexts(element: *mut GstElement) -> *mut glib::GList;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_element_get_current_clock_time(element: *mut GstElement) -> GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_element_get_current_running_time(element: *mut GstElement) -> GstClockTime;
pub fn gst_element_get_factory(element: *mut GstElement) -> *mut GstElementFactory;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_element_get_metadata(element: *mut GstElement, key: *const c_char) -> *const c_char;
@ -7656,6 +7755,8 @@ extern "C" {
size: c_uint,
buffer: *mut *mut GstBuffer,
) -> GstFlowReturn;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_pad_get_single_internal_link(pad: *mut GstPad) -> *mut GstPad;
pub fn gst_pad_get_sticky_event(
pad: *mut GstPad,
event_type: GstEventType,
@ -8140,6 +8241,8 @@ extern "C" {
pub fn gst_task_get_state(task: *mut GstTask) -> GstTaskState;
pub fn gst_task_join(task: *mut GstTask) -> gboolean;
pub fn gst_task_pause(task: *mut GstTask) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_task_resume(task: *mut GstTask) -> gboolean;
pub fn gst_task_set_enter_callback(
task: *mut GstTask,
enter_func: GstTaskThreadFunc,
@ -8177,6 +8280,11 @@ extern "C" {
// GstTracer
//=========================================================================
pub fn gst_tracer_get_type() -> GType;
pub fn gst_tracer_register(
plugin: *mut GstPlugin,
name: *const c_char,
type_: GType,
) -> gboolean;
//=========================================================================
// GstTracerFactory
@ -8191,6 +8299,14 @@ extern "C" {
// GstTracerRecord
//=========================================================================
pub fn gst_tracer_record_get_type() -> GType;
#[cfg(any(feature = "v1_8", feature = "dox"))]
pub fn gst_tracer_record_new(
name: *const c_char,
firstfield: *const c_char,
...
) -> *mut GstTracerRecord;
#[cfg(any(feature = "v1_8", feature = "dox"))]
pub fn gst_tracer_record_log(self_: *mut GstTracerRecord, ...);
//=========================================================================
// GstTypeFindFactory
@ -8225,6 +8341,11 @@ extern "C" {
value: *const gobject::GValue,
index: c_uint,
) -> *const gobject::GValue;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_value_array_init(
value: *mut gobject::GValue,
prealloc: c_uint,
) -> *mut gobject::GValue;
pub fn gst_value_array_prepend_value(
value: *mut gobject::GValue,
prepend_value: *const gobject::GValue,
@ -8253,6 +8374,11 @@ extern "C" {
value: *const gobject::GValue,
index: c_uint,
) -> *const gobject::GValue;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_value_list_init(
value: *mut gobject::GValue,
prealloc: c_uint,
) -> *mut gobject::GValue;
pub fn gst_value_list_merge(
dest: *mut gobject::GValue,
value1: *const gobject::GValue,
@ -8464,6 +8590,16 @@ extern "C" {
message: *mut GstDebugMessage,
user_data: gpointer,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_debug_log_get_line(
category: *mut GstDebugCategory,
level: GstDebugLevel,
file: *const c_char,
function: *const c_char,
line: c_int,
object: *mut gobject::GObject,
message: *mut GstDebugMessage,
) -> *mut c_char;
//pub fn gst_debug_log_valist(category: *mut GstDebugCategory, level: GstDebugLevel, file: *const c_char, function: *const c_char, line: c_int, object: *mut gobject::GObject, format: *const c_char, args: /*Unimplemented*/va_list);
pub fn gst_debug_print_stack_trace();
pub fn gst_debug_remove_log_function(func: GstLogFunction) -> c_uint;
@ -8611,6 +8747,14 @@ extern "C" {
blurb: *const c_char,
func: GstTagMergeFunc,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_tracing_get_active_tracers() -> *mut glib::GList;
#[cfg(any(feature = "v1_8", feature = "dox"))]
pub fn gst_tracing_register_hook(
tracer: *mut GstTracer,
detail: *const c_char,
func: gobject::GCallback,
);
pub fn gst_type_find_get_type() -> GType;
pub fn gst_update_registry() -> gboolean;
pub fn gst_util_array_binary_search(

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_sys;
@ -1538,6 +1538,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_CLOCK_TYPE_MONOTONIC", "1"),
("(gint) GST_CLOCK_TYPE_OTHER", "2"),
("(gint) GST_CLOCK_TYPE_REALTIME", "0"),
("(gint) GST_CLOCK_TYPE_TAI", "3"),
("(gint) GST_CLOCK_UNSCHEDULED", "2"),
("(gint) GST_CLOCK_UNSUPPORTED", "6"),
("(gint) GST_CORE_ERROR_CAPS", "10"),
@ -1618,6 +1619,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("GST_ELEMENT_FACTORY_TYPE_ENCODER", "2"),
("GST_ELEMENT_FACTORY_TYPE_ENCRYPTOR", "2048"),
("GST_ELEMENT_FACTORY_TYPE_FORMATTER", "512"),
("GST_ELEMENT_FACTORY_TYPE_HARDWARE", "4096"),
("GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS", "281474976710656"),
("GST_ELEMENT_FACTORY_TYPE_MEDIA_ANY", "18446462598732840960"),
("GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO", "1125899906842624"),
@ -1662,6 +1664,8 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_EVENT_FLUSH_START", "2563"),
("(gint) GST_EVENT_FLUSH_STOP", "5127"),
("(gint) GST_EVENT_GAP", "40966"),
("(gint) GST_EVENT_INSTANT_RATE_CHANGE", "46090"),
("(gint) GST_EVENT_INSTANT_RATE_SYNC_TIME", "66817"),
("(gint) GST_EVENT_LATENCY", "56321"),
("(gint) GST_EVENT_NAVIGATION", "53761"),
("GST_EVENT_NUM_SHIFT", "8"),
@ -1768,6 +1772,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_MESSAGE_EXTENDED", "2147483648"),
("(guint) GST_MESSAGE_HAVE_CONTEXT", "1073741824"),
("(guint) GST_MESSAGE_INFO", "8"),
("(guint) GST_MESSAGE_INSTANT_RATE_REQUEST", "2147483656"),
("(guint) GST_MESSAGE_LATENCY", "524288"),
("(guint) GST_MESSAGE_NEED_CONTEXT", "536870912"),
("(guint) GST_MESSAGE_NEW_CLOCK", "2048"),
@ -1871,6 +1876,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_PAD_TEMPLATE_FLAG_LAST", "256"),
("(gint) GST_PAD_UNKNOWN", "0"),
("GST_PARAM_CONTROLLABLE", "512"),
("GST_PARAM_DOC_SHOW_DEFAULT", "8192"),
("GST_PARAM_MUTABLE_PAUSED", "2048"),
("GST_PARAM_MUTABLE_PLAYING", "4096"),
("GST_PARAM_MUTABLE_READY", "1024"),
@ -1983,6 +1989,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("GST_SECOND", "1000000000"),
("(guint) GST_SEEK_FLAG_ACCURATE", "2"),
("(guint) GST_SEEK_FLAG_FLUSH", "1"),
("(guint) GST_SEEK_FLAG_INSTANT_RATE_CHANGE", "1024"),
("(guint) GST_SEEK_FLAG_KEY_UNIT", "4"),
("(guint) GST_SEEK_FLAG_NONE", "0"),
("(guint) GST_SEEK_FLAG_SEGMENT", "8"),
@ -1991,6 +1998,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_SEEK_FLAG_SNAP_BEFORE", "32"),
("(guint) GST_SEEK_FLAG_SNAP_NEAREST", "96"),
("(guint) GST_SEEK_FLAG_TRICKMODE", "16"),
("(guint) GST_SEEK_FLAG_TRICKMODE_FORWARD_PREDICTED", "512"),
("(guint) GST_SEEK_FLAG_TRICKMODE_KEY_UNITS", "128"),
("(guint) GST_SEEK_FLAG_TRICKMODE_NO_AUDIO", "256"),
("(gint) GST_SEEK_TYPE_END", "2"),
@ -2001,10 +2009,16 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_SEGMENT_FLAG_SEGMENT", "8"),
("(guint) GST_SEGMENT_FLAG_SKIP", "16"),
("(guint) GST_SEGMENT_FLAG_TRICKMODE", "16"),
(
"(guint) GST_SEGMENT_FLAG_TRICKMODE_FORWARD_PREDICTED",
"512",
),
("(guint) GST_SEGMENT_FLAG_TRICKMODE_KEY_UNITS", "128"),
("(guint) GST_SEGMENT_FLAG_TRICKMODE_NO_AUDIO", "256"),
("GST_SEGMENT_INSTANT_FLAGS", "912"),
("GST_SEQNUM_INVALID", "0"),
("(guint) GST_STACK_TRACE_SHOW_FULL", "1"),
("(guint) GST_STACK_TRACE_SHOW_NONE", "0"),
("(gint) GST_STATE_CHANGE_ASYNC", "2"),
("(gint) GST_STATE_CHANGE_FAILURE", "0"),
("(gint) GST_STATE_CHANGE_NO_PREROLL", "3"),

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -53,6 +53,9 @@ pub const GST_TAG_IMAGE_TYPE_BAND_ARTIST_LOGO: GstTagImageType = 17;
pub const GST_TAG_IMAGE_TYPE_PUBLISHER_STUDIO_LOGO: GstTagImageType = 18;
// Constants
pub const GST_TAG_ACOUSTID_FINGERPRINT: *const c_char =
b"chromaprint-fingerprint\0" as *const u8 as *const c_char;
pub const GST_TAG_ACOUSTID_ID: *const c_char = b"acoustid-id\0" as *const u8 as *const c_char;
pub const GST_TAG_CAPTURING_CONTRAST: *const c_char =
b"capturing-contrast\0" as *const u8 as *const c_char;
pub const GST_TAG_CAPTURING_DIGITAL_ZOOM_RATIO: *const c_char =
@ -113,6 +116,10 @@ pub const GST_TAG_MUSICBRAINZ_ALBUMID: *const c_char =
b"musicbrainz-albumid\0" as *const u8 as *const c_char;
pub const GST_TAG_MUSICBRAINZ_ARTISTID: *const c_char =
b"musicbrainz-artistid\0" as *const u8 as *const c_char;
pub const GST_TAG_MUSICBRAINZ_RELEASEGROUPID: *const c_char =
b"musicbrainz-releasegroupid\0" as *const u8 as *const c_char;
pub const GST_TAG_MUSICBRAINZ_RELEASETRACKID: *const c_char =
b"musicbrainz-releasetrackid\0" as *const u8 as *const c_char;
pub const GST_TAG_MUSICBRAINZ_TRACKID: *const c_char =
b"musicbrainz-trackid\0" as *const u8 as *const c_char;
pub const GST_TAG_MUSICBRAINZ_TRMID: *const c_char =

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_tag_sys;
@ -311,6 +311,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
];
const RUST_CONSTANTS: &[(&str, &str)] = &[
("GST_TAG_ACOUSTID_FINGERPRINT", "chromaprint-fingerprint"),
("GST_TAG_ACOUSTID_ID", "acoustid-id"),
("GST_TAG_CAPTURING_CONTRAST", "capturing-contrast"),
(
"GST_TAG_CAPTURING_DIGITAL_ZOOM_RATIO",
@ -414,6 +416,14 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
),
("GST_TAG_MUSICBRAINZ_ALBUMID", "musicbrainz-albumid"),
("GST_TAG_MUSICBRAINZ_ARTISTID", "musicbrainz-artistid"),
(
"GST_TAG_MUSICBRAINZ_RELEASEGROUPID",
"musicbrainz-releasegroupid",
),
(
"GST_TAG_MUSICBRAINZ_RELEASETRACKID",
"musicbrainz-releasetrackid",
),
("GST_TAG_MUSICBRAINZ_TRACKID", "musicbrainz-trackid"),
("GST_TAG_MUSICBRAINZ_TRMID", "musicbrainz-trmid"),
];

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -54,6 +54,7 @@ pub const GST_NAVIGATION_EVENT_MOUSE_BUTTON_PRESS: GstNavigationEventType = 3;
pub const GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE: GstNavigationEventType = 4;
pub const GST_NAVIGATION_EVENT_MOUSE_MOVE: GstNavigationEventType = 5;
pub const GST_NAVIGATION_EVENT_COMMAND: GstNavigationEventType = 6;
pub const GST_NAVIGATION_EVENT_MOUSE_SCROLL: GstNavigationEventType = 7;
pub type GstNavigationMessageType = c_int;
pub const GST_NAVIGATION_MESSAGE_INVALID: GstNavigationMessageType = 0;
@ -67,6 +68,24 @@ pub const GST_NAVIGATION_QUERY_INVALID: GstNavigationQueryType = 0;
pub const GST_NAVIGATION_QUERY_COMMANDS: GstNavigationQueryType = 1;
pub const GST_NAVIGATION_QUERY_ANGLES: GstNavigationQueryType = 2;
pub type GstVideoAFDSpec = c_int;
pub const GST_VIDEO_AFD_SPEC_DVB_ETSI: GstVideoAFDSpec = 0;
pub const GST_VIDEO_AFD_SPEC_ATSC_A53: GstVideoAFDSpec = 1;
pub const GST_VIDEO_AFD_SPEC_SMPTE_ST2016_1: GstVideoAFDSpec = 2;
pub type GstVideoAFDValue = c_int;
pub const GST_VIDEO_AFD_UNAVAILABLE: GstVideoAFDValue = 0;
pub const GST_VIDEO_AFD_16_9_TOP_ALIGNED: GstVideoAFDValue = 2;
pub const GST_VIDEO_AFD_14_9_TOP_ALIGNED: GstVideoAFDValue = 3;
pub const GST_VIDEO_AFD_GREATER_THAN_16_9: GstVideoAFDValue = 4;
pub const GST_VIDEO_AFD_4_3_FULL_16_9_FULL: GstVideoAFDValue = 8;
pub const GST_VIDEO_AFD_4_3_FULL_4_3_PILLAR: GstVideoAFDValue = 9;
pub const GST_VIDEO_AFD_16_9_LETTER_16_9_FULL: GstVideoAFDValue = 10;
pub const GST_VIDEO_AFD_14_9_LETTER_14_9_PILLAR: GstVideoAFDValue = 11;
pub const GST_VIDEO_AFD_4_3_FULL_14_9_CENTER: GstVideoAFDValue = 13;
pub const GST_VIDEO_AFD_16_9_LETTER_14_9_CENTER: GstVideoAFDValue = 14;
pub const GST_VIDEO_AFD_16_9_LETTER_4_3_CENTER: GstVideoAFDValue = 15;
pub type GstVideoAlphaMode = c_int;
pub const GST_VIDEO_ALPHA_MODE_COPY: GstVideoAlphaMode = 0;
pub const GST_VIDEO_ALPHA_MODE_SET: GstVideoAlphaMode = 1;
@ -236,6 +255,17 @@ pub const GST_VIDEO_FORMAT_Y210: GstVideoFormat = 82;
pub const GST_VIDEO_FORMAT_Y410: GstVideoFormat = 83;
pub const GST_VIDEO_FORMAT_VUYA: GstVideoFormat = 84;
pub const GST_VIDEO_FORMAT_BGR10A2_LE: GstVideoFormat = 85;
pub const GST_VIDEO_FORMAT_RGB10A2_LE: GstVideoFormat = 86;
pub const GST_VIDEO_FORMAT_Y444_16BE: GstVideoFormat = 87;
pub const GST_VIDEO_FORMAT_Y444_16LE: GstVideoFormat = 88;
pub const GST_VIDEO_FORMAT_P016_BE: GstVideoFormat = 89;
pub const GST_VIDEO_FORMAT_P016_LE: GstVideoFormat = 90;
pub const GST_VIDEO_FORMAT_P012_BE: GstVideoFormat = 91;
pub const GST_VIDEO_FORMAT_P012_LE: GstVideoFormat = 92;
pub const GST_VIDEO_FORMAT_Y212_BE: GstVideoFormat = 93;
pub const GST_VIDEO_FORMAT_Y212_LE: GstVideoFormat = 94;
pub const GST_VIDEO_FORMAT_Y412_BE: GstVideoFormat = 95;
pub const GST_VIDEO_FORMAT_Y412_LE: GstVideoFormat = 96;
pub type GstVideoGLTextureOrientation = c_int;
pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL: GstVideoGLTextureOrientation = 0;
@ -342,6 +372,9 @@ pub const GST_VIDEO_TRANSFER_LOG100: GstVideoTransferFunction = 9;
pub const GST_VIDEO_TRANSFER_LOG316: GstVideoTransferFunction = 10;
pub const GST_VIDEO_TRANSFER_BT2020_12: GstVideoTransferFunction = 11;
pub const GST_VIDEO_TRANSFER_ADOBERGB: GstVideoTransferFunction = 12;
pub const GST_VIDEO_TRANSFER_BT2020_10: GstVideoTransferFunction = 13;
pub const GST_VIDEO_TRANSFER_SMPTE2084: GstVideoTransferFunction = 14;
pub const GST_VIDEO_TRANSFER_ARIB_STD_B67: GstVideoTransferFunction = 15;
pub type GstVideoVBIParserResult = c_int;
pub const GST_VIDEO_VBI_PARSER_RESULT_DONE: GstVideoVBIParserResult = 0;
@ -374,6 +407,12 @@ pub const GST_META_TAG_VIDEO_ORIENTATION_STR: *const c_char =
pub const GST_META_TAG_VIDEO_SIZE_STR: *const c_char = b"size\0" as *const u8 as *const c_char;
pub const GST_META_TAG_VIDEO_STR: *const c_char = b"video\0" as *const u8 as *const c_char;
pub const GST_VIDEO_COLORIMETRY_BT2020: *const c_char = b"bt2020\0" as *const u8 as *const c_char;
pub const GST_VIDEO_COLORIMETRY_BT2020_10: *const c_char =
b"bt2020-10\0" as *const u8 as *const c_char;
pub const GST_VIDEO_COLORIMETRY_BT2100_HLG: *const c_char =
b"bt2100-hlg\0" as *const u8 as *const c_char;
pub const GST_VIDEO_COLORIMETRY_BT2100_PQ: *const c_char =
b"bt2100-pq\0" as *const u8 as *const c_char;
pub const GST_VIDEO_COLORIMETRY_BT601: *const c_char = b"bt601\0" as *const u8 as *const c_char;
pub const GST_VIDEO_COLORIMETRY_BT709: *const c_char = b"bt709\0" as *const u8 as *const c_char;
pub const GST_VIDEO_COLORIMETRY_SMPTE240M: *const c_char =
@ -437,12 +476,11 @@ pub const GST_VIDEO_DECODER_SINK_NAME: *const c_char = b"sink\0" as *const u8 as
pub const GST_VIDEO_DECODER_SRC_NAME: *const c_char = b"src\0" as *const u8 as *const c_char;
pub const GST_VIDEO_ENCODER_SINK_NAME: *const c_char = b"sink\0" as *const u8 as *const c_char;
pub const GST_VIDEO_ENCODER_SRC_NAME: *const c_char = b"src\0" as *const u8 as *const c_char;
pub const GST_VIDEO_FORMATS_ALL: *const c_char = b"{ I420, YV12, YUY2, UYVY, AYUV, VUYA, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, Y210, Y410, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, BGR10A2_LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, I420_12BE, I420_12LE, I422_12BE, I422_12LE, Y444_12BE, Y444_12LE, GRAY10_LE32, NV12_10LE32, NV16_10LE32, NV12_10LE40 }\0" as *const u8 as *const c_char;
pub const GST_VIDEO_FORMATS_ALL: *const c_char = b"{ I420, YV12, YUY2, UYVY, AYUV, VUYA, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, Y210, Y410, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, BGR10A2_LE, RGB10A2_LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, P012_BE, P012_LE, I420_12BE, I420_12LE, Y212_BE, Y212_LE, I422_12BE, I422_12LE, Y412_BE, Y412_LE, Y444_12BE, Y444_12LE, GRAY10_LE32, NV12_10LE32, NV16_10LE32, NV12_10LE40, Y444_16BE, Y444_16LE, P016_BE, P016_LE }\0" as *const u8 as *const c_char;
pub const GST_VIDEO_FPS_RANGE: *const c_char =
b"(fraction) [ 0, max ]\0" as *const u8 as *const c_char;
pub const GST_VIDEO_MAX_COMPONENTS: c_int = 4;
pub const GST_VIDEO_MAX_PLANES: c_int = 4;
pub const GST_VIDEO_OVERLAY_COMPOSITION_BLEND_FORMATS: *const c_char = b"{ BGRx, RGBx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, I420, YV12, AYUV, YUY2, UYVY, v308, Y41B, Y42B, Y444, NV12, NV21, A420, YUV9, YVU9, IYU1, GRAY8 }\0" as *const u8 as *const c_char;
pub const GST_VIDEO_RESAMPLER_OPT_CUBIC_B: *const c_char =
b"GstVideoResampler.cubic-b\0" as *const u8 as *const c_char;
pub const GST_VIDEO_RESAMPLER_OPT_CUBIC_C: *const c_char =
@ -473,6 +511,7 @@ pub const GST_VIDEO_BUFFER_FLAG_MULTIPLE_VIEW: GstVideoBufferFlags = 16777216;
pub const GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE: GstVideoBufferFlags = 33554432;
pub const GST_VIDEO_BUFFER_FLAG_TOP_FIELD: GstVideoBufferFlags = 10485760;
pub const GST_VIDEO_BUFFER_FLAG_BOTTOM_FIELD: GstVideoBufferFlags = 8388608;
pub const GST_VIDEO_BUFFER_FLAG_MARKER: GstVideoBufferFlags = 512;
pub const GST_VIDEO_BUFFER_FLAG_LAST: GstVideoBufferFlags = 268435456;
pub type GstVideoChromaFlags = c_uint;
@ -701,6 +740,26 @@ impl ::std::fmt::Debug for GstNavigationInterface {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoAFDMeta {
pub meta: gst::GstMeta,
pub field: u8,
pub spec: GstVideoAFDSpec,
pub afd: GstVideoAFDValue,
}
impl ::std::fmt::Debug for GstVideoAFDMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoAFDMeta @ {:?}", self as *const _))
.field("meta", &self.meta)
.field("field", &self.field)
.field("spec", &self.spec)
.field("afd", &self.afd)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoAffineTransformationMeta {
@ -882,6 +941,28 @@ impl ::std::fmt::Debug for GstVideoAncillary {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoBarMeta {
pub meta: gst::GstMeta,
pub field: u8,
pub is_letterbox: gboolean,
pub bar_data1: c_uint,
pub bar_data2: c_uint,
}
impl ::std::fmt::Debug for GstVideoBarMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoBarMeta @ {:?}", self as *const _))
.field("meta", &self.meta)
.field("field", &self.field)
.field("is_letterbox", &self.is_letterbox)
.field("bar_data1", &self.bar_data1)
.field("bar_data2", &self.bar_data2)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoBufferPoolClass {
@ -968,6 +1049,7 @@ impl ::std::fmt::Debug for GstVideoCodecFrame {
pub struct GstVideoCodecFrame_abidata_ABI {
pub ts: gst::GstClockTime,
pub ts2: gst::GstClockTime,
pub num_subframes: c_uint,
}
impl ::std::fmt::Debug for GstVideoCodecFrame_abidata_ABI {
@ -978,6 +1060,7 @@ impl ::std::fmt::Debug for GstVideoCodecFrame_abidata_ABI {
))
.field("ts", &self.ts)
.field("ts2", &self.ts2)
.field("num_subframes", &self.num_subframes)
.finish()
}
}
@ -1057,6 +1140,29 @@ impl ::std::fmt::Debug for GstVideoColorimetry {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoContentLightLevel {
pub max_content_light_level: u16,
pub max_frame_average_light_level: u16,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstVideoContentLightLevel {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstVideoContentLightLevel @ {:?}",
self as *const _
))
.field("max_content_light_level", &self.max_content_light_level)
.field(
"max_frame_average_light_level",
&self.max_frame_average_light_level,
)
.finish()
}
}
#[repr(C)]
pub struct _GstVideoConverter(c_void);
@ -1471,6 +1577,55 @@ impl ::std::fmt::Debug for GstVideoInfo_ABI_abi {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoMasteringDisplayInfo {
pub display_primaries: [GstVideoMasteringDisplayInfoCoordinates; 3],
pub white_point: GstVideoMasteringDisplayInfoCoordinates,
pub max_display_mastering_luminance: u32,
pub min_display_mastering_luminance: u32,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstVideoMasteringDisplayInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstVideoMasteringDisplayInfo @ {:?}",
self as *const _
))
.field("display_primaries", &self.display_primaries)
.field("white_point", &self.white_point)
.field(
"max_display_mastering_luminance",
&self.max_display_mastering_luminance,
)
.field(
"min_display_mastering_luminance",
&self.min_display_mastering_luminance,
)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoMasteringDisplayInfoCoordinates {
pub x: u16,
pub y: u16,
}
impl ::std::fmt::Debug for GstVideoMasteringDisplayInfoCoordinates {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstVideoMasteringDisplayInfoCoordinates @ {:?}",
self as *const _
))
.field("x", &self.x)
.field("y", &self.y)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoMeta {
@ -1496,6 +1651,7 @@ pub struct GstVideoMeta {
>,
pub unmap:
Option<unsafe extern "C" fn(*mut GstVideoMeta, c_uint, *mut gst::GstMapInfo) -> gboolean>,
pub alignment: GstVideoAlignment,
}
impl ::std::fmt::Debug for GstVideoMeta {
@ -1513,6 +1669,7 @@ impl ::std::fmt::Debug for GstVideoMeta {
.field("stride", &self.stride)
.field("map", &self.map)
.field("unmap", &self.unmap)
.field("alignment", &self.alignment)
.finish()
}
}
@ -2109,6 +2266,16 @@ extern "C" {
//=========================================================================
pub fn gst_navigation_query_type_get_type() -> GType;
//=========================================================================
// GstVideoAFDSpec
//=========================================================================
pub fn gst_video_afd_spec_get_type() -> GType;
//=========================================================================
// GstVideoAFDValue
//=========================================================================
pub fn gst_video_afd_value_get_type() -> GType;
//=========================================================================
// GstVideoAlphaMode
//=========================================================================
@ -2147,21 +2314,29 @@ extern "C" {
// GstVideoColorMatrix
//=========================================================================
pub fn gst_video_color_matrix_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_color_matrix_from_iso(value: c_uint) -> GstVideoColorMatrix;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_video_color_matrix_get_Kr_Kb(
matrix: GstVideoColorMatrix,
Kr: *mut c_double,
Kb: *mut c_double,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_color_matrix_to_iso(matrix: GstVideoColorMatrix) -> c_uint;
//=========================================================================
// GstVideoColorPrimaries
//=========================================================================
pub fn gst_video_color_primaries_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_color_primaries_from_iso(value: c_uint) -> GstVideoColorPrimaries;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_video_color_primaries_get_info(
primaries: GstVideoColorPrimaries,
) -> *const GstVideoColorPrimariesInfo;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_color_primaries_to_iso(primaries: GstVideoColorPrimaries) -> c_uint;
//=========================================================================
// GstVideoColorRange
@ -2347,6 +2522,16 @@ extern "C" {
//=========================================================================
pub fn gst_video_scaler_flags_get_type() -> GType;
//=========================================================================
// GstVideoTimeCodeFlags
//=========================================================================
pub fn gst_video_time_code_flags_get_type() -> GType;
//=========================================================================
// GstVideoAFDMeta
//=========================================================================
pub fn gst_video_afd_meta_get_info() -> *const gst::GstMetaInfo;
//=========================================================================
// GstVideoAffineTransformationMeta
//=========================================================================
@ -2362,6 +2547,11 @@ extern "C" {
//=========================================================================
pub fn gst_video_alignment_reset(align: *mut GstVideoAlignment);
//=========================================================================
// GstVideoBarMeta
//=========================================================================
pub fn gst_video_bar_meta_get_info() -> *const gst::GstMetaInfo;
//=========================================================================
// GstVideoCaptionMeta
//=========================================================================
@ -2423,6 +2613,31 @@ extern "C" {
) -> gboolean;
pub fn gst_video_colorimetry_to_string(cinfo: *const GstVideoColorimetry) -> *mut c_char;
//=========================================================================
// GstVideoContentLightLevel
//=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_content_light_level_add_to_caps(
linfo: *const GstVideoContentLightLevel,
caps: *mut gst::GstCaps,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_content_light_level_from_caps(
linfo: *mut GstVideoContentLightLevel,
caps: *const gst::GstCaps,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_content_light_level_from_string(
linfo: *mut GstVideoContentLightLevel,
level: *const c_char,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_content_light_level_init(linfo: *mut GstVideoContentLightLevel);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_content_light_level_to_string(
linfo: *const GstVideoContentLightLevel,
) -> *mut c_char;
//=========================================================================
// GstVideoConverter
//=========================================================================
@ -2473,6 +2688,16 @@ extern "C" {
width: c_uint,
) -> *mut GstVideoDither;
//=========================================================================
// GstVideoFormatInfo
//=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_format_info_component(
info: *const GstVideoFormatInfo,
plane: c_uint,
components: *mut c_int,
);
//=========================================================================
// GstVideoFrame
//=========================================================================
@ -2514,6 +2739,12 @@ extern "C" {
pub fn gst_video_info_new() -> *mut GstVideoInfo;
pub fn gst_video_info_align(info: *mut GstVideoInfo, align: *mut GstVideoAlignment)
-> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_info_align_full(
info: *mut GstVideoInfo,
align: *mut GstVideoAlignment,
plane_size: *mut size_t,
) -> gboolean;
pub fn gst_video_info_convert(
info: *mut GstVideoInfo,
src_format: gst::GstFormat,
@ -2548,9 +2779,49 @@ extern "C" {
) -> gboolean;
pub fn gst_video_info_to_caps(info: *mut GstVideoInfo) -> *mut gst::GstCaps;
//=========================================================================
// GstVideoMasteringDisplayInfo
//=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_mastering_display_info_add_to_caps(
minfo: *const GstVideoMasteringDisplayInfo,
caps: *mut gst::GstCaps,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_mastering_display_info_from_caps(
minfo: *mut GstVideoMasteringDisplayInfo,
caps: *const gst::GstCaps,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_mastering_display_info_init(minfo: *mut GstVideoMasteringDisplayInfo);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_mastering_display_info_is_equal(
minfo: *const GstVideoMasteringDisplayInfo,
other: *const GstVideoMasteringDisplayInfo,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_mastering_display_info_to_string(
minfo: *const GstVideoMasteringDisplayInfo,
) -> *mut c_char;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_mastering_display_info_from_string(
minfo: *mut GstVideoMasteringDisplayInfo,
mastering: *const c_char,
) -> gboolean;
//=========================================================================
// GstVideoMeta
//=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_meta_get_plane_height(
meta: *mut GstVideoMeta,
plane_height: *mut c_uint,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_meta_get_plane_size(
meta: *mut GstVideoMeta,
plane_size: *mut size_t,
) -> gboolean;
pub fn gst_video_meta_map(
meta: *mut GstVideoMeta,
plane: c_uint,
@ -2559,6 +2830,11 @@ extern "C" {
stride: *mut c_int,
flags: gst::GstMapFlags,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_meta_set_alignment(
meta: *mut GstVideoMeta,
alignment: GstVideoAlignment,
) -> gboolean;
pub fn gst_video_meta_unmap(
meta: *mut GstVideoMeta,
plane: c_uint,
@ -3124,6 +3400,11 @@ extern "C" {
encoder: *mut GstVideoEncoder,
frame: *mut GstVideoCodecFrame,
) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_encoder_finish_subframe(
encoder: *mut GstVideoEncoder,
frame: *mut GstVideoCodecFrame,
) -> gst::GstFlowReturn;
pub fn gst_video_encoder_get_allocator(
encoder: *mut GstVideoEncoder,
allocator: *mut *mut gst::GstAllocator,
@ -3246,6 +3527,14 @@ extern "C" {
x: *mut c_double,
y: *mut c_double,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_navigation_event_parse_mouse_scroll_event(
event: *mut gst::GstEvent,
x: *mut c_double,
y: *mut c_double,
delta_x: *mut c_double,
delta_y: *mut c_double,
) -> gboolean;
pub fn gst_navigation_message_get_type(
message: *mut gst::GstMessage,
) -> GstNavigationMessageType;
@ -3328,6 +3617,14 @@ extern "C" {
x: c_double,
y: c_double,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_navigation_send_mouse_scroll_event(
navigation: *mut GstNavigation,
x: c_double,
y: c_double,
delta_x: c_double,
delta_y: c_double,
);
//=========================================================================
// GstVideoDirection
@ -3403,10 +3700,25 @@ extern "C" {
//=========================================================================
// Other functions
//=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_buffer_add_video_afd_meta(
buffer: *mut gst::GstBuffer,
field: u8,
spec: GstVideoAFDSpec,
afd: GstVideoAFDValue,
) -> *mut GstVideoAFDMeta;
#[cfg(any(feature = "v1_8", feature = "dox"))]
pub fn gst_buffer_add_video_affine_transformation_meta(
buffer: *mut gst::GstBuffer,
) -> *mut GstVideoAffineTransformationMeta;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_buffer_add_video_bar_meta(
buffer: *mut gst::GstBuffer,
field: u8,
is_letterbox: gboolean,
bar_data1: c_uint,
bar_data2: c_uint,
) -> *mut GstVideoBarMeta;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_buffer_add_video_caption_meta(
buffer: *mut gst::GstBuffer,
@ -3464,7 +3776,7 @@ extern "C" {
#[cfg(any(feature = "v1_10", feature = "dox"))]
pub fn gst_buffer_add_video_time_code_meta(
buffer: *mut gst::GstBuffer,
tc: *mut GstVideoTimeCode,
tc: *const GstVideoTimeCode,
) -> *mut GstVideoTimeCodeMeta;
#[cfg(any(feature = "v1_10", feature = "dox"))]
pub fn gst_buffer_add_video_time_code_meta_full(
@ -3499,7 +3811,9 @@ extern "C" {
pub fn gst_is_video_overlay_prepare_window_handle_message(
msg: *mut gst::GstMessage,
) -> gboolean;
pub fn gst_video_afd_meta_api_get_type() -> GType;
pub fn gst_video_affine_transformation_meta_api_get_type() -> GType;
pub fn gst_video_bar_meta_api_get_type() -> GType;
pub fn gst_video_blend(
dest: *mut GstVideoFrame,
src: *mut GstVideoFrame,
@ -3543,6 +3857,10 @@ extern "C" {
func: GstVideoTransferFunction,
val: c_double,
) -> c_double;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_color_transfer_from_iso(value: c_uint) -> GstVideoTransferFunction;
#[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn gst_video_color_transfer_to_iso(func: GstVideoTransferFunction) -> c_uint;
pub fn gst_video_convert_sample(
sample: *mut gst::GstSample,
to_caps: *const gst::GstCaps,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_video_sys;
@ -315,6 +315,27 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstNavigationQueryType>(),
},
),
(
"GstVideoAFDMeta",
Layout {
size: size_of::<GstVideoAFDMeta>(),
alignment: align_of::<GstVideoAFDMeta>(),
},
),
(
"GstVideoAFDSpec",
Layout {
size: size_of::<GstVideoAFDSpec>(),
alignment: align_of::<GstVideoAFDSpec>(),
},
),
(
"GstVideoAFDValue",
Layout {
size: size_of::<GstVideoAFDValue>(),
alignment: align_of::<GstVideoAFDValue>(),
},
),
(
"GstVideoAffineTransformationMeta",
Layout {
@ -399,6 +420,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstVideoAncillaryDID16>(),
},
),
(
"GstVideoBarMeta",
Layout {
size: size_of::<GstVideoBarMeta>(),
alignment: align_of::<GstVideoBarMeta>(),
},
),
(
"GstVideoBufferFlags",
Layout {
@ -518,6 +546,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstVideoColorimetry>(),
},
),
(
"GstVideoContentLightLevel",
Layout {
size: size_of::<GstVideoContentLightLevel>(),
alignment: align_of::<GstVideoContentLightLevel>(),
},
),
(
"GstVideoCropMeta",
Layout {
@ -686,6 +721,20 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstVideoInterlaceMode>(),
},
),
(
"GstVideoMasteringDisplayInfo",
Layout {
size: size_of::<GstVideoMasteringDisplayInfo>(),
alignment: align_of::<GstVideoMasteringDisplayInfo>(),
},
),
(
"GstVideoMasteringDisplayInfoCoordinates",
Layout {
size: size_of::<GstVideoMasteringDisplayInfoCoordinates>(),
alignment: align_of::<GstVideoMasteringDisplayInfoCoordinates>(),
},
),
(
"GstVideoMatrixMode",
Layout {
@ -936,6 +985,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_NAVIGATION_EVENT_MOUSE_BUTTON_PRESS", "3"),
("(gint) GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE", "4"),
("(gint) GST_NAVIGATION_EVENT_MOUSE_MOVE", "5"),
("(gint) GST_NAVIGATION_EVENT_MOUSE_SCROLL", "7"),
("(gint) GST_NAVIGATION_MESSAGE_ANGLES_CHANGED", "3"),
("(gint) GST_NAVIGATION_MESSAGE_COMMANDS_CHANGED", "2"),
("(gint) GST_NAVIGATION_MESSAGE_EVENT", "4"),
@ -944,6 +994,20 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_NAVIGATION_QUERY_ANGLES", "2"),
("(gint) GST_NAVIGATION_QUERY_COMMANDS", "1"),
("(gint) GST_NAVIGATION_QUERY_INVALID", "0"),
("(gint) GST_VIDEO_AFD_14_9_LETTER_14_9_PILLAR", "11"),
("(gint) GST_VIDEO_AFD_14_9_TOP_ALIGNED", "3"),
("(gint) GST_VIDEO_AFD_16_9_LETTER_14_9_CENTER", "14"),
("(gint) GST_VIDEO_AFD_16_9_LETTER_16_9_FULL", "10"),
("(gint) GST_VIDEO_AFD_16_9_LETTER_4_3_CENTER", "15"),
("(gint) GST_VIDEO_AFD_16_9_TOP_ALIGNED", "2"),
("(gint) GST_VIDEO_AFD_4_3_FULL_14_9_CENTER", "13"),
("(gint) GST_VIDEO_AFD_4_3_FULL_16_9_FULL", "8"),
("(gint) GST_VIDEO_AFD_4_3_FULL_4_3_PILLAR", "9"),
("(gint) GST_VIDEO_AFD_GREATER_THAN_16_9", "4"),
("(gint) GST_VIDEO_AFD_SPEC_ATSC_A53", "1"),
("(gint) GST_VIDEO_AFD_SPEC_DVB_ETSI", "0"),
("(gint) GST_VIDEO_AFD_SPEC_SMPTE_ST2016_1", "2"),
("(gint) GST_VIDEO_AFD_UNAVAILABLE", "0"),
("(gint) GST_VIDEO_ALPHA_MODE_COPY", "0"),
("(gint) GST_VIDEO_ALPHA_MODE_MULT", "2"),
("(gint) GST_VIDEO_ALPHA_MODE_SET", "1"),
@ -966,6 +1030,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE", "33554432"),
("(guint) GST_VIDEO_BUFFER_FLAG_INTERLACED", "1048576"),
("(guint) GST_VIDEO_BUFFER_FLAG_LAST", "268435456"),
("(guint) GST_VIDEO_BUFFER_FLAG_MARKER", "512"),
("(guint) GST_VIDEO_BUFFER_FLAG_MULTIPLE_VIEW", "16777216"),
("(guint) GST_VIDEO_BUFFER_FLAG_ONEFIELD", "8388608"),
("(guint) GST_VIDEO_BUFFER_FLAG_RFF", "4194304"),
@ -998,6 +1063,9 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME_HEADERS", "8"),
("(guint) GST_VIDEO_CODEC_FRAME_FLAG_SYNC_POINT", "2"),
("GST_VIDEO_COLORIMETRY_BT2020", "bt2020"),
("GST_VIDEO_COLORIMETRY_BT2020_10", "bt2020-10"),
("GST_VIDEO_COLORIMETRY_BT2100_HLG", "bt2100-hlg"),
("GST_VIDEO_COLORIMETRY_BT2100_PQ", "bt2100-pq"),
("GST_VIDEO_COLORIMETRY_BT601", "bt601"),
("GST_VIDEO_COLORIMETRY_BT709", "bt709"),
("GST_VIDEO_COLORIMETRY_SMPTE240M", "smpte240m"),
@ -1075,7 +1143,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_VIDEO_FLAG_NONE", "0"),
("(guint) GST_VIDEO_FLAG_PREMULTIPLIED_ALPHA", "2"),
("(guint) GST_VIDEO_FLAG_VARIABLE_FPS", "1"),
("GST_VIDEO_FORMATS_ALL", "{ I420, YV12, YUY2, UYVY, AYUV, VUYA, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, Y210, Y410, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, BGR10A2_LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, I420_12BE, I420_12LE, I422_12BE, I422_12LE, Y444_12BE, Y444_12LE, GRAY10_LE32, NV12_10LE32, NV16_10LE32, NV12_10LE40 }"),
("GST_VIDEO_FORMATS_ALL", "{ I420, YV12, YUY2, UYVY, AYUV, VUYA, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, Y210, Y410, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, BGR10A2_LE, RGB10A2_LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, P012_BE, P012_LE, I420_12BE, I420_12LE, Y212_BE, Y212_LE, I422_12BE, I422_12LE, Y412_BE, Y412_LE, Y444_12BE, Y444_12LE, GRAY10_LE32, NV12_10LE32, NV16_10LE32, NV12_10LE40, Y444_16BE, Y444_16LE, P016_BE, P016_LE }"),
("(gint) GST_VIDEO_FORMAT_A420", "34"),
("(gint) GST_VIDEO_FORMAT_A420_10BE", "54"),
("(gint) GST_VIDEO_FORMAT_A420_10LE", "55"),
@ -1140,7 +1208,12 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_FORMAT_NV61", "60"),
("(gint) GST_VIDEO_FORMAT_P010_10BE", "61"),
("(gint) GST_VIDEO_FORMAT_P010_10LE", "62"),
("(gint) GST_VIDEO_FORMAT_P012_BE", "91"),
("(gint) GST_VIDEO_FORMAT_P012_LE", "92"),
("(gint) GST_VIDEO_FORMAT_P016_BE", "89"),
("(gint) GST_VIDEO_FORMAT_P016_LE", "90"),
("(gint) GST_VIDEO_FORMAT_RGB", "15"),
("(gint) GST_VIDEO_FORMAT_RGB10A2_LE", "86"),
("(gint) GST_VIDEO_FORMAT_RGB15", "31"),
("(gint) GST_VIDEO_FORMAT_RGB16", "29"),
("(gint) GST_VIDEO_FORMAT_RGB8P", "35"),
@ -1152,7 +1225,11 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_FORMAT_VUYA", "84"),
("(gint) GST_VIDEO_FORMAT_VYUY", "64"),
("(gint) GST_VIDEO_FORMAT_Y210", "82"),
("(gint) GST_VIDEO_FORMAT_Y212_BE", "93"),
("(gint) GST_VIDEO_FORMAT_Y212_LE", "94"),
("(gint) GST_VIDEO_FORMAT_Y410", "83"),
("(gint) GST_VIDEO_FORMAT_Y412_BE", "95"),
("(gint) GST_VIDEO_FORMAT_Y412_LE", "96"),
("(gint) GST_VIDEO_FORMAT_Y41B", "17"),
("(gint) GST_VIDEO_FORMAT_Y42B", "18"),
("(gint) GST_VIDEO_FORMAT_Y444", "20"),
@ -1160,6 +1237,8 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_FORMAT_Y444_10LE", "47"),
("(gint) GST_VIDEO_FORMAT_Y444_12BE", "76"),
("(gint) GST_VIDEO_FORMAT_Y444_12LE", "77"),
("(gint) GST_VIDEO_FORMAT_Y444_16BE", "87"),
("(gint) GST_VIDEO_FORMAT_Y444_16LE", "88"),
("(gint) GST_VIDEO_FORMAT_YUV9", "36"),
("(gint) GST_VIDEO_FORMAT_YUY2", "4"),
("(gint) GST_VIDEO_FORMAT_YV12", "3"),
@ -1248,7 +1327,6 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_ORIENTATION_UL_LR", "6"),
("(gint) GST_VIDEO_ORIENTATION_UR_LL", "7"),
("(gint) GST_VIDEO_ORIENTATION_VERT", "5"),
("GST_VIDEO_OVERLAY_COMPOSITION_BLEND_FORMATS", "{ BGRx, RGBx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, I420, YV12, AYUV, YUY2, UYVY, v308, Y41B, Y42B, Y444, NV12, NV21, A420, YUV9, YVU9, IYU1, GRAY8 }"),
("(guint) GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA", "2"),
("(guint) GST_VIDEO_OVERLAY_FORMAT_FLAG_NONE", "0"),
("(guint) GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA", "1"),
@ -1286,6 +1364,8 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_VIDEO_TIME_CODE_FLAGS_INTERLACED", "2"),
("(guint) GST_VIDEO_TIME_CODE_FLAGS_NONE", "0"),
("(gint) GST_VIDEO_TRANSFER_ADOBERGB", "12"),
("(gint) GST_VIDEO_TRANSFER_ARIB_STD_B67", "15"),
("(gint) GST_VIDEO_TRANSFER_BT2020_10", "13"),
("(gint) GST_VIDEO_TRANSFER_BT2020_12", "11"),
("(gint) GST_VIDEO_TRANSFER_BT709", "5"),
("(gint) GST_VIDEO_TRANSFER_GAMMA10", "1"),
@ -1295,6 +1375,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_TRANSFER_GAMMA28", "8"),
("(gint) GST_VIDEO_TRANSFER_LOG100", "9"),
("(gint) GST_VIDEO_TRANSFER_LOG316", "10"),
("(gint) GST_VIDEO_TRANSFER_SMPTE2084", "14"),
("(gint) GST_VIDEO_TRANSFER_SMPTE240M", "6"),
("(gint) GST_VIDEO_TRANSFER_SRGB", "7"),
("(gint) GST_VIDEO_TRANSFER_UNKNOWN", "0"),

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
extern crate gstreamer_webrtc_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9)
// from gir-files (https://github.com/gtk-rs/gir-files @ 67b410c)
// from gir-files (https://github.com/gtk-rs/gir-files @ 65dbff8)
// DO NOT EDIT
#include "manual.h"