Regenerate everything with latest gir and gir-files

This commit is contained in:
Sebastian Dröge 2019-04-23 15:32:33 +03:00
parent 4e2c2d5774
commit 134564ca3c
100 changed files with 1113 additions and 148 deletions

View file

@ -25,6 +25,7 @@ v1_8 = ["v1_6"]
v1_10 = ["v1_8"]
v1_12 = ["v1_10"]
v1_14 = ["v1_12"]
v1_16 = ["v1_14"]
dox = []
[lib]

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-app-1.0";
let shared_libs = ["gstapp-1.0"];
let version = if cfg!(feature = "v1_14") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14") {
"1.14"
} else if cfg!(feature = "v1_12") {
"1.12"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -28,6 +28,7 @@ v1_8 = ["v1_6"]
v1_10 = ["v1_8"]
v1_12 = ["v1_10"]
v1_14 = ["v1_12"]
v1_16 = ["v1_14"]
dox = []
[lib]

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-audio-1.0";
let shared_libs = ["gstaudio-1.0"];
let version = if cfg!(feature = "v1_14") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14") {
"1.14"
} else if cfg!(feature = "v1_12") {
"1.12"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -393,6 +393,32 @@ impl ::std::fmt::Debug for GstAudioBaseSrcPrivate {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstAudioBuffer {
pub info: GstAudioInfo,
pub n_samples: size_t,
pub n_planes: c_int,
pub planes: *mut gpointer,
pub buffer: *mut gst::GstBuffer,
pub map_infos: *mut gst::GstMapInfo,
pub priv_planes_arr: [gpointer; 8],
pub priv_map_infos_arr: [gst::GstMapInfo; 8],
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstAudioBuffer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioBuffer @ {:?}", self as *const _))
.field("info", &self.info)
.field("n_samples", &self.n_samples)
.field("n_planes", &self.n_planes)
.field("planes", &self.planes)
.field("buffer", &self.buffer)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstAudioCdSrcClass {
@ -725,6 +751,28 @@ impl ::std::fmt::Debug for GstAudioInfo {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstAudioMeta {
pub meta: gst::GstMeta,
pub info: GstAudioInfo,
pub samples: size_t,
pub offsets: *mut size_t,
pub priv_offsets_arr: [size_t; 8],
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstAudioMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioMeta @ {:?}", self as *const _))
.field("meta", &self.meta)
.field("info", &self.info)
.field("samples", &self.samples)
.field("offsets", &self.offsets)
.finish()
}
}
#[repr(C)]
pub struct GstAudioQuantize(c_void);
@ -925,7 +973,6 @@ pub struct GstAudioAggregatorConvertPad {
impl ::std::fmt::Debug for GstAudioAggregatorConvertPad {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioAggregatorConvertPad @ {:?}", self as *const _))
.field("parent", &self.parent)
.finish()
}
}
@ -1150,7 +1197,6 @@ impl ::std::fmt::Debug for GstAudioRingBuffer {
.field("acquired", &self.acquired)
.field("memory", &self.memory)
.field("size", &self.size)
.field("timestamps", &self.timestamps)
.field("spec", &self.spec)
.field("samples_per_seg", &self.samples_per_seg)
.field("empty_seg", &self.empty_seg)
@ -1317,6 +1363,18 @@ extern "C" {
//=========================================================================
pub fn gst_audio_resampler_flags_get_type() -> GType;
//=========================================================================
// GstAudioBuffer
//=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_audio_buffer_map(buffer: *mut GstAudioBuffer, info: *const GstAudioInfo, gstbuffer: *mut gst::GstBuffer, flags: gst::GstMapFlags) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_audio_buffer_unmap(buffer: *mut GstAudioBuffer);
pub fn gst_audio_buffer_clip(buffer: *mut gst::GstBuffer, segment: *const gst::GstSegment, rate: c_int, bpf: c_int) -> *mut gst::GstBuffer;
pub fn gst_audio_buffer_reorder_channels(buffer: *mut gst::GstBuffer, format: GstAudioFormat, channels: c_int, from: *const GstAudioChannelPosition, to: *const GstAudioChannelPosition) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_audio_buffer_truncate(buffer: *mut gst::GstBuffer, bpf: c_int, trim: size_t, samples: size_t) -> *mut gst::GstBuffer;
//=========================================================================
// GstAudioChannelMixer
//=========================================================================
@ -1344,6 +1402,8 @@ extern "C" {
pub fn gst_audio_converter_get_in_frames(convert: *mut GstAudioConverter, out_frames: size_t) -> size_t;
pub fn gst_audio_converter_get_max_latency(convert: *mut GstAudioConverter) -> size_t;
pub fn gst_audio_converter_get_out_frames(convert: *mut GstAudioConverter, in_frames: size_t) -> size_t;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_audio_converter_is_passthrough(convert: *mut GstAudioConverter) -> gboolean;
pub fn gst_audio_converter_reset(convert: *mut GstAudioConverter);
pub fn gst_audio_converter_samples(convert: *mut GstAudioConverter, flags: GstAudioConverterFlags, in_: *mut gpointer, in_frames: size_t, out: *mut gpointer, out_frames: size_t) -> gboolean;
pub fn gst_audio_converter_supports_inplace(convert: *mut GstAudioConverter) -> gboolean;
@ -1374,6 +1434,11 @@ extern "C" {
pub fn gst_audio_info_set_format(info: *mut GstAudioInfo, format: GstAudioFormat, rate: c_int, channels: c_int, position: *const [GstAudioChannelPosition; 64]);
pub fn gst_audio_info_to_caps(info: *const GstAudioInfo) -> *mut gst::GstCaps;
//=========================================================================
// GstAudioMeta
//=========================================================================
pub fn gst_audio_meta_get_info() -> *const gst::GstMetaInfo;
//=========================================================================
// GstAudioQuantize
//=========================================================================
@ -1433,6 +1498,7 @@ extern "C" {
// GstAudioAggregator
//=========================================================================
pub fn gst_audio_aggregator_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_audio_aggregator_set_sink_caps(aagg: *mut GstAudioAggregator, pad: *mut GstAudioAggregatorPad, caps: *mut gst::GstCaps);
//=========================================================================
@ -1497,6 +1563,8 @@ extern "C" {
pub fn gst_audio_decoder_get_type() -> GType;
pub fn gst_audio_decoder_allocate_output_buffer(dec: *mut GstAudioDecoder, size: size_t) -> *mut gst::GstBuffer;
pub fn gst_audio_decoder_finish_frame(dec: *mut GstAudioDecoder, buf: *mut gst::GstBuffer, frames: c_int) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_audio_decoder_finish_subframe(dec: *mut GstAudioDecoder, buf: *mut gst::GstBuffer) -> gst::GstFlowReturn;
pub fn gst_audio_decoder_get_allocator(dec: *mut GstAudioDecoder, allocator: *mut *mut gst::GstAllocator, params: *mut gst::GstAllocationParams);
pub fn gst_audio_decoder_get_audio_info(dec: *mut GstAudioDecoder) -> *mut GstAudioInfo;
pub fn gst_audio_decoder_get_delay(dec: *mut GstAudioDecoder) -> c_int;
@ -1522,6 +1590,8 @@ extern "C" {
pub fn gst_audio_decoder_set_max_errors(dec: *mut GstAudioDecoder, num: c_int);
pub fn gst_audio_decoder_set_min_latency(dec: *mut GstAudioDecoder, num: gst::GstClockTime);
pub fn gst_audio_decoder_set_needs_format(dec: *mut GstAudioDecoder, enabled: gboolean);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_audio_decoder_set_output_caps(dec: *mut GstAudioDecoder, caps: *mut gst::GstCaps) -> gboolean;
pub fn gst_audio_decoder_set_output_format(dec: *mut GstAudioDecoder, info: *const GstAudioInfo) -> gboolean;
pub fn gst_audio_decoder_set_plc(dec: *mut GstAudioDecoder, enabled: gboolean);
pub fn gst_audio_decoder_set_plc_aware(dec: *mut GstAudioDecoder, plc: gboolean);
@ -1632,12 +1702,11 @@ extern "C" {
//=========================================================================
// Other functions
//=========================================================================
pub fn gst_audio_buffer_clip(buffer: *mut gst::GstBuffer, segment: *const gst::GstSegment, rate: c_int, bpf: c_int) -> *mut gst::GstBuffer;
pub fn gst_audio_buffer_reorder_channels(buffer: *mut gst::GstBuffer, format: GstAudioFormat, channels: c_int, from: *const GstAudioChannelPosition, to: *const GstAudioChannelPosition) -> gboolean;
#[cfg(any(feature = "v1_8", feature = "dox"))]
pub fn gst_audio_channel_get_fallback_mask(channels: c_int) -> u64;
pub fn gst_audio_channel_positions_from_mask(channels: c_int, channel_mask: u64, position: *mut GstAudioChannelPosition) -> gboolean;
pub fn gst_audio_channel_positions_to_mask(position: *const GstAudioChannelPosition, channels: c_int, force_order: gboolean, channel_mask: *mut u64) -> gboolean;
#[cfg(any(feature = "v1_10", feature = "dox"))]
pub fn gst_audio_channel_positions_to_string(position: *const GstAudioChannelPosition, channels: c_int) -> *mut c_char;
pub fn gst_audio_channel_positions_to_valid_order(position: *mut GstAudioChannelPosition, channels: c_int) -> gboolean;
pub fn gst_audio_check_valid_channel_positions(position: *const GstAudioChannelPosition, channels: c_int, force_order: gboolean) -> gboolean;
@ -1647,10 +1716,13 @@ extern "C" {
pub fn gst_audio_get_channel_reorder_map(channels: c_int, from: *const GstAudioChannelPosition, to: *const GstAudioChannelPosition, reorder_map: *mut c_int) -> gboolean;
pub fn gst_audio_iec61937_frame_size(spec: *const GstAudioRingBufferSpec) -> c_uint;
pub fn gst_audio_iec61937_payload(src: *const u8, src_n: c_uint, dst: *mut u8, dst_n: c_uint, spec: *const GstAudioRingBufferSpec, endianness: c_int) -> gboolean;
pub fn gst_audio_meta_api_get_type() -> GType;
pub fn gst_audio_reorder_channels(data: gpointer, size: size_t, format: GstAudioFormat, channels: c_int, from: *const GstAudioChannelPosition, to: *const GstAudioChannelPosition) -> gboolean;
#[cfg(any(feature = "v1_8", feature = "dox"))]
pub fn gst_buffer_add_audio_clipping_meta(buffer: *mut gst::GstBuffer, format: gst::GstFormat, start: u64, end: u64) -> *mut GstAudioClippingMeta;
pub fn gst_buffer_add_audio_downmix_meta(buffer: *mut gst::GstBuffer, from_position: *const GstAudioChannelPosition, from_channels: c_int, to_position: *const GstAudioChannelPosition, to_channels: c_int, matrix: *mut *const c_float) -> *mut GstAudioDownmixMeta;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_buffer_add_audio_meta(buffer: *mut gst::GstBuffer, info: *const GstAudioInfo, samples: size_t, offsets: *mut size_t) -> *mut GstAudioMeta;
pub fn gst_buffer_get_audio_downmix_meta_for_channels(buffer: *mut gst::GstBuffer, to_position: *const GstAudioChannelPosition, to_channels: c_int) -> *mut GstAudioDownmixMeta;
}

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -251,6 +251,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
("GstAudioBaseSrc", Layout {size: size_of::<GstAudioBaseSrc>(), alignment: align_of::<GstAudioBaseSrc>()}),
("GstAudioBaseSrcClass", Layout {size: size_of::<GstAudioBaseSrcClass>(), alignment: align_of::<GstAudioBaseSrcClass>()}),
("GstAudioBaseSrcSlaveMethod", Layout {size: size_of::<GstAudioBaseSrcSlaveMethod>(), alignment: align_of::<GstAudioBaseSrcSlaveMethod>()}),
("GstAudioBuffer", Layout {size: size_of::<GstAudioBuffer>(), alignment: align_of::<GstAudioBuffer>()}),
("GstAudioCdSrc", Layout {size: size_of::<GstAudioCdSrc>(), alignment: align_of::<GstAudioCdSrc>()}),
("GstAudioCdSrcClass", Layout {size: size_of::<GstAudioCdSrcClass>(), alignment: align_of::<GstAudioCdSrcClass>()}),
("GstAudioCdSrcMode", Layout {size: size_of::<GstAudioCdSrcMode>(), alignment: align_of::<GstAudioCdSrcMode>()}),
@ -275,6 +276,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
("GstAudioFormatInfo", Layout {size: size_of::<GstAudioFormatInfo>(), alignment: align_of::<GstAudioFormatInfo>()}),
("GstAudioInfo", Layout {size: size_of::<GstAudioInfo>(), alignment: align_of::<GstAudioInfo>()}),
("GstAudioLayout", Layout {size: size_of::<GstAudioLayout>(), alignment: align_of::<GstAudioLayout>()}),
("GstAudioMeta", Layout {size: size_of::<GstAudioMeta>(), alignment: align_of::<GstAudioMeta>()}),
("GstAudioNoiseShapingMethod", Layout {size: size_of::<GstAudioNoiseShapingMethod>(), alignment: align_of::<GstAudioNoiseShapingMethod>()}),
("GstAudioPackFlags", Layout {size: size_of::<GstAudioPackFlags>(), alignment: align_of::<GstAudioPackFlags>()}),
("GstAudioQuantizeFlags", Layout {size: size_of::<GstAudioQuantizeFlags>(), alignment: align_of::<GstAudioQuantizeFlags>()}),

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -29,6 +29,7 @@ v1_12_1 = ["v1_12"]
v1_14 = ["v1_12_1"]
v1_14_1 = ["v1_14"]
v1_14_3 = ["v1_14_1"]
v1_16 = ["v1_14_3"]
dox = []
[lib]

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-base-1.0";
let shared_libs = ["gstbase-1.0"];
let version = if cfg!(feature = "v1_14_3") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14_3") {
"1.14.3"
} else if cfg!(feature = "v1_14_1") {
"1.14.1"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -469,6 +469,26 @@ impl ::std::fmt::Debug for GstBitReader {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstBitWriter {
pub data: *mut u8,
pub bit_size: c_uint,
pub bit_capacity: c_uint,
pub auto_grow: gboolean,
pub owned: gboolean,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstBitWriter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBitWriter @ {:?}", self as *const _))
.field("data", &self.data)
.field("bit_size", &self.bit_size)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstByteReader {
@ -739,8 +759,6 @@ impl ::std::fmt::Debug for GstAggregatorPad {
f.debug_struct(&format!("GstAggregatorPad @ {:?}", self as *const _))
.field("parent", &self.parent)
.field("segment", &self.segment)
.field("priv_", &self.priv_)
.field("_gst_reserved", &self._gst_reserved)
.finish()
}
}
@ -973,6 +991,54 @@ extern "C" {
pub fn gst_bit_reader_skip_to_byte(reader: *mut GstBitReader) -> gboolean;
pub fn gst_bit_reader_new(data: *const u8, size: c_uint) -> *mut GstBitReader;
//=========================================================================
// GstBitWriter
//=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_align_bytes(bitwriter: *mut GstBitWriter, trailing_bit: u8) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_free(bitwriter: *mut GstBitWriter);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_free_and_get_buffer(bitwriter: *mut GstBitWriter) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_free_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_get_data(bitwriter: *const GstBitWriter) -> *mut u8;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_get_remaining(bitwriter: *const GstBitWriter) -> c_uint;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_get_size(bitwriter: *const GstBitWriter) -> c_uint;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_init(bitwriter: *mut GstBitWriter);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_init_with_data(bitwriter: *mut GstBitWriter, data: *mut u8, size: c_uint, initialized: gboolean);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_init_with_size(bitwriter: *mut GstBitWriter, size: u32, fixed: gboolean);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_put_bits_uint16(bitwriter: *mut GstBitWriter, value: u16, nbits: c_uint) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_put_bits_uint32(bitwriter: *mut GstBitWriter, value: u32, nbits: c_uint) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_put_bits_uint64(bitwriter: *mut GstBitWriter, value: u64, nbits: c_uint) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_put_bits_uint8(bitwriter: *mut GstBitWriter, value: u8, nbits: c_uint) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_put_bytes(bitwriter: *mut GstBitWriter, data: *const u8, nbytes: c_uint) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_reset(bitwriter: *mut GstBitWriter);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_reset_and_get_buffer(bitwriter: *mut GstBitWriter) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_reset_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_set_pos(bitwriter: *mut GstBitWriter, pos: c_uint) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_new() -> *mut GstBitWriter;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_new_with_data(data: *mut u8, size: c_uint, initialized: gboolean) -> *mut GstBitWriter;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_bit_writer_new_with_size(size: u32, fixed: gboolean) -> *mut GstBitWriter;
//=========================================================================
// GstByteReader
//=========================================================================
@ -1121,6 +1187,8 @@ extern "C" {
//=========================================================================
// GstQueueArray
//=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_queue_array_clear(array: *mut GstQueueArray);
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_queue_array_drop_element(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
#[cfg(any(feature = "v1_6", feature = "dox"))]
@ -1137,6 +1205,10 @@ extern "C" {
pub fn gst_queue_array_peek_head(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_queue_array_peek_head_struct(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_queue_array_peek_nth(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_queue_array_peek_nth_struct(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_queue_array_peek_tail(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
@ -1152,6 +1224,8 @@ extern "C" {
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_queue_array_push_tail(array: *mut GstQueueArray, data: gpointer);
pub fn gst_queue_array_push_tail_struct(array: *mut GstQueueArray, p_struct: gpointer);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_queue_array_set_clear_func(array: *mut GstQueueArray, clear_func: glib::GDestroyNotify);
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_queue_array_new(initial_size: c_uint) -> *mut GstQueueArray;
#[cfg(any(feature = "v1_6", feature = "dox"))]
@ -1209,22 +1283,34 @@ extern "C" {
// GstAggregator
//=========================================================================
pub fn gst_aggregator_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_aggregator_finish_buffer(aggregator: *mut GstAggregator, buffer: *mut gst::GstBuffer) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_aggregator_get_allocator(self_: *mut GstAggregator, allocator: *mut *mut gst::GstAllocator, params: *mut gst::GstAllocationParams);
#[cfg(any(feature = "v1_14", feature = "dox"))]
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_14", feature = "dox"))]
pub fn gst_aggregator_set_latency(self_: *mut GstAggregator, min_latency: gst::GstClockTime, max_latency: gst::GstClockTime);
#[cfg(any(feature = "v1_14", feature = "dox"))]
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;
//=========================================================================
// GstAggregatorPad
//=========================================================================
pub fn gst_aggregator_pad_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_aggregator_pad_drop_buffer(pad: *mut GstAggregatorPad) -> gboolean;
#[cfg(any(feature = "v1_14_1", feature = "dox"))]
pub fn gst_aggregator_pad_has_buffer(pad: *mut GstAggregatorPad) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_aggregator_pad_is_eos(pad: *mut GstAggregatorPad) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_aggregator_pad_peek_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_aggregator_pad_pop_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer;
//=========================================================================
@ -1265,6 +1351,8 @@ extern "C" {
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_base_sink_get_max_bitrate(sink: *mut GstBaseSink) -> u64;
pub fn gst_base_sink_get_max_lateness(sink: *mut GstBaseSink) -> i64;
#[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;
pub fn gst_base_sink_get_sync(sink: *mut GstBaseSink) -> gboolean;
pub fn gst_base_sink_get_throttle_time(sink: *mut GstBaseSink) -> u64;
@ -1281,6 +1369,8 @@ extern "C" {
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_base_sink_set_max_bitrate(sink: *mut GstBaseSink, max_bitrate: u64);
pub fn gst_base_sink_set_max_lateness(sink: *mut GstBaseSink, max_lateness: i64);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_base_sink_set_processing_deadline(sink: *mut GstBaseSink, processing_deadline: gst::GstClockTime);
pub fn gst_base_sink_set_qos_enabled(sink: *mut GstBaseSink, enabled: gboolean);
pub fn gst_base_sink_set_render_delay(sink: *mut GstBaseSink, delay: gst::GstClockTime);
pub fn gst_base_sink_set_sync(sink: *mut GstBaseSink, sync: gboolean);
@ -1408,7 +1498,11 @@ extern "C" {
//=========================================================================
pub fn gst_type_find_helper(src: *mut gst::GstPad, size: u64) -> *mut gst::GstCaps;
pub fn gst_type_find_helper_for_buffer(obj: *mut gst::GstObject, buf: *mut gst::GstBuffer, prob: *mut gst::GstTypeFindProbability) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_type_find_helper_for_buffer_with_extension(obj: *mut gst::GstObject, buf: *mut gst::GstBuffer, extension: *const c_char, prob: *mut gst::GstTypeFindProbability) -> *mut gst::GstCaps;
pub fn gst_type_find_helper_for_data(obj: *mut gst::GstObject, data: *const u8, size: size_t, prob: *mut gst::GstTypeFindProbability) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_type_find_helper_for_data_with_extension(obj: *mut gst::GstObject, data: *const u8, size: size_t, extension: *const c_char, prob: *mut gst::GstTypeFindProbability) -> *mut gst::GstCaps;
pub fn gst_type_find_helper_for_extension(obj: *mut gst::GstObject, extension: *const c_char) -> *mut gst::GstCaps;
pub fn gst_type_find_helper_get_range(obj: *mut gst::GstObject, parent: *mut gst::GstObject, func: GstTypeFindHelperGetRangeFunction, size: u64, extension: *const c_char, prob: *mut gst::GstTypeFindProbability) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_14_3", feature = "dox"))]

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -254,6 +254,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
("GstBaseTransform", Layout {size: size_of::<GstBaseTransform>(), alignment: align_of::<GstBaseTransform>()}),
("GstBaseTransformClass", Layout {size: size_of::<GstBaseTransformClass>(), alignment: align_of::<GstBaseTransformClass>()}),
("GstBitReader", Layout {size: size_of::<GstBitReader>(), alignment: align_of::<GstBitReader>()}),
("GstBitWriter", Layout {size: size_of::<GstBitWriter>(), alignment: align_of::<GstBitWriter>()}),
("GstByteReader", Layout {size: size_of::<GstByteReader>(), alignment: align_of::<GstByteReader>()}),
("GstByteWriter", Layout {size: size_of::<GstByteWriter>(), alignment: align_of::<GstByteWriter>()}),
("GstCollectData", Layout {size: size_of::<GstCollectData>(), alignment: align_of::<GstCollectData>()}),

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -19,14 +19,14 @@ tempdir = "0.3"
[features]
dox = []
v1_10 = ["v1_8"]
v1_12 = ["v1_10"]
v1_14 = ["v1_12"]
#v1_16 = ["v1_14"]
v1_2 = []
v1_4 = ["v1_2"]
v1_6 = ["v1_4"]
v1_8 = ["v1_6"]
v1_10 = ["v1_8"]
v1_12 = ["v1_10"]
v1_14 = ["v1_12"]
v1_16 = ["v1_14"]
[lib]
name = "gstreamer_check_sys"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -314,6 +314,8 @@ extern "C" {
pub fn gst_test_clock_process_next_clock_id(test_clock: *mut GstTestClock) -> gst::GstClockID;
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_test_clock_set_time(test_clock: *mut GstTestClock, new_time: gst::GstClockTime);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_test_clock_timed_wait_for_multiple_pending_ids(test_clock: *mut GstTestClock, count: c_uint, timeout_ms: c_uint, pending_list: *mut *mut glib::GList) -> gboolean;
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_test_clock_wait_for_multiple_pending_ids(test_clock: *mut GstTestClock, count: c_uint, pending_list: *mut *mut glib::GList);
#[cfg(any(feature = "v1_2", feature = "dox"))]

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gst-editing-services-1.0";
let shared_libs = ["ges-1.0"];
let version = if cfg!(feature = "v1_14") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14") {
"1.14"
} else if cfg!(feature = "v1_12") {
"1.12"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -28,6 +28,7 @@ dox = []
egl = []
x11 = []
wayland = []
v1_16 = []
[lib]
name = "gstreamer_gl_sys"

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-gl-1.0";
let shared_libs = ["gstgl-1.0"];
let version = {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else {
"1.14"
};

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 16d8c2d)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -49,8 +49,10 @@ pub const GST_GL_RG8: GstGLFormat = 33323;
pub const GST_GL_RGB: GstGLFormat = 6407;
pub const GST_GL_RGB8: GstGLFormat = 32849;
pub const GST_GL_RGB565: GstGLFormat = 36194;
pub const GST_GL_RGB16: GstGLFormat = 32852;
pub const GST_GL_RGBA: GstGLFormat = 6408;
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;
@ -99,6 +101,7 @@ pub const GST_GL_UPLOAD_DONE: GstGLUploadReturn = 1;
pub const GST_GL_UPLOAD_ERROR: GstGLUploadReturn = -1;
pub const GST_GL_UPLOAD_UNSUPPORTED: GstGLUploadReturn = -2;
pub const GST_GL_UPLOAD_RECONFIGURE: GstGLUploadReturn = -3;
pub const GST_GL_UPLOAD_UNSHARED_GL_CONTEXT: GstGLUploadReturn = -100;
pub type GstGLWindowError = c_int;
pub const GST_GL_WINDOW_ERROR_FAILED: GstGLWindowError = 0;
@ -124,7 +127,7 @@ pub const GST_GL_API_OPENGL3_NAME: *const c_char = b"opengl3\0" as *const u8 as
pub const GST_GL_API_OPENGL_NAME: *const c_char = b"opengl\0" as *const u8 as *const c_char;
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, GRAY8, GRAY16_LE, GRAY16_BE, RGB16, BGR16 }\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_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 = b"gst.gl.context.EAGL\0" as *const u8 as *const c_char;
pub const GST_GL_CONTEXT_TYPE_EGL: *const c_char = b"gst.gl.context.EGL\0" as *const u8 as *const c_char;
@ -133,7 +136,7 @@ pub const GST_GL_CONTEXT_TYPE_WGL: *const c_char = b"gst.gl.context.WGL\0" as *c
pub const GST_GL_DISPLAY_CONTEXT_TYPE: *const c_char = b"gst.gl.GLDisplay\0" as *const u8 as *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, I420, YV12, NV12, NV21, YUY2, UYVY, Y41B, Y42B, Y444, GRAY8, GRAY16_LE, GRAY16_BE }\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_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;
pub const GST_GL_TEXTURE_TARGET_EXTERNAL_OES_STR: *const c_char = b"external-oes\0" as *const u8 as *const c_char;
@ -778,7 +781,6 @@ pub struct GstGLRenderbuffer {
impl ::std::fmt::Debug for GstGLRenderbuffer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLRenderbuffer @ {:?}", self as *const _))
.field("mem", &self.mem)
.field("renderbuffer_id", &self.renderbuffer_id)
.field("renderbuffer_format", &self.renderbuffer_format)
.field("width", &self.width)
@ -801,7 +803,6 @@ pub struct GstGLRenderbufferAllocationParams {
impl ::std::fmt::Debug for GstGLRenderbufferAllocationParams {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLRenderbufferAllocationParams @ {:?}", self as *const _))
.field("parent", &self.parent)
.field("renderbuffer_format", &self.renderbuffer_format)
.field("width", &self.width)
.field("height", &self.height)
@ -1000,7 +1001,8 @@ pub struct GstGLWindowClass {
pub show: Option<unsafe extern "C" fn(*mut GstGLWindow)>,
pub set_render_rectangle: 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 _reserved: [gpointer; 4],
pub controls_viewport: Option<unsafe extern "C" fn(*mut GstGLWindow) -> gboolean>,
pub _reserved: [gpointer; 3],
}
impl ::std::fmt::Debug for GstGLWindowClass {
@ -1022,6 +1024,7 @@ impl ::std::fmt::Debug for GstGLWindowClass {
.field("show", &self.show)
.field("set_render_rectangle", &self.set_render_rectangle)
.field("queue_resize", &self.queue_resize)
.field("controls_viewport", &self.controls_viewport)
.finish()
}
}
@ -1199,7 +1202,7 @@ pub struct GstGLDisplayWayland {
pub registry: gpointer,
pub compositor: gpointer,
pub subcompositor: gpointer,
pub shell: gpointer,
pub wl_shell: gpointer,
pub foreign_display: gboolean,
pub _padding: [gpointer; 4],
}
@ -1213,7 +1216,7 @@ impl ::std::fmt::Debug for GstGLDisplayWayland {
.field("registry", &self.registry)
.field("compositor", &self.compositor)
.field("subcompositor", &self.subcompositor)
.field("shell", &self.shell)
.field("wl_shell", &self.wl_shell)
.finish()
}
}
@ -1234,7 +1237,6 @@ pub struct GstGLDisplayX11 {
impl ::std::fmt::Debug for GstGLDisplayX11 {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayX11 @ {:?}", self as *const _))
.field("parent", &self.parent)
.finish()
}
}
@ -1340,8 +1342,6 @@ pub struct GstGLOverlayCompositor {
impl ::std::fmt::Debug for GstGLOverlayCompositor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLOverlayCompositor @ {:?}", self as *const _))
.field("parent", &self.parent)
.field("context", &self.context)
.finish()
}
}
@ -1491,10 +1491,105 @@ impl ::std::fmt::Debug for GstGLWindow {
extern "C" {
//=========================================================================
// GstGLBaseMemoryError
//=========================================================================
pub fn gst_gl_base_memory_error_get_type() -> GType;
pub fn gst_gl_base_memory_error_quark() -> glib::GQuark;
//=========================================================================
// GstGLContextError
//=========================================================================
pub fn gst_gl_context_error_get_type() -> GType;
pub fn gst_gl_context_error_quark() -> glib::GQuark;
//=========================================================================
// GstGLFormat
//=========================================================================
pub fn gst_gl_format_get_type() -> GType;
pub fn gst_gl_format_from_video_info(context: *mut GstGLContext, vinfo: *mut gst_video::GstVideoInfo, plane: c_uint) -> GstGLFormat;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_gl_format_is_supported(context: *mut GstGLContext, format: GstGLFormat) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_gl_format_type_from_sized_gl_format(format: GstGLFormat, unsized_format: *mut GstGLFormat, gl_type: *mut c_uint);
pub fn gst_gl_format_type_n_bytes(format: c_uint, type_: c_uint) -> c_uint;
//=========================================================================
// GstGLQueryType
//=========================================================================
pub fn gst_gl_query_type_get_type() -> GType;
//=========================================================================
// GstGLSLError
//=========================================================================
pub fn gst_glsl_error_get_type() -> GType;
pub fn gst_glsl_error_quark() -> glib::GQuark;
//=========================================================================
// GstGLSLVersion
//=========================================================================
pub fn gst_glsl_version_get_type() -> GType;
pub fn gst_glsl_version_from_string(string: *const c_char) -> GstGLSLVersion;
pub fn gst_glsl_version_profile_from_string(string: *const c_char, version_ret: *mut GstGLSLVersion, profile_ret: *mut GstGLSLProfile) -> gboolean;
pub fn gst_glsl_version_profile_to_string(version: GstGLSLVersion, profile: GstGLSLProfile) -> *mut c_char;
pub fn gst_glsl_version_to_string(version: GstGLSLVersion) -> *const c_char;
//=========================================================================
// GstGLStereoDownmix
//=========================================================================
pub fn gst_gl_stereo_downmix_mode_get_type() -> GType;
pub fn gst_gl_stereo_downmix_get_type() -> GType;
//=========================================================================
// GstGLTextureTarget
//=========================================================================
pub fn gst_gl_texture_target_get_type() -> GType;
pub fn gst_gl_texture_target_from_gl(target: c_uint) -> GstGLTextureTarget;
pub fn gst_gl_texture_target_from_string(str: *const c_char) -> GstGLTextureTarget;
pub fn gst_gl_texture_target_to_buffer_pool_option(target: GstGLTextureTarget) -> *const c_char;
pub fn gst_gl_texture_target_to_gl(target: GstGLTextureTarget) -> c_uint;
pub fn gst_gl_texture_target_to_string(target: GstGLTextureTarget) -> *const c_char;
//=========================================================================
// GstGLUploadReturn
//=========================================================================
pub fn gst_gl_upload_return_get_type() -> GType;
//=========================================================================
// GstGLWindowError
//=========================================================================
pub fn gst_gl_window_error_get_type() -> GType;
pub fn gst_gl_window_error_quark() -> glib::GQuark;
//=========================================================================
// GstGLAPI
//=========================================================================
pub fn gst_gl_api_get_type() -> GType;
pub fn gst_gl_api_from_string(api_s: *const c_char) -> GstGLAPI;
pub fn gst_gl_api_to_string(api: GstGLAPI) -> *mut c_char;
//=========================================================================
// GstGLBaseMemoryTransfer
//=========================================================================
pub fn gst_gl_base_memory_transfer_get_type() -> GType;
//=========================================================================
// GstGLDisplayType
//=========================================================================
pub fn gst_gl_display_type_get_type() -> GType;
//=========================================================================
// GstGLPlatform
//=========================================================================
pub fn gst_gl_platform_get_type() -> GType;
pub fn gst_gl_platform_from_string(platform_s: *const c_char) -> GstGLPlatform;
pub fn gst_gl_platform_to_string(platform: GstGLPlatform) -> *mut c_char;
//=========================================================================
// GstGLSLProfile
//=========================================================================
pub fn gst_glsl_profile_get_type() -> GType;
pub fn gst_glsl_profile_from_string(string: *const c_char) -> GstGLSLProfile;
pub fn gst_glsl_profile_to_string(profile: GstGLSLProfile) -> *const c_char;
//=========================================================================
// GstGLAllocationParams
@ -1527,7 +1622,6 @@ extern "C" {
pub fn gst_gl_base_memory_init(mem: *mut GstGLBaseMemory, allocator: *mut gst::GstAllocator, parent: *mut gst::GstMemory, context: *mut GstGLContext, params: *mut gst::GstAllocationParams, size: size_t, user_data: gpointer, notify: glib::GDestroyNotify);
pub fn gst_gl_base_memory_memcpy(src: *mut GstGLBaseMemory, dest: *mut GstGLBaseMemory, offset: ssize_t, size: ssize_t) -> gboolean;
pub fn gst_gl_base_memory_alloc(allocator: *mut GstGLBaseMemoryAllocator, params: *mut GstGLAllocationParams) -> *mut GstGLBaseMemory;
pub fn gst_gl_base_memory_error_quark() -> glib::GQuark;
pub fn gst_gl_base_memory_init_once();
//=========================================================================
@ -1618,6 +1712,8 @@ extern "C" {
// GstGLBaseFilter
//=========================================================================
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;
//=========================================================================
// GstGLBaseMemoryAllocator
@ -1653,7 +1749,6 @@ extern "C" {
pub fn gst_gl_context_new(display: *mut GstGLDisplay) -> *mut GstGLContext;
pub fn gst_gl_context_new_wrapped(display: *mut GstGLDisplay, handle: uintptr_t, context_type: GstGLPlatform, available_apis: GstGLAPI) -> *mut GstGLContext;
pub fn gst_gl_context_default_get_proc_address(gl_api: GstGLAPI, name: *const c_char) -> gpointer;
pub fn gst_gl_context_error_quark() -> glib::GQuark;
pub fn gst_gl_context_get_current() -> *mut GstGLContext;
pub fn gst_gl_context_get_current_gl_api(platform: GstGLPlatform, major: *mut c_uint, minor: *mut c_uint) -> GstGLAPI;
pub fn gst_gl_context_get_current_gl_context(context_type: GstGLPlatform) -> uintptr_t;
@ -1681,6 +1776,10 @@ extern "C" {
pub fn gst_gl_context_set_shared_with(context: *mut GstGLContext, share: *mut GstGLContext);
pub fn gst_gl_context_set_window(context: *mut GstGLContext, window: *mut GstGLWindow) -> gboolean;
pub fn gst_gl_context_supports_glsl_profile_version(context: *mut GstGLContext, version: GstGLSLVersion, profile: GstGLSLProfile) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_gl_context_supports_precision(context: *mut GstGLContext, version: GstGLSLVersion, profile: GstGLSLProfile) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_gl_context_supports_precision_highp(context: *mut GstGLContext, version: GstGLSLVersion, profile: GstGLSLProfile) -> gboolean;
pub fn gst_gl_context_swap_buffers(context: *mut GstGLContext);
pub fn gst_gl_context_thread_add(context: *mut GstGLContext, func: GstGLContextThreadFunc, data: gpointer);
@ -1805,6 +1904,12 @@ extern "C" {
pub fn gst_gl_shader_new_default(context: *mut GstGLContext, error: *mut *mut glib::GError) -> *mut GstGLShader;
pub fn gst_gl_shader_new_link_with_stages(context: *mut GstGLContext, error: *mut *mut glib::GError, ...) -> *mut GstGLShader;
pub fn gst_gl_shader_new_with_stages(context: *mut GstGLContext, error: *mut *mut glib::GError, ...) -> *mut GstGLShader;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_gl_shader_string_fragment_external_oes_get_default(context: *mut GstGLContext, version: GstGLSLVersion, profile: GstGLSLProfile) -> *mut c_char;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_gl_shader_string_fragment_get_default(context: *mut GstGLContext, version: GstGLSLVersion, profile: GstGLSLProfile) -> *mut c_char;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_gl_shader_string_get_highest_precision(context: *mut GstGLContext, version: GstGLSLVersion, profile: GstGLSLProfile) -> *const c_char;
pub fn gst_gl_shader_attach(shader: *mut GstGLShader, stage: *mut GstGLSLStage) -> gboolean;
pub fn gst_gl_shader_attach_unlocked(shader: *mut GstGLShader, stage: *mut GstGLSLStage) -> gboolean;
pub fn gst_gl_shader_bind_attribute_location(shader: *mut GstGLShader, index: c_uint, name: *const c_char);
@ -1877,7 +1982,8 @@ extern "C" {
//=========================================================================
pub fn gst_gl_window_get_type() -> GType;
pub fn gst_gl_window_new(display: *mut GstGLDisplay) -> *mut GstGLWindow;
pub fn gst_gl_window_error_quark() -> glib::GQuark;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_gl_window_controls_viewport(window: *mut GstGLWindow) -> gboolean;
pub fn gst_gl_window_draw(window: *mut GstGLWindow);
pub fn gst_gl_window_get_context(window: *mut GstGLWindow) -> *mut GstGLContext;
pub fn gst_gl_window_get_display(window: *mut GstGLWindow) -> uintptr_t;
@ -1909,39 +2015,22 @@ extern "C" {
pub fn gst_buffer_pool_config_set_gl_allocation_params(config: *mut gst::GstStructure, params: *mut GstGLAllocationParams);
pub fn gst_context_get_gl_display(context: *mut gst::GstContext, display: *mut *mut GstGLDisplay) -> gboolean;
pub fn gst_context_set_gl_display(context: *mut gst::GstContext, display: *mut GstGLDisplay);
pub fn gst_gl_api_from_string(api_s: *const c_char) -> GstGLAPI;
pub fn gst_gl_api_to_string(api: GstGLAPI) -> *mut c_char;
pub fn gst_gl_check_extension(name: *const c_char, ext: *const c_char) -> gboolean;
pub fn gst_gl_element_propagate_display_context(element: *mut gst::GstElement, display: *mut GstGLDisplay);
pub fn gst_gl_ensure_element_data(element: gpointer, display_ptr: *mut *mut GstGLDisplay, other_context_ptr: *mut *mut GstGLContext) -> gboolean;
pub fn gst_gl_format_from_video_info(context: *mut GstGLContext, vinfo: *mut gst_video::GstVideoInfo, plane: c_uint) -> GstGLFormat;
pub fn gst_gl_format_type_n_bytes(format: c_uint, type_: c_uint) -> c_uint;
pub fn gst_gl_get_plane_data_size(info: *mut gst_video::GstVideoInfo, align: *mut gst_video::GstVideoAlignment, plane: c_uint) -> size_t;
pub fn gst_gl_get_plane_start(info: *mut gst_video::GstVideoInfo, valign: *mut gst_video::GstVideoAlignment, plane: c_uint) -> size_t;
pub fn gst_gl_handle_context_query(element: *mut gst::GstElement, query: *mut gst::GstQuery, display: *mut GstGLDisplay, context: *mut GstGLContext, other_context: *mut GstGLContext) -> gboolean;
pub fn gst_gl_handle_set_context(element: *mut gst::GstElement, context: *mut gst::GstContext, display: *mut *mut GstGLDisplay, other_context: *mut *mut GstGLContext) -> gboolean;
pub fn gst_gl_insert_debug_marker(context: *mut GstGLContext, format: *const c_char, ...);
pub fn gst_gl_platform_from_string(platform_s: *const c_char) -> GstGLPlatform;
pub fn gst_gl_platform_to_string(platform: GstGLPlatform) -> *mut c_char;
pub fn gst_gl_sized_gl_format_from_gl_format_type(context: *mut GstGLContext, format: c_uint, type_: c_uint) -> c_uint;
pub fn gst_gl_stereo_downmix_mode_get_type() -> GType;
pub fn gst_gl_sync_meta_api_get_type() -> GType;
pub fn gst_gl_texture_target_from_gl(target: c_uint) -> GstGLTextureTarget;
pub fn gst_gl_texture_target_from_string(str: *const c_char) -> GstGLTextureTarget;
pub fn gst_gl_texture_target_to_buffer_pool_option(target: GstGLTextureTarget) -> *const c_char;
pub fn gst_gl_texture_target_to_gl(target: GstGLTextureTarget) -> c_uint;
pub fn gst_gl_texture_target_to_string(target: GstGLTextureTarget) -> *const c_char;
pub fn gst_gl_value_get_texture_target_mask(value: *const gobject::GValue) -> GstGLTextureTarget;
pub fn gst_gl_value_set_texture_target(value: *mut gobject::GValue, target: GstGLTextureTarget) -> gboolean;
pub fn gst_gl_value_set_texture_target_from_mask(value: *mut gobject::GValue, target_mask: GstGLTextureTarget) -> gboolean;
pub fn gst_gl_version_to_glsl_version(gl_api: GstGLAPI, maj: c_int, min: c_int) -> GstGLSLVersion;
pub fn gst_glsl_error_quark() -> glib::GQuark;
pub fn gst_glsl_profile_from_string(string: *const c_char) -> GstGLSLProfile;
pub fn gst_glsl_profile_to_string(profile: GstGLSLProfile) -> *const c_char;
pub fn gst_glsl_string_get_version_profile(s: *const c_char, version: *mut GstGLSLVersion, profile: *mut GstGLSLProfile) -> gboolean;
pub fn gst_glsl_version_from_string(string: *const c_char) -> GstGLSLVersion;
pub fn gst_glsl_version_profile_from_string(string: *const c_char, version_ret: *mut GstGLSLVersion, profile_ret: *mut GstGLSLProfile) -> gboolean;
pub fn gst_glsl_version_profile_to_string(version: GstGLSLVersion, profile: GstGLSLProfile) -> *mut c_char;
pub fn gst_glsl_version_to_string(version: GstGLSLVersion) -> *const c_char;
pub fn gst_is_gl_base_memory(mem: *mut gst::GstMemory) -> gboolean;
pub fn gst_is_gl_buffer(mem: *mut gst::GstMemory) -> gboolean;
pub fn gst_is_gl_memory(mem: *mut gst::GstMemory) -> gboolean;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 16d8c2d)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -371,7 +371,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, GRAY8, GRAY16_LE, GRAY16_BE, RGB16, BGR16 }"),
("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 }"),
("(gint) GST_GL_CONTEXT_ERROR_CREATE_CONTEXT", "4"),
("(gint) GST_GL_CONTEXT_ERROR_FAILED", "0"),
("(gint) GST_GL_CONTEXT_ERROR_OLD_LIBS", "3"),
@ -400,7 +400,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, I420, YV12, NV12, NV21, YUY2, UYVY, Y41B, Y42B, Y444, GRAY8, GRAY16_LE, GRAY16_BE }"),
("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 }"),
("(guint) GST_GL_PLATFORM_ANY", "4294967295"),
("(guint) GST_GL_PLATFORM_CGL", "8"),
("(guint) GST_GL_PLATFORM_EAGL", "16"),
@ -417,9 +417,11 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_GL_RG", "33319"),
("(gint) GST_GL_RG8", "33323"),
("(gint) GST_GL_RGB", "6407"),
("(gint) GST_GL_RGB16", "32852"),
("(gint) GST_GL_RGB565", "36194"),
("(gint) GST_GL_RGB8", "32849"),
("(gint) GST_GL_RGBA", "6408"),
("(gint) GST_GL_RGBA16", "32859"),
("(gint) GST_GL_RGBA8", "32856"),
("(gint) GST_GL_STEREO_DOWNMIX_ANAGLYPH_AMBER_BLUE_DUBOIS", "2"),
("(gint) GST_GL_STEREO_DOWNMIX_ANAGLYPH_GREEN_MAGENTA_DUBOIS", "0"),
@ -434,6 +436,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_GL_UPLOAD_DONE", "1"),
("(gint) GST_GL_UPLOAD_ERROR", "-1"),
("(gint) GST_GL_UPLOAD_RECONFIGURE", "-3"),
("(gint) GST_GL_UPLOAD_UNSHARED_GL_CONTEXT", "-100"),
("(gint) GST_GL_UPLOAD_UNSUPPORTED", "-2"),
("(gint) GST_GL_WINDOW_ERROR_FAILED", "0"),
("(gint) GST_GL_WINDOW_ERROR_OLD_LIBS", "1"),

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 16d8c2d)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 16d8c2d)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -28,6 +28,7 @@ v1_8 = ["v1_6"]
v1_10 = ["v1_8"]
v1_12 = ["v1_10"]
v1_14 = ["v1_12"]
v1_16 = ["v1_14"]
dox = []
[lib]

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-mpegts-1.0";
let shared_libs = ["gstmpegts-1.0"];
let version = if cfg!(feature = "v1_14") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14") {
"1.14"
} else if cfg!(feature = "v1_12") {
"1.12"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -28,6 +28,7 @@ v1_8 = ["v1_6"]
v1_10 = ["v1_8"]
v1_12 = ["v1_10"]
v1_14 = ["v1_12"]
v1_16 = ["v1_14"]
dox = []
[lib]

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-net-1.0";
let shared_libs = ["gstnet-1.0"];
let version = if cfg!(feature = "v1_14") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14") {
"1.14"
} else if cfg!(feature = "v1_12") {
"1.12"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -31,6 +31,7 @@ v1_8 = ["v1_6"]
v1_10 = ["v1_8"]
v1_12 = ["v1_10"]
v1_14 = ["v1_12"]
v1_16 = ["v1_14"]
dox = []
[lib]

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-pbutils-1.0";
let shared_libs = ["gstpbutils-1.0"];
let version = if cfg!(feature = "v1_14") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14") {
"1.14"
} else if cfg!(feature = "v1_12") {
"1.12"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -95,7 +95,6 @@ pub struct GstAudioVisualizerClass {
impl ::std::fmt::Debug for GstAudioVisualizerClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioVisualizerClass @ {:?}", self as *const _))
.field("parent_class", &self.parent_class)
.field("setup", &self.setup)
.field("render", &self.render)
.field("decide_allocation", &self.decide_allocation)
@ -502,6 +501,7 @@ extern "C" {
pub fn gst_encoding_profile_get_type() -> GType;
pub fn gst_encoding_profile_find(targetname: *const c_char, profilename: *const c_char, category: *const c_char) -> *mut GstEncodingProfile;
pub fn gst_encoding_profile_from_discoverer(info: *mut GstDiscovererInfo) -> *mut GstEncodingProfile;
#[cfg(any(feature = "v1_12", feature = "dox"))]
pub fn gst_encoding_profile_copy(self_: *mut GstEncodingProfile) -> *mut GstEncodingProfile;
pub fn gst_encoding_profile_get_allow_dynamic_output(profile: *mut GstEncodingProfile) -> gboolean;
pub fn gst_encoding_profile_get_description(profile: *mut GstEncodingProfile) -> *const c_char;
@ -518,6 +518,7 @@ extern "C" {
pub fn gst_encoding_profile_is_equal(a: *mut GstEncodingProfile, b: *mut GstEncodingProfile) -> gboolean;
pub fn gst_encoding_profile_set_allow_dynamic_output(profile: *mut GstEncodingProfile, allow_dynamic_output: gboolean);
pub fn gst_encoding_profile_set_description(profile: *mut GstEncodingProfile, description: *const c_char);
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_encoding_profile_set_enabled(profile: *mut GstEncodingProfile, enabled: gboolean);
pub fn gst_encoding_profile_set_format(profile: *mut GstEncodingProfile, format: *mut gst::GstCaps);
pub fn gst_encoding_profile_set_name(profile: *mut GstEncodingProfile, name: *const c_char);
@ -556,20 +557,27 @@ extern "C" {
// Other functions
//=========================================================================
pub fn gst_codec_utils_aac_caps_set_level_and_profile(caps: *mut gst::GstCaps, audio_config: *const u8, len: c_uint) -> gboolean;
#[cfg(any(feature = "v1_10", feature = "dox"))]
pub fn gst_codec_utils_aac_get_channels(audio_config: *const u8, len: c_uint) -> c_uint;
pub fn gst_codec_utils_aac_get_index_from_sample_rate(rate: c_uint) -> c_int;
pub fn gst_codec_utils_aac_get_level(audio_config: *const u8, len: c_uint) -> *const c_char;
pub fn gst_codec_utils_aac_get_profile(audio_config: *const u8, len: c_uint) -> *const c_char;
#[cfg(any(feature = "v1_10", feature = "dox"))]
pub fn gst_codec_utils_aac_get_sample_rate(audio_config: *const u8, len: c_uint) -> c_uint;
pub fn gst_codec_utils_aac_get_sample_rate_from_index(sr_idx: c_uint) -> c_uint;
pub fn gst_codec_utils_h264_caps_set_level_and_profile(caps: *mut gst::GstCaps, sps: *const u8, len: c_uint) -> gboolean;
pub fn gst_codec_utils_h264_get_level(sps: *const u8, len: c_uint) -> *const c_char;
pub fn gst_codec_utils_h264_get_level_idc(level: *const c_char) -> u8;
pub fn gst_codec_utils_h264_get_profile(sps: *const u8, len: c_uint) -> *const c_char;
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_codec_utils_h265_caps_set_level_tier_and_profile(caps: *mut gst::GstCaps, profile_tier_level: *const u8, len: c_uint) -> gboolean;
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_codec_utils_h265_get_level(profile_tier_level: *const u8, len: c_uint) -> *const c_char;
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_codec_utils_h265_get_level_idc(level: *const c_char) -> u8;
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_codec_utils_h265_get_profile(profile_tier_level: *const u8, len: c_uint) -> *const c_char;
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_codec_utils_h265_get_tier(profile_tier_level: *const u8, len: c_uint) -> *const c_char;
pub fn gst_codec_utils_mpeg4video_caps_set_level_and_profile(caps: *mut gst::GstCaps, vis_obj_seq: *const u8, len: c_uint) -> gboolean;
pub fn gst_codec_utils_mpeg4video_get_level(vis_obj_seq: *const u8, len: c_uint) -> *const c_char;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -23,6 +23,7 @@ tempdir = "0.3"
[features]
v1_12 = []
v1_14 = ["v1_12"]
v1_16 = ["v1_14"]
dox = []
[lib]

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-player-1.0";
let shared_libs = ["gstplayer-1.0"];
let version = if cfg!(feature = "v1_14") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14") {
"1.14"
} else {
"1.12"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -335,6 +335,8 @@ extern "C" {
pub fn gst_player_get_position(player: *mut GstPlayer) -> gst::GstClockTime;
pub fn gst_player_get_rate(player: *mut GstPlayer) -> c_double;
pub fn gst_player_get_subtitle_uri(player: *mut GstPlayer) -> *mut c_char;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_player_get_subtitle_video_offset(player: *mut GstPlayer) -> i64;
pub fn gst_player_get_uri(player: *mut GstPlayer) -> *mut c_char;
pub fn gst_player_get_video_snapshot(player: *mut GstPlayer, format: GstPlayerSnapshotFormat, config: *const gst::GstStructure) -> *mut gst::GstSample;
pub fn gst_player_get_volume(player: *mut GstPlayer) -> c_double;
@ -354,6 +356,8 @@ extern "C" {
pub fn gst_player_set_subtitle_track(player: *mut GstPlayer, stream_index: c_int) -> gboolean;
pub fn gst_player_set_subtitle_track_enabled(player: *mut GstPlayer, enabled: gboolean);
pub fn gst_player_set_subtitle_uri(player: *mut GstPlayer, uri: *const c_char);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_player_set_subtitle_video_offset(player: *mut GstPlayer, offset: i64);
pub fn gst_player_set_uri(player: *mut GstPlayer, uri: *const c_char);
pub fn gst_player_set_video_track(player: *mut GstPlayer, stream_index: c_int) -> gboolean;
pub fn gst_player_set_video_track_enabled(player: *mut GstPlayer, enabled: gboolean);

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -37,6 +37,7 @@ v1_8 = ["v1_6"]
v1_10 = ["v1_8"]
v1_12 = ["v1_10"]
v1_14 = ["v1_12"]
v1_16 = ["v1_14"]
[lib]
name = "gstreamer_rtsp_server_sys"

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-rtsp-server-1.0";
let shared_libs = ["gstrtspserver-1.0"];
let version = if cfg!(feature = "v1_14") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14") {
"1.14"
} else if cfg!(feature = "v1_12") {
"1.12"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -86,9 +86,12 @@ pub const GST_RTSP_TRANSPORT_MODE_RECORD: GstRTSPTransportMode = 2;
// Callbacks
pub type GstRTSPClientSendFunc = Option<unsafe extern "C" fn(*mut GstRTSPClient, *mut gst_rtsp::GstRTSPMessage, gboolean, gpointer) -> gboolean>;
pub type GstRTSPClientSendMessagesFunc = Option<unsafe extern "C" fn(*mut GstRTSPClient, *mut gst_rtsp::GstRTSPMessage, c_uint, gboolean, gpointer) -> gboolean>;
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 GstRTSPSendFunc = Option<unsafe extern "C" fn(*mut gst::GstBuffer, u8, gpointer) -> gboolean>;
pub type GstRTSPSendListFunc = Option<unsafe extern "C" fn(*mut gst::GstBufferList, u8, gpointer) -> gboolean>;
pub type GstRTSPServerClientFilterFunc = Option<unsafe extern "C" fn(*mut GstRTSPServer, *mut GstRTSPClient, gpointer) -> GstRTSPFilterResult>;
pub type GstRTSPSessionFilterFunc = Option<unsafe extern "C" fn(*mut GstRTSPSession, *mut GstRTSPSessionMedia, gpointer) -> GstRTSPFilterResult>;
pub type GstRTSPSessionPoolFilterFunc = Option<unsafe extern "C" fn(*mut GstRTSPSessionPool, *mut GstRTSPSession, gpointer) -> GstRTSPFilterResult>;
@ -1188,21 +1191,28 @@ extern "C" {
#[cfg(any(feature = "v1_12", feature = "dox"))]
pub fn gst_rtsp_auth_add_digest(auth: *mut GstRTSPAuth, user: *const c_char, pass: *const c_char, token: *mut GstRTSPToken);
pub fn gst_rtsp_auth_get_default_token(auth: *mut GstRTSPAuth) -> *mut GstRTSPToken;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_auth_get_realm(auth: *mut GstRTSPAuth) -> *mut c_char;
#[cfg(any(feature = "v1_12", feature = "dox"))]
pub fn gst_rtsp_auth_get_supported_methods(auth: *mut GstRTSPAuth) -> gst_rtsp::GstRTSPAuthMethod;
pub fn gst_rtsp_auth_get_tls_authentication_mode(auth: *mut GstRTSPAuth) -> gio::GTlsAuthenticationMode;
pub fn gst_rtsp_auth_get_tls_certificate(auth: *mut GstRTSPAuth) -> *mut gio::GTlsCertificate;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_rtsp_auth_get_tls_database(auth: *mut GstRTSPAuth) -> *mut gio::GTlsDatabase;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_auth_parse_htdigest(auth: *mut GstRTSPAuth, path: *const c_char, token: *mut GstRTSPToken) -> gboolean;
pub fn gst_rtsp_auth_remove_basic(auth: *mut GstRTSPAuth, basic: *const c_char);
#[cfg(any(feature = "v1_12", feature = "dox"))]
pub fn gst_rtsp_auth_remove_digest(auth: *mut GstRTSPAuth, user: *const c_char);
pub fn gst_rtsp_auth_set_default_token(auth: *mut GstRTSPAuth, token: *mut GstRTSPToken);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_auth_set_realm(auth: *mut GstRTSPAuth, realm: *const c_char);
#[cfg(any(feature = "v1_12", feature = "dox"))]
pub fn gst_rtsp_auth_set_supported_methods(auth: *mut GstRTSPAuth, methods: gst_rtsp::GstRTSPAuthMethod);
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_rtsp_auth_set_tls_authentication_mode(auth: *mut GstRTSPAuth, mode: gio::GTlsAuthenticationMode);
pub fn gst_rtsp_auth_set_tls_certificate(auth: *mut GstRTSPAuth, cert: *mut gio::GTlsCertificate);
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_rtsp_auth_set_tls_database(auth: *mut GstRTSPAuth, database: *mut gio::GTlsDatabase);
//=========================================================================
@ -1225,6 +1235,8 @@ extern "C" {
pub fn gst_rtsp_client_set_connection(client: *mut GstRTSPClient, conn: *mut gst_rtsp::GstRTSPConnection) -> gboolean;
pub fn gst_rtsp_client_set_mount_points(client: *mut GstRTSPClient, mounts: *mut GstRTSPMountPoints);
pub fn gst_rtsp_client_set_send_func(client: *mut GstRTSPClient, func: GstRTSPClientSendFunc, user_data: gpointer, notify: glib::GDestroyNotify);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_client_set_send_messages_func(client: *mut GstRTSPClient, func: GstRTSPClientSendMessagesFunc, user_data: gpointer, notify: glib::GDestroyNotify);
pub fn gst_rtsp_client_set_session_pool(client: *mut GstRTSPClient, pool: *mut GstRTSPSessionPool);
pub fn gst_rtsp_client_set_thread_pool(client: *mut GstRTSPClient, pool: *mut GstRTSPThreadPool);
@ -1234,6 +1246,7 @@ extern "C" {
pub fn gst_rtsp_media_get_type() -> GType;
pub fn gst_rtsp_media_new(element: *mut gst::GstElement) -> *mut GstRTSPMedia;
pub fn gst_rtsp_media_collect_streams(media: *mut GstRTSPMedia);
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_rtsp_media_complete_pipeline(media: *mut GstRTSPMedia, transports: *mut glib::GPtrArray) -> gboolean;
pub fn gst_rtsp_media_create_stream(media: *mut GstRTSPMedia, payloader: *mut gst::GstElement, pad: *mut gst::GstPad) -> *mut GstRTSPStream;
pub fn gst_rtsp_media_find_stream(media: *mut GstRTSPMedia, control: *const c_char) -> *mut GstRTSPStream;
@ -1241,8 +1254,12 @@ extern "C" {
pub fn gst_rtsp_media_get_base_time(media: *mut GstRTSPMedia) -> gst::GstClockTime;
pub fn gst_rtsp_media_get_buffer_size(media: *mut GstRTSPMedia) -> c_uint;
pub fn gst_rtsp_media_get_clock(media: *mut GstRTSPMedia) -> *mut gst::GstClock;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_media_get_do_retransmission(media: *mut GstRTSPMedia) -> gboolean;
pub fn gst_rtsp_media_get_element(media: *mut GstRTSPMedia) -> *mut gst::GstElement;
pub fn gst_rtsp_media_get_latency(media: *mut GstRTSPMedia) -> c_uint;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_media_get_max_mcast_ttl(media: *mut GstRTSPMedia) -> c_uint;
pub fn gst_rtsp_media_get_multicast_iface(media: *mut GstRTSPMedia) -> *mut c_char;
pub fn gst_rtsp_media_get_permissions(media: *mut GstRTSPMedia) -> *mut GstRTSPPermissions;
pub fn gst_rtsp_media_get_profiles(media: *mut GstRTSPMedia) -> gst_rtsp::GstRTSPProfile;
@ -1257,6 +1274,8 @@ extern "C" {
pub fn gst_rtsp_media_get_time_provider(media: *mut GstRTSPMedia, address: *const c_char, port: u16) -> *mut gst_net::GstNetTimeProvider;
pub fn gst_rtsp_media_get_transport_mode(media: *mut GstRTSPMedia) -> GstRTSPTransportMode;
pub fn gst_rtsp_media_handle_sdp(media: *mut GstRTSPMedia, sdp: *mut gst_sdp::GstSDPMessage) -> 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;
pub fn gst_rtsp_media_is_reusable(media: *mut GstRTSPMedia) -> gboolean;
pub fn gst_rtsp_media_is_shared(media: *mut GstRTSPMedia) -> gboolean;
@ -1265,13 +1284,21 @@ extern "C" {
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;
pub fn gst_rtsp_media_seek(media: *mut GstRTSPMedia, range: *mut gst_rtsp::GstRTSPTimeRange) -> gboolean;
#[cfg(any(feature = "v1_14", 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_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);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_media_set_bind_mcast_address(media: *mut GstRTSPMedia, bind_mcast_addr: gboolean);
pub fn gst_rtsp_media_set_buffer_size(media: *mut GstRTSPMedia, size: c_uint);
pub fn gst_rtsp_media_set_clock(media: *mut GstRTSPMedia, clock: *mut gst::GstClock);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_media_set_do_retransmission(media: *mut GstRTSPMedia, do_retransmission: gboolean);
pub fn gst_rtsp_media_set_eos_shutdown(media: *mut GstRTSPMedia, eos_shutdown: gboolean);
pub fn gst_rtsp_media_set_latency(media: *mut GstRTSPMedia, latency: c_uint);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_media_set_max_mcast_ttl(media: *mut GstRTSPMedia, ttl: c_uint) -> gboolean;
pub fn gst_rtsp_media_set_multicast_iface(media: *mut GstRTSPMedia, multicast_iface: *const c_char);
pub fn gst_rtsp_media_set_permissions(media: *mut GstRTSPMedia, permissions: *mut GstRTSPPermissions);
pub fn gst_rtsp_media_set_pipeline_state(media: *mut GstRTSPMedia, state: gst::GstState);
@ -1307,8 +1334,12 @@ extern "C" {
pub fn gst_rtsp_media_factory_get_buffer_size(factory: *mut GstRTSPMediaFactory) -> c_uint;
#[cfg(any(feature = "v1_8", feature = "dox"))]
pub fn gst_rtsp_media_factory_get_clock(factory: *mut GstRTSPMediaFactory) -> *mut gst::GstClock;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_media_factory_get_do_retransmission(factory: *mut GstRTSPMediaFactory) -> gboolean;
pub fn gst_rtsp_media_factory_get_latency(factory: *mut GstRTSPMediaFactory) -> c_uint;
pub fn gst_rtsp_media_factory_get_launch(factory: *mut GstRTSPMediaFactory) -> *mut c_char;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_media_factory_get_max_mcast_ttl(factory: *mut GstRTSPMediaFactory) -> c_uint;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_rtsp_media_factory_get_media_gtype(factory: *mut GstRTSPMediaFactory) -> GType;
pub fn gst_rtsp_media_factory_get_multicast_iface(factory: *mut GstRTSPMediaFactory) -> *mut c_char;
@ -1320,16 +1351,24 @@ extern "C" {
pub fn gst_rtsp_media_factory_get_retransmission_time(factory: *mut GstRTSPMediaFactory) -> gst::GstClockTime;
pub fn gst_rtsp_media_factory_get_suspend_mode(factory: *mut GstRTSPMediaFactory) -> GstRTSPSuspendMode;
pub fn gst_rtsp_media_factory_get_transport_mode(factory: *mut GstRTSPMediaFactory) -> GstRTSPTransportMode;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_media_factory_is_bind_mcast_address(factory: *mut GstRTSPMediaFactory) -> gboolean;
pub fn gst_rtsp_media_factory_is_eos_shutdown(factory: *mut GstRTSPMediaFactory) -> gboolean;
pub fn gst_rtsp_media_factory_is_shared(factory: *mut GstRTSPMediaFactory) -> gboolean;
pub fn gst_rtsp_media_factory_is_stop_on_disonnect(factory: *mut GstRTSPMediaFactory) -> gboolean;
pub fn gst_rtsp_media_factory_set_address_pool(factory: *mut GstRTSPMediaFactory, pool: *mut GstRTSPAddressPool);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_media_factory_set_bind_mcast_address(factory: *mut GstRTSPMediaFactory, bind_mcast_addr: gboolean);
pub fn gst_rtsp_media_factory_set_buffer_size(factory: *mut GstRTSPMediaFactory, size: c_uint);
#[cfg(any(feature = "v1_8", feature = "dox"))]
pub fn gst_rtsp_media_factory_set_clock(factory: *mut GstRTSPMediaFactory, clock: *mut gst::GstClock);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_media_factory_set_do_retransmission(factory: *mut GstRTSPMediaFactory, do_retransmission: gboolean);
pub fn gst_rtsp_media_factory_set_eos_shutdown(factory: *mut GstRTSPMediaFactory, eos_shutdown: gboolean);
pub fn gst_rtsp_media_factory_set_latency(factory: *mut GstRTSPMediaFactory, latency: c_uint);
pub fn gst_rtsp_media_factory_set_launch(factory: *mut GstRTSPMediaFactory, launch: *const c_char);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_media_factory_set_max_mcast_ttl(factory: *mut GstRTSPMediaFactory, ttl: c_uint) -> gboolean;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_rtsp_media_factory_set_media_gtype(factory: *mut GstRTSPMediaFactory, media_gtype: GType);
pub fn gst_rtsp_media_factory_set_multicast_iface(factory: *mut GstRTSPMediaFactory, multicast_iface: *const c_char);
@ -1462,6 +1501,7 @@ extern "C" {
pub fn gst_rtsp_session_media_get_rtpinfo(media: *mut GstRTSPSessionMedia) -> *mut c_char;
pub fn gst_rtsp_session_media_get_rtsp_state(media: *mut GstRTSPSessionMedia) -> gst_rtsp::GstRTSPState;
pub fn gst_rtsp_session_media_get_transport(media: *mut GstRTSPSessionMedia, idx: c_uint) -> *mut GstRTSPStreamTransport;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_rtsp_session_media_get_transports(media: *mut GstRTSPSessionMedia) -> *mut glib::GPtrArray;
pub fn gst_rtsp_session_media_matches(media: *mut GstRTSPSessionMedia, path: *const c_char, matched: *mut c_int) -> gboolean;
pub fn gst_rtsp_session_media_set_rtsp_state(media: *mut GstRTSPSessionMedia, state: gst_rtsp::GstRTSPState);
@ -1488,8 +1528,11 @@ extern "C" {
//=========================================================================
pub fn gst_rtsp_stream_get_type() -> GType;
pub fn gst_rtsp_stream_new(idx: c_uint, payloader: *mut gst::GstElement, pad: *mut gst::GstPad) -> *mut GstRTSPStream;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_add_multicast_client_address(stream: *mut GstRTSPStream, destination: *const c_char, rtp_port: c_uint, rtcp_port: c_uint, family: gio::GSocketFamily) -> gboolean;
pub fn gst_rtsp_stream_add_transport(stream: *mut GstRTSPStream, trans: *mut GstRTSPStreamTransport) -> gboolean;
pub fn gst_rtsp_stream_allocate_udp_sockets(stream: *mut GstRTSPStream, family: gio::GSocketFamily, transport: *mut gst_rtsp::GstRTSPTransport, use_client_settings: gboolean) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_rtsp_stream_complete_stream(stream: *mut GstRTSPStream, transport: *const gst_rtsp::GstRTSPTransport) -> gboolean;
pub fn gst_rtsp_stream_get_address_pool(stream: *mut GstRTSPStream) -> *mut GstRTSPAddressPool;
#[cfg(any(feature = "v1_6", feature = "dox"))]
@ -1500,8 +1543,12 @@ extern "C" {
pub fn gst_rtsp_stream_get_dscp_qos(stream: *mut GstRTSPStream) -> c_int;
pub fn gst_rtsp_stream_get_index(stream: *mut GstRTSPStream) -> c_uint;
pub fn gst_rtsp_stream_get_joined_bin(stream: *mut GstRTSPStream) -> *mut gst::GstBin;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_get_max_mcast_ttl(stream: *mut GstRTSPStream) -> c_uint;
pub fn gst_rtsp_stream_get_mtu(stream: *mut GstRTSPStream) -> c_uint;
pub fn gst_rtsp_stream_get_multicast_address(stream: *mut GstRTSPStream, family: gio::GSocketFamily) -> *mut GstRTSPAddress;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_get_multicast_client_addresses(stream: *mut GstRTSPStream) -> *mut c_char;
pub fn gst_rtsp_stream_get_multicast_iface(stream: *mut GstRTSPStream) -> *mut c_char;
pub fn gst_rtsp_stream_get_profiles(stream: *mut GstRTSPStream) -> gst_rtsp::GstRTSPProfile;
pub fn gst_rtsp_stream_get_protocols(stream: *mut GstRTSPStream) -> gst_rtsp::GstRTSPLowerTrans;
@ -1510,6 +1557,7 @@ extern "C" {
pub fn gst_rtsp_stream_get_publish_clock_mode(stream: *mut GstRTSPStream) -> GstRTSPPublishClockMode;
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;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_rtsp_stream_get_rtcp_multicast_socket(stream: *mut GstRTSPStream, family: gio::GSocketFamily) -> *mut gio::GSocket;
pub fn gst_rtsp_stream_get_rtcp_socket(stream: *mut GstRTSPStream, family: gio::GSocketFamily) -> *mut gio::GSocket;
pub fn gst_rtsp_stream_get_rtp_multicast_socket(stream: *mut GstRTSPStream, family: gio::GSocketFamily) -> *mut gio::GSocket;
@ -1521,11 +1569,23 @@ extern "C" {
pub fn gst_rtsp_stream_get_srcpad(stream: *mut GstRTSPStream) -> *mut gst::GstPad;
pub fn gst_rtsp_stream_get_srtp_encoder(stream: *mut GstRTSPStream) -> *mut gst::GstElement;
pub fn gst_rtsp_stream_get_ssrc(stream: *mut GstRTSPStream, ssrc: *mut c_uint);
pub fn gst_rtsp_stream_get_ulpfec_enabled(stream: *mut GstRTSPStream) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_get_ulpfec_percentage(stream: *mut GstRTSPStream) -> c_uint;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_get_ulpfec_pt(stream: *mut GstRTSPStream) -> c_uint;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_handle_keymgmt(stream: *mut GstRTSPStream, keymgmt: *const c_char) -> gboolean;
pub fn gst_rtsp_stream_has_control(stream: *mut GstRTSPStream, control: *const c_char) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_is_bind_mcast_address(stream: *mut GstRTSPStream) -> gboolean;
pub fn gst_rtsp_stream_is_blocking(stream: *mut GstRTSPStream) -> gboolean;
pub fn gst_rtsp_stream_is_client_side(stream: *mut GstRTSPStream) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_rtsp_stream_is_complete(stream: *mut GstRTSPStream) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_rtsp_stream_is_receiver(stream: *mut GstRTSPStream) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_rtsp_stream_is_sender(stream: *mut GstRTSPStream) -> gboolean;
pub fn gst_rtsp_stream_is_transport_supported(stream: *mut GstRTSPStream, transport: *mut gst_rtsp::GstRTSPTransport) -> gboolean;
pub fn gst_rtsp_stream_join_bin(stream: *mut GstRTSPStream, bin: *mut gst::GstBin, rtpbin: *mut gst::GstElement, state: gst::GstState) -> gboolean;
@ -1535,17 +1595,28 @@ extern "C" {
pub fn gst_rtsp_stream_recv_rtcp(stream: *mut GstRTSPStream, buffer: *mut gst::GstBuffer) -> gst::GstFlowReturn;
pub fn gst_rtsp_stream_recv_rtp(stream: *mut GstRTSPStream, buffer: *mut gst::GstBuffer) -> gst::GstFlowReturn;
pub fn gst_rtsp_stream_remove_transport(stream: *mut GstRTSPStream, trans: *mut GstRTSPStreamTransport) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_request_aux_receiver(stream: *mut GstRTSPStream, sessid: c_uint) -> *mut gst::GstElement;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_rtsp_stream_request_aux_sender(stream: *mut GstRTSPStream, sessid: c_uint) -> *mut gst::GstElement;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_request_ulpfec_decoder(stream: *mut GstRTSPStream, rtpbin: *mut gst::GstElement, sessid: c_uint) -> *mut gst::GstElement;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_request_ulpfec_encoder(stream: *mut GstRTSPStream, sessid: c_uint) -> *mut gst::GstElement;
pub fn gst_rtsp_stream_reserve_address(stream: *mut GstRTSPStream, address: *const c_char, port: c_uint, n_ports: c_uint, ttl: c_uint) -> *mut GstRTSPAddress;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_rtsp_stream_seekable(stream: *mut GstRTSPStream) -> gboolean;
pub fn gst_rtsp_stream_set_address_pool(stream: *mut GstRTSPStream, pool: *mut GstRTSPAddressPool);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_set_bind_mcast_address(stream: *mut GstRTSPStream, bind_mcast_addr: gboolean);
pub fn gst_rtsp_stream_set_blocked(stream: *mut GstRTSPStream, blocked: gboolean) -> gboolean;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_rtsp_stream_set_buffer_size(stream: *mut GstRTSPStream, size: c_uint);
pub fn gst_rtsp_stream_set_client_side(stream: *mut GstRTSPStream, client_side: gboolean);
pub fn gst_rtsp_stream_set_control(stream: *mut GstRTSPStream, control: *const c_char);
pub fn gst_rtsp_stream_set_dscp_qos(stream: *mut GstRTSPStream, dscp_qos: c_int);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_set_max_mcast_ttl(stream: *mut GstRTSPStream, ttl: c_uint) -> gboolean;
pub fn gst_rtsp_stream_set_mtu(stream: *mut GstRTSPStream, mtu: c_uint);
pub fn gst_rtsp_stream_set_multicast_iface(stream: *mut GstRTSPStream, multicast_iface: *const c_char);
pub fn gst_rtsp_stream_set_profiles(stream: *mut GstRTSPStream, profiles: gst_rtsp::GstRTSPProfile);
@ -1556,9 +1627,15 @@ extern "C" {
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, time: gst::GstClockTime);
pub fn gst_rtsp_stream_set_seqnum_offset(stream: *mut GstRTSPStream, seqnum: u16);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_set_ulpfec_percentage(stream: *mut GstRTSPStream, percentage: c_uint);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_set_ulpfec_pt(stream: *mut GstRTSPStream, pt: c_uint);
pub fn gst_rtsp_stream_transport_filter(stream: *mut GstRTSPStream, func: GstRTSPStreamTransportFilterFunc, user_data: gpointer) -> *mut glib::GList;
pub fn gst_rtsp_stream_unblock_linked(stream: *mut GstRTSPStream) -> gboolean;
pub fn gst_rtsp_stream_update_crypto(stream: *mut GstRTSPStream, ssrc: c_uint, crypto: *mut gst::GstCaps) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_verify_mcast_ttl(stream: *mut GstRTSPStream, ttl: c_uint) -> gboolean;
//=========================================================================
// GstRTSPStreamTransport
@ -1571,12 +1648,21 @@ extern "C" {
pub fn gst_rtsp_stream_transport_get_url(trans: *mut GstRTSPStreamTransport) -> *const gst_rtsp::GstRTSPUrl;
pub fn gst_rtsp_stream_transport_is_timed_out(trans: *mut GstRTSPStreamTransport) -> gboolean;
pub fn gst_rtsp_stream_transport_keep_alive(trans: *mut GstRTSPStreamTransport);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_transport_message_sent(trans: *mut GstRTSPStreamTransport);
pub fn gst_rtsp_stream_transport_recv_data(trans: *mut GstRTSPStreamTransport, channel: c_uint, buffer: *mut gst::GstBuffer) -> gst::GstFlowReturn;
pub fn gst_rtsp_stream_transport_send_rtcp(trans: *mut GstRTSPStreamTransport, buffer: *mut gst::GstBuffer) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_transport_send_rtcp_list(trans: *mut GstRTSPStreamTransport, buffer_list: *mut gst::GstBufferList) -> gboolean;
pub fn gst_rtsp_stream_transport_send_rtp(trans: *mut GstRTSPStreamTransport, buffer: *mut gst::GstBuffer) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_transport_send_rtp_list(trans: *mut GstRTSPStreamTransport, buffer_list: *mut gst::GstBufferList) -> gboolean;
pub fn gst_rtsp_stream_transport_set_active(trans: *mut GstRTSPStreamTransport, active: gboolean) -> gboolean;
pub fn gst_rtsp_stream_transport_set_callbacks(trans: *mut GstRTSPStreamTransport, send_rtp: GstRTSPSendFunc, send_rtcp: GstRTSPSendFunc, user_data: gpointer, notify: glib::GDestroyNotify);
pub fn gst_rtsp_stream_transport_set_keepalive(trans: *mut GstRTSPStreamTransport, keep_alive: GstRTSPKeepAliveFunc, user_data: gpointer, notify: glib::GDestroyNotify);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_stream_transport_set_list_callbacks(trans: *mut GstRTSPStreamTransport, send_rtp_list: GstRTSPSendListFunc, send_rtcp_list: GstRTSPSendListFunc, user_data: gpointer, notify: glib::GDestroyNotify);
pub fn gst_rtsp_stream_transport_set_message_sent(trans: *mut GstRTSPStreamTransport, message_sent: GstRTSPMessageSentFunc, user_data: gpointer, notify: glib::GDestroyNotify);
pub fn gst_rtsp_stream_transport_set_timed_out(trans: *mut GstRTSPStreamTransport, timedout: gboolean);
pub fn gst_rtsp_stream_transport_set_transport(trans: *mut GstRTSPStreamTransport, tr: *mut gst_rtsp::GstRTSPTransport);
pub fn gst_rtsp_stream_transport_set_url(trans: *mut GstRTSPStreamTransport, url: *const gst_rtsp::GstRTSPUrl);
@ -1599,6 +1685,7 @@ extern "C" {
pub fn gst_rtsp_params_set(client: *mut GstRTSPClient, ctx: *mut GstRTSPContext) -> gst_rtsp::GstRTSPResult;
pub fn gst_rtsp_sdp_from_media(sdp: *mut gst_sdp::GstSDPMessage, info: *mut GstSDPInfo, media: *mut GstRTSPMedia) -> gboolean;
pub fn gst_rtsp_sdp_from_stream(sdp: *mut gst_sdp::GstSDPMessage, info: *mut GstSDPInfo, stream: *mut GstRTSPStream) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_rtsp_sdp_make_media(sdp: *mut gst_sdp::GstSDPMessage, info: *mut GstSDPInfo, stream: *mut GstRTSPStream, caps: *mut gst::GstCaps, profile: gst_rtsp::GstRTSPProfile) -> gboolean;
}

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -33,6 +33,7 @@ v1_8 = ["v1_6"]
v1_10 = ["v1_8"]
v1_12 = ["v1_10"]
v1_14 = ["v1_12"]
v1_16 = ["v1_14"]
[lib]
name = "gstreamer_rtsp_sys"

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-rtsp-1.0";
let shared_libs = ["gstrtsp-1.0"];
let version = if cfg!(feature = "v1_14") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14") {
"1.14"
} else if cfg!(feature = "v1_12") {
"1.12"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -119,7 +119,9 @@ pub const GST_RTSP_HDR_PIPELINED_REQUESTS: GstRTSPHeaderField = 83;
pub const GST_RTSP_HDR_MEDIA_PROPERTIES: GstRTSPHeaderField = 84;
pub const GST_RTSP_HDR_SEEK_STYLE: GstRTSPHeaderField = 85;
pub const GST_RTSP_HDR_ACCEPT_RANGES: GstRTSPHeaderField = 86;
pub const GST_RTSP_HDR_LAST: GstRTSPHeaderField = 87;
pub const GST_RTSP_HDR_FRAMES: GstRTSPHeaderField = 87;
pub const GST_RTSP_HDR_RATE_CONTROL: GstRTSPHeaderField = 88;
pub const GST_RTSP_HDR_LAST: GstRTSPHeaderField = 89;
pub type GstRTSPMsgType = c_int;
pub const GST_RTSP_MESSAGE_INVALID: GstRTSPMsgType = 0;
@ -379,7 +381,8 @@ pub struct GstRTSPMessage {
pub hdr_fields: *mut glib::GArray,
pub body: *mut u8,
pub body_size: c_uint,
pub _gst_reserved: [gpointer; 4],
pub body_buffer: *mut gst::GstBuffer,
pub _gst_reserved: [gpointer; 3],
}
impl ::std::fmt::Debug for GstRTSPMessage {
@ -735,6 +738,7 @@ extern "C" {
pub fn gst_rtsp_connection_clear_auth_params(conn: *mut GstRTSPConnection);
pub fn gst_rtsp_connection_close(conn: *mut GstRTSPConnection) -> GstRTSPResult;
pub fn gst_rtsp_connection_connect(conn: *mut GstRTSPConnection, timeout: *mut glib::GTimeVal) -> 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;
pub fn gst_rtsp_connection_do_tunnel(conn: *mut GstRTSPConnection, conn2: *mut GstRTSPConnection) -> GstRTSPResult;
pub fn gst_rtsp_connection_flush(conn: *mut GstRTSPConnection, flush: gboolean) -> GstRTSPResult;
@ -760,6 +764,8 @@ extern "C" {
pub fn gst_rtsp_connection_receive(conn: *mut GstRTSPConnection, message: *mut GstRTSPMessage, timeout: *mut glib::GTimeVal) -> GstRTSPResult;
pub fn gst_rtsp_connection_reset_timeout(conn: *mut GstRTSPConnection) -> GstRTSPResult;
pub fn gst_rtsp_connection_send(conn: *mut GstRTSPConnection, message: *mut GstRTSPMessage, timeout: *mut glib::GTimeVal) -> GstRTSPResult;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_connection_send_messages(conn: *mut GstRTSPConnection, messages: *mut GstRTSPMessage, n_messages: c_uint, timeout: *mut glib::GTimeVal) -> GstRTSPResult;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_rtsp_connection_set_accept_certificate_func(conn: *mut GstRTSPConnection, func: GstRTSPConnectionAcceptCertificateFunc, user_data: gpointer, destroy_notify: glib::GDestroyNotify);
pub fn gst_rtsp_connection_set_auth(conn: *mut GstRTSPConnection, method: GstRTSPAuthMethod, user: *const c_char, pass: *const c_char) -> GstRTSPResult;
@ -794,10 +800,14 @@ extern "C" {
pub fn gst_rtsp_message_dump(msg: *mut GstRTSPMessage) -> GstRTSPResult;
pub fn gst_rtsp_message_free(msg: *mut GstRTSPMessage) -> GstRTSPResult;
pub fn gst_rtsp_message_get_body(msg: *const GstRTSPMessage, data: *mut *mut u8, size: *mut c_uint) -> GstRTSPResult;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_message_get_body_buffer(msg: *const GstRTSPMessage, buffer: *mut *mut gst::GstBuffer) -> GstRTSPResult;
pub fn gst_rtsp_message_get_header(msg: *const GstRTSPMessage, field: GstRTSPHeaderField, value: *mut *mut c_char, indx: c_int) -> GstRTSPResult;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_rtsp_message_get_header_by_name(msg: *mut GstRTSPMessage, header: *const c_char, value: *mut *mut c_char, index: c_int) -> GstRTSPResult;
pub fn gst_rtsp_message_get_type(msg: *mut GstRTSPMessage) -> GstRTSPMsgType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_message_has_body_buffer(msg: *const GstRTSPMessage) -> gboolean;
pub fn gst_rtsp_message_init(msg: *mut GstRTSPMessage) -> GstRTSPResult;
pub fn gst_rtsp_message_init_data(msg: *mut GstRTSPMessage, channel: u8) -> GstRTSPResult;
pub fn gst_rtsp_message_init_request(msg: *mut GstRTSPMessage, method: GstRTSPMethod, uri: *const c_char) -> GstRTSPResult;
@ -811,8 +821,14 @@ extern "C" {
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_rtsp_message_remove_header_by_name(msg: *mut GstRTSPMessage, header: *const c_char, index: c_int) -> GstRTSPResult;
pub fn gst_rtsp_message_set_body(msg: *mut GstRTSPMessage, data: *const u8, size: c_uint) -> GstRTSPResult;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_message_set_body_buffer(msg: *mut GstRTSPMessage, buffer: *mut gst::GstBuffer) -> GstRTSPResult;
pub fn gst_rtsp_message_steal_body(msg: *mut GstRTSPMessage, data: *mut *mut u8, size: *mut c_uint) -> GstRTSPResult;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_message_steal_body_buffer(msg: *mut GstRTSPMessage, buffer: *mut *mut gst::GstBuffer) -> GstRTSPResult;
pub fn gst_rtsp_message_take_body(msg: *mut GstRTSPMessage, data: *mut u8, size: c_uint) -> GstRTSPResult;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_message_take_body_buffer(msg: *mut GstRTSPMessage, buffer: *mut gst::GstBuffer) -> GstRTSPResult;
pub fn gst_rtsp_message_take_header(msg: *mut GstRTSPMessage, field: GstRTSPHeaderField, value: *mut c_char) -> GstRTSPResult;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_rtsp_message_take_header_by_name(msg: *mut GstRTSPMessage, header: *const c_char, value: *mut c_char) -> GstRTSPResult;
@ -861,6 +877,8 @@ extern "C" {
pub fn gst_rtsp_watch_get_send_backlog(watch: *mut GstRTSPWatch, bytes: *mut size_t, messages: *mut c_uint);
pub fn gst_rtsp_watch_reset(watch: *mut GstRTSPWatch);
pub fn gst_rtsp_watch_send_message(watch: *mut GstRTSPWatch, message: *mut GstRTSPMessage, id: *mut c_uint) -> GstRTSPResult;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_watch_send_messages(watch: *mut GstRTSPWatch, messages: *mut GstRTSPMessage, n_messages: c_uint, id: *mut c_uint) -> GstRTSPResult;
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_rtsp_watch_set_flushing(watch: *mut GstRTSPWatch, flushing: gboolean);
#[cfg(any(feature = "v1_2", feature = "dox"))]
@ -895,6 +913,8 @@ extern "C" {
pub fn gst_rtsp_find_method(method: *const c_char) -> GstRTSPMethod;
#[cfg(any(feature = "v1_12", feature = "dox"))]
pub fn gst_rtsp_generate_digest_auth_response(algorithm: *const c_char, method: *const c_char, realm: *const c_char, username: *const c_char, password: *const c_char, uri: *const c_char, nonce: *const c_char) -> *mut c_char;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_rtsp_generate_digest_auth_response_from_md5(algorithm: *const c_char, method: *const c_char, md5: *const c_char, uri: *const c_char, nonce: *const c_char) -> *mut c_char;
pub fn gst_rtsp_header_allow_multiple(field: GstRTSPHeaderField) -> gboolean;
pub fn gst_rtsp_header_as_text(field: GstRTSPHeaderField) -> *const c_char;
pub fn gst_rtsp_message_new(msg: *mut *mut GstRTSPMessage) -> GstRTSPResult;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -324,6 +324,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_RTSP_HDR_DATE", "18"),
("(gint) GST_RTSP_HDR_ETAG", "54"),
("(gint) GST_RTSP_HDR_EXPIRES", "19"),
("(gint) GST_RTSP_HDR_FRAMES", "87"),
("(gint) GST_RTSP_HDR_FROM", "20"),
("(gint) GST_RTSP_HDR_GUID", "48"),
("(gint) GST_RTSP_HDR_HOST", "77"),
@ -332,7 +333,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_RTSP_HDR_INVALID", "0"),
("(gint) GST_RTSP_HDR_KEYMGMT", "82"),
("(gint) GST_RTSP_HDR_LANGUAGE", "51"),
("(gint) GST_RTSP_HDR_LAST", "87"),
("(gint) GST_RTSP_HDR_LAST", "89"),
("(gint) GST_RTSP_HDR_LAST_MODIFIED", "22"),
("(gint) GST_RTSP_HDR_LOCATION", "53"),
("(gint) GST_RTSP_HDR_MAX_ASM_WIDTH", "50"),
@ -344,6 +345,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_RTSP_HDR_PROXY_REQUIRE", "24"),
("(gint) GST_RTSP_HDR_PUBLIC", "25"),
("(gint) GST_RTSP_HDR_RANGE", "26"),
("(gint) GST_RTSP_HDR_RATE_CONTROL", "88"),
("(gint) GST_RTSP_HDR_REAL_CHALLENGE1", "41"),
("(gint) GST_RTSP_HDR_REAL_CHALLENGE2", "42"),
("(gint) GST_RTSP_HDR_REAL_CHALLENGE3", "43"),

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -27,6 +27,7 @@ v1_8_1 = ["v1_8"]
v1_10 = ["v1_8_1"]
v1_12 = ["v1_10"]
v1_14 = ["v1_12"]
v1_16 = ["v1_14"]
[lib]
name = "gstreamer_sdp_sys"

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-sdp-1.0";
let shared_libs = ["gstsdp-1.0"];
let version = if cfg!(feature = "v1_14") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14") {
"1.14"
} else if cfg!(feature = "v1_12") {
"1.12"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -28,6 +28,7 @@ pub type GstMIKEYEncAlg = c_int;
pub const GST_MIKEY_ENC_NULL: GstMIKEYEncAlg = 0;
pub const GST_MIKEY_ENC_AES_CM_128: GstMIKEYEncAlg = 1;
pub const GST_MIKEY_ENC_AES_KW_128: GstMIKEYEncAlg = 2;
pub const GST_MIKEY_ENC_AES_GCM_128: GstMIKEYEncAlg = 6;
pub type GstMIKEYKVType = c_int;
pub const GST_MIKEY_KV_NULL: GstMIKEYKVType = 0;
@ -82,6 +83,7 @@ pub const GST_MIKEY_SP_SRTP_FEC_ORDER: GstMIKEYSecSRTP = 9;
pub const GST_MIKEY_SP_SRTP_SRTP_AUTH: GstMIKEYSecSRTP = 10;
pub const GST_MIKEY_SP_SRTP_AUTH_TAG_LEN: GstMIKEYSecSRTP = 11;
pub const GST_MIKEY_SP_SRTP_SRTP_PREFIX_LEN: GstMIKEYSecSRTP = 12;
pub const GST_MIKEY_SP_SRTP_AEAD_AUTH_TAG_LEN: GstMIKEYSecSRTP = 20;
pub type GstMIKEYTSType = c_int;
pub const GST_MIKEY_TS_TYPE_NTP_UTC: GstMIKEYTSType = 0;
@ -822,6 +824,8 @@ extern "C" {
pub fn gst_sdp_message_zones_len(msg: *const GstSDPMessage) -> c_uint;
pub fn gst_sdp_message_as_uri(scheme: *const c_char, msg: *const GstSDPMessage) -> *mut c_char;
pub fn gst_sdp_message_new(msg: *mut *mut GstSDPMessage) -> GstSDPResult;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_sdp_message_new_from_text(text: *const c_char, msg: *mut *mut GstSDPMessage) -> GstSDPResult;
pub fn gst_sdp_message_parse_buffer(data: *const u8, size: c_uint, msg: *mut GstSDPMessage) -> GstSDPResult;
pub fn gst_sdp_message_parse_uri(uri: *const c_char, msg: *mut GstSDPMessage) -> GstSDPResult;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -277,6 +277,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MIKEY_CACHE_FOR_CSB", "2"),
("(gint) GST_MIKEY_CACHE_NONE", "0"),
("(gint) GST_MIKEY_ENC_AES_CM_128", "1"),
("(gint) GST_MIKEY_ENC_AES_GCM_128", "6"),
("(gint) GST_MIKEY_ENC_AES_KW_128", "2"),
("(gint) GST_MIKEY_ENC_NULL", "0"),
("(gint) GST_MIKEY_KD_TEK", "2"),
@ -304,6 +305,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MIKEY_PT_T", "5"),
("(gint) GST_MIKEY_PT_V", "9"),
("(gint) GST_MIKEY_SEC_PROTO_SRTP", "0"),
("(gint) GST_MIKEY_SP_SRTP_AEAD_AUTH_TAG_LEN", "20"),
("(gint) GST_MIKEY_SP_SRTP_AUTH_ALG", "2"),
("(gint) GST_MIKEY_SP_SRTP_AUTH_KEY_LEN", "3"),
("(gint) GST_MIKEY_SP_SRTP_AUTH_TAG_LEN", "11"),

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -24,6 +24,7 @@ v1_8 = ["v1_6"]
v1_10 = ["v1_8"]
v1_12 = ["v1_10"]
v1_14 = ["v1_12"]
v1_16 = ["v1_14"]
dox = []
[lib]

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-1.0";
let shared_libs = ["gstreamer-1.0"];
let version = if cfg!(feature = "v1_14") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14") {
"1.14"
} else if cfg!(feature = "v1_12") {
"1.12"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -251,6 +251,7 @@ pub const GST_QUERY_ACCEPT_CAPS: GstQueryType = 40963;
pub const GST_QUERY_CAPS: GstQueryType = 43523;
pub const GST_QUERY_DRAIN: GstQueryType = 46086;
pub const GST_QUERY_CONTEXT: GstQueryType = 48643;
pub const GST_QUERY_BITRATE: GstQueryType = 51202;
pub type GstRank = c_int;
pub const GST_RANK_NONE: GstRank = 0;
@ -428,6 +429,7 @@ pub const GST_ELEMENT_FACTORY_KLASS_DEPAYLOADER: *const c_char = b"Depayloader\0
pub const GST_ELEMENT_FACTORY_KLASS_ENCODER: *const c_char = b"Encoder\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_ENCRYPTOR: *const c_char = b"Encryptor\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_FORMATTER: *const c_char = b"Formatter\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_HARDWARE: *const c_char = b"Hardware\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_MEDIA_AUDIO: *const c_char = b"Audio\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_MEDIA_IMAGE: *const c_char = b"Image\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_MEDIA_METADATA: *const c_char = b"Metadata\0" as *const u8 as *const c_char;
@ -486,6 +488,7 @@ pub const GST_PARAM_MUTABLE_PLAYING: c_int = 4096;
pub const GST_PARAM_MUTABLE_READY: c_int = 1024;
pub const GST_PARAM_USER_SHIFT: c_int = 65536;
pub const GST_PROTECTION_SYSTEM_ID_CAPS_FIELD: *const c_char = b"protection-system\0" as *const u8 as *const c_char;
pub const GST_PROTECTION_UNSPECIFIED_SYSTEM_ID: *const c_char = b"unspecified-system-id\0" as *const u8 as *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;
@ -747,6 +750,7 @@ pub const GST_MESSAGE_PROPERTY_NOTIFY: GstMessageType = 2147483651;
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 = 2147483654;
pub const GST_MESSAGE_ANY: GstMessageType = 4294967295;
pub type GstMetaFlags = c_uint;
@ -1910,8 +1914,8 @@ pub struct GstMiniObject {
pub copy: GstMiniObjectCopyFunction,
pub dispose: GstMiniObjectDisposeFunction,
pub free: GstMiniObjectFreeFunction,
pub n_qdata: c_uint,
pub qdata: gpointer,
pub priv_uint: c_uint,
pub priv_pointer: gpointer,
}
impl ::std::fmt::Debug for GstMiniObject {
@ -4070,6 +4074,8 @@ extern "C" {
pub fn gst_buffer_new() -> *mut GstBuffer;
pub fn gst_buffer_new_allocate(allocator: *mut GstAllocator, size: size_t, params: *mut GstAllocationParams) -> *mut GstBuffer;
pub fn gst_buffer_new_wrapped(data: gpointer, size: size_t) -> *mut GstBuffer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_buffer_new_wrapped_bytes(bytes: *mut glib::GBytes) -> *mut GstBuffer;
pub fn gst_buffer_new_wrapped_full(flags: GstMemoryFlags, data: gpointer, maxsize: size_t, offset: size_t, size: size_t, user_data: gpointer, notify: glib::GDestroyNotify) -> *mut GstBuffer;
pub fn gst_buffer_add_meta(buffer: *mut GstBuffer, info: *const GstMetaInfo, params: gpointer) -> *mut GstMeta;
#[cfg(any(feature = "v1_6", feature = "dox"))]
@ -4171,6 +4177,8 @@ extern "C" {
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_caps_append_structure_full(caps: *mut GstCaps, structure: *mut GstStructure, features: *mut GstCapsFeatures);
pub fn gst_caps_can_intersect(caps1: *const GstCaps, caps2: *const GstCaps) -> gboolean;
pub fn gst_caps_copy(caps: *const GstCaps) -> *mut GstCaps;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_caps_copy_nth(caps: *const GstCaps, nth: c_uint) -> *mut GstCaps;
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_caps_filter_and_map_in_place(caps: *mut GstCaps, func: GstCapsFilterMapFunc, user_data: gpointer);
@ -4204,6 +4212,8 @@ extern "C" {
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);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_caps_set_features_simple(caps: *mut GstCaps, features: *mut GstCapsFeatures);
pub fn gst_caps_set_simple(caps: *mut GstCaps, field: *const c_char, ...);
//pub fn gst_caps_set_simple_valist(caps: *mut GstCaps, field: *const c_char, varargs: /*Unimplemented*/va_list);
pub fn gst_caps_set_value(caps: *mut GstCaps, field: *const c_char, value: *const gobject::GValue);
@ -4408,6 +4418,8 @@ extern "C" {
pub fn gst_event_parse_protection(event: *mut GstEvent, system_id: *mut *const c_char, data: *mut *mut GstBuffer, origin: *mut *const c_char);
pub fn gst_event_parse_qos(event: *mut GstEvent, type_: *mut GstQOSType, proportion: *mut c_double, diff: *mut GstClockTimeDiff, timestamp: *mut GstClockTime);
pub fn gst_event_parse_seek(event: *mut GstEvent, rate: *mut c_double, format: *mut GstFormat, flags: *mut GstSeekFlags, start_type: *mut GstSeekType, start: *mut i64, stop_type: *mut GstSeekType, stop: *mut i64);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_event_parse_seek_trickmode_interval(event: *mut GstEvent, interval: *mut GstClockTime);
pub fn gst_event_parse_segment(event: *mut GstEvent, segment: *mut *const GstSegment);
pub fn gst_event_parse_segment_done(event: *mut GstEvent, format: *mut GstFormat, position: *mut i64);
#[cfg(any(feature = "v1_10", feature = "dox"))]
@ -4430,6 +4442,8 @@ extern "C" {
pub fn gst_event_set_group_id(event: *mut GstEvent, group_id: c_uint);
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_event_set_running_time_offset(event: *mut GstEvent, offset: i64);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_event_set_seek_trickmode_interval(event: *mut GstEvent, interval: GstClockTime);
pub fn gst_event_set_seqnum(event: *mut GstEvent, seqnum: u32);
#[cfg(any(feature = "v1_10", feature = "dox"))]
pub fn gst_event_set_stream(event: *mut GstEvent, stream: *mut GstStream);
@ -4484,6 +4498,8 @@ extern "C" {
pub fn gst_message_new_custom(type_: GstMessageType, src: *mut GstObject, structure: *mut GstStructure) -> *mut GstMessage;
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_message_new_device_added(src: *mut GstObject, device: *mut GstDevice) -> *mut GstMessage;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_message_new_device_changed(src: *mut GstObject, device: *mut GstDevice, changed_device: *mut GstDevice) -> *mut GstMessage;
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_message_new_device_removed(src: *mut GstObject, device: *mut GstDevice) -> *mut GstMessage;
pub fn gst_message_new_duration_changed(src: *mut GstObject) -> *mut GstMessage;
@ -4544,6 +4560,8 @@ extern "C" {
pub fn gst_message_parse_context_type(message: *mut GstMessage, context_type: *mut *const c_char) -> gboolean;
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_message_parse_device_added(message: *mut GstMessage, device: *mut *mut GstDevice);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_message_parse_device_changed(message: *mut GstMessage, device: *mut *mut GstDevice, changed_device: *mut *mut GstDevice);
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_message_parse_device_removed(message: *mut GstMessage, device: *mut *mut GstDevice);
pub fn gst_message_parse_error(message: *mut GstMessage, gerror: *mut *mut glib::GError, debug: *mut *mut c_char);
@ -4602,6 +4620,10 @@ extern "C" {
//=========================================================================
// GstMeta
//=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_meta_compare_seqnum(meta1: *const GstMeta, meta2: *const GstMeta) -> c_int;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_meta_get_seqnum(meta: *const GstMeta) -> u64;
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_meta_api_type_get_tags(api: GType) -> *const *const c_char;
pub fn gst_meta_api_type_has_tag(api: GType, tag: glib::GQuark) -> gboolean;
@ -4612,6 +4634,8 @@ extern "C" {
//=========================================================================
// GstMiniObject
//=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_mini_object_add_parent(object: *mut GstMiniObject, parent: *mut GstMiniObject);
pub fn gst_mini_object_copy(mini_object: *const GstMiniObject) -> *mut GstMiniObject;
pub fn gst_mini_object_get_qdata(object: *mut GstMiniObject, quark: glib::GQuark) -> gpointer;
pub fn gst_mini_object_init(mini_object: *mut GstMiniObject, flags: c_uint, type_: GType, copy_func: GstMiniObjectCopyFunction, dispose_func: GstMiniObjectDisposeFunction, free_func: GstMiniObjectFreeFunction);
@ -4619,6 +4643,8 @@ extern "C" {
pub fn gst_mini_object_lock(object: *mut GstMiniObject, flags: GstLockFlags) -> gboolean;
pub fn gst_mini_object_make_writable(mini_object: *mut GstMiniObject) -> *mut GstMiniObject;
pub fn gst_mini_object_ref(mini_object: *mut GstMiniObject) -> *mut GstMiniObject;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_mini_object_remove_parent(object: *mut GstMiniObject, parent: *mut GstMiniObject);
pub fn gst_mini_object_set_qdata(object: *mut GstMiniObject, quark: glib::GQuark, data: gpointer, destroy: glib::GDestroyNotify);
pub fn gst_mini_object_steal_qdata(object: *mut GstMiniObject, quark: glib::GQuark) -> gpointer;
pub fn gst_mini_object_unlock(object: *mut GstMiniObject, flags: GstLockFlags);
@ -4658,10 +4684,14 @@ extern "C" {
pub fn gst_poll_add_fd(set: *mut GstPoll, fd: *mut GstPollFD) -> gboolean;
pub fn gst_poll_fd_can_read(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean;
pub fn gst_poll_fd_can_write(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_poll_fd_ctl_pri(set: *mut GstPoll, fd: *mut GstPollFD, active: gboolean) -> gboolean;
pub fn gst_poll_fd_ctl_read(set: *mut GstPoll, fd: *mut GstPollFD, active: gboolean) -> gboolean;
pub fn gst_poll_fd_ctl_write(set: *mut GstPoll, fd: *mut GstPollFD, active: gboolean) -> gboolean;
pub fn gst_poll_fd_has_closed(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean;
pub fn gst_poll_fd_has_error(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_poll_fd_has_pri(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean;
pub fn gst_poll_fd_ignored(set: *mut GstPoll, fd: *mut GstPollFD);
pub fn gst_poll_free(set: *mut GstPoll);
pub fn gst_poll_get_read_gpollfd(set: *mut GstPoll, fd: *mut glib::GPollFD);
@ -4710,6 +4740,8 @@ extern "C" {
pub fn gst_query_get_type() -> GType;
pub fn gst_query_new_accept_caps(caps: *mut GstCaps) -> *mut GstQuery;
pub fn gst_query_new_allocation(caps: *mut GstCaps, need_pool: gboolean) -> *mut GstQuery;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_query_new_bitrate() -> *mut GstQuery;
pub fn gst_query_new_buffering(format: GstFormat) -> *mut GstQuery;
pub fn gst_query_new_caps(filter: *mut GstCaps) -> *mut GstQuery;
#[cfg(any(feature = "v1_2", feature = "dox"))]
@ -4742,6 +4774,8 @@ extern "C" {
pub fn gst_query_parse_accept_caps(query: *mut GstQuery, caps: *mut *mut GstCaps);
pub fn gst_query_parse_accept_caps_result(query: *mut GstQuery, result: *mut gboolean);
pub fn gst_query_parse_allocation(query: *mut GstQuery, caps: *mut *mut GstCaps, need_pool: *mut gboolean);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_query_parse_bitrate(query: *mut GstQuery, nominal_bitrate: *mut c_uint);
pub fn gst_query_parse_buffering_percent(query: *mut GstQuery, busy: *mut gboolean, percent: *mut c_int);
pub fn gst_query_parse_buffering_range(query: *mut GstQuery, format: *mut GstFormat, start: *mut i64, stop: *mut i64, estimated_total: *mut i64);
pub fn gst_query_parse_buffering_stats(query: *mut GstQuery, mode: *mut GstBufferingMode, avg_in: *mut c_int, avg_out: *mut c_int, buffering_left: *mut i64);
@ -4776,6 +4810,8 @@ extern "C" {
#[cfg(any(feature = "v1_2", feature = "dox"))]
pub fn gst_query_remove_nth_allocation_pool(query: *mut GstQuery, index: c_uint);
pub fn gst_query_set_accept_caps_result(query: *mut GstQuery, result: gboolean);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_query_set_bitrate(query: *mut GstQuery, nominal_bitrate: c_uint);
pub fn gst_query_set_buffering_percent(query: *mut GstQuery, busy: gboolean, percent: c_int);
pub fn gst_query_set_buffering_range(query: *mut GstQuery, format: GstFormat, start: i64, stop: i64, estimated_total: i64);
pub fn gst_query_set_buffering_stats(query: *mut GstQuery, mode: GstBufferingMode, avg_in: c_int, avg_out: c_int, buffering_left: i64);
@ -4817,8 +4853,16 @@ extern "C" {
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;
#[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"))]
pub fn gst_sample_set_buffer_list(sample: *mut GstSample, buffer_list: *mut GstBufferList);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_sample_set_caps(sample: *mut GstSample, caps: *mut GstCaps);
#[cfg(any(feature = "v1_16", feature = "dox"))]
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);
//=========================================================================
// GstSegment
@ -4904,6 +4948,7 @@ extern "C" {
pub fn gst_structure_get_int(structure: *const GstStructure, fieldname: *const c_char, value: *mut c_int) -> gboolean;
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_structure_get_int64(structure: *const GstStructure, fieldname: *const c_char, value: *mut i64) -> gboolean;
#[cfg(any(feature = "v1_12", feature = "dox"))]
pub fn gst_structure_get_list(structure: *mut GstStructure, fieldname: *const c_char, array: *mut *mut gobject::GValueArray) -> gboolean;
pub fn gst_structure_get_name(structure: *const GstStructure) -> *const c_char;
pub fn gst_structure_get_name_id(structure: *const GstStructure) -> glib::GQuark;
@ -4936,7 +4981,9 @@ extern "C" {
pub fn gst_structure_remove_fields(structure: *mut GstStructure, fieldname: *const c_char, ...);
//pub fn gst_structure_remove_fields_valist(structure: *mut GstStructure, fieldname: *const c_char, varargs: /*Unimplemented*/va_list);
pub fn gst_structure_set(structure: *mut GstStructure, fieldname: *const c_char, ...);
#[cfg(any(feature = "v1_12", feature = "dox"))]
pub fn gst_structure_set_array(structure: *mut GstStructure, fieldname: *const c_char, array: *const gobject::GValueArray);
#[cfg(any(feature = "v1_12", feature = "dox"))]
pub fn gst_structure_set_list(structure: *mut GstStructure, fieldname: *const c_char, array: *const gobject::GValueArray);
pub fn gst_structure_set_name(structure: *mut GstStructure, name: *const c_char);
pub fn gst_structure_set_parent_refcount(structure: *mut GstStructure, refcount: *mut c_int) -> gboolean;
@ -5239,10 +5286,14 @@ extern "C" {
//=========================================================================
pub fn gst_clock_get_type() -> GType;
pub fn gst_clock_id_compare_func(id1: gconstpointer, id2: gconstpointer) -> c_int;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_clock_id_get_clock(id: GstClockID) -> *mut GstClock;
pub fn gst_clock_id_get_time(id: GstClockID) -> GstClockTime;
pub fn gst_clock_id_ref(id: GstClockID) -> GstClockID;
pub fn gst_clock_id_unref(id: GstClockID);
pub fn gst_clock_id_unschedule(id: GstClockID);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_clock_id_uses_clock(id: GstClockID, clock: *mut GstClock) -> gboolean;
pub fn gst_clock_id_wait(id: GstClockID, jitter: *mut GstClockTimeDiff) -> GstClockReturn;
pub fn gst_clock_id_wait_async(id: GstClockID, func: GstClockCallback, user_data: gpointer, destroy_data: glib::GDestroyNotify) -> GstClockReturn;
pub fn gst_clock_add_observation(clock: *mut GstClock, slave: GstClockTime, master: GstClockTime, r_squared: *mut c_double) -> gboolean;
@ -5349,6 +5400,8 @@ extern "C" {
pub fn gst_device_provider_can_monitor(provider: *mut GstDeviceProvider) -> gboolean;
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_device_provider_device_add(provider: *mut GstDeviceProvider, device: *mut GstDevice);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_device_provider_device_changed(provider: *mut GstDeviceProvider, device: *mut GstDevice, changed_device: *mut GstDevice);
#[cfg(any(feature = "v1_4", feature = "dox"))]
pub fn gst_device_provider_device_remove(provider: *mut GstDeviceProvider, device: *mut GstDevice);
#[cfg(any(feature = "v1_4", feature = "dox"))]
@ -6008,6 +6061,12 @@ extern "C" {
//=========================================================================
#[cfg(any(feature = "v1_12", feature = "dox"))]
pub fn gst_calculate_linear_regression(xy: *const GstClockTime, temp: *mut GstClockTime, n: c_uint, m_num: *mut GstClockTime, m_denom: *mut GstClockTime, b: *mut GstClockTime, xbase: *mut GstClockTime, r_squared: *mut c_double) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_clear_mini_object(object_ptr: *mut *mut GstMiniObject);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_clear_object(object_ptr: *mut *mut GstObject);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_clear_structure(structure_ptr: *mut *mut GstStructure);
pub fn gst_debug_add_log_function(func: GstLogFunction, user_data: gpointer, notify: glib::GDestroyNotify);
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_debug_add_ring_buffer_logger(max_size_per_thread: c_uint, thread_timeout: c_uint);

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -538,6 +538,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("GST_ELEMENT_FACTORY_KLASS_ENCODER", "Encoder"),
("GST_ELEMENT_FACTORY_KLASS_ENCRYPTOR", "Encryptor"),
("GST_ELEMENT_FACTORY_KLASS_FORMATTER", "Formatter"),
("GST_ELEMENT_FACTORY_KLASS_HARDWARE", "Hardware"),
("GST_ELEMENT_FACTORY_KLASS_MEDIA_AUDIO", "Audio"),
("GST_ELEMENT_FACTORY_KLASS_MEDIA_IMAGE", "Image"),
("GST_ELEMENT_FACTORY_KLASS_MEDIA_METADATA", "Metadata"),
@ -694,6 +695,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_MESSAGE_CLOCK_LOST", "1024"),
("(guint) GST_MESSAGE_CLOCK_PROVIDE", "512"),
("(guint) GST_MESSAGE_DEVICE_ADDED", "2147483649"),
("(guint) GST_MESSAGE_DEVICE_CHANGED", "2147483654"),
("(guint) GST_MESSAGE_DEVICE_REMOVED", "2147483650"),
("(guint) GST_MESSAGE_DURATION_CHANGED", "262144"),
("(guint) GST_MESSAGE_ELEMENT", "32768"),
@ -844,11 +846,13 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_PROMISE_RESULT_PENDING", "0"),
("(gint) GST_PROMISE_RESULT_REPLIED", "2"),
("GST_PROTECTION_SYSTEM_ID_CAPS_FIELD", "protection-system"),
("GST_PROTECTION_UNSPECIFIED_SYSTEM_ID", "unspecified-system-id"),
("(gint) GST_QOS_TYPE_OVERFLOW", "0"),
("(gint) GST_QOS_TYPE_THROTTLE", "2"),
("(gint) GST_QOS_TYPE_UNDERFLOW", "1"),
("(gint) GST_QUERY_ACCEPT_CAPS", "40963"),
("(gint) GST_QUERY_ALLOCATION", "35846"),
("(gint) GST_QUERY_BITRATE", "51202"),
("(gint) GST_QUERY_BUFFERING", "28163"),
("(gint) GST_QUERY_CAPS", "43523"),
("(gint) GST_QUERY_CONTEXT", "48643"),

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -28,6 +28,7 @@ v1_8 = ["v1_6"]
v1_10 = ["v1_8"]
v1_12 = ["v1_10"]
v1_14 = ["v1_12"]
v1_16 = ["v1_14"]
dox = []
[lib]

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-tag-1.0";
let shared_libs = ["gsttag-1.0"];
let version = if cfg!(feature = "v1_14") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14") {
"1.14"
} else if cfg!(feature = "v1_12") {
"1.12"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -30,6 +30,7 @@ v1_8 = ["v1_6"]
v1_10 = ["v1_8"]
v1_12 = ["v1_10"]
v1_14 = ["v1_12"]
v1_16 = ["v1_14"]
dox = []
[lib]

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-video-1.0";
let shared_libs = ["gstvideo-1.0"];
let version = if cfg!(feature = "v1_14") {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else if cfg!(feature = "v1_14") {
"1.14"
} else if cfg!(feature = "v1_12") {
"1.12"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -67,6 +67,31 @@ pub const GST_VIDEO_ALPHA_MODE_COPY: GstVideoAlphaMode = 0;
pub const GST_VIDEO_ALPHA_MODE_SET: GstVideoAlphaMode = 1;
pub const GST_VIDEO_ALPHA_MODE_MULT: GstVideoAlphaMode = 2;
pub type GstVideoAncillaryDID = c_int;
pub const GST_VIDEO_ANCILLARY_DID_UNDEFINED: GstVideoAncillaryDID = 0;
pub const GST_VIDEO_ANCILLARY_DID_DELETION: GstVideoAncillaryDID = 128;
pub const GST_VIDEO_ANCILLARY_DID_HANC_3G_AUDIO_DATA_FIRST: GstVideoAncillaryDID = 160;
pub const GST_VIDEO_ANCILLARY_DID_HANC_3G_AUDIO_DATA_LAST: GstVideoAncillaryDID = 167;
pub const GST_VIDEO_ANCILLARY_DID_HANC_HDTV_AUDIO_DATA_FIRST: GstVideoAncillaryDID = 224;
pub const GST_VIDEO_ANCILLARY_DID_HANC_HDTV_AUDIO_DATA_LAST: GstVideoAncillaryDID = 231;
pub const GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_1_FIRST: GstVideoAncillaryDID = 236;
pub const GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_1_LAST: GstVideoAncillaryDID = 239;
pub const GST_VIDEO_ANCILLARY_DID_CAMERA_POSITION: GstVideoAncillaryDID = 240;
pub const GST_VIDEO_ANCILLARY_DID_HANC_ERROR_DETECTION: GstVideoAncillaryDID = 244;
pub const GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_2_FIRST: GstVideoAncillaryDID = 248;
pub const GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_2_LAST: GstVideoAncillaryDID = 255;
pub type GstVideoAncillaryDID16 = c_int;
pub const GST_VIDEO_ANCILLARY_DID16_S334_EIA_708: GstVideoAncillaryDID16 = 24833;
pub const GST_VIDEO_ANCILLARY_DID16_S334_EIA_608: GstVideoAncillaryDID16 = 24834;
pub type GstVideoCaptionType = c_int;
pub const GST_VIDEO_CAPTION_TYPE_UNKNOWN: GstVideoCaptionType = 0;
pub const GST_VIDEO_CAPTION_TYPE_CEA608_RAW: GstVideoCaptionType = 1;
pub const GST_VIDEO_CAPTION_TYPE_CEA608_S334_1A: GstVideoCaptionType = 2;
pub const GST_VIDEO_CAPTION_TYPE_CEA708_RAW: GstVideoCaptionType = 3;
pub const GST_VIDEO_CAPTION_TYPE_CEA708_CDP: GstVideoCaptionType = 4;
pub type GstVideoChromaMethod = c_int;
pub const GST_VIDEO_CHROMA_METHOD_NEAREST: GstVideoChromaMethod = 0;
pub const GST_VIDEO_CHROMA_METHOD_LINEAR: GstVideoChromaMethod = 1;
@ -96,6 +121,10 @@ pub const GST_VIDEO_COLOR_PRIMARIES_SMPTE240M: GstVideoColorPrimaries = 5;
pub const GST_VIDEO_COLOR_PRIMARIES_FILM: GstVideoColorPrimaries = 6;
pub const GST_VIDEO_COLOR_PRIMARIES_BT2020: GstVideoColorPrimaries = 7;
pub const GST_VIDEO_COLOR_PRIMARIES_ADOBERGB: GstVideoColorPrimaries = 8;
pub const GST_VIDEO_COLOR_PRIMARIES_SMPTEST428: GstVideoColorPrimaries = 9;
pub const GST_VIDEO_COLOR_PRIMARIES_SMPTERP431: GstVideoColorPrimaries = 10;
pub const GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432: GstVideoColorPrimaries = 11;
pub const GST_VIDEO_COLOR_PRIMARIES_EBU3213: GstVideoColorPrimaries = 12;
pub type GstVideoColorRange = c_int;
pub const GST_VIDEO_COLOR_RANGE_UNKNOWN: GstVideoColorRange = 0;
@ -196,6 +225,11 @@ pub const GST_VIDEO_FORMAT_Y444_12LE: GstVideoFormat = 77;
pub const GST_VIDEO_FORMAT_GRAY10_LE32: GstVideoFormat = 78;
pub const GST_VIDEO_FORMAT_NV12_10LE32: GstVideoFormat = 79;
pub const GST_VIDEO_FORMAT_NV16_10LE32: GstVideoFormat = 80;
pub const GST_VIDEO_FORMAT_NV12_10LE40: GstVideoFormat = 81;
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 type GstVideoGLTextureOrientation = c_int;
pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL: GstVideoGLTextureOrientation = 0;
@ -221,6 +255,7 @@ pub const GST_VIDEO_INTERLACE_MODE_PROGRESSIVE: GstVideoInterlaceMode = 0;
pub const GST_VIDEO_INTERLACE_MODE_INTERLEAVED: GstVideoInterlaceMode = 1;
pub const GST_VIDEO_INTERLACE_MODE_MIXED: GstVideoInterlaceMode = 2;
pub const GST_VIDEO_INTERLACE_MODE_FIELDS: GstVideoInterlaceMode = 3;
pub const GST_VIDEO_INTERLACE_MODE_ALTERNATE: GstVideoInterlaceMode = 4;
pub type GstVideoMatrixMode = c_int;
pub const GST_VIDEO_MATRIX_MODE_FULL: GstVideoMatrixMode = 0;
@ -301,11 +336,17 @@ 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 type GstVideoVBIParserResult = c_int;
pub const GST_VIDEO_VBI_PARSER_RESULT_DONE: GstVideoVBIParserResult = 0;
pub const GST_VIDEO_VBI_PARSER_RESULT_OK: GstVideoVBIParserResult = 1;
pub const GST_VIDEO_VBI_PARSER_RESULT_ERROR: GstVideoVBIParserResult = 2;
// Constants
pub const GST_BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META: *const c_char = b"GstBufferPoolOptionVideoAffineTransformation\0" as *const u8 as *const c_char;
pub const GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT: *const c_char = b"GstBufferPoolOptionVideoAlignment\0" as *const u8 as *const c_char;
pub const GST_BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META: *const c_char = b"GstBufferPoolOptionVideoGLTextureUploadMeta\0" as *const u8 as *const c_char;
pub const GST_BUFFER_POOL_OPTION_VIDEO_META: *const c_char = b"GstBufferPoolOptionVideoMeta\0" as *const u8 as *const c_char;
pub const GST_CAPS_FEATURE_FORMAT_INTERLACED: *const c_char = b"format:Interlaced\0" as *const u8 as *const c_char;
pub const GST_CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META: *const c_char = b"meta:GstVideoAffineTransformation\0" as *const u8 as *const c_char;
pub const GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META: *const c_char = b"meta:GstVideoGLTextureUploadMeta\0" as *const u8 as *const c_char;
pub const GST_CAPS_FEATURE_META_GST_VIDEO_META: *const c_char = b"meta:GstVideoMeta\0" as *const u8 as *const c_char;
@ -355,7 +396,7 @@ 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, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, 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, 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 }\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_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;
@ -381,6 +422,8 @@ pub const GST_VIDEO_BUFFER_FLAG_RFF: GstVideoBufferFlags = 4194304;
pub const GST_VIDEO_BUFFER_FLAG_ONEFIELD: GstVideoBufferFlags = 8388608;
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_LAST: GstVideoBufferFlags = 268435456;
pub type GstVideoChromaFlags = c_uint;
@ -433,6 +476,8 @@ pub const GST_VIDEO_FRAME_FLAG_RFF: GstVideoFrameFlags = 4;
pub const GST_VIDEO_FRAME_FLAG_ONEFIELD: GstVideoFrameFlags = 8;
pub const GST_VIDEO_FRAME_FLAG_MULTIPLE_VIEW: GstVideoFrameFlags = 16;
pub const GST_VIDEO_FRAME_FLAG_FIRST_IN_BUNDLE: GstVideoFrameFlags = 32;
pub const GST_VIDEO_FRAME_FLAG_TOP_FIELD: GstVideoFrameFlags = 10;
pub const GST_VIDEO_FRAME_FLAG_BOTTOM_FIELD: GstVideoFrameFlags = 8;
pub type GstVideoFrameMapFlags = c_uint;
pub const GST_VIDEO_FRAME_MAP_FLAG_NO_REF: GstVideoFrameMapFlags = 65536;
@ -585,6 +630,97 @@ impl ::std::fmt::Debug for GstVideoAffineTransformationMeta {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoAggregatorClass {
pub parent_class: gst_base::GstAggregatorClass,
pub update_caps: Option<unsafe extern "C" fn(*mut GstVideoAggregator, *mut gst::GstCaps) -> *mut gst::GstCaps>,
pub aggregate_frames: Option<unsafe extern "C" fn(*mut GstVideoAggregator, *mut *mut gst::GstBuffer) -> gst::GstFlowReturn>,
pub create_output_buffer: Option<unsafe extern "C" fn(*mut GstVideoAggregator, *mut *mut gst::GstBuffer) -> gst::GstFlowReturn>,
pub find_best_format: Option<unsafe extern "C" fn(*mut GstVideoAggregator, *mut gst::GstCaps, *mut GstVideoInfo, *mut gboolean)>,
pub _gst_reserved: [gpointer; 20],
}
impl ::std::fmt::Debug for GstVideoAggregatorClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoAggregatorClass @ {:?}", self as *const _))
.field("update_caps", &self.update_caps)
.field("aggregate_frames", &self.aggregate_frames)
.field("create_output_buffer", &self.create_output_buffer)
.field("find_best_format", &self.find_best_format)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoAggregatorConvertPadClass {
pub parent_class: GstVideoAggregatorPadClass,
pub create_conversion_info: Option<unsafe extern "C" fn(*mut GstVideoAggregatorConvertPad, *mut GstVideoAggregator, *mut GstVideoInfo)>,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstVideoAggregatorConvertPadClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoAggregatorConvertPadClass @ {:?}", self as *const _))
.field("parent_class", &self.parent_class)
.field("create_conversion_info", &self.create_conversion_info)
.finish()
}
}
#[repr(C)]
pub struct GstVideoAggregatorConvertPadPrivate(c_void);
impl ::std::fmt::Debug for GstVideoAggregatorConvertPadPrivate {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoAggregatorConvertPadPrivate @ {:?}", self as *const _))
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoAggregatorPadClass {
pub parent_class: gst_base::GstAggregatorPadClass,
pub update_conversion_info: Option<unsafe extern "C" fn(*mut GstVideoAggregatorPad)>,
pub prepare_frame: Option<unsafe extern "C" fn(*mut GstVideoAggregatorPad, *mut GstVideoAggregator, *mut gst::GstBuffer, *mut GstVideoFrame) -> gboolean>,
pub clean_frame: Option<unsafe extern "C" fn(*mut GstVideoAggregatorPad, *mut GstVideoAggregator, *mut GstVideoFrame)>,
pub _gst_reserved: [gpointer; 20],
}
impl ::std::fmt::Debug for GstVideoAggregatorPadClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoAggregatorPadClass @ {:?}", self as *const _))
.field("parent_class", &self.parent_class)
.field("update_conversion_info", &self.update_conversion_info)
.field("prepare_frame", &self.prepare_frame)
.field("clean_frame", &self.clean_frame)
.field("_gst_reserved", &self._gst_reserved)
.finish()
}
}
#[repr(C)]
pub struct GstVideoAggregatorPadPrivate(c_void);
impl ::std::fmt::Debug for GstVideoAggregatorPadPrivate {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoAggregatorPadPrivate @ {:?}", self as *const _))
.finish()
}
}
#[repr(C)]
pub struct GstVideoAggregatorPrivate(c_void);
impl ::std::fmt::Debug for GstVideoAggregatorPrivate {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoAggregatorPrivate @ {:?}", self as *const _))
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoAlignment {
@ -607,6 +743,26 @@ impl ::std::fmt::Debug for GstVideoAlignment {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoAncillary {
pub DID: u8,
pub SDID_block_number: u8,
pub data_count: u8,
pub data: [u8; 256],
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstVideoAncillary {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoAncillary @ {:?}", self as *const _))
.field("DID", &self.DID)
.field("SDID_block_number", &self.SDID_block_number)
.field("data_count", &self.data_count)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoBufferPoolClass {
@ -631,6 +787,26 @@ impl ::std::fmt::Debug for GstVideoBufferPoolPrivate {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoCaptionMeta {
pub meta: gst::GstMeta,
pub caption_type: GstVideoCaptionType,
pub data: *mut u8,
pub size: size_t,
}
impl ::std::fmt::Debug for GstVideoCaptionMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoCaptionMeta @ {:?}", self as *const _))
.field("meta", &self.meta)
.field("caption_type", &self.caption_type)
.field("data", &self.data)
.field("size", &self.size)
.finish()
}
}
#[repr(C)]
pub struct GstVideoChromaResample(c_void);
@ -666,8 +842,6 @@ impl ::std::fmt::Debug for GstVideoCodecFrame {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoCodecFrame @ {:?}", self as *const _))
.field("system_frame_number", &self.system_frame_number)
.field("decode_frame_number", &self.decode_frame_number)
.field("presentation_frame_number", &self.presentation_frame_number)
.field("dts", &self.dts)
.field("pts", &self.pts)
.field("duration", &self.duration)
@ -1270,16 +1444,6 @@ impl ::std::fmt::Debug for GstVideoOverlayInterface {
}
}
#[repr(C)]
pub struct GstVideoOverlayProperties(c_void);
impl ::std::fmt::Debug for GstVideoOverlayProperties {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoOverlayProperties @ {:?}", self as *const _))
.finish()
}
}
#[repr(C)]
pub struct GstVideoOverlayRectangle(c_void);
@ -1486,6 +1650,26 @@ impl ::std::fmt::Debug for GstVideoTimeCodeMeta {
}
}
#[repr(C)]
pub struct GstVideoVBIEncoder(c_void);
impl ::std::fmt::Debug for GstVideoVBIEncoder {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoVBIEncoder @ {:?}", self as *const _))
.finish()
}
}
#[repr(C)]
pub struct GstVideoVBIParser(c_void);
impl ::std::fmt::Debug for GstVideoVBIParser {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoVBIParser @ {:?}", self as *const _))
.finish()
}
}
// Classes
#[repr(C)]
#[derive(Copy, Clone)]
@ -1508,6 +1692,57 @@ impl ::std::fmt::Debug for GstColorBalanceChannel {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoAggregator {
pub aggregator: gst_base::GstAggregator,
pub info: GstVideoInfo,
pub priv_: *mut GstVideoAggregatorPrivate,
pub _gst_reserved: [gpointer; 20],
}
impl ::std::fmt::Debug for GstVideoAggregator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoAggregator @ {:?}", self as *const _))
.field("aggregator", &self.aggregator)
.field("info", &self.info)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoAggregatorConvertPad {
pub parent: GstVideoAggregatorPad,
pub priv_: *mut GstVideoAggregatorConvertPadPrivate,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstVideoAggregatorConvertPad {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoAggregatorConvertPad @ {:?}", self as *const _))
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoAggregatorPad {
pub parent: gst_base::GstAggregatorPad,
pub info: GstVideoInfo,
pub priv_: *mut GstVideoAggregatorPadPrivate,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstVideoAggregatorPad {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoAggregatorPad @ {:?}", self as *const _))
.field("parent", &self.parent)
.field("info", &self.info)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstVideoBufferPool {
@ -1694,6 +1929,25 @@ extern "C" {
//=========================================================================
pub fn gst_video_alpha_mode_get_type() -> GType;
//=========================================================================
// GstVideoAncillaryDID
//=========================================================================
pub fn gst_video_ancillary_did_get_type() -> GType;
//=========================================================================
// GstVideoAncillaryDID16
//=========================================================================
pub fn gst_video_ancillary_di_d16_get_type() -> GType;
//=========================================================================
// GstVideoCaptionType
//=========================================================================
pub fn gst_video_caption_type_get_type() -> GType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_caption_type_from_caps(caps: *const gst::GstCaps) -> GstVideoCaptionType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_caption_type_to_caps(type_: GstVideoCaptionType) -> *mut gst::GstCaps;
//=========================================================================
// GstVideoChromaMethod
//=========================================================================
@ -1814,6 +2068,11 @@ extern "C" {
//=========================================================================
pub fn gst_video_transfer_function_get_type() -> GType;
//=========================================================================
// GstVideoVBIParserResult
//=========================================================================
pub fn gst_video_vbi_parser_result_get_type() -> GType;
//=========================================================================
// GstVideoBufferFlags
//=========================================================================
@ -1859,6 +2118,11 @@ extern "C" {
//=========================================================================
pub fn gst_video_multiview_flags_get_type() -> GType;
//=========================================================================
// GstVideoOverlayFormatFlags
//=========================================================================
pub fn gst_video_overlay_format_flags_get_type() -> GType;
//=========================================================================
// GstVideoPackFlags
//=========================================================================
@ -1886,6 +2150,11 @@ extern "C" {
//=========================================================================
pub fn gst_video_alignment_reset(align: *mut GstVideoAlignment);
//=========================================================================
// GstVideoCaptionMeta
//=========================================================================
pub fn gst_video_caption_meta_get_info() -> *const gst::GstMetaInfo;
//=========================================================================
// GstVideoChromaResample
//=========================================================================
@ -1974,6 +2243,8 @@ extern "C" {
pub fn gst_video_info_init(info: *mut GstVideoInfo);
pub fn gst_video_info_is_equal(info: *const GstVideoInfo, other: *const GstVideoInfo) -> gboolean;
pub fn gst_video_info_set_format(info: *mut GstVideoInfo, format: GstVideoFormat, width: c_uint, height: c_uint) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_info_set_interlaced_format(info: *mut GstVideoInfo, format: GstVideoFormat, mode: GstVideoInterlaceMode, width: c_uint, height: c_uint) -> gboolean;
pub fn gst_video_info_to_caps(info: *mut GstVideoInfo) -> *mut gst::GstCaps;
//=========================================================================
@ -2066,6 +2337,8 @@ extern "C" {
pub fn gst_video_time_code_new_empty() -> *mut GstVideoTimeCode;
#[cfg(any(feature = "v1_12", feature = "dox"))]
pub fn gst_video_time_code_new_from_date_time(fps_n: c_uint, fps_d: c_uint, dt: *mut glib::GDateTime, flags: GstVideoTimeCodeFlags, field_count: c_uint) -> *mut GstVideoTimeCode;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_time_code_new_from_date_time_full(fps_n: c_uint, fps_d: c_uint, dt: *mut glib::GDateTime, flags: GstVideoTimeCodeFlags, field_count: c_uint) -> *mut GstVideoTimeCode;
#[cfg(any(feature = "v1_12", feature = "dox"))]
pub fn gst_video_time_code_new_from_string(tc_str: *const c_char) -> *mut GstVideoTimeCode;
#[cfg(any(feature = "v1_10", feature = "dox"))]
@ -2088,6 +2361,8 @@ extern "C" {
pub fn gst_video_time_code_init(tc: *mut GstVideoTimeCode, fps_n: c_uint, fps_d: c_uint, latest_daily_jam: *mut glib::GDateTime, flags: GstVideoTimeCodeFlags, hours: c_uint, minutes: c_uint, seconds: c_uint, frames: c_uint, field_count: c_uint);
#[cfg(any(feature = "v1_12", feature = "dox"))]
pub fn gst_video_time_code_init_from_date_time(tc: *mut GstVideoTimeCode, fps_n: c_uint, fps_d: c_uint, dt: *mut glib::GDateTime, flags: GstVideoTimeCodeFlags, field_count: c_uint);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_time_code_init_from_date_time_full(tc: *mut GstVideoTimeCode, fps_n: c_uint, fps_d: c_uint, dt: *mut glib::GDateTime, flags: GstVideoTimeCodeFlags, field_count: c_uint) -> gboolean;
#[cfg(any(feature = "v1_10", feature = "dox"))]
pub fn gst_video_time_code_is_valid(tc: *const GstVideoTimeCode) -> gboolean;
#[cfg(any(feature = "v1_10", feature = "dox"))]
@ -2119,11 +2394,66 @@ extern "C" {
//=========================================================================
pub fn gst_video_time_code_meta_get_info() -> *const gst::GstMetaInfo;
//=========================================================================
// GstVideoVBIEncoder
//=========================================================================
pub fn gst_video_vbi_encoder_get_type() -> GType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_vbi_encoder_new(format: GstVideoFormat, pixel_width: u32) -> *mut GstVideoVBIEncoder;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_vbi_encoder_add_ancillary(encoder: *mut GstVideoVBIEncoder, composite: gboolean, DID: u8, SDID_block_number: u8, data: *const u8, data_count: c_uint) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_vbi_encoder_copy(encoder: *const GstVideoVBIEncoder) -> *mut GstVideoVBIEncoder;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_vbi_encoder_free(encoder: *mut GstVideoVBIEncoder);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_vbi_encoder_write_line(encoder: *mut GstVideoVBIEncoder, data: *mut u8);
//=========================================================================
// GstVideoVBIParser
//=========================================================================
pub fn gst_video_vbi_parser_get_type() -> GType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_vbi_parser_new(format: GstVideoFormat, pixel_width: u32) -> *mut GstVideoVBIParser;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_vbi_parser_add_line(parser: *mut GstVideoVBIParser, data: *const u8);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_vbi_parser_copy(parser: *const GstVideoVBIParser) -> *mut GstVideoVBIParser;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_vbi_parser_free(parser: *mut GstVideoVBIParser);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_vbi_parser_get_ancillary(parser: *mut GstVideoVBIParser, anc: *mut GstVideoAncillary) -> GstVideoVBIParserResult;
//=========================================================================
// GstColorBalanceChannel
//=========================================================================
pub fn gst_color_balance_channel_get_type() -> GType;
//=========================================================================
// GstVideoAggregator
//=========================================================================
pub fn gst_video_aggregator_get_type() -> GType;
//=========================================================================
// GstVideoAggregatorConvertPad
//=========================================================================
pub fn gst_video_aggregator_convert_pad_get_type() -> GType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_aggregator_convert_pad_update_conversion_info(pad: *mut GstVideoAggregatorConvertPad);
//=========================================================================
// GstVideoAggregatorPad
//=========================================================================
pub fn gst_video_aggregator_pad_get_type() -> GType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_aggregator_pad_get_current_buffer(pad: *mut GstVideoAggregatorPad) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_aggregator_pad_get_prepared_frame(pad: *mut GstVideoAggregatorPad) -> *mut GstVideoFrame;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_aggregator_pad_has_current_buffer(pad: *mut GstVideoAggregatorPad) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_aggregator_pad_set_needs_alpha(pad: *mut GstVideoAggregatorPad, needs_alpha: gboolean);
//=========================================================================
// GstVideoBufferPool
//=========================================================================
@ -2166,6 +2496,8 @@ extern "C" {
#[cfg(any(feature = "v1_2_2", feature = "dox"))]
pub fn gst_video_decoder_release_frame(dec: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame);
pub fn gst_video_decoder_set_estimate_rate(dec: *mut GstVideoDecoder, enabled: gboolean);
#[cfg(any(feature = "v1_16", feature = "dox"))]
pub fn gst_video_decoder_set_interlaced_output_state(decoder: *mut GstVideoDecoder, fmt: GstVideoFormat, mode: GstVideoInterlaceMode, width: c_uint, height: c_uint, reference: *mut GstVideoCodecState) -> *mut GstVideoCodecState;
pub fn gst_video_decoder_set_latency(decoder: *mut GstVideoDecoder, min_latency: gst::GstClockTime, max_latency: gst::GstClockTime);
pub fn gst_video_decoder_set_max_errors(dec: *mut GstVideoDecoder, num: c_int);
#[cfg(any(feature = "v1_4", feature = "dox"))]
@ -2197,6 +2529,7 @@ extern "C" {
pub fn gst_video_encoder_proxy_getcaps(enc: *mut GstVideoEncoder, caps: *mut gst::GstCaps, filter: *mut gst::GstCaps) -> *mut gst::GstCaps;
pub fn gst_video_encoder_set_headers(encoder: *mut GstVideoEncoder, headers: *mut glib::GList);
pub fn gst_video_encoder_set_latency(encoder: *mut GstVideoEncoder, min_latency: gst::GstClockTime, max_latency: gst::GstClockTime);
#[cfg(any(feature = "v1_6", feature = "dox"))]
pub fn gst_video_encoder_set_min_pts(encoder: *mut GstVideoEncoder, min_pts: gst::GstClockTime);
pub fn gst_video_encoder_set_output_state(encoder: *mut GstVideoEncoder, caps: *mut gst::GstCaps, reference: *mut GstVideoCodecState) -> *mut GstVideoCodecState;
#[cfg(any(feature = "v1_14", feature = "dox"))]
@ -2283,7 +2616,9 @@ extern "C" {
// GstVideoOverlay
//=========================================================================
pub fn gst_video_overlay_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_video_overlay_install_properties(oclass: *mut gobject::GObjectClass, last_prop_id: c_int);
#[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn gst_video_overlay_set_property(object: *mut gobject::GObject, last_prop_id: c_int, property_id: c_uint, value: *const gobject::GValue) -> gboolean;
pub fn gst_video_overlay_expose(overlay: *mut GstVideoOverlay);
pub fn gst_video_overlay_got_window_handle(overlay: *mut GstVideoOverlay, handle: uintptr_t);
@ -2297,6 +2632,8 @@ extern "C" {
//=========================================================================
#[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_16", feature = "dox"))]
pub fn gst_buffer_add_video_caption_meta(buffer: *mut gst::GstBuffer, caption_type: GstVideoCaptionType, data: *const u8, size: size_t) -> *mut GstVideoCaptionMeta;
pub fn gst_buffer_add_video_gl_texture_upload_meta(buffer: *mut gst::GstBuffer, texture_orientation: GstVideoGLTextureOrientation, n_textures: c_uint, texture_type: *mut GstVideoGLTextureType, upload: GstVideoGLTextureUpload, user_data: gpointer, user_data_copy: gobject::GBoxedCopyFunc, user_data_free: gobject::GBoxedFreeFunc) -> *mut GstVideoGLTextureUploadMeta;
pub fn gst_buffer_add_video_meta(buffer: *mut gst::GstBuffer, flags: GstVideoFrameFlags, format: GstVideoFormat, width: c_uint, height: c_uint) -> *mut GstVideoMeta;
pub fn gst_buffer_add_video_meta_full(buffer: *mut gst::GstBuffer, flags: GstVideoFrameFlags, format: GstVideoFormat, width: c_uint, height: c_uint, n_planes: c_uint, offset: *mut [size_t; 4], stride: *mut [c_int; 4]) -> *mut GstVideoMeta;
@ -2317,6 +2654,7 @@ extern "C" {
pub fn gst_video_blend(dest: *mut GstVideoFrame, src: *mut GstVideoFrame, x: c_int, y: c_int, global_alpha: c_float) -> gboolean;
pub fn gst_video_blend_scale_linear_RGBA(src: *mut GstVideoInfo, src_buffer: *mut gst::GstBuffer, dest_height: c_int, dest_width: c_int, dest: *mut GstVideoInfo, dest_buffer: *mut *mut gst::GstBuffer);
pub fn gst_video_calculate_display_ratio(dar_n: *mut c_uint, dar_d: *mut c_uint, video_width: c_uint, video_height: c_uint, video_par_n: c_uint, video_par_d: c_uint, display_par_n: c_uint, display_par_d: c_uint) -> gboolean;
pub fn gst_video_caption_meta_api_get_type() -> GType;
pub fn gst_video_chroma_from_string(s: *const c_char) -> GstVideoChromaSite;
pub fn gst_video_chroma_resample(resample: *mut GstVideoChromaResample, lines: *mut gpointer, width: c_int);
pub fn gst_video_chroma_to_string(site: GstVideoChromaSite) -> *const c_char;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -248,11 +248,22 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
("GstNavigationMessageType", Layout {size: size_of::<GstNavigationMessageType>(), alignment: align_of::<GstNavigationMessageType>()}),
("GstNavigationQueryType", Layout {size: size_of::<GstNavigationQueryType>(), alignment: align_of::<GstNavigationQueryType>()}),
("GstVideoAffineTransformationMeta", Layout {size: size_of::<GstVideoAffineTransformationMeta>(), alignment: align_of::<GstVideoAffineTransformationMeta>()}),
("GstVideoAggregator", Layout {size: size_of::<GstVideoAggregator>(), alignment: align_of::<GstVideoAggregator>()}),
("GstVideoAggregatorClass", Layout {size: size_of::<GstVideoAggregatorClass>(), alignment: align_of::<GstVideoAggregatorClass>()}),
("GstVideoAggregatorConvertPad", Layout {size: size_of::<GstVideoAggregatorConvertPad>(), alignment: align_of::<GstVideoAggregatorConvertPad>()}),
("GstVideoAggregatorConvertPadClass", Layout {size: size_of::<GstVideoAggregatorConvertPadClass>(), alignment: align_of::<GstVideoAggregatorConvertPadClass>()}),
("GstVideoAggregatorPad", Layout {size: size_of::<GstVideoAggregatorPad>(), alignment: align_of::<GstVideoAggregatorPad>()}),
("GstVideoAggregatorPadClass", Layout {size: size_of::<GstVideoAggregatorPadClass>(), alignment: align_of::<GstVideoAggregatorPadClass>()}),
("GstVideoAlignment", Layout {size: size_of::<GstVideoAlignment>(), alignment: align_of::<GstVideoAlignment>()}),
("GstVideoAlphaMode", Layout {size: size_of::<GstVideoAlphaMode>(), alignment: align_of::<GstVideoAlphaMode>()}),
("GstVideoAncillary", Layout {size: size_of::<GstVideoAncillary>(), alignment: align_of::<GstVideoAncillary>()}),
("GstVideoAncillaryDID", Layout {size: size_of::<GstVideoAncillaryDID>(), alignment: align_of::<GstVideoAncillaryDID>()}),
("GstVideoAncillaryDID16", Layout {size: size_of::<GstVideoAncillaryDID16>(), alignment: align_of::<GstVideoAncillaryDID16>()}),
("GstVideoBufferFlags", Layout {size: size_of::<GstVideoBufferFlags>(), alignment: align_of::<GstVideoBufferFlags>()}),
("GstVideoBufferPool", Layout {size: size_of::<GstVideoBufferPool>(), alignment: align_of::<GstVideoBufferPool>()}),
("GstVideoBufferPoolClass", Layout {size: size_of::<GstVideoBufferPoolClass>(), alignment: align_of::<GstVideoBufferPoolClass>()}),
("GstVideoCaptionMeta", Layout {size: size_of::<GstVideoCaptionMeta>(), alignment: align_of::<GstVideoCaptionMeta>()}),
("GstVideoCaptionType", Layout {size: size_of::<GstVideoCaptionType>(), alignment: align_of::<GstVideoCaptionType>()}),
("GstVideoChromaFlags", Layout {size: size_of::<GstVideoChromaFlags>(), alignment: align_of::<GstVideoChromaFlags>()}),
("GstVideoChromaMethod", Layout {size: size_of::<GstVideoChromaMethod>(), alignment: align_of::<GstVideoChromaMethod>()}),
("GstVideoChromaMode", Layout {size: size_of::<GstVideoChromaMode>(), alignment: align_of::<GstVideoChromaMode>()}),
@ -318,6 +329,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
("GstVideoTimeCodeInterval", Layout {size: size_of::<GstVideoTimeCodeInterval>(), alignment: align_of::<GstVideoTimeCodeInterval>()}),
("GstVideoTimeCodeMeta", Layout {size: size_of::<GstVideoTimeCodeMeta>(), alignment: align_of::<GstVideoTimeCodeMeta>()}),
("GstVideoTransferFunction", Layout {size: size_of::<GstVideoTransferFunction>(), alignment: align_of::<GstVideoTransferFunction>()}),
("GstVideoVBIParserResult", Layout {size: size_of::<GstVideoVBIParserResult>(), alignment: align_of::<GstVideoVBIParserResult>()}),
];
const RUST_CONSTANTS: &[(&str, &str)] = &[
@ -325,6 +337,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT", "GstBufferPoolOptionVideoAlignment"),
("GST_BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META", "GstBufferPoolOptionVideoGLTextureUploadMeta"),
("GST_BUFFER_POOL_OPTION_VIDEO_META", "GstBufferPoolOptionVideoMeta"),
("GST_CAPS_FEATURE_FORMAT_INTERLACED", "format:Interlaced"),
("GST_CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META", "meta:GstVideoAffineTransformation"),
("GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META", "meta:GstVideoGLTextureUploadMeta"),
("GST_CAPS_FEATURE_META_GST_VIDEO_META", "meta:GstVideoMeta"),
@ -368,6 +381,21 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_ALPHA_MODE_COPY", "0"),
("(gint) GST_VIDEO_ALPHA_MODE_MULT", "2"),
("(gint) GST_VIDEO_ALPHA_MODE_SET", "1"),
("(gint) GST_VIDEO_ANCILLARY_DID16_S334_EIA_608", "24834"),
("(gint) GST_VIDEO_ANCILLARY_DID16_S334_EIA_708", "24833"),
("(gint) GST_VIDEO_ANCILLARY_DID_CAMERA_POSITION", "240"),
("(gint) GST_VIDEO_ANCILLARY_DID_DELETION", "128"),
("(gint) GST_VIDEO_ANCILLARY_DID_HANC_3G_AUDIO_DATA_FIRST", "160"),
("(gint) GST_VIDEO_ANCILLARY_DID_HANC_3G_AUDIO_DATA_LAST", "167"),
("(gint) GST_VIDEO_ANCILLARY_DID_HANC_ERROR_DETECTION", "244"),
("(gint) GST_VIDEO_ANCILLARY_DID_HANC_HDTV_AUDIO_DATA_FIRST", "224"),
("(gint) GST_VIDEO_ANCILLARY_DID_HANC_HDTV_AUDIO_DATA_LAST", "231"),
("(gint) GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_1_FIRST", "236"),
("(gint) GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_1_LAST", "239"),
("(gint) GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_2_FIRST", "248"),
("(gint) GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_2_LAST", "255"),
("(gint) GST_VIDEO_ANCILLARY_DID_UNDEFINED", "0"),
("(guint) GST_VIDEO_BUFFER_FLAG_BOTTOM_FIELD", "8388608"),
("(guint) GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE", "33554432"),
("(guint) GST_VIDEO_BUFFER_FLAG_INTERLACED", "1048576"),
("(guint) GST_VIDEO_BUFFER_FLAG_LAST", "268435456"),
@ -375,6 +403,12 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_VIDEO_BUFFER_FLAG_ONEFIELD", "8388608"),
("(guint) GST_VIDEO_BUFFER_FLAG_RFF", "4194304"),
("(guint) GST_VIDEO_BUFFER_FLAG_TFF", "2097152"),
("(guint) GST_VIDEO_BUFFER_FLAG_TOP_FIELD", "10485760"),
("(gint) GST_VIDEO_CAPTION_TYPE_CEA608_RAW", "1"),
("(gint) GST_VIDEO_CAPTION_TYPE_CEA608_S334_1A", "2"),
("(gint) GST_VIDEO_CAPTION_TYPE_CEA708_CDP", "4"),
("(gint) GST_VIDEO_CAPTION_TYPE_CEA708_RAW", "3"),
("(gint) GST_VIDEO_CAPTION_TYPE_UNKNOWN", "0"),
("(guint) GST_VIDEO_CHROMA_FLAG_INTERLACED", "1"),
("(guint) GST_VIDEO_CHROMA_FLAG_NONE", "0"),
("(gint) GST_VIDEO_CHROMA_METHOD_LINEAR", "1"),
@ -413,9 +447,13 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_COLOR_PRIMARIES_BT470BG", "3"),
("(gint) GST_VIDEO_COLOR_PRIMARIES_BT470M", "2"),
("(gint) GST_VIDEO_COLOR_PRIMARIES_BT709", "1"),
("(gint) GST_VIDEO_COLOR_PRIMARIES_EBU3213", "12"),
("(gint) GST_VIDEO_COLOR_PRIMARIES_FILM", "6"),
("(gint) GST_VIDEO_COLOR_PRIMARIES_SMPTE170M", "4"),
("(gint) GST_VIDEO_COLOR_PRIMARIES_SMPTE240M", "5"),
("(gint) GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432", "11"),
("(gint) GST_VIDEO_COLOR_PRIMARIES_SMPTERP431", "10"),
("(gint) GST_VIDEO_COLOR_PRIMARIES_SMPTEST428", "9"),
("(gint) GST_VIDEO_COLOR_PRIMARIES_UNKNOWN", "0"),
("(gint) GST_VIDEO_COLOR_RANGE_0_255", "1"),
("(gint) GST_VIDEO_COLOR_RANGE_16_235", "2"),
@ -470,7 +508,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, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, 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, 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 }"),
("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 }"),
("(gint) GST_VIDEO_FORMAT_A420", "34"),
("(gint) GST_VIDEO_FORMAT_A420_10BE", "54"),
("(gint) GST_VIDEO_FORMAT_A420_10LE", "55"),
@ -484,6 +522,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_FORMAT_AYUV", "6"),
("(gint) GST_VIDEO_FORMAT_AYUV64", "40"),
("(gint) GST_VIDEO_FORMAT_BGR", "16"),
("(gint) GST_VIDEO_FORMAT_BGR10A2_LE", "85"),
("(gint) GST_VIDEO_FORMAT_BGR15", "32"),
("(gint) GST_VIDEO_FORMAT_BGR16", "30"),
("(gint) GST_VIDEO_FORMAT_BGRA", "12"),
@ -525,6 +564,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_FORMAT_IYU2", "63"),
("(gint) GST_VIDEO_FORMAT_NV12", "23"),
("(gint) GST_VIDEO_FORMAT_NV12_10LE32", "79"),
("(gint) GST_VIDEO_FORMAT_NV12_10LE40", "81"),
("(gint) GST_VIDEO_FORMAT_NV12_64Z32", "53"),
("(gint) GST_VIDEO_FORMAT_NV16", "51"),
("(gint) GST_VIDEO_FORMAT_NV16_10LE32", "80"),
@ -542,7 +582,10 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_FORMAT_UNKNOWN", "0"),
("(gint) GST_VIDEO_FORMAT_UYVP", "33"),
("(gint) GST_VIDEO_FORMAT_UYVY", "5"),
("(gint) GST_VIDEO_FORMAT_VUYA", "84"),
("(gint) GST_VIDEO_FORMAT_VYUY", "64"),
("(gint) GST_VIDEO_FORMAT_Y210", "82"),
("(gint) GST_VIDEO_FORMAT_Y410", "83"),
("(gint) GST_VIDEO_FORMAT_Y41B", "17"),
("(gint) GST_VIDEO_FORMAT_Y42B", "18"),
("(gint) GST_VIDEO_FORMAT_Y444", "20"),
@ -562,6 +605,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_FORMAT_xBGR", "10"),
("(gint) GST_VIDEO_FORMAT_xRGB", "9"),
("GST_VIDEO_FPS_RANGE", "(fraction) [ 0, max ]"),
("(guint) GST_VIDEO_FRAME_FLAG_BOTTOM_FIELD", "8"),
("(guint) GST_VIDEO_FRAME_FLAG_FIRST_IN_BUNDLE", "32"),
("(guint) GST_VIDEO_FRAME_FLAG_INTERLACED", "1"),
("(guint) GST_VIDEO_FRAME_FLAG_MULTIPLE_VIEW", "16"),
@ -569,6 +613,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_VIDEO_FRAME_FLAG_ONEFIELD", "8"),
("(guint) GST_VIDEO_FRAME_FLAG_RFF", "4"),
("(guint) GST_VIDEO_FRAME_FLAG_TFF", "2"),
("(guint) GST_VIDEO_FRAME_FLAG_TOP_FIELD", "10"),
("(guint) GST_VIDEO_FRAME_MAP_FLAG_LAST", "16777216"),
("(guint) GST_VIDEO_FRAME_MAP_FLAG_NO_REF", "65536"),
("(gint) GST_VIDEO_GAMMA_MODE_NONE", "0"),
@ -584,6 +629,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_GL_TEXTURE_TYPE_RGB", "3"),
("(gint) GST_VIDEO_GL_TEXTURE_TYPE_RGB16", "2"),
("(gint) GST_VIDEO_GL_TEXTURE_TYPE_RGBA", "4"),
("(gint) GST_VIDEO_INTERLACE_MODE_ALTERNATE", "4"),
("(gint) GST_VIDEO_INTERLACE_MODE_FIELDS", "3"),
("(gint) GST_VIDEO_INTERLACE_MODE_INTERLEAVED", "1"),
("(gint) GST_VIDEO_INTERLACE_MODE_MIXED", "2"),
@ -685,6 +731,9 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_TRANSFER_SMPTE240M", "6"),
("(gint) GST_VIDEO_TRANSFER_SRGB", "7"),
("(gint) GST_VIDEO_TRANSFER_UNKNOWN", "0"),
("(gint) GST_VIDEO_VBI_PARSER_RESULT_DONE", "0"),
("(gint) GST_VIDEO_VBI_PARSER_RESULT_ERROR", "2"),
("(gint) GST_VIDEO_VBI_PARSER_RESULT_OK", "1"),
];

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -22,6 +22,7 @@ tempdir = "0.3"
[features]
dox = []
v1_16 = []
[lib]
name = "gstreamer_webrtc_sys"

View file

@ -20,7 +20,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-webrtc-1.0";
let shared_libs = ["gstwebrtc-1.0"];
let version = {
let version = if cfg!(feature = "v1_16") {
"1.16"
} else {
"1.14"
};

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -20,6 +20,12 @@ use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double,
use glib::{gboolean, gconstpointer, gpointer, GType};
// Enums
pub type GstWebRTCBundlePolicy = c_int;
pub const GST_WEBRTC_BUNDLE_POLICY_NONE: GstWebRTCBundlePolicy = 0;
pub const GST_WEBRTC_BUNDLE_POLICY_BALANCED: GstWebRTCBundlePolicy = 1;
pub const GST_WEBRTC_BUNDLE_POLICY_MAX_COMPAT: GstWebRTCBundlePolicy = 2;
pub const GST_WEBRTC_BUNDLE_POLICY_MAX_BUNDLE: GstWebRTCBundlePolicy = 3;
pub type GstWebRTCDTLSSetup = c_int;
pub const GST_WEBRTC_DTLS_SETUP_NONE: GstWebRTCDTLSSetup = 0;
pub const GST_WEBRTC_DTLS_SETUP_ACTPASS: GstWebRTCDTLSSetup = 1;
@ -33,6 +39,13 @@ pub const GST_WEBRTC_DTLS_TRANSPORT_STATE_FAILED: GstWebRTCDTLSTransportState =
pub const GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTING: GstWebRTCDTLSTransportState = 3;
pub const GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTED: GstWebRTCDTLSTransportState = 4;
pub type GstWebRTCDataChannelState = c_int;
pub const GST_WEBRTC_DATA_CHANNEL_STATE_NEW: GstWebRTCDataChannelState = 0;
pub const GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING: GstWebRTCDataChannelState = 1;
pub const GST_WEBRTC_DATA_CHANNEL_STATE_OPEN: GstWebRTCDataChannelState = 2;
pub const GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING: GstWebRTCDataChannelState = 3;
pub const GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED: GstWebRTCDataChannelState = 4;
pub type GstWebRTCFECType = c_int;
pub const GST_WEBRTC_FEC_TYPE_NONE: GstWebRTCFECType = 0;
pub const GST_WEBRTC_FEC_TYPE_ULP_RED: GstWebRTCFECType = 1;
@ -59,6 +72,10 @@ pub type GstWebRTCICERole = c_int;
pub const GST_WEBRTC_ICE_ROLE_CONTROLLED: GstWebRTCICERole = 0;
pub const GST_WEBRTC_ICE_ROLE_CONTROLLING: GstWebRTCICERole = 1;
pub type GstWebRTCICETransportPolicy = c_int;
pub const GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL: GstWebRTCICETransportPolicy = 0;
pub const GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY: GstWebRTCICETransportPolicy = 1;
pub type GstWebRTCPeerConnectionState = c_int;
pub const GST_WEBRTC_PEER_CONNECTION_STATE_NEW: GstWebRTCPeerConnectionState = 0;
pub const GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTING: GstWebRTCPeerConnectionState = 1;
@ -67,6 +84,12 @@ pub const GST_WEBRTC_PEER_CONNECTION_STATE_DISCONNECTED: GstWebRTCPeerConnection
pub const GST_WEBRTC_PEER_CONNECTION_STATE_FAILED: GstWebRTCPeerConnectionState = 4;
pub const GST_WEBRTC_PEER_CONNECTION_STATE_CLOSED: GstWebRTCPeerConnectionState = 5;
pub type GstWebRTCPriorityType = c_int;
pub const GST_WEBRTC_PRIORITY_TYPE_VERY_LOW: GstWebRTCPriorityType = 1;
pub const GST_WEBRTC_PRIORITY_TYPE_LOW: GstWebRTCPriorityType = 2;
pub const GST_WEBRTC_PRIORITY_TYPE_MEDIUM: GstWebRTCPriorityType = 3;
pub const GST_WEBRTC_PRIORITY_TYPE_HIGH: GstWebRTCPriorityType = 4;
pub type GstWebRTCRTPTransceiverDirection = c_int;
pub const GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_NONE: GstWebRTCRTPTransceiverDirection = 0;
pub const GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_INACTIVE: GstWebRTCRTPTransceiverDirection = 1;
@ -74,6 +97,12 @@ pub const GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY: GstWebRTCRTPTransceiver
pub const GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY: GstWebRTCRTPTransceiverDirection = 3;
pub const GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV: GstWebRTCRTPTransceiverDirection = 4;
pub type GstWebRTCSCTPTransportState = c_int;
pub const GST_WEBRTC_SCTP_TRANSPORT_STATE_NEW: GstWebRTCSCTPTransportState = 0;
pub const GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTING: GstWebRTCSCTPTransportState = 1;
pub const GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTED: GstWebRTCSCTPTransportState = 2;
pub const GST_WEBRTC_SCTP_TRANSPORT_STATE_CLOSED: GstWebRTCSCTPTransportState = 3;
pub type GstWebRTCSDPType = c_int;
pub const GST_WEBRTC_SDP_TYPE_OFFER: GstWebRTCSDPType = 1;
pub const GST_WEBRTC_SDP_TYPE_PRANSWER: GstWebRTCSDPType = 2;
@ -338,6 +367,11 @@ impl ::std::fmt::Debug for GstWebRTCRTPTransceiver {
extern "C" {
//=========================================================================
// GstWebRTCBundlePolicy
//=========================================================================
pub fn gst_webrtc_bundle_policy_get_type() -> GType;
//=========================================================================
// GstWebRTCDTLSSetup
//=========================================================================
@ -348,6 +382,11 @@ extern "C" {
//=========================================================================
pub fn gst_webrtc_dtls_transport_state_get_type() -> GType;
//=========================================================================
// GstWebRTCDataChannelState
//=========================================================================
pub fn gst_webrtc_data_channel_state_get_type() -> GType;
//=========================================================================
// GstWebRTCFECType
//=========================================================================
@ -373,16 +412,31 @@ extern "C" {
//=========================================================================
pub fn gst_webrtc_ice_role_get_type() -> GType;
//=========================================================================
// GstWebRTCICETransportPolicy
//=========================================================================
pub fn gst_webrtc_ice_transport_policy_get_type() -> GType;
//=========================================================================
// GstWebRTCPeerConnectionState
//=========================================================================
pub fn gst_webrtc_peer_connection_state_get_type() -> GType;
//=========================================================================
// GstWebRTCPriorityType
//=========================================================================
pub fn gst_webrtc_priority_type_get_type() -> GType;
//=========================================================================
// GstWebRTCRTPTransceiverDirection
//=========================================================================
pub fn gst_webrtc_rtp_transceiver_direction_get_type() -> GType;
//=========================================================================
// GstWebRTCSCTPTransportState
//=========================================================================
pub fn gst_webrtc_sctp_transport_state_get_type() -> GType;
//=========================================================================
// GstWebRTCSDPType
//=========================================================================

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
@ -238,10 +238,12 @@ fn get_c_value(dir: &Path, cc: &Compiler, name: &str) -> Result<String, Box<Erro
}
const RUST_LAYOUTS: &[(&str, Layout)] = &[
("GstWebRTCBundlePolicy", Layout {size: size_of::<GstWebRTCBundlePolicy>(), alignment: align_of::<GstWebRTCBundlePolicy>()}),
("GstWebRTCDTLSSetup", Layout {size: size_of::<GstWebRTCDTLSSetup>(), alignment: align_of::<GstWebRTCDTLSSetup>()}),
("GstWebRTCDTLSTransport", Layout {size: size_of::<GstWebRTCDTLSTransport>(), alignment: align_of::<GstWebRTCDTLSTransport>()}),
("GstWebRTCDTLSTransportClass", Layout {size: size_of::<GstWebRTCDTLSTransportClass>(), alignment: align_of::<GstWebRTCDTLSTransportClass>()}),
("GstWebRTCDTLSTransportState", Layout {size: size_of::<GstWebRTCDTLSTransportState>(), alignment: align_of::<GstWebRTCDTLSTransportState>()}),
("GstWebRTCDataChannelState", Layout {size: size_of::<GstWebRTCDataChannelState>(), alignment: align_of::<GstWebRTCDataChannelState>()}),
("GstWebRTCFECType", Layout {size: size_of::<GstWebRTCFECType>(), alignment: align_of::<GstWebRTCFECType>()}),
("GstWebRTCICEComponent", Layout {size: size_of::<GstWebRTCICEComponent>(), alignment: align_of::<GstWebRTCICEComponent>()}),
("GstWebRTCICEConnectionState", Layout {size: size_of::<GstWebRTCICEConnectionState>(), alignment: align_of::<GstWebRTCICEConnectionState>()}),
@ -249,7 +251,9 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
("GstWebRTCICERole", Layout {size: size_of::<GstWebRTCICERole>(), alignment: align_of::<GstWebRTCICERole>()}),
("GstWebRTCICETransport", Layout {size: size_of::<GstWebRTCICETransport>(), alignment: align_of::<GstWebRTCICETransport>()}),
("GstWebRTCICETransportClass", Layout {size: size_of::<GstWebRTCICETransportClass>(), alignment: align_of::<GstWebRTCICETransportClass>()}),
("GstWebRTCICETransportPolicy", Layout {size: size_of::<GstWebRTCICETransportPolicy>(), alignment: align_of::<GstWebRTCICETransportPolicy>()}),
("GstWebRTCPeerConnectionState", Layout {size: size_of::<GstWebRTCPeerConnectionState>(), alignment: align_of::<GstWebRTCPeerConnectionState>()}),
("GstWebRTCPriorityType", Layout {size: size_of::<GstWebRTCPriorityType>(), alignment: align_of::<GstWebRTCPriorityType>()}),
("GstWebRTCRTPReceiver", Layout {size: size_of::<GstWebRTCRTPReceiver>(), alignment: align_of::<GstWebRTCRTPReceiver>()}),
("GstWebRTCRTPReceiverClass", Layout {size: size_of::<GstWebRTCRTPReceiverClass>(), alignment: align_of::<GstWebRTCRTPReceiverClass>()}),
("GstWebRTCRTPSender", Layout {size: size_of::<GstWebRTCRTPSender>(), alignment: align_of::<GstWebRTCRTPSender>()}),
@ -257,6 +261,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
("GstWebRTCRTPTransceiver", Layout {size: size_of::<GstWebRTCRTPTransceiver>(), alignment: align_of::<GstWebRTCRTPTransceiver>()}),
("GstWebRTCRTPTransceiverClass", Layout {size: size_of::<GstWebRTCRTPTransceiverClass>(), alignment: align_of::<GstWebRTCRTPTransceiverClass>()}),
("GstWebRTCRTPTransceiverDirection", Layout {size: size_of::<GstWebRTCRTPTransceiverDirection>(), alignment: align_of::<GstWebRTCRTPTransceiverDirection>()}),
("GstWebRTCSCTPTransportState", Layout {size: size_of::<GstWebRTCSCTPTransportState>(), alignment: align_of::<GstWebRTCSCTPTransportState>()}),
("GstWebRTCSDPType", Layout {size: size_of::<GstWebRTCSDPType>(), alignment: align_of::<GstWebRTCSDPType>()}),
("GstWebRTCSessionDescription", Layout {size: size_of::<GstWebRTCSessionDescription>(), alignment: align_of::<GstWebRTCSessionDescription>()}),
("GstWebRTCSignalingState", Layout {size: size_of::<GstWebRTCSignalingState>(), alignment: align_of::<GstWebRTCSignalingState>()}),
@ -264,6 +269,15 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
];
const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_WEBRTC_BUNDLE_POLICY_BALANCED", "1"),
("(gint) GST_WEBRTC_BUNDLE_POLICY_MAX_BUNDLE", "3"),
("(gint) GST_WEBRTC_BUNDLE_POLICY_MAX_COMPAT", "2"),
("(gint) GST_WEBRTC_BUNDLE_POLICY_NONE", "0"),
("(gint) GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED", "4"),
("(gint) GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING", "3"),
("(gint) GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING", "1"),
("(gint) GST_WEBRTC_DATA_CHANNEL_STATE_NEW", "0"),
("(gint) GST_WEBRTC_DATA_CHANNEL_STATE_OPEN", "2"),
("(gint) GST_WEBRTC_DTLS_SETUP_ACTIVE", "2"),
("(gint) GST_WEBRTC_DTLS_SETUP_ACTPASS", "1"),
("(gint) GST_WEBRTC_DTLS_SETUP_NONE", "0"),
@ -289,17 +303,27 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_WEBRTC_ICE_GATHERING_STATE_NEW", "0"),
("(gint) GST_WEBRTC_ICE_ROLE_CONTROLLED", "0"),
("(gint) GST_WEBRTC_ICE_ROLE_CONTROLLING", "1"),
("(gint) GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL", "0"),
("(gint) GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY", "1"),
("(gint) GST_WEBRTC_PEER_CONNECTION_STATE_CLOSED", "5"),
("(gint) GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTED", "2"),
("(gint) GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTING", "1"),
("(gint) GST_WEBRTC_PEER_CONNECTION_STATE_DISCONNECTED", "3"),
("(gint) GST_WEBRTC_PEER_CONNECTION_STATE_FAILED", "4"),
("(gint) GST_WEBRTC_PEER_CONNECTION_STATE_NEW", "0"),
("(gint) GST_WEBRTC_PRIORITY_TYPE_HIGH", "4"),
("(gint) GST_WEBRTC_PRIORITY_TYPE_LOW", "2"),
("(gint) GST_WEBRTC_PRIORITY_TYPE_MEDIUM", "3"),
("(gint) GST_WEBRTC_PRIORITY_TYPE_VERY_LOW", "1"),
("(gint) GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_INACTIVE", "1"),
("(gint) GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_NONE", "0"),
("(gint) GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY", "3"),
("(gint) GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY", "2"),
("(gint) GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV", "4"),
("(gint) GST_WEBRTC_SCTP_TRANSPORT_STATE_CLOSED", "3"),
("(gint) GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTED", "2"),
("(gint) GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTING", "1"),
("(gint) GST_WEBRTC_SCTP_TRANSPORT_STATE_NEW", "0"),
("(gint) GST_WEBRTC_SDP_TYPE_ANSWER", "3"),
("(gint) GST_WEBRTC_SDP_TYPE_OFFER", "1"),
("(gint) GST_WEBRTC_SDP_TYPE_PRANSWER", "2"),

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 58cffd4)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT