Regenerate with latest gir / gir-files

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1624>
This commit is contained in:
Olivier Crête 2025-01-04 17:36:50 -06:00 committed by Sebastian Dröge
parent 789bcb3190
commit 195455a9db
64 changed files with 230 additions and 87 deletions

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -110,8 +110,6 @@ pub enum TensorDimOrder {
RowMajor,
#[doc(alias = "GST_TENSOR_DIM_ORDER_COL_MAJOR")]
ColMajor,
#[doc(alias = "GST_TENSOR_DIM_ORDER_INDEXED")]
Indexed,
#[doc(hidden)]
__Unknown(i32),
}
@ -127,7 +125,6 @@ impl IntoGlib for TensorDimOrder {
match self {
Self::RowMajor => ffi::GST_TENSOR_DIM_ORDER_ROW_MAJOR,
Self::ColMajor => ffi::GST_TENSOR_DIM_ORDER_COL_MAJOR,
Self::Indexed => ffi::GST_TENSOR_DIM_ORDER_INDEXED,
Self::__Unknown(value) => value,
}
}
@ -144,7 +141,6 @@ impl FromGlib<ffi::GstTensorDimOrder> for TensorDimOrder {
match value {
ffi::GST_TENSOR_DIM_ORDER_ROW_MAJOR => Self::RowMajor,
ffi::GST_TENSOR_DIM_ORDER_COL_MAJOR => Self::ColMajor,
ffi::GST_TENSOR_DIM_ORDER_INDEXED => Self::Indexed,
value => Self::__Unknown(value),
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -59,10 +59,9 @@ pub const GST_TENSOR_DATA_TYPE_BFLOAT16: GstTensorDataType = 13;
pub type GstTensorDimOrder = c_int;
pub const GST_TENSOR_DIM_ORDER_ROW_MAJOR: GstTensorDimOrder = 0;
pub const GST_TENSOR_DIM_ORDER_COL_MAJOR: GstTensorDimOrder = 1;
pub const GST_TENSOR_DIM_ORDER_INDEXED: GstTensorDimOrder = 2;
pub type GstTensorLayout = c_int;
pub const GST_TENSOR_LAYOUT_STRIDED: GstTensorLayout = 0;
pub const GST_TENSOR_LAYOUT_CONTIGUOUS: GstTensorLayout = 0;
// Constants
pub const GST_INF_RELATION_SPAN: c_int = -1;
@ -212,22 +211,6 @@ impl ::std::fmt::Debug for GstAnalyticsTrackingMtd {
}
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstTensorDim {
pub size: size_t,
pub order_index: size_t,
}
impl ::std::fmt::Debug for GstTensorDim {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstTensorDim @ {self:p}"))
.field("size", &self.size)
.field("order_index", &self.order_index)
.finish()
}
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstTensorMeta {
@ -290,6 +273,17 @@ extern "C" {
loc_conf_lvl: *mut c_float,
) -> gboolean;
pub fn gst_analytics_od_mtd_get_obj_type(handle: *const GstAnalyticsODMtd) -> glib::GQuark;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_analytics_od_mtd_get_oriented_location(
instance: *const GstAnalyticsODMtd,
x: *mut c_int,
y: *mut c_int,
w: *mut c_int,
h: *mut c_int,
r: *mut c_float,
loc_conf_lvl: *mut c_float,
) -> gboolean;
pub fn gst_analytics_od_mtd_get_mtd_type() -> GstAnalyticsMtdType;
//=========================================================================
@ -326,6 +320,19 @@ extern "C" {
) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_analytics_relation_meta_add_oriented_od_mtd(
instance: *mut GstAnalyticsRelationMeta,
type_: glib::GQuark,
x: c_int,
y: c_int,
w: c_int,
h: c_int,
r: c_float,
loc_conf_lvl: c_float,
od_mtd: *mut GstAnalyticsODMtd,
) -> 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,
@ -469,7 +476,6 @@ extern "C" {
pub fn gst_tensor_new_simple(
id: glib::GQuark,
data_type: GstTensorDataType,
batch_size: size_t,
data: *mut gst::GstBuffer,
dims_order: GstTensorDimOrder,
num_dims: size_t,
@ -483,7 +489,7 @@ extern "C" {
pub fn gst_tensor_free(tensor: *mut GstTensor);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_tensor_get_dims(tensor: *mut GstTensor, num_dims: *mut size_t) -> *mut GstTensorDim;
pub fn gst_tensor_get_dims(tensor: *mut GstTensor, num_dims: *mut size_t) -> *mut size_t;
//=========================================================================
// GstTensorMeta

View file

@ -286,13 +286,6 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstTensorDataType>(),
},
),
(
"GstTensorDim",
Layout {
size: size_of::<GstTensorDim>(),
alignment: align_of::<GstTensorDim>(),
},
),
(
"GstTensorDimOrder",
Layout {
@ -342,7 +335,6 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_TENSOR_DATA_TYPE_UINT64", "9"),
("(gint) GST_TENSOR_DATA_TYPE_UINT8", "6"),
("(gint) GST_TENSOR_DIM_ORDER_COL_MAJOR", "1"),
("(gint) GST_TENSOR_DIM_ORDER_INDEXED", "2"),
("(gint) GST_TENSOR_DIM_ORDER_ROW_MAJOR", "0"),
("(gint) GST_TENSOR_LAYOUT_STRIDED", "0"),
("(gint) GST_TENSOR_LAYOUT_CONTIGUOUS", "0"),
];

View file

@ -54,8 +54,7 @@ int main() {
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_UINT64);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_UINT8);
PRINT_CONSTANT((gint) GST_TENSOR_DIM_ORDER_COL_MAJOR);
PRINT_CONSTANT((gint) GST_TENSOR_DIM_ORDER_INDEXED);
PRINT_CONSTANT((gint) GST_TENSOR_DIM_ORDER_ROW_MAJOR);
PRINT_CONSTANT((gint) GST_TENSOR_LAYOUT_STRIDED);
PRINT_CONSTANT((gint) GST_TENSOR_LAYOUT_CONTIGUOUS);
return 0;
}

View file

@ -20,7 +20,6 @@ int main() {
printf("%s;%zu;%zu\n", "GstSegmentationType", sizeof(GstSegmentationType), alignof(GstSegmentationType));
printf("%s;%zu;%zu\n", "GstTensor", sizeof(GstTensor), alignof(GstTensor));
printf("%s;%zu;%zu\n", "GstTensorDataType", sizeof(GstTensorDataType), alignof(GstTensorDataType));
printf("%s;%zu;%zu\n", "GstTensorDim", sizeof(GstTensorDim), alignof(GstTensorDim));
printf("%s;%zu;%zu\n", "GstTensorDimOrder", sizeof(GstTensorDimOrder), alignof(GstTensorDimOrder));
printf("%s;%zu;%zu\n", "GstTensorLayout", sizeof(GstTensorLayout), alignof(GstTensorLayout));
printf("%s;%zu;%zu\n", "GstTensorMeta", sizeof(GstTensorMeta), alignof(GstTensorMeta));

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -87,6 +87,12 @@ pub const GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT: GstAudioChannelPosition = 24;
pub const GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT: GstAudioChannelPosition = 25;
pub const GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT: GstAudioChannelPosition = 26;
pub const GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT: GstAudioChannelPosition = 27;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub const GST_AUDIO_CHANNEL_POSITION_TOP_SURROUND_LEFT: GstAudioChannelPosition = 28;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub const GST_AUDIO_CHANNEL_POSITION_TOP_SURROUND_RIGHT: GstAudioChannelPosition = 29;
pub type GstAudioDitherMethod = c_int;
pub const GST_AUDIO_DITHER_NONE: GstAudioDitherMethod = 0;
@ -2473,6 +2479,15 @@ extern "C" {
from: *const GstAudioChannelPosition,
to: *const GstAudioChannelPosition,
) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_audio_reorder_channels_with_reorder_map(
data: gpointer,
size: size_t,
bps: c_int,
channels: c_int,
reorder_map: *const c_int,
);
pub fn gst_buffer_add_audio_clipping_meta(
buffer: *mut gst::GstBuffer,
format: gst::GstFormat,

View file

@ -714,6 +714,8 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT", "17"),
("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT", "18"),
("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT", "19"),
("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_SURROUND_LEFT", "28"),
("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_SURROUND_RIGHT", "29"),
("(gint) GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT", "24"),
("(gint) GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT", "25"),
("(guint) GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE", "1"),

View file

@ -80,6 +80,8 @@ int main() {
PRINT_CONSTANT((gint) GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT);
PRINT_CONSTANT((gint) GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT);
PRINT_CONSTANT((gint) GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT);
PRINT_CONSTANT((gint) GST_AUDIO_CHANNEL_POSITION_TOP_SURROUND_LEFT);
PRINT_CONSTANT((gint) GST_AUDIO_CHANNEL_POSITION_TOP_SURROUND_RIGHT);
PRINT_CONSTANT((gint) GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT);
PRINT_CONSTANT((gint) GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT);
PRINT_CONSTANT((guint) GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE);

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -58,6 +58,30 @@ pub fn codec_utils_aac_get_sample_rate_from_index(sr_idx: u32) -> u32 {
unsafe { ffi::gst_codec_utils_aac_get_sample_rate_from_index(sr_idx) }
}
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_codec_utils_av1_create_av1c_from_caps")]
pub fn codec_utils_av1_create_av1c_from_caps(caps: &gst::Caps) -> gst::Buffer {
assert_initialized_main_thread!();
unsafe {
from_glib_full(ffi::gst_codec_utils_av1_create_av1c_from_caps(
caps.to_glib_none().0,
))
}
}
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_codec_utils_av1_create_caps_from_av1c")]
pub fn codec_utils_av1_create_caps_from_av1c(av1c: &gst::Buffer) -> gst::Caps {
assert_initialized_main_thread!();
unsafe {
from_glib_full(ffi::gst_codec_utils_av1_create_caps_from_av1c(
av1c.to_glib_none().0,
))
}
}
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_codec_utils_av1_get_level")]

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -841,6 +841,16 @@ extern "C" {
pub fn gst_codec_utils_aac_get_sample_rate_from_index(sr_idx: c_uint) -> c_uint;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_codec_utils_av1_create_av1c_from_caps(
caps: *mut gst::GstCaps,
) -> *mut gst::GstBuffer;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_codec_utils_av1_create_caps_from_av1c(
av1c: *mut gst::GstBuffer,
) -> *mut gst::GstCaps;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_codec_utils_av1_get_level(seq_level_idx: u8) -> *const c_char;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]

View file

@ -2,6 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
#![allow(deprecated)]
use crate::{
ffi, PlayAudioInfo, PlayColorBalanceType, PlayMediaInfo, PlaySubtitleInfo, PlayVideoInfo,
@ -189,6 +190,8 @@ impl Play {
}
}
#[cfg_attr(feature = "v1_26", deprecated = "Since 1.26")]
#[allow(deprecated)]
#[doc(alias = "gst_play_set_audio_track")]
pub fn set_audio_track(&self, stream_index: i32) -> Result<(), glib::error::BoolError> {
unsafe {
@ -206,6 +209,18 @@ impl Play {
}
}
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_play_set_audio_track_id")]
pub fn set_audio_track_id(&self, stream_id: Option<&str>) -> bool {
unsafe {
from_glib(ffi::gst_play_set_audio_track_id(
self.to_glib_none().0,
stream_id.to_glib_none().0,
))
}
}
#[doc(alias = "gst_play_set_audio_video_offset")]
#[doc(alias = "audio-video-offset")]
pub fn set_audio_video_offset(&self, offset: i64) {
@ -251,6 +266,8 @@ impl Play {
}
}
#[cfg_attr(feature = "v1_26", deprecated = "Since 1.26")]
#[allow(deprecated)]
#[doc(alias = "gst_play_set_subtitle_track")]
pub fn set_subtitle_track(&self, stream_index: i32) -> Result<(), glib::error::BoolError> {
unsafe {
@ -268,6 +285,18 @@ impl Play {
}
}
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_play_set_subtitle_track_id")]
pub fn set_subtitle_track_id(&self, stream_id: Option<&str>) -> bool {
unsafe {
from_glib(ffi::gst_play_set_subtitle_track_id(
self.to_glib_none().0,
stream_id.to_glib_none().0,
))
}
}
#[doc(alias = "gst_play_set_subtitle_uri")]
pub fn set_subtitle_uri(&self, uri: Option<&str>) {
unsafe {
@ -283,6 +312,25 @@ impl Play {
}
}
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_play_set_track_ids")]
pub fn set_track_ids(
&self,
audio_stream_id: Option<&str>,
video_stream_id: Option<&str>,
subtitle_stream_id: Option<&str>,
) -> bool {
unsafe {
from_glib(ffi::gst_play_set_track_ids(
self.to_glib_none().0,
audio_stream_id.to_glib_none().0,
video_stream_id.to_glib_none().0,
subtitle_stream_id.to_glib_none().0,
))
}
}
#[doc(alias = "gst_play_set_uri")]
#[doc(alias = "uri")]
pub fn set_uri(&self, uri: Option<&str>) {
@ -291,6 +339,8 @@ impl Play {
}
}
#[cfg_attr(feature = "v1_26", deprecated = "Since 1.26")]
#[allow(deprecated)]
#[doc(alias = "gst_play_set_video_track")]
pub fn set_video_track(&self, stream_index: i32) -> Result<(), glib::error::BoolError> {
unsafe {
@ -308,6 +358,18 @@ impl Play {
}
}
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_play_set_video_track_id")]
pub fn set_video_track_id(&self, stream_id: Option<&str>) -> bool {
unsafe {
from_glib(ffi::gst_play_set_video_track_id(
self.to_glib_none().0,
stream_id.to_glib_none().0,
))
}
}
#[doc(alias = "gst_play_set_visualization")]
pub fn set_visualization(&self, name: Option<&str>) -> Result<(), glib::error::BoolError> {
unsafe {

View file

@ -2,6 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
#![allow(deprecated)]
use crate::ffi;
use glib::{prelude::*, translate::*};
@ -43,6 +44,8 @@ pub trait PlayStreamInfoExt: IsA<PlayStreamInfo> + 'static {
}
}
#[cfg_attr(feature = "v1_26", deprecated = "Since 1.26")]
#[allow(deprecated)]
#[doc(alias = "gst_play_stream_info_get_index")]
#[doc(alias = "get_index")]
fn index(&self) -> i32 {
@ -51,6 +54,18 @@ pub trait PlayStreamInfoExt: IsA<PlayStreamInfo> + 'static {
}
}
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_play_stream_info_get_stream_id")]
#[doc(alias = "get_stream_id")]
fn stream_id(&self) -> glib::GString {
unsafe {
from_glib_none(ffi::gst_play_stream_info_get_stream_id(const_override(
self.as_ref().to_glib_none().0,
)))
}
}
#[doc(alias = "gst_play_stream_info_get_stream_type")]
#[doc(alias = "get_stream_type")]
fn stream_type(&self) -> glib::GString {

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -461,6 +461,9 @@ extern "C" {
pub fn gst_play_seek(play: *mut GstPlay, position: gst::GstClockTime);
pub fn gst_play_set_audio_track(play: *mut GstPlay, stream_index: c_int) -> gboolean;
pub fn gst_play_set_audio_track_enabled(play: *mut GstPlay, enabled: gboolean);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_play_set_audio_track_id(play: *mut GstPlay, stream_id: *const c_char) -> gboolean;
pub fn gst_play_set_audio_video_offset(play: *mut GstPlay, offset: i64);
pub fn gst_play_set_color_balance(
play: *mut GstPlay,
@ -480,11 +483,26 @@ extern "C" {
pub fn gst_play_set_rate(play: *mut GstPlay, rate: c_double);
pub fn gst_play_set_subtitle_track(play: *mut GstPlay, stream_index: c_int) -> gboolean;
pub fn gst_play_set_subtitle_track_enabled(play: *mut GstPlay, enabled: gboolean);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_play_set_subtitle_track_id(play: *mut GstPlay, stream_id: *const c_char)
-> gboolean;
pub fn gst_play_set_subtitle_uri(play: *mut GstPlay, uri: *const c_char);
pub fn gst_play_set_subtitle_video_offset(play: *mut GstPlay, offset: i64);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_play_set_track_ids(
play: *mut GstPlay,
audio_stream_id: *const c_char,
video_stream_id: *const c_char,
subtitle_stream_id: *const c_char,
) -> gboolean;
pub fn gst_play_set_uri(play: *mut GstPlay, uri: *const c_char);
pub fn gst_play_set_video_track(play: *mut GstPlay, stream_index: c_int) -> gboolean;
pub fn gst_play_set_video_track_enabled(play: *mut GstPlay, enabled: gboolean);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_play_set_video_track_id(play: *mut GstPlay, stream_id: *const c_char) -> gboolean;
pub fn gst_play_set_visualization(play: *mut GstPlay, name: *const c_char) -> gboolean;
pub fn gst_play_set_visualization_enabled(play: *mut GstPlay, enabled: gboolean);
pub fn gst_play_set_volume(play: *mut GstPlay, val: c_double);
@ -551,6 +569,9 @@ extern "C" {
pub fn gst_play_stream_info_get_caps(info: *const GstPlayStreamInfo) -> *mut gst::GstCaps;
pub fn gst_play_stream_info_get_codec(info: *const GstPlayStreamInfo) -> *const c_char;
pub fn gst_play_stream_info_get_index(info: *const GstPlayStreamInfo) -> c_int;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_play_stream_info_get_stream_id(info: *const GstPlayStreamInfo) -> *const c_char;
pub fn gst_play_stream_info_get_stream_type(info: *const GstPlayStreamInfo) -> *const c_char;
pub fn gst_play_stream_info_get_tags(info: *const GstPlayStreamInfo) -> *mut gst::GstTagList;

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ b8b3d27875d1)