Regenerate with latest GStreamer gir files

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1563>
This commit is contained in:
Sebastian Dröge 2024-10-20 14:47:20 +03:00 committed by GStreamer Marge Bot
parent db976c9476
commit 973f843353
76 changed files with 697 additions and 88 deletions

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -31,6 +31,11 @@ use glib::{gboolean, gconstpointer, gpointer, GType};
// Aliases // Aliases
pub type GstAnalyticsMtdType = uintptr_t; pub type GstAnalyticsMtdType = uintptr_t;
// Enums
pub type GstSegmentationType = c_int;
pub const GST_SEGMENTATION_TYPE_SEMANTIC: GstSegmentationType = 0;
pub const GST_SEGMENTATION_TYPE_INSTANCE: GstSegmentationType = 1;
// Constants // Constants
pub const GST_INF_RELATION_SPAN: c_int = -1; pub const GST_INF_RELATION_SPAN: c_int = -1;
pub const GST_ANALYTICS_MTD_TYPE_ANY: c_int = 0; pub const GST_ANALYTICS_MTD_TYPE_ANY: c_int = 0;
@ -90,7 +95,8 @@ pub struct GstAnalyticsMtdImpl {
gpointer, gpointer,
) -> gboolean, ) -> gboolean,
>, >,
pub _reserved: [gpointer; 20], pub mtd_meta_clear: Option<unsafe extern "C" fn(*mut gst::GstBuffer, *mut GstAnalyticsMtd)>,
pub _reserved: [gpointer; 19],
} }
impl ::std::fmt::Debug for GstAnalyticsMtdImpl { impl ::std::fmt::Debug for GstAnalyticsMtdImpl {
@ -98,6 +104,7 @@ impl ::std::fmt::Debug for GstAnalyticsMtdImpl {
f.debug_struct(&format!("GstAnalyticsMtdImpl @ {self:p}")) f.debug_struct(&format!("GstAnalyticsMtdImpl @ {self:p}"))
.field("name", &self.name) .field("name", &self.name)
.field("mtd_meta_transform", &self.mtd_meta_transform) .field("mtd_meta_transform", &self.mtd_meta_transform)
.field("mtd_meta_clear", &self.mtd_meta_clear)
.finish() .finish()
} }
} }
@ -143,6 +150,22 @@ impl ::std::fmt::Debug for GstAnalyticsRelationMetaInitParams {
} }
} }
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstAnalyticsSegmentationMtd {
pub id: c_uint,
pub meta: *mut GstAnalyticsRelationMeta,
}
impl ::std::fmt::Debug for GstAnalyticsSegmentationMtd {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAnalyticsSegmentationMtd @ {self:p}"))
.field("id", &self.id)
.field("meta", &self.meta)
.finish()
}
}
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
#[repr(C)] #[repr(C)]
pub struct GstAnalyticsTrackingMtd { pub struct GstAnalyticsTrackingMtd {
@ -165,16 +188,16 @@ extern "C" {
// GstAnalyticsClsMtd // GstAnalyticsClsMtd
//========================================================================= //=========================================================================
pub fn gst_analytics_cls_mtd_get_index_by_quark( pub fn gst_analytics_cls_mtd_get_index_by_quark(
handle: *mut GstAnalyticsClsMtd, handle: *const GstAnalyticsClsMtd,
quark: glib::GQuark, quark: glib::GQuark,
) -> c_int; ) -> c_int;
pub fn gst_analytics_cls_mtd_get_length(handle: *mut GstAnalyticsClsMtd) -> size_t; pub fn gst_analytics_cls_mtd_get_length(handle: *const GstAnalyticsClsMtd) -> size_t;
pub fn gst_analytics_cls_mtd_get_level( pub fn gst_analytics_cls_mtd_get_level(
handle: *mut GstAnalyticsClsMtd, handle: *const GstAnalyticsClsMtd,
index: size_t, index: size_t,
) -> c_float; ) -> c_float;
pub fn gst_analytics_cls_mtd_get_quark( pub fn gst_analytics_cls_mtd_get_quark(
handle: *mut GstAnalyticsClsMtd, handle: *const GstAnalyticsClsMtd,
index: size_t, index: size_t,
) -> glib::GQuark; ) -> glib::GQuark;
pub fn gst_analytics_cls_mtd_get_mtd_type() -> GstAnalyticsMtdType; pub fn gst_analytics_cls_mtd_get_mtd_type() -> GstAnalyticsMtdType;
@ -182,27 +205,27 @@ extern "C" {
//========================================================================= //=========================================================================
// GstAnalyticsMtd // GstAnalyticsMtd
//========================================================================= //=========================================================================
pub fn gst_analytics_mtd_get_id(instance: *mut GstAnalyticsMtd) -> c_uint; pub fn gst_analytics_mtd_get_id(instance: *const GstAnalyticsMtd) -> c_uint;
pub fn gst_analytics_mtd_get_mtd_type(instance: *mut GstAnalyticsMtd) -> GstAnalyticsMtdType; pub fn gst_analytics_mtd_get_mtd_type(instance: *const GstAnalyticsMtd) -> GstAnalyticsMtdType;
pub fn gst_analytics_mtd_get_size(instance: *mut GstAnalyticsMtd) -> size_t; pub fn gst_analytics_mtd_get_size(instance: *const GstAnalyticsMtd) -> size_t;
pub fn gst_analytics_mtd_type_get_name(type_: GstAnalyticsMtdType) -> *const c_char; pub fn gst_analytics_mtd_type_get_name(type_: GstAnalyticsMtdType) -> *const c_char;
//========================================================================= //=========================================================================
// GstAnalyticsODMtd // GstAnalyticsODMtd
//========================================================================= //=========================================================================
pub fn gst_analytics_od_mtd_get_confidence_lvl( pub fn gst_analytics_od_mtd_get_confidence_lvl(
instance: *mut GstAnalyticsODMtd, instance: *const GstAnalyticsODMtd,
loc_conf_lvl: *mut c_float, loc_conf_lvl: *mut c_float,
) -> gboolean; ) -> gboolean;
pub fn gst_analytics_od_mtd_get_location( pub fn gst_analytics_od_mtd_get_location(
instance: *mut GstAnalyticsODMtd, instance: *const GstAnalyticsODMtd,
x: *mut c_int, x: *mut c_int,
y: *mut c_int, y: *mut c_int,
w: *mut c_int, w: *mut c_int,
h: *mut c_int, h: *mut c_int,
loc_conf_lvl: *mut c_float, loc_conf_lvl: *mut c_float,
) -> gboolean; ) -> gboolean;
pub fn gst_analytics_od_mtd_get_obj_type(handle: *mut GstAnalyticsODMtd) -> glib::GQuark; pub fn gst_analytics_od_mtd_get_obj_type(handle: *const GstAnalyticsODMtd) -> glib::GQuark;
pub fn gst_analytics_od_mtd_get_mtd_type() -> GstAnalyticsMtdType; pub fn gst_analytics_od_mtd_get_mtd_type() -> GstAnalyticsMtdType;
//========================================================================= //=========================================================================
@ -237,6 +260,20 @@ extern "C" {
class_quark: glib::GQuark, class_quark: glib::GQuark,
cls_mtd: *mut GstAnalyticsClsMtd, cls_mtd: *mut GstAnalyticsClsMtd,
) -> gboolean; ) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_analytics_relation_meta_add_segmentation_mtd(
instance: *mut GstAnalyticsRelationMeta,
buffer: *mut gst::GstBuffer,
segmentation_type: GstSegmentationType,
region_count: size_t,
region_ids: *mut c_uint,
masks_loc_x: c_int,
masks_loc_y: c_int,
masks_loc_w: c_uint,
masks_loc_h: c_uint,
segmentation_mtd: *mut GstAnalyticsSegmentationMtd,
) -> gboolean;
pub fn gst_analytics_relation_meta_add_tracking_mtd( pub fn gst_analytics_relation_meta_add_tracking_mtd(
instance: *mut GstAnalyticsRelationMeta, instance: *mut GstAnalyticsRelationMeta,
tracking_id: u64, tracking_id: u64,
@ -244,7 +281,7 @@ extern "C" {
trk_mtd: *mut GstAnalyticsTrackingMtd, trk_mtd: *mut GstAnalyticsTrackingMtd,
) -> gboolean; ) -> gboolean;
pub fn gst_analytics_relation_meta_exist( pub fn gst_analytics_relation_meta_exist(
rmeta: *mut GstAnalyticsRelationMeta, rmeta: *const GstAnalyticsRelationMeta,
an_meta_first_id: c_uint, an_meta_first_id: c_uint,
an_meta_second_id: c_uint, an_meta_second_id: c_uint,
max_relation_span: c_int, max_relation_span: c_int,
@ -271,7 +308,7 @@ extern "C" {
rlt: *mut GstAnalyticsMtd, rlt: *mut GstAnalyticsMtd,
) -> gboolean; ) -> gboolean;
pub fn gst_analytics_relation_meta_get_mtd_data( pub fn gst_analytics_relation_meta_get_mtd_data(
meta: *mut GstAnalyticsRelationMeta, meta: *const GstAnalyticsRelationMeta,
an_meta_id: c_uint, an_meta_id: c_uint,
) -> gpointer; ) -> gpointer;
pub fn gst_analytics_relation_meta_get_od_mtd( pub fn gst_analytics_relation_meta_get_od_mtd(
@ -280,7 +317,7 @@ extern "C" {
rlt: *mut GstAnalyticsODMtd, rlt: *mut GstAnalyticsODMtd,
) -> gboolean; ) -> gboolean;
pub fn gst_analytics_relation_meta_get_relation( pub fn gst_analytics_relation_meta_get_relation(
meta: *mut GstAnalyticsRelationMeta, meta: *const GstAnalyticsRelationMeta,
an_meta_first_id: c_uint, an_meta_first_id: c_uint,
an_meta_second_id: c_uint, an_meta_second_id: c_uint,
) -> GstAnalyticsRelTypes; ) -> GstAnalyticsRelTypes;
@ -303,11 +340,45 @@ extern "C" {
) -> gboolean; ) -> gboolean;
pub fn gst_analytics_relation_meta_get_info() -> *const gst::GstMetaInfo; pub fn gst_analytics_relation_meta_get_info() -> *const gst::GstMetaInfo;
//=========================================================================
// GstAnalyticsSegmentationMtd
//=========================================================================
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_analytics_segmentation_mtd_get_mask(
handle: *const GstAnalyticsSegmentationMtd,
masks_loc_x: *mut c_int,
masks_loc_y: *mut c_int,
masks_loc_w: *mut c_uint,
masks_loc_h: *mut c_uint,
) -> *mut gst::GstBuffer;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_analytics_segmentation_mtd_get_region_count(
handle: *const GstAnalyticsSegmentationMtd,
) -> size_t;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_analytics_segmentation_mtd_get_region_id(
handle: *const GstAnalyticsSegmentationMtd,
index: size_t,
) -> c_uint;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_analytics_segmentation_mtd_get_region_index(
handle: *const GstAnalyticsSegmentationMtd,
index: *mut size_t,
id: c_uint,
) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_analytics_segmentation_mtd_get_mtd_type() -> GstAnalyticsMtdType;
//========================================================================= //=========================================================================
// GstAnalyticsTrackingMtd // GstAnalyticsTrackingMtd
//========================================================================= //=========================================================================
pub fn gst_analytics_tracking_mtd_get_info( pub fn gst_analytics_tracking_mtd_get_info(
instance: *mut GstAnalyticsTrackingMtd, instance: *const GstAnalyticsTrackingMtd,
tracking_id: *mut u64, tracking_id: *mut u64,
tracking_first_seen: *mut gst::GstClockTime, tracking_first_seen: *mut gst::GstClockTime,
tracking_last_seen: *mut gst::GstClockTime, tracking_last_seen: *mut gst::GstClockTime,
@ -333,7 +404,7 @@ extern "C" {
pub fn gst_buffer_get_analytics_relation_meta( pub fn gst_buffer_get_analytics_relation_meta(
buffer: *mut gst::GstBuffer, buffer: *mut gst::GstBuffer,
) -> *mut GstAnalyticsRelationMeta; ) -> *mut GstAnalyticsRelationMeta;
pub fn gst_analytics_relation_get_length(instance: *mut GstAnalyticsRelationMeta) -> size_t; pub fn gst_analytics_relation_get_length(instance: *const GstAnalyticsRelationMeta) -> size_t;
pub fn gst_analytics_relation_meta_api_get_type() -> GType; pub fn gst_analytics_relation_meta_api_get_type() -> GType;
} }

View file

@ -251,6 +251,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstAnalyticsRelationMetaInitParams>(), alignment: align_of::<GstAnalyticsRelationMetaInitParams>(),
}, },
), ),
(
"GstAnalyticsSegmentationMtd",
Layout {
size: size_of::<GstAnalyticsSegmentationMtd>(),
alignment: align_of::<GstAnalyticsSegmentationMtd>(),
},
),
( (
"GstAnalyticsTrackingMtd", "GstAnalyticsTrackingMtd",
Layout { Layout {
@ -258,6 +265,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstAnalyticsTrackingMtd>(), alignment: align_of::<GstAnalyticsTrackingMtd>(),
}, },
), ),
(
"GstSegmentationType",
Layout {
size: size_of::<GstSegmentationType>(),
alignment: align_of::<GstSegmentationType>(),
},
),
]; ];
const RUST_CONSTANTS: &[(&str, &str)] = &[ const RUST_CONSTANTS: &[(&str, &str)] = &[
@ -269,4 +283,6 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_ANALYTICS_REL_TYPE_NONE", "0"), ("(guint) GST_ANALYTICS_REL_TYPE_NONE", "0"),
("(guint) GST_ANALYTICS_REL_TYPE_RELATE_TO", "8"), ("(guint) GST_ANALYTICS_REL_TYPE_RELATE_TO", "8"),
("GST_INF_RELATION_SPAN", "-1"), ("GST_INF_RELATION_SPAN", "-1"),
("(gint) GST_SEGMENTATION_TYPE_INSTANCE", "1"),
("(gint) GST_SEGMENTATION_TYPE_SEMANTIC", "0"),
]; ];

View file

@ -37,5 +37,7 @@ int main() {
PRINT_CONSTANT((guint) GST_ANALYTICS_REL_TYPE_NONE); PRINT_CONSTANT((guint) GST_ANALYTICS_REL_TYPE_NONE);
PRINT_CONSTANT((guint) GST_ANALYTICS_REL_TYPE_RELATE_TO); PRINT_CONSTANT((guint) GST_ANALYTICS_REL_TYPE_RELATE_TO);
PRINT_CONSTANT(GST_INF_RELATION_SPAN); PRINT_CONSTANT(GST_INF_RELATION_SPAN);
PRINT_CONSTANT((gint) GST_SEGMENTATION_TYPE_INSTANCE);
PRINT_CONSTANT((gint) GST_SEGMENTATION_TYPE_SEMANTIC);
return 0; return 0;
} }

View file

@ -15,6 +15,8 @@ int main() {
printf("%s;%zu;%zu\n", "GstAnalyticsODMtd", sizeof(GstAnalyticsODMtd), alignof(GstAnalyticsODMtd)); printf("%s;%zu;%zu\n", "GstAnalyticsODMtd", sizeof(GstAnalyticsODMtd), alignof(GstAnalyticsODMtd));
printf("%s;%zu;%zu\n", "GstAnalyticsRelTypes", sizeof(GstAnalyticsRelTypes), alignof(GstAnalyticsRelTypes)); printf("%s;%zu;%zu\n", "GstAnalyticsRelTypes", sizeof(GstAnalyticsRelTypes), alignof(GstAnalyticsRelTypes));
printf("%s;%zu;%zu\n", "GstAnalyticsRelationMetaInitParams", sizeof(GstAnalyticsRelationMetaInitParams), alignof(GstAnalyticsRelationMetaInitParams)); printf("%s;%zu;%zu\n", "GstAnalyticsRelationMetaInitParams", sizeof(GstAnalyticsRelationMetaInitParams), alignof(GstAnalyticsRelationMetaInitParams));
printf("%s;%zu;%zu\n", "GstAnalyticsSegmentationMtd", sizeof(GstAnalyticsSegmentationMtd), alignof(GstAnalyticsSegmentationMtd));
printf("%s;%zu;%zu\n", "GstAnalyticsTrackingMtd", sizeof(GstAnalyticsTrackingMtd), alignof(GstAnalyticsTrackingMtd)); printf("%s;%zu;%zu\n", "GstAnalyticsTrackingMtd", sizeof(GstAnalyticsTrackingMtd), alignof(GstAnalyticsTrackingMtd));
printf("%s;%zu;%zu\n", "GstSegmentationType", sizeof(GstSegmentationType), alignof(GstSegmentationType));
return 0; return 0;
} }

View file

@ -77,6 +77,7 @@ impl AppSink {
} }
#[doc(alias = "gst_app_sink_is_eos")] #[doc(alias = "gst_app_sink_is_eos")]
#[doc(alias = "eos")]
pub fn is_eos(&self) -> bool { pub fn is_eos(&self) -> bool {
unsafe { from_glib(ffi::gst_app_sink_is_eos(self.to_glib_none().0)) } unsafe { from_glib(ffi::gst_app_sink_is_eos(self.to_glib_none().0)) }
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1796,6 +1796,7 @@ extern "C" {
//========================================================================= //=========================================================================
// GstAudioFormatInfo // GstAudioFormatInfo
//========================================================================= //=========================================================================
pub fn gst_audio_format_info_get_type() -> GType;
#[cfg(feature = "v1_20")] #[cfg(feature = "v1_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
pub fn gst_audio_format_info_fill_silence( pub fn gst_audio_format_info_fill_silence(
@ -2433,7 +2434,6 @@ extern "C" {
) -> gboolean; ) -> gboolean;
pub fn gst_audio_clipping_meta_api_get_type() -> GType; pub fn gst_audio_clipping_meta_api_get_type() -> GType;
pub fn gst_audio_downmix_meta_api_get_type() -> GType; pub fn gst_audio_downmix_meta_api_get_type() -> GType;
pub fn gst_audio_format_info_get_type() -> GType;
#[cfg(feature = "v1_18")] #[cfg(feature = "v1_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
pub fn gst_audio_formats_raw(len: *mut c_uint) -> *const GstAudioFormat; pub fn gst_audio_formats_raw(len: *mut c_uint) -> *const GstAudioFormat;

View file

@ -123,6 +123,13 @@ pub trait AggregatorExt: IsA<Aggregator> + 'static {
} }
} }
//#[cfg(feature = "v1_26")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
//#[doc(alias = "gst_aggregator_push_src_event")]
//fn push_src_event(&self, event: /*Ignored*/gst::Event) -> bool {
// unsafe { TODO: call ffi:gst_aggregator_push_src_event() }
//}
#[cfg(feature = "v1_22")] #[cfg(feature = "v1_22")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "gst_aggregator_set_force_live")] #[doc(alias = "gst_aggregator_set_force_live")]

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1898,6 +1898,12 @@ extern "C" {
self_: *mut GstAggregator, self_: *mut GstAggregator,
pad: *mut GstAggregatorPad, pad: *mut GstAggregatorPad,
) -> *mut gst::GstSample; ) -> *mut gst::GstSample;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_aggregator_push_src_event(
aggregator: *mut GstAggregator,
event: *mut gst::GstEvent,
) -> gboolean;
#[cfg(feature = "v1_18")] #[cfg(feature = "v1_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_selected_samples( pub fn gst_aggregator_selected_samples(

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -85,7 +85,7 @@ pub trait TrackElementExt: IsA<TrackElement> + 'static {
//#[doc(alias = "ges_track_element_get_all_control_bindings")] //#[doc(alias = "ges_track_element_get_all_control_bindings")]
//#[doc(alias = "get_all_control_bindings")] //#[doc(alias = "get_all_control_bindings")]
//fn all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 88 } { //fn all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 89 } {
// unsafe { TODO: call ffi:ges_track_element_get_all_control_bindings() } // unsafe { TODO: call ffi:ges_track_element_get_all_control_bindings() }
//} //}
@ -220,6 +220,7 @@ pub trait TrackElementExt: IsA<TrackElement> + 'static {
} }
#[doc(alias = "ges_track_element_is_active")] #[doc(alias = "ges_track_element_is_active")]
#[doc(alias = "active")]
fn is_active(&self) -> bool { fn is_active(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::ges_track_element_is_active( from_glib(ffi::ges_track_element_is_active(

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -144,6 +144,7 @@ impl GLShader {
} }
#[doc(alias = "gst_gl_shader_is_linked")] #[doc(alias = "gst_gl_shader_is_linked")]
#[doc(alias = "linked")]
pub fn is_linked(&self) -> bool { pub fn is_linked(&self) -> bool {
unsafe { from_glib(ffi::gst_gl_shader_is_linked(self.to_glib_none().0)) } unsafe { from_glib(ffi::gst_gl_shader_is_linked(self.to_glib_none().0)) }
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -328,6 +328,12 @@ pub const GST_MTS_DESC_MVC_OPERATION_POINT: GstMpegtsDescriptorType = 51;
pub const GST_MTS_DESC_MPEG2_STEREOSCOPIC_VIDEO_FORMAT: GstMpegtsDescriptorType = 52; pub const GST_MTS_DESC_MPEG2_STEREOSCOPIC_VIDEO_FORMAT: GstMpegtsDescriptorType = 52;
pub const GST_MTS_DESC_STEREOSCOPIC_PROGRAM_INFO: GstMpegtsDescriptorType = 53; pub const GST_MTS_DESC_STEREOSCOPIC_PROGRAM_INFO: GstMpegtsDescriptorType = 53;
pub const GST_MTS_DESC_STEREOSCOPIC_VIDEO_INFO: GstMpegtsDescriptorType = 54; pub const GST_MTS_DESC_STEREOSCOPIC_VIDEO_INFO: GstMpegtsDescriptorType = 54;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub const GST_MTS_DESC_EXTENSION: GstMpegtsDescriptorType = 63;
pub type GstMpegtsExtendedDescriptorType = c_int;
pub const GST_MTS_DESC_EXT_JXS_VIDEO: GstMpegtsExtendedDescriptorType = 20;
pub type GstMpegtsHdmvStreamType = c_int; pub type GstMpegtsHdmvStreamType = c_int;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_LPCM: GstMpegtsHdmvStreamType = 128; pub const GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_LPCM: GstMpegtsHdmvStreamType = 128;
@ -649,6 +655,9 @@ pub const GST_MPEGTS_STREAM_TYPE_VIDEO_JP2K: GstMpegtsStreamType = 33;
pub const GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2_STEREO_ADDITIONAL_VIEW: GstMpegtsStreamType = 34; pub const GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2_STEREO_ADDITIONAL_VIEW: GstMpegtsStreamType = 34;
pub const GST_MPEGTS_STREAM_TYPE_VIDEO_H264_STEREO_ADDITIONAL_VIEW: GstMpegtsStreamType = 35; pub const GST_MPEGTS_STREAM_TYPE_VIDEO_H264_STEREO_ADDITIONAL_VIEW: GstMpegtsStreamType = 35;
pub const GST_MPEGTS_STREAM_TYPE_VIDEO_HEVC: GstMpegtsStreamType = 36; pub const GST_MPEGTS_STREAM_TYPE_VIDEO_HEVC: GstMpegtsStreamType = 36;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub const GST_MPEGTS_STREAM_TYPE_VIDEO_JPEG_XS: GstMpegtsStreamType = 50;
pub const GST_MPEGTS_STREAM_TYPE_IPMP_STREAM: GstMpegtsStreamType = 127; pub const GST_MPEGTS_STREAM_TYPE_IPMP_STREAM: GstMpegtsStreamType = 127;
#[cfg(feature = "v1_20")] #[cfg(feature = "v1_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
@ -1498,6 +1507,74 @@ impl ::std::fmt::Debug for GstMpegtsISO639LanguageDescriptor {
} }
} }
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstMpegtsJpegXsDescriptor {
pub descriptor_version: u8,
pub horizontal_size: u16,
pub vertical_size: u16,
pub brat: u32,
pub frat: u32,
pub schar: u16,
pub Ppih: u16,
pub Plev: u16,
pub max_buffer_size: u32,
pub buffer_model_type: u8,
pub colour_primaries: u8,
pub transfer_characteristics: u8,
pub matrix_coefficients: u8,
pub video_full_range_flag: gboolean,
pub still_mode: gboolean,
pub mdm_flag: gboolean,
pub X_c0: u16,
pub Y_c0: u16,
pub X_c1: u16,
pub Y_c1: u16,
pub X_c2: u16,
pub Y_c2: u16,
pub X_wp: u16,
pub Y_wp: u16,
pub L_max: u32,
pub L_min: u32,
pub MaxCLL: u16,
pub MaxFALL: u16,
}
impl ::std::fmt::Debug for GstMpegtsJpegXsDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsJpegXsDescriptor @ {self:p}"))
.field("descriptor_version", &self.descriptor_version)
.field("horizontal_size", &self.horizontal_size)
.field("vertical_size", &self.vertical_size)
.field("brat", &self.brat)
.field("frat", &self.frat)
.field("schar", &self.schar)
.field("Ppih", &self.Ppih)
.field("Plev", &self.Plev)
.field("max_buffer_size", &self.max_buffer_size)
.field("buffer_model_type", &self.buffer_model_type)
.field("colour_primaries", &self.colour_primaries)
.field("transfer_characteristics", &self.transfer_characteristics)
.field("matrix_coefficients", &self.matrix_coefficients)
.field("video_full_range_flag", &self.video_full_range_flag)
.field("still_mode", &self.still_mode)
.field("mdm_flag", &self.mdm_flag)
.field("X_c0", &self.X_c0)
.field("Y_c0", &self.Y_c0)
.field("X_c1", &self.X_c1)
.field("Y_c1", &self.Y_c1)
.field("X_c2", &self.X_c2)
.field("Y_c2", &self.Y_c2)
.field("X_wp", &self.X_wp)
.field("Y_wp", &self.Y_wp)
.field("L_max", &self.L_max)
.field("L_min", &self.L_min)
.field("MaxCLL", &self.MaxCLL)
.field("MaxFALL", &self.MaxFALL)
.finish()
}
}
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
#[repr(C)] #[repr(C)]
pub struct GstMpegtsLogicalChannel { pub struct GstMpegtsLogicalChannel {
@ -2261,6 +2338,9 @@ extern "C" {
// GstMpegtsDescriptor // GstMpegtsDescriptor
//========================================================================= //=========================================================================
pub fn gst_mpegts_descriptor_get_type() -> GType; pub fn gst_mpegts_descriptor_get_type() -> GType;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_mpegts_descriptor_copy(desc: *mut GstMpegtsDescriptor) -> *mut GstMpegtsDescriptor;
pub fn gst_mpegts_descriptor_free(desc: *mut GstMpegtsDescriptor); pub fn gst_mpegts_descriptor_free(desc: *mut GstMpegtsDescriptor);
#[cfg(feature = "v1_20")] #[cfg(feature = "v1_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
@ -2416,6 +2496,12 @@ extern "C" {
pub fn gst_mpegts_descriptor_parse_iso_639_language_nb( pub fn gst_mpegts_descriptor_parse_iso_639_language_nb(
descriptor: *const GstMpegtsDescriptor, descriptor: *const GstMpegtsDescriptor,
) -> c_uint; ) -> c_uint;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_mpegts_descriptor_parse_jpeg_xs(
descriptor: *const GstMpegtsDescriptor,
res: *mut GstMpegtsJpegXsDescriptor,
) -> gboolean;
pub fn gst_mpegts_descriptor_parse_logical_channel( pub fn gst_mpegts_descriptor_parse_logical_channel(
descriptor: *const GstMpegtsDescriptor, descriptor: *const GstMpegtsDescriptor,
res: *mut GstMpegtsLogicalChannelDescriptor, res: *mut GstMpegtsLogicalChannelDescriptor,
@ -2482,6 +2568,11 @@ extern "C" {
) -> *mut GstMpegtsDescriptor; ) -> *mut GstMpegtsDescriptor;
#[cfg(feature = "v1_26")] #[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_mpegts_descriptor_from_jpeg_xs(
jpegxs: *const GstMpegtsJpegXsDescriptor,
) -> *mut GstMpegtsDescriptor;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_mpegts_descriptor_from_metadata( pub fn gst_mpegts_descriptor_from_metadata(
metadata_descriptor: *const GstMpegtsMetadataDescriptor, metadata_descriptor: *const GstMpegtsMetadataDescriptor,
) -> *mut GstMpegtsDescriptor; ) -> *mut GstMpegtsDescriptor;
@ -2555,6 +2646,13 @@ extern "C" {
desc: *mut GstMpegtsISO639LanguageDescriptor, desc: *mut GstMpegtsISO639LanguageDescriptor,
); );
//=========================================================================
// GstMpegtsJpegXsDescriptor
//=========================================================================
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_mpegts_jpeg_xs_descriptor_get_type() -> GType;
//========================================================================= //=========================================================================
// GstMpegtsLogicalChannel // GstMpegtsLogicalChannel
//========================================================================= //=========================================================================

View file

@ -538,6 +538,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstMpegtsEITEvent>(), alignment: align_of::<GstMpegtsEITEvent>(),
}, },
), ),
(
"GstMpegtsExtendedDescriptorType",
Layout {
size: size_of::<GstMpegtsExtendedDescriptorType>(),
alignment: align_of::<GstMpegtsExtendedDescriptorType>(),
},
),
( (
"GstMpegtsExtendedEventDescriptor", "GstMpegtsExtendedEventDescriptor",
Layout { Layout {
@ -580,6 +587,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstMpegtsIso639AudioType>(), alignment: align_of::<GstMpegtsIso639AudioType>(),
}, },
), ),
(
"GstMpegtsJpegXsDescriptor",
Layout {
size: size_of::<GstMpegtsJpegXsDescriptor>(),
alignment: align_of::<GstMpegtsJpegXsDescriptor>(),
},
),
( (
"GstMpegtsLogicalChannel", "GstMpegtsLogicalChannel",
Layout { Layout {
@ -1211,6 +1225,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
), ),
("(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_HEVC", "36"), ("(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_HEVC", "36"),
("(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_JP2K", "33"), ("(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_JP2K", "33"),
("(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_JPEG_XS", "50"),
("(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG1", "1"), ("(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG1", "1"),
("(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2", "2"), ("(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2", "2"),
( (
@ -1336,6 +1351,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MTS_DESC_DVB_VBI_DATA", "69"), ("(gint) GST_MTS_DESC_DVB_VBI_DATA", "69"),
("(gint) GST_MTS_DESC_DVB_VBI_TELETEXT", "70"), ("(gint) GST_MTS_DESC_DVB_VBI_TELETEXT", "70"),
("(gint) GST_MTS_DESC_DVB_XAIT_LOCATION", "125"), ("(gint) GST_MTS_DESC_DVB_XAIT_LOCATION", "125"),
("(gint) GST_MTS_DESC_EXTENSION", "63"),
("(gint) GST_MTS_DESC_EXTERNAL_ES_ID", "32"), ("(gint) GST_MTS_DESC_EXTERNAL_ES_ID", "32"),
("(gint) GST_MTS_DESC_EXT_DVB_AC4", "21"), ("(gint) GST_MTS_DESC_EXT_DVB_AC4", "21"),
("(gint) GST_MTS_DESC_EXT_DVB_AUDIO_PRESELECTION", "25"), ("(gint) GST_MTS_DESC_EXT_DVB_AUDIO_PRESELECTION", "25"),
@ -1358,6 +1374,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MTS_DESC_EXT_DVB_URI_LINKAGE", "19"), ("(gint) GST_MTS_DESC_EXT_DVB_URI_LINKAGE", "19"),
("(gint) GST_MTS_DESC_EXT_DVB_VIDEO_DEPTH_RANGE", "16"), ("(gint) GST_MTS_DESC_EXT_DVB_VIDEO_DEPTH_RANGE", "16"),
("(gint) GST_MTS_DESC_EXT_DVB_XAIT_PID", "12"), ("(gint) GST_MTS_DESC_EXT_DVB_XAIT_PID", "12"),
("(gint) GST_MTS_DESC_EXT_JXS_VIDEO", "20"),
("(gint) GST_MTS_DESC_FLEX_MUX_TIMING", "44"), ("(gint) GST_MTS_DESC_FLEX_MUX_TIMING", "44"),
("(gint) GST_MTS_DESC_FMC", "31"), ("(gint) GST_MTS_DESC_FMC", "31"),
("(gint) GST_MTS_DESC_FMX_BUFFER_SIZE", "34"), ("(gint) GST_MTS_DESC_FMX_BUFFER_SIZE", "34"),

View file

@ -264,6 +264,7 @@ int main() {
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_H264_SVC_SUB_BITSTREAM); PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_H264_SVC_SUB_BITSTREAM);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_HEVC); PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_HEVC);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_JP2K); PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_JP2K);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_JPEG_XS);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG1); PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG1);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2); PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2_STEREO_ADDITIONAL_VIEW); PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2_STEREO_ADDITIONAL_VIEW);
@ -380,6 +381,7 @@ int main() {
PRINT_CONSTANT((gint) GST_MTS_DESC_DVB_VBI_DATA); PRINT_CONSTANT((gint) GST_MTS_DESC_DVB_VBI_DATA);
PRINT_CONSTANT((gint) GST_MTS_DESC_DVB_VBI_TELETEXT); PRINT_CONSTANT((gint) GST_MTS_DESC_DVB_VBI_TELETEXT);
PRINT_CONSTANT((gint) GST_MTS_DESC_DVB_XAIT_LOCATION); PRINT_CONSTANT((gint) GST_MTS_DESC_DVB_XAIT_LOCATION);
PRINT_CONSTANT((gint) GST_MTS_DESC_EXTENSION);
PRINT_CONSTANT((gint) GST_MTS_DESC_EXTERNAL_ES_ID); PRINT_CONSTANT((gint) GST_MTS_DESC_EXTERNAL_ES_ID);
PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_AC4); PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_AC4);
PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_AUDIO_PRESELECTION); PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_AUDIO_PRESELECTION);
@ -402,6 +404,7 @@ int main() {
PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_URI_LINKAGE); PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_URI_LINKAGE);
PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_VIDEO_DEPTH_RANGE); PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_VIDEO_DEPTH_RANGE);
PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_XAIT_PID); PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_XAIT_PID);
PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_JXS_VIDEO);
PRINT_CONSTANT((gint) GST_MTS_DESC_FLEX_MUX_TIMING); PRINT_CONSTANT((gint) GST_MTS_DESC_FLEX_MUX_TIMING);
PRINT_CONSTANT((gint) GST_MTS_DESC_FMC); PRINT_CONSTANT((gint) GST_MTS_DESC_FMC);
PRINT_CONSTANT((gint) GST_MTS_DESC_FMX_BUFFER_SIZE); PRINT_CONSTANT((gint) GST_MTS_DESC_FMX_BUFFER_SIZE);

View file

@ -56,12 +56,14 @@ int main() {
printf("%s;%zu;%zu\n", "GstMpegtsDvbMultilingualServiceNameItem", sizeof(GstMpegtsDvbMultilingualServiceNameItem), alignof(GstMpegtsDvbMultilingualServiceNameItem)); printf("%s;%zu;%zu\n", "GstMpegtsDvbMultilingualServiceNameItem", sizeof(GstMpegtsDvbMultilingualServiceNameItem), alignof(GstMpegtsDvbMultilingualServiceNameItem));
printf("%s;%zu;%zu\n", "GstMpegtsEIT", sizeof(GstMpegtsEIT), alignof(GstMpegtsEIT)); printf("%s;%zu;%zu\n", "GstMpegtsEIT", sizeof(GstMpegtsEIT), alignof(GstMpegtsEIT));
printf("%s;%zu;%zu\n", "GstMpegtsEITEvent", sizeof(GstMpegtsEITEvent), alignof(GstMpegtsEITEvent)); printf("%s;%zu;%zu\n", "GstMpegtsEITEvent", sizeof(GstMpegtsEITEvent), alignof(GstMpegtsEITEvent));
printf("%s;%zu;%zu\n", "GstMpegtsExtendedDescriptorType", sizeof(GstMpegtsExtendedDescriptorType), alignof(GstMpegtsExtendedDescriptorType));
printf("%s;%zu;%zu\n", "GstMpegtsExtendedEventDescriptor", sizeof(GstMpegtsExtendedEventDescriptor), alignof(GstMpegtsExtendedEventDescriptor)); printf("%s;%zu;%zu\n", "GstMpegtsExtendedEventDescriptor", sizeof(GstMpegtsExtendedEventDescriptor), alignof(GstMpegtsExtendedEventDescriptor));
printf("%s;%zu;%zu\n", "GstMpegtsExtendedEventItem", sizeof(GstMpegtsExtendedEventItem), alignof(GstMpegtsExtendedEventItem)); printf("%s;%zu;%zu\n", "GstMpegtsExtendedEventItem", sizeof(GstMpegtsExtendedEventItem), alignof(GstMpegtsExtendedEventItem));
printf("%s;%zu;%zu\n", "GstMpegtsHdmvStreamType", sizeof(GstMpegtsHdmvStreamType), alignof(GstMpegtsHdmvStreamType)); printf("%s;%zu;%zu\n", "GstMpegtsHdmvStreamType", sizeof(GstMpegtsHdmvStreamType), alignof(GstMpegtsHdmvStreamType));
printf("%s;%zu;%zu\n", "GstMpegtsISDBDescriptorType", sizeof(GstMpegtsISDBDescriptorType), alignof(GstMpegtsISDBDescriptorType)); printf("%s;%zu;%zu\n", "GstMpegtsISDBDescriptorType", sizeof(GstMpegtsISDBDescriptorType), alignof(GstMpegtsISDBDescriptorType));
printf("%s;%zu;%zu\n", "GstMpegtsISO639LanguageDescriptor", sizeof(GstMpegtsISO639LanguageDescriptor), alignof(GstMpegtsISO639LanguageDescriptor)); printf("%s;%zu;%zu\n", "GstMpegtsISO639LanguageDescriptor", sizeof(GstMpegtsISO639LanguageDescriptor), alignof(GstMpegtsISO639LanguageDescriptor));
printf("%s;%zu;%zu\n", "GstMpegtsIso639AudioType", sizeof(GstMpegtsIso639AudioType), alignof(GstMpegtsIso639AudioType)); printf("%s;%zu;%zu\n", "GstMpegtsIso639AudioType", sizeof(GstMpegtsIso639AudioType), alignof(GstMpegtsIso639AudioType));
printf("%s;%zu;%zu\n", "GstMpegtsJpegXsDescriptor", sizeof(GstMpegtsJpegXsDescriptor), alignof(GstMpegtsJpegXsDescriptor));
printf("%s;%zu;%zu\n", "GstMpegtsLogicalChannel", sizeof(GstMpegtsLogicalChannel), alignof(GstMpegtsLogicalChannel)); printf("%s;%zu;%zu\n", "GstMpegtsLogicalChannel", sizeof(GstMpegtsLogicalChannel), alignof(GstMpegtsLogicalChannel));
printf("%s;%zu;%zu\n", "GstMpegtsLogicalChannelDescriptor", sizeof(GstMpegtsLogicalChannelDescriptor), alignof(GstMpegtsLogicalChannelDescriptor)); printf("%s;%zu;%zu\n", "GstMpegtsLogicalChannelDescriptor", sizeof(GstMpegtsLogicalChannelDescriptor), alignof(GstMpegtsLogicalChannelDescriptor));
printf("%s;%zu;%zu\n", "GstMpegtsMetadataApplicationFormat", sizeof(GstMpegtsMetadataApplicationFormat), alignof(GstMpegtsMetadataApplicationFormat)); printf("%s;%zu;%zu\n", "GstMpegtsMetadataApplicationFormat", sizeof(GstMpegtsMetadataApplicationFormat), alignof(GstMpegtsMetadataApplicationFormat));

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -368,6 +368,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + 'static {
#[cfg(feature = "v1_16")] #[cfg(feature = "v1_16")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_rtsp_media_is_bind_mcast_address")] #[doc(alias = "gst_rtsp_media_is_bind_mcast_address")]
#[doc(alias = "bind-mcast-address")]
fn is_bind_mcast_address(&self) -> bool { fn is_bind_mcast_address(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_rtsp_media_is_bind_mcast_address( from_glib(ffi::gst_rtsp_media_is_bind_mcast_address(
@ -377,6 +378,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + 'static {
} }
#[doc(alias = "gst_rtsp_media_is_eos_shutdown")] #[doc(alias = "gst_rtsp_media_is_eos_shutdown")]
#[doc(alias = "eos-shutdown")]
fn is_eos_shutdown(&self) -> bool { fn is_eos_shutdown(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_rtsp_media_is_eos_shutdown( from_glib(ffi::gst_rtsp_media_is_eos_shutdown(
@ -397,6 +399,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + 'static {
} }
#[doc(alias = "gst_rtsp_media_is_reusable")] #[doc(alias = "gst_rtsp_media_is_reusable")]
#[doc(alias = "reusable")]
fn is_reusable(&self) -> bool { fn is_reusable(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_rtsp_media_is_reusable( from_glib(ffi::gst_rtsp_media_is_reusable(
@ -406,6 +409,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + 'static {
} }
#[doc(alias = "gst_rtsp_media_is_shared")] #[doc(alias = "gst_rtsp_media_is_shared")]
#[doc(alias = "shared")]
fn is_shared(&self) -> bool { fn is_shared(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_rtsp_media_is_shared( from_glib(ffi::gst_rtsp_media_is_shared(
@ -415,6 +419,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + 'static {
} }
#[doc(alias = "gst_rtsp_media_is_stop_on_disconnect")] #[doc(alias = "gst_rtsp_media_is_stop_on_disconnect")]
#[doc(alias = "stop-on-disconnect")]
fn is_stop_on_disconnect(&self) -> bool { fn is_stop_on_disconnect(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_rtsp_media_is_stop_on_disconnect( from_glib(ffi::gst_rtsp_media_is_stop_on_disconnect(
@ -424,6 +429,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + 'static {
} }
#[doc(alias = "gst_rtsp_media_is_time_provider")] #[doc(alias = "gst_rtsp_media_is_time_provider")]
#[doc(alias = "time-provider")]
fn is_time_provider(&self) -> bool { fn is_time_provider(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_rtsp_media_is_time_provider( from_glib(ffi::gst_rtsp_media_is_time_provider(
@ -789,8 +795,10 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + 'static {
} }
} }
#[cfg(not(feature = "v1_16"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_16"))))]
#[doc(alias = "bind-mcast-address")] #[doc(alias = "bind-mcast-address")]
fn get_property_bind_mcast_address(&self) -> bool { fn is_bind_mcast_address(&self) -> bool {
ObjectExt::property(self.as_ref(), "bind-mcast-address") ObjectExt::property(self.as_ref(), "bind-mcast-address")
} }

View file

@ -259,6 +259,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + 'static {
#[cfg(feature = "v1_16")] #[cfg(feature = "v1_16")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_rtsp_media_factory_is_bind_mcast_address")] #[doc(alias = "gst_rtsp_media_factory_is_bind_mcast_address")]
#[doc(alias = "bind-mcast-address")]
fn is_bind_mcast_address(&self) -> bool { fn is_bind_mcast_address(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_rtsp_media_factory_is_bind_mcast_address( from_glib(ffi::gst_rtsp_media_factory_is_bind_mcast_address(
@ -270,6 +271,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + 'static {
#[cfg(feature = "v1_20")] #[cfg(feature = "v1_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_rtsp_media_factory_is_enable_rtcp")] #[doc(alias = "gst_rtsp_media_factory_is_enable_rtcp")]
#[doc(alias = "enable-rtcp")]
fn is_enable_rtcp(&self) -> bool { fn is_enable_rtcp(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_rtsp_media_factory_is_enable_rtcp( from_glib(ffi::gst_rtsp_media_factory_is_enable_rtcp(
@ -279,6 +281,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + 'static {
} }
#[doc(alias = "gst_rtsp_media_factory_is_eos_shutdown")] #[doc(alias = "gst_rtsp_media_factory_is_eos_shutdown")]
#[doc(alias = "eos-shutdown")]
fn is_eos_shutdown(&self) -> bool { fn is_eos_shutdown(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_rtsp_media_factory_is_eos_shutdown( from_glib(ffi::gst_rtsp_media_factory_is_eos_shutdown(
@ -288,6 +291,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + 'static {
} }
#[doc(alias = "gst_rtsp_media_factory_is_shared")] #[doc(alias = "gst_rtsp_media_factory_is_shared")]
#[doc(alias = "shared")]
fn is_shared(&self) -> bool { fn is_shared(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_rtsp_media_factory_is_shared( from_glib(ffi::gst_rtsp_media_factory_is_shared(
@ -562,8 +566,10 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + 'static {
} }
} }
#[cfg(not(feature = "v1_16"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_16"))))]
#[doc(alias = "bind-mcast-address")] #[doc(alias = "bind-mcast-address")]
fn get_property_bind_mcast_address(&self) -> bool { fn is_bind_mcast_address(&self) -> bool {
ObjectExt::property(self.as_ref(), "bind-mcast-address") ObjectExt::property(self.as_ref(), "bind-mcast-address")
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1347,6 +1347,7 @@ extern "C" {
//========================================================================= //=========================================================================
// GstRTSPContext // GstRTSPContext
//========================================================================= //=========================================================================
pub fn gst_rtsp_context_get_type() -> GType;
pub fn gst_rtsp_context_pop_current(ctx: *mut GstRTSPContext); pub fn gst_rtsp_context_pop_current(ctx: *mut GstRTSPContext);
pub fn gst_rtsp_context_push_current(ctx: *mut GstRTSPContext); pub fn gst_rtsp_context_push_current(ctx: *mut GstRTSPContext);
#[cfg(feature = "v1_22")] #[cfg(feature = "v1_22")]
@ -2663,7 +2664,6 @@ extern "C" {
//========================================================================= //=========================================================================
// Other functions // Other functions
//========================================================================= //=========================================================================
pub fn gst_rtsp_context_get_type() -> GType;
pub fn gst_rtsp_params_get( pub fn gst_rtsp_params_get(
client: *mut GstRTSPClient, client: *mut GstRTSPClient,
ctx: *mut GstRTSPContext, ctx: *mut GstRTSPContext,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -178,7 +178,7 @@ pub struct GstValidateAction {
pub filename: *mut c_char, pub filename: *mut c_char,
pub debug: *mut c_char, pub debug: *mut c_char,
pub n_repeats: c_int, pub n_repeats: c_int,
pub rangename: *const c_char, pub rangename: *mut c_char,
pub priv_: *mut GstValidateActionPrivate, pub priv_: *mut GstValidateActionPrivate,
pub _gst_reserved: [gpointer; 4], pub _gst_reserved: [gpointer; 4],
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -38,6 +38,18 @@ pub trait VideoEncoderExt: IsA<VideoEncoder> + 'static {
} }
} }
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_video_encoder_drop_frame")]
fn drop_frame(&self, frame: VideoCodecFrame) {
unsafe {
ffi::gst_video_encoder_drop_frame(
self.as_ref().to_glib_none().0,
frame.into_glib_ptr(),
);
}
}
#[doc(alias = "gst_video_encoder_finish_frame")] #[doc(alias = "gst_video_encoder_finish_frame")]
fn finish_frame(&self, frame: VideoCodecFrame) -> Result<gst::FlowSuccess, gst::FlowError> { fn finish_frame(&self, frame: VideoCodecFrame) -> Result<gst::FlowSuccess, gst::FlowError> {
unsafe { unsafe {
@ -103,6 +115,18 @@ pub trait VideoEncoderExt: IsA<VideoEncoder> + 'static {
} }
} }
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_video_encoder_release_frame")]
fn release_frame(&self, frame: VideoCodecFrame) {
unsafe {
ffi::gst_video_encoder_release_frame(
self.as_ref().to_glib_none().0,
frame.into_glib_ptr(),
);
}
}
#[cfg(feature = "v1_18")] #[cfg(feature = "v1_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_video_encoder_set_min_force_key_unit_interval")] #[doc(alias = "gst_video_encoder_set_min_force_key_unit_interval")]

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -4011,6 +4011,12 @@ extern "C" {
frame: *mut GstVideoCodecFrame, frame: *mut GstVideoCodecFrame,
size: size_t, size: size_t,
) -> gst::GstFlowReturn; ) -> gst::GstFlowReturn;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_video_encoder_drop_frame(
encoder: *mut GstVideoEncoder,
frame: *mut GstVideoCodecFrame,
);
pub fn gst_video_encoder_finish_frame( pub fn gst_video_encoder_finish_frame(
encoder: *mut GstVideoEncoder, encoder: *mut GstVideoEncoder,
frame: *mut GstVideoCodecFrame, frame: *mut GstVideoCodecFrame,
@ -4063,6 +4069,12 @@ extern "C" {
caps: *mut gst::GstCaps, caps: *mut gst::GstCaps,
filter: *mut gst::GstCaps, filter: *mut gst::GstCaps,
) -> *mut gst::GstCaps; ) -> *mut gst::GstCaps;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_video_encoder_release_frame(
encoder: *mut GstVideoEncoder,
frame: *mut GstVideoCodecFrame,
);
pub fn gst_video_encoder_set_headers(encoder: *mut GstVideoEncoder, headers: *mut glib::GList); pub fn gst_video_encoder_set_headers(encoder: *mut GstVideoEncoder, headers: *mut glib::GList);
pub fn gst_video_encoder_set_latency( pub fn gst_video_encoder_set_latency(
encoder: *mut GstVideoEncoder, encoder: *mut GstVideoEncoder,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -78,13 +78,17 @@ unsafe impl Sync for Clock {}
pub trait ClockExt: IsA<Clock> + 'static { pub trait ClockExt: IsA<Clock> + 'static {
#[doc(alias = "gst_clock_add_observation")] #[doc(alias = "gst_clock_add_observation")]
fn add_observation(&self, slave: ClockTime, master: ClockTime) -> Option<f64> { fn add_observation(
&self,
observation_internal: ClockTime,
observation_external: ClockTime,
) -> Option<f64> {
unsafe { unsafe {
let mut r_squared = std::mem::MaybeUninit::uninit(); let mut r_squared = std::mem::MaybeUninit::uninit();
let ret = from_glib(ffi::gst_clock_add_observation( let ret = from_glib(ffi::gst_clock_add_observation(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
slave.into_glib(), observation_internal.into_glib(),
master.into_glib(), observation_external.into_glib(),
r_squared.as_mut_ptr(), r_squared.as_mut_ptr(),
)); ));
if ret { if ret {
@ -98,8 +102,8 @@ pub trait ClockExt: IsA<Clock> + 'static {
#[doc(alias = "gst_clock_add_observation_unapplied")] #[doc(alias = "gst_clock_add_observation_unapplied")]
fn add_observation_unapplied( fn add_observation_unapplied(
&self, &self,
slave: ClockTime, observation_internal: ClockTime,
master: ClockTime, observation_external: ClockTime,
) -> Option<(f64, ClockTime, ClockTime, ClockTime, ClockTime)> { ) -> Option<(f64, ClockTime, ClockTime, ClockTime, ClockTime)> {
unsafe { unsafe {
let mut r_squared = std::mem::MaybeUninit::uninit(); let mut r_squared = std::mem::MaybeUninit::uninit();
@ -109,8 +113,8 @@ pub trait ClockExt: IsA<Clock> + 'static {
let mut rate_denom = std::mem::MaybeUninit::uninit(); let mut rate_denom = std::mem::MaybeUninit::uninit();
let ret = from_glib(ffi::gst_clock_add_observation_unapplied( let ret = from_glib(ffi::gst_clock_add_observation_unapplied(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
slave.into_glib(), observation_internal.into_glib(),
master.into_glib(), observation_external.into_glib(),
r_squared.as_mut_ptr(), r_squared.as_mut_ptr(),
internal.as_mut_ptr(), internal.as_mut_ptr(),
external.as_mut_ptr(), external.as_mut_ptr(),

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -16,8 +16,8 @@ cfg_if::cfg_if! {
} }
} }
use glib::prelude::*;
use super::Bus; use super::Bus;
use glib::prelude::*;
pub trait WindowsBusExtManual: IsA<Bus> + 'static { pub trait WindowsBusExtManual: IsA<Bus> + 'static {
#[doc(alias = "get_pollfd")] #[doc(alias = "get_pollfd")]

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41) Generated by gir (https://github.com/gtk-rs/gir @ 0a15f4e10c41)
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81) from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)

View file

@ -1157,10 +1157,16 @@ pub type GstPluginInitFunc = Option<unsafe extern "C" fn(*mut GstPlugin) -> gboo
pub type GstPromiseChangeFunc = Option<unsafe extern "C" fn(*mut GstPromise, gpointer)>; pub type GstPromiseChangeFunc = Option<unsafe extern "C" fn(*mut GstPromise, gpointer)>;
pub type GstStructureFilterMapFunc = pub type GstStructureFilterMapFunc =
Option<unsafe extern "C" fn(glib::GQuark, *mut gobject::GValue, gpointer) -> gboolean>; Option<unsafe extern "C" fn(glib::GQuark, *mut gobject::GValue, gpointer) -> gboolean>;
pub type GstStructureFilterMapIdStrFunc =
Option<unsafe extern "C" fn(*const GstIdStr, *mut gobject::GValue, gpointer) -> gboolean>;
pub type GstStructureForeachFunc = pub type GstStructureForeachFunc =
Option<unsafe extern "C" fn(glib::GQuark, *const gobject::GValue, gpointer) -> gboolean>; Option<unsafe extern "C" fn(glib::GQuark, *const gobject::GValue, gpointer) -> gboolean>;
pub type GstStructureForeachIdStrFunc =
Option<unsafe extern "C" fn(*const GstIdStr, *const gobject::GValue, gpointer) -> gboolean>;
pub type GstStructureMapFunc = pub type GstStructureMapFunc =
Option<unsafe extern "C" fn(glib::GQuark, *mut gobject::GValue, gpointer) -> gboolean>; Option<unsafe extern "C" fn(glib::GQuark, *mut gobject::GValue, gpointer) -> gboolean>;
pub type GstStructureMapIdStrFunc =
Option<unsafe extern "C" fn(*const GstIdStr, *mut gobject::GValue, gpointer) -> gboolean>;
pub type GstTagForeachFunc = pub type GstTagForeachFunc =
Option<unsafe extern "C" fn(*const GstTagList, *const c_char, gpointer)>; Option<unsafe extern "C" fn(*const GstTagList, *const c_char, gpointer)>;
pub type GstTagMergeFunc = pub type GstTagMergeFunc =
@ -1981,6 +1987,19 @@ pub struct _GstGhostPadPrivate {
pub type GstGhostPadPrivate = _GstGhostPadPrivate; pub type GstGhostPadPrivate = _GstGhostPadPrivate;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstIdStr {
pub pointer: gpointer,
pub padding: [u8; 8],
}
impl ::std::fmt::Debug for GstIdStr {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstIdStr @ {self:p}")).finish()
}
}
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
#[repr(C)] #[repr(C)]
pub struct GstIterator { pub struct GstIterator {
@ -4783,11 +4802,31 @@ extern "C" {
pub fn gst_caps_new_empty_simple(media_type: *const c_char) -> *mut GstCaps; pub fn gst_caps_new_empty_simple(media_type: *const c_char) -> *mut GstCaps;
pub fn gst_caps_new_full(struct1: *mut GstStructure, ...) -> *mut GstCaps; pub fn gst_caps_new_full(struct1: *mut GstStructure, ...) -> *mut GstCaps;
//pub fn gst_caps_new_full_valist(structure: *mut GstStructure, var_args: /*Unimplemented*/va_list) -> *mut GstCaps; //pub fn gst_caps_new_full_valist(structure: *mut GstStructure, var_args: /*Unimplemented*/va_list) -> *mut GstCaps;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_new_id_str_empty_simple(media_type: *const GstIdStr) -> *mut GstCaps;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_new_id_str_simple(
media_type: *const GstIdStr,
fieldname: *const GstIdStr,
...
) -> *mut GstCaps;
pub fn gst_caps_new_simple( pub fn gst_caps_new_simple(
media_type: *const c_char, media_type: *const c_char,
fieldname: *const c_char, fieldname: *const c_char,
... ...
) -> *mut GstCaps; ) -> *mut GstCaps;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_new_static_str_empty_simple(media_type: *const c_char) -> *mut GstCaps;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_new_static_str_simple(
media_type: *const c_char,
fieldname: *const c_char,
...
) -> *mut GstCaps;
pub fn gst_caps_append(caps1: *mut GstCaps, caps2: *mut GstCaps); pub fn gst_caps_append(caps1: *mut GstCaps, caps2: *mut GstCaps);
pub fn gst_caps_append_structure(caps: *mut GstCaps, structure: *mut GstStructure); pub fn gst_caps_append_structure(caps: *mut GstCaps, structure: *mut GstStructure);
pub fn gst_caps_append_structure_full( pub fn gst_caps_append_structure_full(
@ -4816,6 +4855,19 @@ extern "C" {
pub fn gst_caps_get_features(caps: *const GstCaps, index: c_uint) -> *mut GstCapsFeatures; pub fn gst_caps_get_features(caps: *const GstCaps, index: c_uint) -> *mut GstCapsFeatures;
pub fn gst_caps_get_size(caps: *const GstCaps) -> c_uint; pub fn gst_caps_get_size(caps: *const GstCaps) -> c_uint;
pub fn gst_caps_get_structure(caps: *const GstCaps, index: c_uint) -> *mut GstStructure; pub fn gst_caps_get_structure(caps: *const GstCaps, index: c_uint) -> *mut GstStructure;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_id_str_set_simple(caps: *mut GstCaps, field: *const GstIdStr, ...);
//#[cfg(feature = "v1_26")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
//pub fn gst_caps_id_str_set_simple_valist(caps: *mut GstCaps, field: *const GstIdStr, varargs: /*Unimplemented*/va_list);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_id_str_set_value(
caps: *mut GstCaps,
field: *const GstIdStr,
value: *const gobject::GValue,
);
pub fn gst_caps_intersect(caps1: *mut GstCaps, caps2: *mut GstCaps) -> *mut GstCaps; pub fn gst_caps_intersect(caps1: *mut GstCaps, caps2: *mut GstCaps) -> *mut GstCaps;
pub fn gst_caps_intersect_full( pub fn gst_caps_intersect_full(
caps1: *mut GstCaps, caps1: *mut GstCaps,
@ -4867,12 +4919,25 @@ extern "C" {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub fn gst_caps_set_features_simple(caps: *mut GstCaps, features: *mut GstCapsFeatures); 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(caps: *mut GstCaps, field: *const c_char, ...);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_set_simple_static_str(caps: *mut GstCaps, field: *const c_char, ...);
//#[cfg(feature = "v1_26")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
//pub fn gst_caps_set_simple_static_str_valist(caps: *mut GstCaps, field: *const c_char, varargs: /*Unimplemented*/va_list);
//pub fn gst_caps_set_simple_valist(caps: *mut GstCaps, field: *const c_char, varargs: /*Unimplemented*/va_list); //pub fn gst_caps_set_simple_valist(caps: *mut GstCaps, field: *const c_char, varargs: /*Unimplemented*/va_list);
pub fn gst_caps_set_value( pub fn gst_caps_set_value(
caps: *mut GstCaps, caps: *mut GstCaps,
field: *const c_char, field: *const c_char,
value: *const gobject::GValue, value: *const gobject::GValue,
); );
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_set_value_static_str(
caps: *mut GstCaps,
field: *const c_char,
value: *const gobject::GValue,
);
pub fn gst_caps_simplify(caps: *mut GstCaps) -> *mut GstCaps; pub fn gst_caps_simplify(caps: *mut GstCaps) -> *mut GstCaps;
pub fn gst_caps_steal_structure(caps: *mut GstCaps, index: c_uint) -> *mut GstStructure; pub fn gst_caps_steal_structure(caps: *mut GstCaps, index: c_uint) -> *mut GstStructure;
pub fn gst_caps_subtract(minuend: *mut GstCaps, subtrahend: *mut GstCaps) -> *mut GstCaps; pub fn gst_caps_subtract(minuend: *mut GstCaps, subtrahend: *mut GstCaps) -> *mut GstCaps;
@ -4897,13 +4962,34 @@ extern "C" {
pub fn gst_caps_features_new_any() -> *mut GstCapsFeatures; pub fn gst_caps_features_new_any() -> *mut GstCapsFeatures;
pub fn gst_caps_features_new_empty() -> *mut GstCapsFeatures; pub fn gst_caps_features_new_empty() -> *mut GstCapsFeatures;
pub fn gst_caps_features_new_id(feature1: glib::GQuark, ...) -> *mut GstCapsFeatures; pub fn gst_caps_features_new_id(feature1: glib::GQuark, ...) -> *mut GstCapsFeatures;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_features_new_id_str(feature1: *const GstIdStr, ...) -> *mut GstCapsFeatures;
//#[cfg(feature = "v1_26")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
//pub fn gst_caps_features_new_id_str_valist(feature1: *const GstIdStr, varargs: /*Unimplemented*/va_list) -> *mut GstCapsFeatures;
//pub fn gst_caps_features_new_id_valist(feature1: glib::GQuark, varargs: /*Unimplemented*/va_list) -> *mut GstCapsFeatures; //pub fn gst_caps_features_new_id_valist(feature1: glib::GQuark, varargs: /*Unimplemented*/va_list) -> *mut GstCapsFeatures;
#[cfg(feature = "v1_20")] #[cfg(feature = "v1_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
pub fn gst_caps_features_new_single(feature: *const c_char) -> *mut GstCapsFeatures; pub fn gst_caps_features_new_single(feature: *const c_char) -> *mut GstCapsFeatures;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_features_new_single_static_str(feature: *const c_char) -> *mut GstCapsFeatures;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_features_new_static_str(feature1: *const c_char, ...) -> *mut GstCapsFeatures;
//#[cfg(feature = "v1_26")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
//pub fn gst_caps_features_new_static_str_valist(feature1: *const c_char, varargs: /*Unimplemented*/va_list) -> *mut GstCapsFeatures;
//pub fn gst_caps_features_new_valist(feature1: *const c_char, varargs: /*Unimplemented*/va_list) -> *mut GstCapsFeatures; //pub fn gst_caps_features_new_valist(feature1: *const c_char, varargs: /*Unimplemented*/va_list) -> *mut GstCapsFeatures;
pub fn gst_caps_features_add(features: *mut GstCapsFeatures, feature: *const c_char); pub fn gst_caps_features_add(features: *mut GstCapsFeatures, feature: *const c_char);
pub fn gst_caps_features_add_id(features: *mut GstCapsFeatures, feature: glib::GQuark); pub fn gst_caps_features_add_id(features: *mut GstCapsFeatures, feature: glib::GQuark);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_features_add_id_str(features: *mut GstCapsFeatures, feature: *const GstIdStr);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_features_add_static_str(features: *mut GstCapsFeatures, feature: *const c_char);
pub fn gst_caps_features_contains( pub fn gst_caps_features_contains(
features: *const GstCapsFeatures, features: *const GstCapsFeatures,
feature: *const c_char, feature: *const c_char,
@ -4912,6 +4998,12 @@ extern "C" {
features: *const GstCapsFeatures, features: *const GstCapsFeatures,
feature: glib::GQuark, feature: glib::GQuark,
) -> gboolean; ) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_features_contains_id_str(
features: *const GstCapsFeatures,
feature: *const GstIdStr,
) -> gboolean;
pub fn gst_caps_features_copy(features: *const GstCapsFeatures) -> *mut GstCapsFeatures; pub fn gst_caps_features_copy(features: *const GstCapsFeatures) -> *mut GstCapsFeatures;
pub fn gst_caps_features_free(features: *mut GstCapsFeatures); pub fn gst_caps_features_free(features: *mut GstCapsFeatures);
pub fn gst_caps_features_get_nth(features: *const GstCapsFeatures, i: c_uint) -> *const c_char; pub fn gst_caps_features_get_nth(features: *const GstCapsFeatures, i: c_uint) -> *const c_char;
@ -4919,6 +5011,12 @@ extern "C" {
features: *const GstCapsFeatures, features: *const GstCapsFeatures,
i: c_uint, i: c_uint,
) -> glib::GQuark; ) -> glib::GQuark;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_features_get_nth_id_str(
features: *const GstCapsFeatures,
i: c_uint,
) -> *const GstIdStr;
pub fn gst_caps_features_get_size(features: *const GstCapsFeatures) -> c_uint; pub fn gst_caps_features_get_size(features: *const GstCapsFeatures) -> c_uint;
pub fn gst_caps_features_is_any(features: *const GstCapsFeatures) -> gboolean; pub fn gst_caps_features_is_any(features: *const GstCapsFeatures) -> gboolean;
pub fn gst_caps_features_is_equal( pub fn gst_caps_features_is_equal(
@ -4927,6 +5025,12 @@ extern "C" {
) -> gboolean; ) -> gboolean;
pub fn gst_caps_features_remove(features: *mut GstCapsFeatures, feature: *const c_char); pub fn gst_caps_features_remove(features: *mut GstCapsFeatures, feature: *const c_char);
pub fn gst_caps_features_remove_id(features: *mut GstCapsFeatures, feature: glib::GQuark); pub fn gst_caps_features_remove_id(features: *mut GstCapsFeatures, feature: glib::GQuark);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_caps_features_remove_id_str(
features: *mut GstCapsFeatures,
feature: *const GstIdStr,
);
pub fn gst_caps_features_set_parent_refcount( pub fn gst_caps_features_set_parent_refcount(
features: *mut GstCapsFeatures, features: *mut GstCapsFeatures,
refcount: *mut c_int, refcount: *mut c_int,
@ -5329,6 +5433,65 @@ extern "C" {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))]
pub fn gst_event_take(old_event: *mut *mut GstEvent, new_event: *mut GstEvent) -> gboolean; pub fn gst_event_take(old_event: *mut *mut GstEvent, new_event: *mut GstEvent) -> gboolean;
//=========================================================================
// GstIdStr
//=========================================================================
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_get_type() -> GType;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_new() -> *mut GstIdStr;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_as_str(s: *const GstIdStr) -> *const c_char;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_clear(s: *mut GstIdStr);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_copy(s: *const GstIdStr) -> *mut GstIdStr;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_copy_into(d: *mut GstIdStr, s: *const GstIdStr);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_free(s: *mut GstIdStr);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_get_len(s: *const GstIdStr) -> size_t;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_init(s: *mut GstIdStr);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_is_equal(s1: *const GstIdStr, s2: *const GstIdStr) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_is_equal_to_str(s1: *const GstIdStr, s2: *const c_char) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_is_equal_to_str_with_len(
s1: *const GstIdStr,
s2: *const c_char,
len: size_t,
) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_move(d: *mut GstIdStr, s: *mut GstIdStr);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_set(s: *mut GstIdStr, value: *const c_char);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_set_static_str(s: *mut GstIdStr, value: *const c_char);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_set_static_str_with_len(s: *mut GstIdStr, value: *const c_char, len: size_t);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_id_str_set_with_len(s: *mut GstIdStr, value: *const c_char, len: size_t);
//========================================================================= //=========================================================================
// GstIterator // GstIterator
//========================================================================= //=========================================================================
@ -6516,12 +6679,14 @@ extern "C" {
//========================================================================= //=========================================================================
// GstStaticCaps // GstStaticCaps
//========================================================================= //=========================================================================
pub fn gst_static_caps_get_type() -> GType;
pub fn gst_static_caps_cleanup(static_caps: *mut GstStaticCaps); pub fn gst_static_caps_cleanup(static_caps: *mut GstStaticCaps);
pub fn gst_static_caps_get(static_caps: *mut GstStaticCaps) -> *mut GstCaps; pub fn gst_static_caps_get(static_caps: *mut GstStaticCaps) -> *mut GstCaps;
//========================================================================= //=========================================================================
// GstStaticPadTemplate // GstStaticPadTemplate
//========================================================================= //=========================================================================
pub fn gst_static_pad_template_get_type() -> GType;
pub fn gst_static_pad_template_get( pub fn gst_static_pad_template_get(
pad_template: *mut GstStaticPadTemplate, pad_template: *mut GstStaticPadTemplate,
) -> *mut GstPadTemplate; ) -> *mut GstPadTemplate;
@ -6548,6 +6713,32 @@ extern "C" {
... ...
) -> *mut GstStructure; ) -> *mut GstStructure;
pub fn gst_structure_new_id_empty(quark: glib::GQuark) -> *mut GstStructure; pub fn gst_structure_new_id_empty(quark: glib::GQuark) -> *mut GstStructure;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_new_id_str(
name: *const GstIdStr,
fieldname: *const GstIdStr,
...
) -> *mut GstStructure;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_new_id_str_empty(name: *const GstIdStr) -> *mut GstStructure;
//#[cfg(feature = "v1_26")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
//pub fn gst_structure_new_id_str_valist(name: *const GstIdStr, firstfield: *const GstIdStr, varargs: /*Unimplemented*/va_list) -> *mut GstStructure;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_new_static_str(
name: *const c_char,
firstfield: *const c_char,
...
) -> *mut GstStructure;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_new_static_str_empty(name: *const c_char) -> *mut GstStructure;
//#[cfg(feature = "v1_26")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
//pub fn gst_structure_new_static_str_valist(name: *const c_char, firstfield: *const c_char, varargs: /*Unimplemented*/va_list) -> *mut GstStructure;
//pub fn gst_structure_new_valist(name: *const c_char, firstfield: *const c_char, varargs: /*Unimplemented*/va_list) -> *mut GstStructure; //pub fn gst_structure_new_valist(name: *const c_char, firstfield: *const c_char, varargs: /*Unimplemented*/va_list) -> *mut GstStructure;
pub fn gst_structure_can_intersect( pub fn gst_structure_can_intersect(
struct1: *const GstStructure, struct1: *const GstStructure,
@ -6559,6 +6750,13 @@ extern "C" {
func: GstStructureFilterMapFunc, func: GstStructureFilterMapFunc,
user_data: gpointer, user_data: gpointer,
); );
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_filter_and_map_in_place_id_str(
structure: *mut GstStructure,
func: GstStructureFilterMapIdStrFunc,
user_data: gpointer,
);
pub fn gst_structure_fixate(structure: *mut GstStructure); pub fn gst_structure_fixate(structure: *mut GstStructure);
pub fn gst_structure_fixate_field( pub fn gst_structure_fixate_field(
structure: *mut GstStructure, structure: *mut GstStructure,
@ -6595,6 +6793,13 @@ extern "C" {
func: GstStructureForeachFunc, func: GstStructureForeachFunc,
user_data: gpointer, user_data: gpointer,
) -> gboolean; ) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_foreach_id_str(
structure: *const GstStructure,
func: GstStructureForeachIdStrFunc,
user_data: gpointer,
) -> gboolean;
pub fn gst_structure_free(structure: *mut GstStructure); pub fn gst_structure_free(structure: *mut GstStructure);
pub fn gst_structure_get( pub fn gst_structure_get(
structure: *const GstStructure, structure: *const GstStructure,
@ -6678,6 +6883,9 @@ extern "C" {
) -> gboolean; ) -> gboolean;
pub fn gst_structure_get_name(structure: *const GstStructure) -> *const c_char; pub fn gst_structure_get_name(structure: *const GstStructure) -> *const c_char;
pub fn gst_structure_get_name_id(structure: *const GstStructure) -> glib::GQuark; pub fn gst_structure_get_name_id(structure: *const GstStructure) -> glib::GQuark;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_get_name_id_str(structure: *const GstStructure) -> *const GstIdStr;
pub fn gst_structure_get_string( pub fn gst_structure_get_string(
structure: *const GstStructure, structure: *const GstStructure,
fieldname: *const c_char, fieldname: *const c_char,
@ -6733,6 +6941,83 @@ extern "C" {
field: glib::GQuark, field: glib::GQuark,
value: *const gobject::GValue, value: *const gobject::GValue,
); );
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_id_str_get(
structure: *const GstStructure,
first_fieldname: *const GstIdStr,
...
) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_id_str_get_field_type(
structure: *const GstStructure,
fieldname: *const GstIdStr,
) -> GType;
//#[cfg(feature = "v1_26")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
//pub fn gst_structure_id_str_get_valist(structure: *const GstStructure, first_fieldname: *const GstIdStr, args: /*Unimplemented*/va_list) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_id_str_get_value(
structure: *const GstStructure,
fieldname: *const GstIdStr,
) -> *const gobject::GValue;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_id_str_has_field(
structure: *const GstStructure,
fieldname: *const GstIdStr,
) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_id_str_has_field_typed(
structure: *const GstStructure,
fieldname: *const GstIdStr,
type_: GType,
) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_id_str_nth_field_name(
structure: *const GstStructure,
index: c_uint,
) -> *const GstIdStr;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_id_str_remove_field(
structure: *mut GstStructure,
fieldname: *const GstIdStr,
);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_id_str_remove_fields(
structure: *mut GstStructure,
fieldname: *const GstIdStr,
...
);
//#[cfg(feature = "v1_26")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
//pub fn gst_structure_id_str_remove_fields_valist(structure: *mut GstStructure, fieldname: *const GstIdStr, varargs: /*Unimplemented*/va_list);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_id_str_set(structure: *mut GstStructure, fieldname: *const GstIdStr, ...);
//#[cfg(feature = "v1_26")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
//pub fn gst_structure_id_str_set_valist(structure: *mut GstStructure, fieldname: *const GstIdStr, varargs: /*Unimplemented*/va_list);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_id_str_set_value(
structure: *mut GstStructure,
fieldname: *const GstIdStr,
value: *const gobject::GValue,
);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_id_str_take_value(
structure: *mut GstStructure,
fieldname: *const GstIdStr,
value: *mut gobject::GValue,
);
pub fn gst_structure_id_take_value( pub fn gst_structure_id_take_value(
structure: *mut GstStructure, structure: *mut GstStructure,
field: glib::GQuark, field: glib::GQuark,
@ -6755,6 +7040,13 @@ extern "C" {
func: GstStructureMapFunc, func: GstStructureMapFunc,
user_data: gpointer, user_data: gpointer,
) -> gboolean; ) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_map_in_place_id_str(
structure: *mut GstStructure,
func: GstStructureMapIdStrFunc,
user_data: gpointer,
) -> gboolean;
pub fn gst_structure_n_fields(structure: *const GstStructure) -> c_int; pub fn gst_structure_n_fields(structure: *const GstStructure) -> c_int;
pub fn gst_structure_nth_field_name( pub fn gst_structure_nth_field_name(
structure: *const GstStructure, structure: *const GstStructure,
@ -6788,21 +7080,51 @@ extern "C" {
array: *const gobject::GValueArray, array: *const gobject::GValueArray,
); );
pub fn gst_structure_set_name(structure: *mut GstStructure, name: *const c_char); pub fn gst_structure_set_name(structure: *mut GstStructure, name: *const c_char);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_set_name_id_str(structure: *mut GstStructure, name: *const GstIdStr);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_set_name_static_str(structure: *mut GstStructure, name: *const c_char);
pub fn gst_structure_set_parent_refcount( pub fn gst_structure_set_parent_refcount(
structure: *mut GstStructure, structure: *mut GstStructure,
refcount: *mut c_int, refcount: *mut c_int,
) -> gboolean; ) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_set_static_str(
structure: *mut GstStructure,
fieldname: *const c_char,
...
);
//#[cfg(feature = "v1_26")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
//pub fn gst_structure_set_static_str_valist(structure: *mut GstStructure, fieldname: *const c_char, varargs: /*Unimplemented*/va_list);
//pub fn gst_structure_set_valist(structure: *mut GstStructure, fieldname: *const c_char, varargs: /*Unimplemented*/va_list); //pub fn gst_structure_set_valist(structure: *mut GstStructure, fieldname: *const c_char, varargs: /*Unimplemented*/va_list);
pub fn gst_structure_set_value( pub fn gst_structure_set_value(
structure: *mut GstStructure, structure: *mut GstStructure,
fieldname: *const c_char, fieldname: *const c_char,
value: *const gobject::GValue, value: *const gobject::GValue,
); );
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_set_value_static_str(
structure: *mut GstStructure,
fieldname: *const c_char,
value: *const gobject::GValue,
);
pub fn gst_structure_take_value( pub fn gst_structure_take_value(
structure: *mut GstStructure, structure: *mut GstStructure,
fieldname: *const c_char, fieldname: *const c_char,
value: *mut gobject::GValue, value: *mut gobject::GValue,
); );
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_structure_take_value_static_str(
structure: *mut GstStructure,
fieldname: *const c_char,
value: *mut gobject::GValue,
);
pub fn gst_structure_to_string(structure: *const GstStructure) -> *mut c_char; pub fn gst_structure_to_string(structure: *const GstStructure) -> *mut c_char;
#[cfg(feature = "v1_18")] #[cfg(feature = "v1_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
@ -7082,6 +7404,7 @@ extern "C" {
//========================================================================= //=========================================================================
// GstTypeFind // GstTypeFind
//========================================================================= //=========================================================================
pub fn gst_type_find_get_type() -> GType;
pub fn gst_type_find_get_length(find: *mut GstTypeFind) -> u64; pub fn gst_type_find_get_length(find: *mut GstTypeFind) -> u64;
pub fn gst_type_find_peek(find: *mut GstTypeFind, offset: i64, size: c_uint) -> *const u8; pub fn gst_type_find_peek(find: *mut GstTypeFind, offset: i64, size: c_uint) -> *const u8;
pub fn gst_type_find_suggest(find: *mut GstTypeFind, probability: c_uint, caps: *mut GstCaps); pub fn gst_type_find_suggest(find: *mut GstTypeFind, probability: c_uint, caps: *mut GstCaps);
@ -7505,14 +7828,14 @@ extern "C" {
) -> GstClockReturn; ) -> GstClockReturn;
pub fn gst_clock_add_observation( pub fn gst_clock_add_observation(
clock: *mut GstClock, clock: *mut GstClock,
slave: GstClockTime, observation_internal: GstClockTime,
master: GstClockTime, observation_external: GstClockTime,
r_squared: *mut c_double, r_squared: *mut c_double,
) -> gboolean; ) -> gboolean;
pub fn gst_clock_add_observation_unapplied( pub fn gst_clock_add_observation_unapplied(
clock: *mut GstClock, clock: *mut GstClock,
slave: GstClockTime, observation_internal: GstClockTime,
master: GstClockTime, observation_external: GstClockTime,
r_squared: *mut c_double, r_squared: *mut c_double,
internal: *mut GstClockTime, internal: *mut GstClockTime,
external: *mut GstClockTime, external: *mut GstClockTime,
@ -9373,8 +9696,6 @@ extern "C" {
pub fn gst_reference_timestamp_meta_api_get_type() -> GType; pub fn gst_reference_timestamp_meta_api_get_type() -> GType;
pub fn gst_segtrap_is_enabled() -> gboolean; pub fn gst_segtrap_is_enabled() -> gboolean;
pub fn gst_segtrap_set_enabled(enabled: gboolean); pub fn gst_segtrap_set_enabled(enabled: gboolean);
pub fn gst_static_caps_get_type() -> GType;
pub fn gst_static_pad_template_get_type() -> GType;
pub fn gst_tag_exists(tag: *const c_char) -> gboolean; pub fn gst_tag_exists(tag: *const c_char) -> gboolean;
pub fn gst_tag_get_description(tag: *const c_char) -> *const c_char; pub fn gst_tag_get_description(tag: *const c_char) -> *const c_char;
pub fn gst_tag_get_flag(tag: *const c_char) -> GstTagFlag; pub fn gst_tag_get_flag(tag: *const c_char) -> GstTagFlag;
@ -9410,7 +9731,6 @@ extern "C" {
detail: *const c_char, detail: *const c_char,
func: gobject::GCallback, func: gobject::GCallback,
); );
pub fn gst_type_find_get_type() -> GType;
#[cfg(feature = "v1_18")] #[cfg(feature = "v1_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
pub fn gst_type_is_plugin_api(type_: GType, flags: *mut GstPluginAPIFlags) -> gboolean; pub fn gst_type_is_plugin_api(type_: GType, flags: *mut GstPluginAPIFlags) -> gboolean;

View file

@ -657,6 +657,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstGhostPadClass>(), alignment: align_of::<GstGhostPadClass>(),
}, },
), ),
(
"GstIdStr",
Layout {
size: size_of::<GstIdStr>(),
alignment: align_of::<GstIdStr>(),
},
),
( (
"GstIterator", "GstIterator",
Layout { Layout {

View file

@ -73,6 +73,7 @@ int main() {
printf("%s;%zu;%zu\n", "GstGapFlags", sizeof(GstGapFlags), alignof(GstGapFlags)); printf("%s;%zu;%zu\n", "GstGapFlags", sizeof(GstGapFlags), alignof(GstGapFlags));
printf("%s;%zu;%zu\n", "GstGhostPad", sizeof(GstGhostPad), alignof(GstGhostPad)); printf("%s;%zu;%zu\n", "GstGhostPad", sizeof(GstGhostPad), alignof(GstGhostPad));
printf("%s;%zu;%zu\n", "GstGhostPadClass", sizeof(GstGhostPadClass), alignof(GstGhostPadClass)); printf("%s;%zu;%zu\n", "GstGhostPadClass", sizeof(GstGhostPadClass), alignof(GstGhostPadClass));
printf("%s;%zu;%zu\n", "GstIdStr", sizeof(GstIdStr), alignof(GstIdStr));
printf("%s;%zu;%zu\n", "GstIterator", sizeof(GstIterator), alignof(GstIterator)); printf("%s;%zu;%zu\n", "GstIterator", sizeof(GstIterator), alignof(GstIterator));
printf("%s;%zu;%zu\n", "GstIteratorItem", sizeof(GstIteratorItem), alignof(GstIteratorItem)); printf("%s;%zu;%zu\n", "GstIteratorItem", sizeof(GstIteratorItem), alignof(GstIteratorItem));
printf("%s;%zu;%zu\n", "GstIteratorResult", sizeof(GstIteratorResult), alignof(GstIteratorResult)); printf("%s;%zu;%zu\n", "GstIteratorResult", sizeof(GstIteratorResult), alignof(GstIteratorResult));