mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-04-16 04:44:06 +00:00
Regenerate with latest gir / gir-files / gst-gir-files
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1632>
This commit is contained in:
parent
a76e852054
commit
a6e7c1a237
113 changed files with 589 additions and 200 deletions
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -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,
|
||||
|
@ -385,6 +392,13 @@ extern "C" {
|
|||
an_meta_first_id: c_uint,
|
||||
an_meta_second_id: c_uint,
|
||||
) -> GstAnalyticsRelTypes;
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
pub fn gst_analytics_relation_meta_get_segmentation_mtd(
|
||||
meta: *mut GstAnalyticsRelationMeta,
|
||||
an_meta_id: c_uint,
|
||||
rlt: *mut GstAnalyticsSegmentationMtd,
|
||||
) -> gboolean;
|
||||
pub fn gst_analytics_relation_meta_get_tracking_mtd(
|
||||
meta: *mut GstAnalyticsRelationMeta,
|
||||
an_meta_id: c_uint,
|
||||
|
@ -469,7 +483,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 +496,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
|
||||
|
|
|
@ -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"),
|
||||
];
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"),
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::ffi;
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::{ffi, ControlPoint};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
use crate::{ffi, Edge, EditMode, Extractable, Layer, MetaContainer, TimelineElement};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::ffi;
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
use crate::Track;
|
||||
use crate::{ffi, Asset, Clip, Extractable, MetaContainer, Timeline, TrackType};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
use crate::MarkerFlags;
|
||||
use crate::{ffi, Marker};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
use crate::MarkerList;
|
||||
use crate::{ffi, MetaFlag};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
use crate::Formatter;
|
||||
use crate::{ffi, Asset, MetaContainer, Timeline};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -11,6 +11,7 @@ use crate::{
|
|||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use crate::{Clip, FrameNumber};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -9,6 +9,7 @@ use crate::{ffi, Extractable, MetaContainer, Timeline, TrackType};
|
|||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use crate::{Edge, EditMode, Layer};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
@ -172,6 +173,7 @@ pub trait TimelineElementExt: IsA<TimelineElement> + sealed::Sealed + 'static {
|
|||
|
||||
#[doc(alias = "ges_timeline_element_get_inpoint")]
|
||||
#[doc(alias = "get_inpoint")]
|
||||
#[doc(alias = "in-point")]
|
||||
fn inpoint(&self) -> gst::ClockTime {
|
||||
unsafe {
|
||||
try_from_glib(ffi::ges_timeline_element_get_inpoint(
|
||||
|
@ -473,6 +475,7 @@ pub trait TimelineElementExt: IsA<TimelineElement> + sealed::Sealed + 'static {
|
|||
}
|
||||
|
||||
#[doc(alias = "ges_timeline_element_set_inpoint")]
|
||||
#[doc(alias = "in-point")]
|
||||
fn set_inpoint(&self, inpoint: gst::ClockTime) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_timeline_element_set_inpoint(
|
||||
|
@ -569,16 +572,6 @@ pub trait TimelineElementExt: IsA<TimelineElement> + sealed::Sealed + 'static {
|
|||
}
|
||||
}
|
||||
|
||||
#[doc(alias = "in-point")]
|
||||
fn in_point(&self) -> u64 {
|
||||
ObjectExt::property(self.as_ref(), "in-point")
|
||||
}
|
||||
|
||||
#[doc(alias = "in-point")]
|
||||
fn set_in_point(&self, in_point: u64) {
|
||||
ObjectExt::set_property(self.as_ref(), "in-point", in_point)
|
||||
}
|
||||
|
||||
fn is_serialize(&self) -> bool {
|
||||
ObjectExt::property(self.as_ref(), "serialize")
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::{ffi, MetaContainer, Timeline, TrackElement, TrackType};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -8,6 +8,7 @@ use crate::{
|
|||
ffi, Edge, EditMode, Extractable, Layer, MetaContainer, TimelineElement, Track, TrackType,
|
||||
};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::{ffi, GLContext, GLDisplayType, GLWindow, GLAPI};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::{ffi, GLContext, GLDisplay};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -658,6 +658,9 @@ 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;
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
pub const GST_MPEGTS_STREAM_TYPE_VIDEO_VVC: GstMpegtsStreamType = 51;
|
||||
pub const GST_MPEGTS_STREAM_TYPE_IPMP_STREAM: GstMpegtsStreamType = 127;
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
|
|
|
@ -1234,6 +1234,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
|
|||
),
|
||||
("(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG4", "16"),
|
||||
("(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_RVC", "30"),
|
||||
("(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_VVC", "51"),
|
||||
("(gint) GST_MPEGTS_TRANSMISSION_MODE_16K", "5"),
|
||||
("(gint) GST_MPEGTS_TRANSMISSION_MODE_1K", "4"),
|
||||
("(gint) GST_MPEGTS_TRANSMISSION_MODE_2K", "0"),
|
||||
|
|
|
@ -270,6 +270,7 @@ int main() {
|
|||
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2_STEREO_ADDITIONAL_VIEW);
|
||||
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG4);
|
||||
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_RVC);
|
||||
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_VVC);
|
||||
PRINT_CONSTANT((gint) GST_MPEGTS_TRANSMISSION_MODE_16K);
|
||||
PRINT_CONSTANT((gint) GST_MPEGTS_TRANSMISSION_MODE_1K);
|
||||
PRINT_CONSTANT((gint) GST_MPEGTS_TRANSMISSION_MODE_2K);
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::{ffi, DiscovererInfo};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -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) -> Option<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) -> Option<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")]
|
||||
|
@ -172,6 +196,74 @@ pub fn codec_utils_h265_get_tier(
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
#[doc(alias = "gst_codec_utils_h266_caps_set_level_tier_and_profile")]
|
||||
pub fn codec_utils_h266_caps_set_level_tier_and_profile(
|
||||
caps: &gst::Caps,
|
||||
decoder_configuration: &[u8],
|
||||
) -> bool {
|
||||
assert_initialized_main_thread!();
|
||||
let len = decoder_configuration.len() as _;
|
||||
unsafe {
|
||||
from_glib(ffi::gst_codec_utils_h266_caps_set_level_tier_and_profile(
|
||||
caps.to_glib_none().0,
|
||||
decoder_configuration.to_glib_none().0,
|
||||
len,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
#[doc(alias = "gst_codec_utils_h266_get_level")]
|
||||
pub fn codec_utils_h266_get_level(ptl_record: &[u8]) -> Option<glib::GString> {
|
||||
assert_initialized_main_thread!();
|
||||
let len = ptl_record.len() as _;
|
||||
unsafe {
|
||||
from_glib_none(ffi::gst_codec_utils_h266_get_level(
|
||||
ptl_record.to_glib_none().0,
|
||||
len,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
#[doc(alias = "gst_codec_utils_h266_get_level_idc")]
|
||||
pub fn codec_utils_h266_get_level_idc(level: &str) -> u8 {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe { ffi::gst_codec_utils_h266_get_level_idc(level.to_glib_none().0) }
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
#[doc(alias = "gst_codec_utils_h266_get_profile")]
|
||||
pub fn codec_utils_h266_get_profile(ptl_record: &[u8]) -> Option<glib::GString> {
|
||||
assert_initialized_main_thread!();
|
||||
let len = ptl_record.len() as _;
|
||||
unsafe {
|
||||
from_glib_none(ffi::gst_codec_utils_h266_get_profile(
|
||||
ptl_record.to_glib_none().0,
|
||||
len,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
#[doc(alias = "gst_codec_utils_h266_get_tier")]
|
||||
pub fn codec_utils_h266_get_tier(ptl_record: &[u8]) -> Option<glib::GString> {
|
||||
assert_initialized_main_thread!();
|
||||
let len = ptl_record.len() as _;
|
||||
unsafe {
|
||||
from_glib_none(ffi::gst_codec_utils_h266_get_tier(
|
||||
ptl_record.to_glib_none().0,
|
||||
len,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(alias = "gst_codec_utils_mpeg4video_get_level")]
|
||||
pub fn codec_utils_mpeg4video_get_level(
|
||||
vis_obj_seq: &[u8],
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -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")))]
|
||||
|
@ -886,6 +896,25 @@ extern "C" {
|
|||
profile_tier_level: *const u8,
|
||||
len: c_uint,
|
||||
) -> *const c_char;
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
pub fn gst_codec_utils_h266_caps_set_level_tier_and_profile(
|
||||
caps: *mut gst::GstCaps,
|
||||
decoder_configuration: *const u8,
|
||||
len: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
pub fn gst_codec_utils_h266_get_level(ptl_record: *const u8, len: c_uint) -> *const c_char;
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
pub fn gst_codec_utils_h266_get_level_idc(level: *const c_char) -> u8;
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
pub fn gst_codec_utils_h266_get_profile(ptl_record: *const u8, len: c_uint) -> *const c_char;
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
pub fn gst_codec_utils_h266_get_tier(ptl_record: *const u8, len: c_uint) -> *const c_char;
|
||||
pub fn gst_codec_utils_mpeg4video_caps_set_level_and_profile(
|
||||
caps: *mut gst::GstCaps,
|
||||
vis_obj_seq: *const u8,
|
||||
|
|
|
@ -309,6 +309,24 @@ impl PlayMessage {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
#[doc(alias = "gst_play_message_get_stream_id")]
|
||||
#[doc(alias = "get_stream_id")]
|
||||
pub fn stream_id(msg: &gst::Message) -> Option<glib::GString> {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe { from_glib_none(ffi::gst_play_message_get_stream_id(msg.to_glib_none().0)) }
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
#[doc(alias = "gst_play_message_get_uri")]
|
||||
#[doc(alias = "get_uri")]
|
||||
pub fn uri(msg: &gst::Message) -> glib::GString {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe { from_glib_none(ffi::gst_play_message_get_uri(msg.to_glib_none().0)) }
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
#[doc(alias = "gst_play_message_parse_buffering")]
|
||||
|
@ -377,6 +395,32 @@ impl PlayMessage {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
#[doc(alias = "gst_play_message_parse_error_missing_plugin")]
|
||||
pub fn parse_error_missing_plugin(
|
||||
msg: &gst::Message,
|
||||
) -> Option<(glib::GString, Option<glib::GString>)> {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe {
|
||||
let mut descriptions = std::ptr::null_mut();
|
||||
let mut installer_details = std::ptr::null_mut();
|
||||
let ret = from_glib(ffi::gst_play_message_parse_error_missing_plugin(
|
||||
msg.to_glib_none().0,
|
||||
&mut descriptions,
|
||||
&mut installer_details,
|
||||
));
|
||||
if ret {
|
||||
Some((
|
||||
from_glib_full(descriptions),
|
||||
from_glib_full(installer_details),
|
||||
))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(alias = "gst_play_message_parse_media_info_updated")]
|
||||
pub fn parse_media_info_updated(msg: &gst::Message) -> PlayMediaInfo {
|
||||
assert_initialized_main_thread!();
|
||||
|
@ -489,6 +533,32 @@ impl PlayMessage {
|
|||
(from_glib_full(error), from_glib_full(details))
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
#[doc(alias = "gst_play_message_parse_warning_missing_plugin")]
|
||||
pub fn parse_warning_missing_plugin(
|
||||
msg: &gst::Message,
|
||||
) -> Option<(glib::GString, Option<glib::GString>)> {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe {
|
||||
let mut descriptions = std::ptr::null_mut();
|
||||
let mut installer_details = std::ptr::null_mut();
|
||||
let ret = from_glib(ffi::gst_play_message_parse_warning_missing_plugin(
|
||||
msg.to_glib_none().0,
|
||||
&mut descriptions,
|
||||
&mut installer_details,
|
||||
));
|
||||
if ret {
|
||||
Some((
|
||||
from_glib_full(descriptions),
|
||||
from_glib_full(installer_details),
|
||||
))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Display for PlayMessage {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::{ffi, Play, PlayMediaInfo, PlayState};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -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::*};
|
||||
|
@ -48,6 +49,8 @@ pub trait PlayStreamInfoExt: IsA<PlayStreamInfo> + sealed::Sealed + '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 {
|
||||
|
@ -56,6 +59,18 @@ pub trait PlayStreamInfoExt: IsA<PlayStreamInfo> + sealed::Sealed + '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 {
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -323,6 +323,12 @@ extern "C" {
|
|||
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_get_stream_id(msg: *mut gst::GstMessage) -> *const c_char;
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
pub fn gst_play_message_get_uri(msg: *mut gst::GstMessage) -> *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,
|
||||
|
@ -343,6 +349,13 @@ extern "C" {
|
|||
error: *mut *mut glib::GError,
|
||||
details: *mut *mut gst::GstStructure,
|
||||
);
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
pub fn gst_play_message_parse_error_missing_plugin(
|
||||
msg: *mut gst::GstMessage,
|
||||
descriptions: *mut *mut *mut c_char,
|
||||
installer_details: *mut *mut *mut c_char,
|
||||
) -> gboolean;
|
||||
pub fn gst_play_message_parse_media_info_updated(
|
||||
msg: *mut gst::GstMessage,
|
||||
info: *mut *mut GstPlayMediaInfo,
|
||||
|
@ -377,6 +390,13 @@ extern "C" {
|
|||
error: *mut *mut glib::GError,
|
||||
details: *mut *mut gst::GstStructure,
|
||||
);
|
||||
#[cfg(feature = "v1_26")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||
pub fn gst_play_message_parse_warning_missing_plugin(
|
||||
msg: *mut gst::GstMessage,
|
||||
descriptions: *mut *mut *mut c_char,
|
||||
installer_details: *mut *mut *mut c_char,
|
||||
) -> gboolean;
|
||||
|
||||
//=========================================================================
|
||||
// GstPlayState
|
||||
|
@ -461,6 +481,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 +503,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 +589,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;
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ use crate::{
|
|||
PlayerState, PlayerSubtitleInfo, PlayerVideoInfo, PlayerVideoRenderer, PlayerVisualization,
|
||||
};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -7,6 +7,9 @@ use crate::ffi;
|
|||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
use crate::RTPHeaderExtension;
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
use glib::object::ObjectType as _;
|
||||
use glib::{
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
|
|
|
@ -7,6 +7,9 @@ use crate::ffi;
|
|||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
use crate::RTPHeaderExtension;
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
use glib::object::ObjectType as _;
|
||||
use glib::{
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::{ffi, RTSPToken};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -11,6 +11,7 @@ use crate::{
|
|||
RTSPThreadPool,
|
||||
};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -8,6 +8,7 @@ use crate::{
|
|||
RTSPSuspendMode, RTSPThread, RTSPTransportMode,
|
||||
};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -7,6 +7,7 @@ use crate::{
|
|||
ffi, RTSPAddressPool, RTSPMedia, RTSPPublishClockMode, RTSPSuspendMode, RTSPTransportMode,
|
||||
};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -7,6 +7,7 @@ use crate::{
|
|||
ffi, RTSPAuth, RTSPClient, RTSPFilterResult, RTSPMountPoints, RTSPSessionPool, RTSPThreadPool,
|
||||
};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::{ffi, RTSPFilterResult, RTSPSession};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -7,6 +7,7 @@ use crate::{
|
|||
ffi, RTSPAddress, RTSPAddressPool, RTSPFilterResult, RTSPPublishClockMode, RTSPStreamTransport,
|
||||
};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -725,7 +725,14 @@ pub struct GstRTSPOnvifMediaFactoryClass {
|
|||
pub parent: GstRTSPMediaFactoryClass,
|
||||
pub has_backchannel_support:
|
||||
Option<unsafe extern "C" fn(*mut GstRTSPOnvifMediaFactory) -> gboolean>,
|
||||
pub _gst_reserved: [gpointer; 20],
|
||||
pub create_backchannel_stream: Option<
|
||||
unsafe extern "C" fn(
|
||||
*mut GstRTSPOnvifMediaFactory,
|
||||
*mut GstRTSPOnvifMedia,
|
||||
*mut GstRTSPContext,
|
||||
) -> gboolean,
|
||||
>,
|
||||
pub _gst_reserved: [gpointer; 19],
|
||||
}
|
||||
|
||||
impl ::std::fmt::Debug for GstRTSPOnvifMediaFactoryClass {
|
||||
|
@ -733,6 +740,7 @@ impl ::std::fmt::Debug for GstRTSPOnvifMediaFactoryClass {
|
|||
f.debug_struct(&format!("GstRTSPOnvifMediaFactoryClass @ {self:p}"))
|
||||
.field("parent", &self.parent)
|
||||
.field("has_backchannel_support", &self.has_backchannel_support)
|
||||
.field("create_backchannel_stream", &self.create_backchannel_stream)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::{ffi, Report, ReportingDetails};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::{ffi, Action, Reporter, Runner};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::{ffi, ColorBalanceChannel, ColorBalanceType};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::ffi;
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::{ffi, WebRTCDataChannelState, WebRTCPriorityType};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -7,6 +7,7 @@ use crate::{
|
|||
ffi, WebRTCICECandidateStats, WebRTCICEComponent, WebRTCICEStream, WebRTCICETransport,
|
||||
};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use crate::{ffi, WebRTCICEComponent, WebRTCICEConnectionState, WebRTCICEGatheringState};
|
||||
use glib::{
|
||||
object::ObjectType as _,
|
||||
prelude::*,
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 038f3b86ef06)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 26898eacb093)
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue