Regenerate with latest gir / gst-gir-files

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1591>
This commit is contained in:
Sebastian Dröge 2024-11-13 17:02:43 +02:00
parent ad756f9cb9
commit 46ead1f36c
66 changed files with 508 additions and 108 deletions

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -36,6 +36,30 @@ pub type GstSegmentationType = c_int;
pub const GST_SEGMENTATION_TYPE_SEMANTIC: GstSegmentationType = 0;
pub const GST_SEGMENTATION_TYPE_INSTANCE: GstSegmentationType = 1;
pub type GstTensorDataType = c_int;
pub const GST_TENSOR_DATA_TYPE_INT4: GstTensorDataType = 0;
pub const GST_TENSOR_DATA_TYPE_INT8: GstTensorDataType = 1;
pub const GST_TENSOR_DATA_TYPE_INT16: GstTensorDataType = 2;
pub const GST_TENSOR_DATA_TYPE_INT32: GstTensorDataType = 3;
pub const GST_TENSOR_DATA_TYPE_INT64: GstTensorDataType = 4;
pub const GST_TENSOR_DATA_TYPE_UINT4: GstTensorDataType = 5;
pub const GST_TENSOR_DATA_TYPE_UINT8: GstTensorDataType = 6;
pub const GST_TENSOR_DATA_TYPE_UINT16: GstTensorDataType = 7;
pub const GST_TENSOR_DATA_TYPE_UINT32: GstTensorDataType = 8;
pub const GST_TENSOR_DATA_TYPE_UINT64: GstTensorDataType = 9;
pub const GST_TENSOR_DATA_TYPE_FLOAT16: GstTensorDataType = 10;
pub const GST_TENSOR_DATA_TYPE_FLOAT32: GstTensorDataType = 11;
pub const GST_TENSOR_DATA_TYPE_FLOAT64: GstTensorDataType = 12;
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;
// Constants
pub const GST_INF_RELATION_SPAN: c_int = -1;
pub const GST_ANALYTICS_MTD_TYPE_ANY: c_int = 0;
@ -182,6 +206,68 @@ impl ::std::fmt::Debug for GstAnalyticsTrackingMtd {
}
}
#[repr(C)]
#[allow(dead_code)]
pub struct GstTensor {
pub id: glib::GQuark,
pub layout: GstTensorLayout,
pub data_type: GstTensorDataType,
pub batch_size: size_t,
pub data: *mut gst::GstBuffer,
pub dims_order: GstTensorDimOrder,
pub num_dims: size_t,
_truncated_record_marker: c_void,
// /*Ignored*/field dims has empty c:type
}
impl ::std::fmt::Debug for GstTensor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstTensor @ {self:p}"))
.field("id", &self.id)
.field("layout", &self.layout)
.field("data_type", &self.data_type)
.field("batch_size", &self.batch_size)
.field("data", &self.data)
.field("dims_order", &self.dims_order)
.field("num_dims", &self.num_dims)
.finish()
}
}
#[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 {
pub meta: gst::GstMeta,
pub num_tensors: size_t,
pub tensors: *mut *mut GstTensor,
}
impl ::std::fmt::Debug for GstTensorMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstTensorMeta @ {self:p}"))
.field("meta", &self.meta)
.field("num_tensors", &self.num_tensors)
.field("tensors", &self.tensors)
.finish()
}
}
extern "C" {
//=========================================================================
@ -391,6 +477,56 @@ extern "C" {
) -> gboolean;
pub fn gst_analytics_tracking_mtd_get_mtd_type() -> GstAnalyticsMtdType;
//=========================================================================
// GstTensor
//=========================================================================
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_tensor_get_type() -> GType;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_tensor_alloc(num_dims: size_t) -> *mut GstTensor;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
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,
dims: *mut size_t,
) -> *mut GstTensor;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_tensor_copy(tensor: *const GstTensor) -> *mut GstTensor;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
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;
//=========================================================================
// GstTensorMeta
//=========================================================================
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_tensor_meta_get(tmeta: *mut GstTensorMeta, index: size_t) -> *const GstTensor;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_tensor_meta_get_index_from_id(meta: *mut GstTensorMeta, id: glib::GQuark) -> c_int;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_tensor_meta_set(
tmeta: *mut GstTensorMeta,
num_tensors: c_uint,
tensors: *mut *mut GstTensor,
);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_tensor_meta_get_info() -> *const gst::GstMetaInfo;
//=========================================================================
// Other functions
//=========================================================================
@ -401,10 +537,19 @@ extern "C" {
buffer: *mut gst::GstBuffer,
init_params: *mut GstAnalyticsRelationMetaInitParams,
) -> *mut GstAnalyticsRelationMeta;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_buffer_add_tensor_meta(buffer: *mut gst::GstBuffer) -> *mut GstTensorMeta;
pub fn gst_buffer_get_analytics_relation_meta(
buffer: *mut gst::GstBuffer,
) -> *mut GstAnalyticsRelationMeta;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_buffer_get_tensor_meta(buffer: *mut gst::GstBuffer) -> *mut GstTensorMeta;
pub fn gst_analytics_relation_get_length(instance: *const GstAnalyticsRelationMeta) -> size_t;
pub fn gst_analytics_relation_meta_api_get_type() -> GType;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_tensor_meta_api_get_type() -> GType;
}

View file

@ -272,6 +272,48 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstSegmentationType>(),
},
),
(
"GstTensor",
Layout {
size: size_of::<GstTensor>(),
alignment: align_of::<GstTensor>(),
},
),
(
"GstTensorDataType",
Layout {
size: size_of::<GstTensorDataType>(),
alignment: align_of::<GstTensorDataType>(),
},
),
(
"GstTensorDim",
Layout {
size: size_of::<GstTensorDim>(),
alignment: align_of::<GstTensorDim>(),
},
),
(
"GstTensorDimOrder",
Layout {
size: size_of::<GstTensorDimOrder>(),
alignment: align_of::<GstTensorDimOrder>(),
},
),
(
"GstTensorLayout",
Layout {
size: size_of::<GstTensorLayout>(),
alignment: align_of::<GstTensorLayout>(),
},
),
(
"GstTensorMeta",
Layout {
size: size_of::<GstTensorMeta>(),
alignment: align_of::<GstTensorMeta>(),
},
),
];
const RUST_CONSTANTS: &[(&str, &str)] = &[
@ -285,4 +327,22 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("GST_INF_RELATION_SPAN", "-1"),
("(gint) GST_SEGMENTATION_TYPE_INSTANCE", "1"),
("(gint) GST_SEGMENTATION_TYPE_SEMANTIC", "0"),
("(gint) GST_TENSOR_DATA_TYPE_BFLOAT16", "13"),
("(gint) GST_TENSOR_DATA_TYPE_FLOAT16", "10"),
("(gint) GST_TENSOR_DATA_TYPE_FLOAT32", "11"),
("(gint) GST_TENSOR_DATA_TYPE_FLOAT64", "12"),
("(gint) GST_TENSOR_DATA_TYPE_INT16", "2"),
("(gint) GST_TENSOR_DATA_TYPE_INT32", "3"),
("(gint) GST_TENSOR_DATA_TYPE_INT4", "0"),
("(gint) GST_TENSOR_DATA_TYPE_INT64", "4"),
("(gint) GST_TENSOR_DATA_TYPE_INT8", "1"),
("(gint) GST_TENSOR_DATA_TYPE_UINT16", "7"),
("(gint) GST_TENSOR_DATA_TYPE_UINT32", "8"),
("(gint) GST_TENSOR_DATA_TYPE_UINT4", "5"),
("(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"),
];

View file

@ -39,5 +39,23 @@ int main() {
PRINT_CONSTANT(GST_INF_RELATION_SPAN);
PRINT_CONSTANT((gint) GST_SEGMENTATION_TYPE_INSTANCE);
PRINT_CONSTANT((gint) GST_SEGMENTATION_TYPE_SEMANTIC);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_BFLOAT16);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_FLOAT16);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_FLOAT32);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_FLOAT64);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_INT16);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_INT32);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_INT4);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_INT64);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_INT8);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_UINT16);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_UINT32);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_UINT4);
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);
return 0;
}

View file

@ -18,5 +18,11 @@ int main() {
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", "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));
return 0;
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -309,6 +309,20 @@ impl PlayMessage {
}
}
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_play_message_parse_buffering")]
pub fn parse_buffering(msg: &gst::Message) -> u32 {
assert_initialized_main_thread!();
unsafe {
let mut percent = std::mem::MaybeUninit::uninit();
ffi::gst_play_message_parse_buffering(msg.to_glib_none().0, percent.as_mut_ptr());
percent.assume_init()
}
}
#[cfg_attr(feature = "v1_26", deprecated = "Since 1.26")]
#[allow(deprecated)]
#[doc(alias = "gst_play_message_parse_buffering_percent")]
pub fn parse_buffering_percent(msg: &gst::Message) -> u32 {
assert_initialized_main_thread!();
@ -322,6 +336,23 @@ impl PlayMessage {
}
}
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_play_message_parse_duration_changed")]
pub fn parse_duration_changed(msg: &gst::Message) -> Option<gst::ClockTime> {
assert_initialized_main_thread!();
unsafe {
let mut duration = std::mem::MaybeUninit::uninit();
ffi::gst_play_message_parse_duration_changed(
msg.to_glib_none().0,
duration.as_mut_ptr(),
);
from_glib(duration.assume_init())
}
}
#[cfg_attr(feature = "v1_26", deprecated = "Since 1.26")]
#[allow(deprecated)]
#[doc(alias = "gst_play_message_parse_duration_updated")]
pub fn parse_duration_updated(msg: &gst::Message) -> Option<gst::ClockTime> {
assert_initialized_main_thread!();
@ -379,6 +410,18 @@ impl PlayMessage {
}
}
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_play_message_parse_seek_done")]
pub fn parse_seek_done(msg: &gst::Message) -> Option<gst::ClockTime> {
assert_initialized_main_thread!();
unsafe {
let mut position = std::mem::MaybeUninit::uninit();
ffi::gst_play_message_parse_seek_done(msg.to_glib_none().0, position.as_mut_ptr());
from_glib(position.assume_init())
}
}
#[doc(alias = "gst_play_message_parse_state_changed")]
pub fn parse_state_changed(msg: &gst::Message) -> PlayState {
assert_initialized_main_thread!();
@ -399,6 +442,18 @@ impl PlayMessage {
}
}
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "gst_play_message_parse_uri_loaded")]
pub fn parse_uri_loaded(msg: &gst::Message) -> glib::GString {
assert_initialized_main_thread!();
unsafe {
let mut uri = std::ptr::null_mut();
ffi::gst_play_message_parse_uri_loaded(msg.to_glib_none().0, &mut uri);
from_glib_full(uri)
}
}
#[doc(alias = "gst_play_message_parse_video_dimensions_changed")]
pub fn parse_video_dimensions_changed(msg: &gst::Message) -> (u32, u32) {
assert_initialized_main_thread!();

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -321,10 +321,19 @@ extern "C" {
//=========================================================================
pub fn gst_play_message_get_type() -> GType;
pub fn gst_play_message_get_name(message_type: GstPlayMessage) -> *const c_char;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_play_message_parse_buffering(msg: *mut gst::GstMessage, percent: *mut c_uint);
pub fn gst_play_message_parse_buffering_percent(
msg: *mut gst::GstMessage,
percent: *mut c_uint,
);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_play_message_parse_duration_changed(
msg: *mut gst::GstMessage,
duration: *mut gst::GstClockTime,
);
pub fn gst_play_message_parse_duration_updated(
msg: *mut gst::GstMessage,
duration: *mut gst::GstClockTime,
@ -343,11 +352,20 @@ extern "C" {
msg: *mut gst::GstMessage,
position: *mut gst::GstClockTime,
);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_play_message_parse_seek_done(
msg: *mut gst::GstMessage,
position: *mut gst::GstClockTime,
);
pub fn gst_play_message_parse_state_changed(
msg: *mut gst::GstMessage,
state: *mut GstPlayState,
);
pub fn gst_play_message_parse_type(msg: *mut gst::GstMessage, type_: *mut GstPlayMessage);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_play_message_parse_uri_loaded(msg: *mut gst::GstMessage, uri: *mut *mut c_char);
pub fn gst_play_message_parse_video_dimensions_changed(
msg: *mut gst::GstMessage,
width: *mut c_uint,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -156,10 +156,65 @@ pub trait RTSPStreamTransportExt: IsA<RTSPStreamTransport> + 'static {
}
}
//#[doc(alias = "gst_rtsp_stream_transport_set_callbacks")]
//fn set_callbacks<P: Fn(&gst::Buffer, u8) -> bool + 'static, Q: Fn(&gst::Buffer, u8) -> bool + 'static>(&self, send_rtp: P, send_rtcp: Q) {
// unsafe { TODO: call ffi:gst_rtsp_stream_transport_set_callbacks() }
//}
#[doc(alias = "gst_rtsp_stream_transport_set_callbacks")]
fn set_callbacks<
P: Fn(&gst::Buffer, u8) -> bool + 'static,
Q: Fn(&gst::Buffer, u8) -> bool + 'static,
>(
&self,
send_rtp: P,
send_rtcp: Q,
) {
let send_rtp_data: P = send_rtp;
unsafe extern "C" fn send_rtp_func<
P: Fn(&gst::Buffer, u8) -> bool + 'static,
Q: Fn(&gst::Buffer, u8) -> bool + 'static,
>(
buffer: *mut gst::ffi::GstBuffer,
channel: u8,
user_data: glib::ffi::gpointer,
) -> glib::ffi::gboolean {
let buffer = from_glib_borrow(buffer);
let callback: &Box_<(P, Q)> = &*(user_data as *mut _);
let callback = &callback.0;
(*callback)(&buffer, channel).into_glib()
}
let send_rtp = Some(send_rtp_func::<P, Q> as _);
let send_rtcp_data: Q = send_rtcp;
unsafe extern "C" fn send_rtcp_func<
P: Fn(&gst::Buffer, u8) -> bool + 'static,
Q: Fn(&gst::Buffer, u8) -> bool + 'static,
>(
buffer: *mut gst::ffi::GstBuffer,
channel: u8,
user_data: glib::ffi::gpointer,
) -> glib::ffi::gboolean {
let buffer = from_glib_borrow(buffer);
let callback: &Box_<(P, Q)> = &*(user_data as *mut _);
let callback = &callback.1;
(*callback)(&buffer, channel).into_glib()
}
let send_rtcp = Some(send_rtcp_func::<P, Q> as _);
unsafe extern "C" fn notify_func<
P: Fn(&gst::Buffer, u8) -> bool + 'static,
Q: Fn(&gst::Buffer, u8) -> bool + 'static,
>(
data: glib::ffi::gpointer,
) {
let _callback: Box_<(P, Q)> = Box_::from_raw(data as *mut _);
}
let destroy_call4 = Some(notify_func::<P, Q> as _);
let super_callback0: Box_<(P, Q)> = Box_::new((send_rtp_data, send_rtcp_data));
unsafe {
ffi::gst_rtsp_stream_transport_set_callbacks(
self.as_ref().to_glib_none().0,
send_rtp,
send_rtcp,
Box_::into_raw(super_callback0) as *mut _,
destroy_call4,
);
}
}
#[doc(alias = "gst_rtsp_stream_transport_set_keepalive")]
fn set_keepalive<P: Fn() + 'static>(&self, keep_alive: P) {

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -72,6 +72,7 @@ pub const GST_TAG_CAPTURING_FOCAL_LENGTH_35_MM: &[u8] = b"capturing-focal-length
pub const GST_TAG_CAPTURING_FOCAL_RATIO: &[u8] = b"capturing-focal-ratio\0";
pub const GST_TAG_CAPTURING_GAIN_ADJUSTMENT: &[u8] = b"capturing-gain-adjustment\0";
pub const GST_TAG_CAPTURING_ISO_SPEED: &[u8] = b"capturing-iso-speed\0";
pub const GST_TAG_CAPTURING_LIGHT_SOURCE: &[u8] = b"capturing-light-source\0";
pub const GST_TAG_CAPTURING_METERING_MODE: &[u8] = b"capturing-metering-mode\0";
pub const GST_TAG_CAPTURING_SATURATION: &[u8] = b"capturing-saturation\0";
pub const GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE: &[u8] = b"capturing-scene-capture-type\0";

View file

@ -290,6 +290,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
"capturing-gain-adjustment",
),
("GST_TAG_CAPTURING_ISO_SPEED", "capturing-iso-speed"),
("GST_TAG_CAPTURING_LIGHT_SOURCE", "capturing-light-source"),
("GST_TAG_CAPTURING_METERING_MODE", "capturing-metering-mode"),
("GST_TAG_CAPTURING_SATURATION", "capturing-saturation"),
(

View file

@ -43,6 +43,7 @@ int main() {
PRINT_CONSTANT(GST_TAG_CAPTURING_FOCAL_RATIO);
PRINT_CONSTANT(GST_TAG_CAPTURING_GAIN_ADJUSTMENT);
PRINT_CONSTANT(GST_TAG_CAPTURING_ISO_SPEED);
PRINT_CONSTANT(GST_TAG_CAPTURING_LIGHT_SOURCE);
PRINT_CONSTANT(GST_TAG_CAPTURING_METERING_MODE);
PRINT_CONSTANT(GST_TAG_CAPTURING_SATURATION);
PRINT_CONSTANT(GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE);

View file

@ -159,6 +159,33 @@ pub trait ScenarioExt: IsA<Scenario> + 'static {
}
}
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "stopping")]
fn connect_stopping<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn stopping_trampoline<
P: IsA<Scenario>,
F: Fn(&P) + Send + Sync + 'static,
>(
this: *mut ffi::GstValidateScenario,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(Scenario::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"stopping\0".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
stopping_trampoline::<Self, F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[doc(alias = "execute-on-idle")]
fn connect_execute_on_idle_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -2587,6 +2587,10 @@ pub enum VideoFormat {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "GST_VIDEO_FORMAT_Y416_BE")]
Y416Be,
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "GST_VIDEO_FORMAT_GRAY10_LE16")]
Gray10Le16,
#[doc(hidden)]
__Unknown(i32),
}
@ -2825,6 +2829,8 @@ impl IntoGlib for VideoFormat {
Self::Y416Le => ffi::GST_VIDEO_FORMAT_Y416_LE,
#[cfg(feature = "v1_26")]
Self::Y416Be => ffi::GST_VIDEO_FORMAT_Y416_BE,
#[cfg(feature = "v1_26")]
Self::Gray10Le16 => ffi::GST_VIDEO_FORMAT_GRAY10_LE16,
Self::__Unknown(value) => value,
}
}
@ -3031,6 +3037,8 @@ impl FromGlib<ffi::GstVideoFormat> for VideoFormat {
ffi::GST_VIDEO_FORMAT_Y416_LE => Self::Y416Le,
#[cfg(feature = "v1_26")]
ffi::GST_VIDEO_FORMAT_Y416_BE => Self::Y416Be,
#[cfg(feature = "v1_26")]
ffi::GST_VIDEO_FORMAT_GRAY10_LE16 => Self::Gray10Le16,
value => Self::__Unknown(value),
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -420,6 +420,9 @@ pub const GST_VIDEO_FORMAT_Y416_LE: GstVideoFormat = 136;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub const GST_VIDEO_FORMAT_Y416_BE: GstVideoFormat = 137;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub const GST_VIDEO_FORMAT_GRAY10_LE16: GstVideoFormat = 138;
pub type GstVideoGLTextureOrientation = c_int;
pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL: GstVideoGLTextureOrientation = 0;
@ -607,7 +610,7 @@ pub const GST_VIDEO_DECODER_SINK_NAME: &[u8] = b"sink\0";
pub const GST_VIDEO_DECODER_SRC_NAME: &[u8] = b"src\0";
pub const GST_VIDEO_ENCODER_SINK_NAME: &[u8] = b"sink\0";
pub const GST_VIDEO_ENCODER_SRC_NAME: &[u8] = b"src\0";
pub const GST_VIDEO_FORMAT_LAST: c_int = 138;
pub const GST_VIDEO_FORMAT_LAST: c_int = 139;
pub const GST_VIDEO_FPS_RANGE: &[u8] = b"(fraction) [ 0, max ]\0";
pub const GST_VIDEO_MAX_COMPONENTS: c_int = 4;
pub const GST_VIDEO_MAX_PLANES: c_int = 4;

View file

@ -1369,6 +1369,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_FORMAT_GBR_12LE", "69"),
("(gint) GST_VIDEO_FORMAT_GBR_16BE", "132"),
("(gint) GST_VIDEO_FORMAT_GBR_16LE", "131"),
("(gint) GST_VIDEO_FORMAT_GRAY10_LE16", "138"),
("(gint) GST_VIDEO_FORMAT_GRAY10_LE32", "78"),
("(gint) GST_VIDEO_FORMAT_GRAY16_BE", "26"),
("(gint) GST_VIDEO_FORMAT_GRAY16_LE", "27"),
@ -1384,7 +1385,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_FORMAT_I422_12LE", "75"),
("(gint) GST_VIDEO_FORMAT_IYU1", "38"),
("(gint) GST_VIDEO_FORMAT_IYU2", "63"),
("GST_VIDEO_FORMAT_LAST", "138"),
("GST_VIDEO_FORMAT_LAST", "139"),
("(gint) GST_VIDEO_FORMAT_MT2110R", "116"),
("(gint) GST_VIDEO_FORMAT_MT2110T", "115"),
("(gint) GST_VIDEO_FORMAT_NV12", "23"),

View file

@ -319,6 +319,7 @@ int main() {
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBR_12LE);
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBR_16BE);
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBR_16LE);
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GRAY10_LE16);
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GRAY10_LE32);
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GRAY16_BE);
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GRAY16_LE);

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
Generated by gir (https://github.com/gtk-rs/gir @ a49194361243)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 05cc12709e2f)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 5e1587dfbcd2)