Regenerate with latest GStreamer gir files

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1743>
This commit is contained in:
Sebastian Dröge 2025-06-26 18:52:52 +03:00
parent 601f4b1811
commit 14a6ffec4e
68 changed files with 458 additions and 57 deletions

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -42,6 +42,38 @@ pub enum TensorDataType {
Float64,
#[doc(alias = "GST_TENSOR_DATA_TYPE_BFLOAT16")]
Bfloat16,
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "GST_TENSOR_DATA_TYPE_STRING")]
String,
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "GST_TENSOR_DATA_TYPE_BOOL")]
Bool,
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "GST_TENSOR_DATA_TYPE_COMPLEX64")]
Complex64,
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "GST_TENSOR_DATA_TYPE_COMPLEX128")]
Complex128,
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "GST_TENSOR_DATA_TYPE_FLOAT8E4M3FN")]
Float8e4m3fn,
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "GST_TENSOR_DATA_TYPE_FLOAT8E4M3FNUZ")]
Float8e4m3fnuz,
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "GST_TENSOR_DATA_TYPE_FLOAT8E5M2")]
Float8e5m2,
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "GST_TENSOR_DATA_TYPE_FLOAT8E5M2FNUZ")]
Float8e5m2fnuz,
#[doc(hidden)]
__Unknown(i32),
}
@ -68,6 +100,22 @@ impl IntoGlib for TensorDataType {
Self::Float32 => ffi::GST_TENSOR_DATA_TYPE_FLOAT32,
Self::Float64 => ffi::GST_TENSOR_DATA_TYPE_FLOAT64,
Self::Bfloat16 => ffi::GST_TENSOR_DATA_TYPE_BFLOAT16,
#[cfg(feature = "v1_28")]
Self::String => ffi::GST_TENSOR_DATA_TYPE_STRING,
#[cfg(feature = "v1_28")]
Self::Bool => ffi::GST_TENSOR_DATA_TYPE_BOOL,
#[cfg(feature = "v1_28")]
Self::Complex64 => ffi::GST_TENSOR_DATA_TYPE_COMPLEX64,
#[cfg(feature = "v1_28")]
Self::Complex128 => ffi::GST_TENSOR_DATA_TYPE_COMPLEX128,
#[cfg(feature = "v1_28")]
Self::Float8e4m3fn => ffi::GST_TENSOR_DATA_TYPE_FLOAT8E4M3FN,
#[cfg(feature = "v1_28")]
Self::Float8e4m3fnuz => ffi::GST_TENSOR_DATA_TYPE_FLOAT8E4M3FNUZ,
#[cfg(feature = "v1_28")]
Self::Float8e5m2 => ffi::GST_TENSOR_DATA_TYPE_FLOAT8E5M2,
#[cfg(feature = "v1_28")]
Self::Float8e5m2fnuz => ffi::GST_TENSOR_DATA_TYPE_FLOAT8E5M2FNUZ,
Self::__Unknown(value) => value,
}
}
@ -95,6 +143,22 @@ impl FromGlib<ffi::GstTensorDataType> for TensorDataType {
ffi::GST_TENSOR_DATA_TYPE_FLOAT32 => Self::Float32,
ffi::GST_TENSOR_DATA_TYPE_FLOAT64 => Self::Float64,
ffi::GST_TENSOR_DATA_TYPE_BFLOAT16 => Self::Bfloat16,
#[cfg(feature = "v1_28")]
ffi::GST_TENSOR_DATA_TYPE_STRING => Self::String,
#[cfg(feature = "v1_28")]
ffi::GST_TENSOR_DATA_TYPE_BOOL => Self::Bool,
#[cfg(feature = "v1_28")]
ffi::GST_TENSOR_DATA_TYPE_COMPLEX64 => Self::Complex64,
#[cfg(feature = "v1_28")]
ffi::GST_TENSOR_DATA_TYPE_COMPLEX128 => Self::Complex128,
#[cfg(feature = "v1_28")]
ffi::GST_TENSOR_DATA_TYPE_FLOAT8E4M3FN => Self::Float8e4m3fn,
#[cfg(feature = "v1_28")]
ffi::GST_TENSOR_DATA_TYPE_FLOAT8E4M3FNUZ => Self::Float8e4m3fnuz,
#[cfg(feature = "v1_28")]
ffi::GST_TENSOR_DATA_TYPE_FLOAT8E5M2 => Self::Float8e5m2,
#[cfg(feature = "v1_28")]
ffi::GST_TENSOR_DATA_TYPE_FLOAT8E5M2FNUZ => Self::Float8e5m2fnuz,
value => Self::__Unknown(value),
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -55,6 +55,30 @@ 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;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub const GST_TENSOR_DATA_TYPE_STRING: GstTensorDataType = 14;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub const GST_TENSOR_DATA_TYPE_BOOL: GstTensorDataType = 15;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub const GST_TENSOR_DATA_TYPE_COMPLEX64: GstTensorDataType = 16;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub const GST_TENSOR_DATA_TYPE_COMPLEX128: GstTensorDataType = 17;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub const GST_TENSOR_DATA_TYPE_FLOAT8E4M3FN: GstTensorDataType = 18;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub const GST_TENSOR_DATA_TYPE_FLOAT8E4M3FNUZ: GstTensorDataType = 19;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub const GST_TENSOR_DATA_TYPE_FLOAT8E5M2: GstTensorDataType = 20;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub const GST_TENSOR_DATA_TYPE_FLOAT8E5M2FNUZ: GstTensorDataType = 21;
pub type GstTensorDimOrder = c_int;
pub const GST_TENSOR_DIM_ORDER_ROW_MAJOR: GstTensorDimOrder = 0;
@ -488,6 +512,15 @@ extern "C" {
num_dims: size_t,
dims: *mut size_t,
) -> *mut GstTensor;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_tensor_check_type(
tensor: *const GstTensor,
order: GstTensorDimOrder,
num_dims: size_t,
data_type: GstTensorDataType,
data: *mut gst::GstBuffer,
) -> gboolean;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_tensor_copy(tensor: *const GstTensor) -> *mut GstTensor;
@ -497,6 +530,9 @@ extern "C" {
#[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 size_t;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_tensor_data_type_get_name(data_type: GstTensorDataType) -> *const c_char;
//=========================================================================
// GstTensorMeta
@ -513,6 +549,16 @@ extern "C" {
#[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_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_tensor_meta_get_typed_tensor(
tmeta: *mut GstTensorMeta,
tensor_id: glib::GQuark,
order: GstTensorDimOrder,
num_dims: size_t,
data_type: GstTensorDataType,
data: *mut gst::GstBuffer,
) -> *const GstTensor;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_tensor_meta_set(

View file

@ -321,14 +321,22 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_SEGMENTATION_TYPE_INSTANCE", "1"),
("(gint) GST_SEGMENTATION_TYPE_SEMANTIC", "0"),
("(gint) GST_TENSOR_DATA_TYPE_BFLOAT16", "13"),
("(gint) GST_TENSOR_DATA_TYPE_BOOL", "15"),
("(gint) GST_TENSOR_DATA_TYPE_COMPLEX128", "17"),
("(gint) GST_TENSOR_DATA_TYPE_COMPLEX64", "16"),
("(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_FLOAT8E4M3FN", "18"),
("(gint) GST_TENSOR_DATA_TYPE_FLOAT8E4M3FNUZ", "19"),
("(gint) GST_TENSOR_DATA_TYPE_FLOAT8E5M2", "20"),
("(gint) GST_TENSOR_DATA_TYPE_FLOAT8E5M2FNUZ", "21"),
("(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_STRING", "14"),
("(gint) GST_TENSOR_DATA_TYPE_UINT16", "7"),
("(gint) GST_TENSOR_DATA_TYPE_UINT32", "8"),
("(gint) GST_TENSOR_DATA_TYPE_UINT4", "5"),

View file

@ -40,14 +40,22 @@ int main() {
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_BOOL);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_COMPLEX128);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_COMPLEX64);
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_FLOAT8E4M3FN);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_FLOAT8E4M3FNUZ);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_FLOAT8E5M2);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_FLOAT8E5M2FNUZ);
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_STRING);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_UINT16);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_UINT32);
PRINT_CONSTANT((gint) GST_TENSOR_DATA_TYPE_UINT4);

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -139,6 +139,20 @@ pub trait BaseParseExt: IsA<BaseParse> + 'static {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "disable-clip")]
fn is_disable_clip(&self) -> bool {
ObjectExt::property(self.as_ref(), "disable-clip")
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "disable-clip")]
fn set_disable_clip(&self, disable_clip: bool) {
ObjectExt::set_property(self.as_ref(), "disable-clip", disable_clip)
}
#[doc(alias = "disable-passthrough")]
fn is_disable_passthrough(&self) -> bool {
ObjectExt::property(self.as_ref(), "disable-passthrough")
@ -149,6 +163,37 @@ pub trait BaseParseExt: IsA<BaseParse> + 'static {
ObjectExt::set_property(self.as_ref(), "disable-passthrough", disable_passthrough)
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "disable-clip")]
fn connect_disable_clip_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_disable_clip_trampoline<
P: IsA<BaseParse>,
F: Fn(&P) + Send + Sync + 'static,
>(
this: *mut ffi::GstBaseParse,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(BaseParse::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::disable-clip".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_disable_clip_trampoline::<Self, F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[doc(alias = "disable-passthrough")]
fn connect_disable_passthrough_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -63,6 +63,18 @@ pub trait GLWindowExt: IsA<GLWindow> + 'static {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "gst_gl_window_get_request_output_surface")]
#[doc(alias = "get_request_output_surface")]
fn is_request_output_surface(&self) -> bool {
unsafe {
from_glib(ffi::gst_gl_window_get_request_output_surface(
self.as_ref().to_glib_none().0,
))
}
}
#[doc(alias = "gst_gl_window_get_surface_dimensions")]
#[doc(alias = "get_surface_dimensions")]
fn surface_dimensions(&self) -> (u32, u32) {
@ -195,6 +207,18 @@ pub trait GLWindowExt: IsA<GLWindow> + 'static {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "gst_gl_window_set_request_output_surface")]
fn set_request_output_surface(&self, output_surface: bool) {
unsafe {
ffi::gst_gl_window_set_request_output_surface(
self.as_ref().to_glib_none().0,
output_surface.into_glib(),
);
}
}
#[doc(alias = "gst_gl_window_show")]
fn show(&self) {
unsafe {

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -2905,6 +2905,9 @@ extern "C" {
pub fn gst_gl_window_draw(window: *mut GstGLWindow);
pub fn gst_gl_window_get_context(window: *mut GstGLWindow) -> *mut GstGLContext;
pub fn gst_gl_window_get_display(window: *mut GstGLWindow) -> uintptr_t;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_gl_window_get_request_output_surface(window: *mut GstGLWindow) -> gboolean;
pub fn gst_gl_window_get_surface_dimensions(
window: *mut GstGLWindow,
width: *mut c_uint,
@ -2971,6 +2974,12 @@ extern "C" {
width: c_int,
height: c_int,
) -> gboolean;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_gl_window_set_request_output_surface(
window: *mut GstGLWindow,
output_surface: gboolean,
);
pub fn gst_gl_window_set_resize_callback(
window: *mut GstGLWindow,
callback: GstGLWindowResizeCB,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -170,12 +170,13 @@ impl DiscovererInfo {
}
#[doc(alias = "gst_discoverer_info_from_variant")]
pub fn from_variant(variant: &glib::Variant) -> DiscovererInfo {
pub fn from_variant(variant: &glib::Variant) -> Result<DiscovererInfo, glib::BoolError> {
assert_initialized_main_thread!();
unsafe {
from_glib_full(ffi::gst_discoverer_info_from_variant(
Option::<_>::from_glib_full(ffi::gst_discoverer_info_from_variant(
variant.to_glib_none().0,
))
.ok_or_else(|| glib::bool_error!("Failed to create DiscovererInfo from Variant"))
}
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -904,6 +904,12 @@ extern "C" {
) -> GstSDPResult;
pub fn gst_sdp_media_set_proto(media: *mut GstSDPMedia, proto: *const c_char) -> GstSDPResult;
pub fn gst_sdp_media_uninit(media: *mut GstSDPMedia) -> GstSDPResult;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_sdp_media_add_media_from_structure(
structure: *const gst::GstStructure,
media: *mut GstSDPMedia,
) -> GstSDPResult;
pub fn gst_sdp_media_init(media: *mut GstSDPMedia) -> GstSDPResult;
pub fn gst_sdp_media_new(media: *mut *mut GstSDPMedia) -> GstSDPResult;
pub fn gst_sdp_media_set_media_from_caps(

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1a0238acf5de)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 1faffc53d7fd)

View file

@ -732,6 +732,18 @@ pub const GST_LOCK_FLAG_WRITE: GstLockFlags = 2;
pub const GST_LOCK_FLAG_EXCLUSIVE: GstLockFlags = 4;
pub const GST_LOCK_FLAG_LAST: GstLockFlags = 256;
pub type GstLogContextFlags = c_uint;
pub const GST_LOG_CONTEXT_FLAG_NONE: GstLogContextFlags = 0;
pub const GST_LOG_CONTEXT_FLAG_THROTTLE: GstLogContextFlags = 1;
pub type GstLogContextHashFlags = c_uint;
pub const GST_LOG_CONTEXT_DEFAULT: GstLogContextHashFlags = 0;
pub const GST_LOG_CONTEXT_IGNORE_OBJECT: GstLogContextHashFlags = 1;
pub const GST_LOG_CONTEXT_IGNORE_FORMAT: GstLogContextHashFlags = 2;
pub const GST_LOG_CONTEXT_IGNORE_FILE: GstLogContextHashFlags = 4;
pub const GST_LOG_CONTEXT_USE_LINE_NUMBER: GstLogContextHashFlags = 8;
pub const GST_LOG_CONTEXT_USE_STRING_ARGS: GstLogContextHashFlags = 16;
pub type GstMapFlags = c_uint;
pub const GST_MAP_READ: GstMapFlags = 1;
pub const GST_MAP_WRITE: GstMapFlags = 2;
@ -2035,6 +2047,24 @@ impl ::std::fmt::Debug for GstIterator {
}
}
#[repr(C)]
#[allow(dead_code)]
pub struct _GstLogContext {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GstLogContext = _GstLogContext;
#[repr(C)]
#[allow(dead_code)]
pub struct _GstLogContextBuilder {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GstLogContextBuilder = _GstLogContextBuilder;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstMapInfo {
@ -2633,6 +2663,7 @@ pub struct GstReferenceTimestampMeta {
pub reference: *mut GstCaps,
pub timestamp: GstClockTime,
pub duration: GstClockTime,
pub info: *mut GstStructure,
}
impl ::std::fmt::Debug for GstReferenceTimestampMeta {
@ -2642,6 +2673,7 @@ impl ::std::fmt::Debug for GstReferenceTimestampMeta {
.field("reference", &self.reference)
.field("timestamp", &self.timestamp)
.field("duration", &self.duration)
.field("info", &self.info)
.finish()
}
}
@ -4386,6 +4418,20 @@ extern "C" {
//=========================================================================
pub fn gst_lock_flags_get_type() -> GType;
//=========================================================================
// GstLogContextFlags
//=========================================================================
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_log_context_flags_get_type() -> GType;
//=========================================================================
// GstLogContextHashFlags
//=========================================================================
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_log_context_hash_flags_get_type() -> GType;
//=========================================================================
// GstMapFlags
//=========================================================================
@ -5550,6 +5596,50 @@ extern "C" {
pub fn gst_iterator_push(it: *mut GstIterator, other: *mut GstIterator);
pub fn gst_iterator_resync(it: *mut GstIterator);
//=========================================================================
// GstLogContext
//=========================================================================
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_log_context_free(ctx: *mut GstLogContext);
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_log_context_get_category(context: *mut GstLogContext) -> *mut GstDebugCategory;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_log_context_reset(ctx: *mut GstLogContext);
//=========================================================================
// GstLogContextBuilder
//=========================================================================
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_log_context_builder_build(builder: *mut GstLogContextBuilder) -> *mut GstLogContext;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_log_context_builder_set_category(
builder: *mut GstLogContextBuilder,
category: *mut GstDebugCategory,
) -> *mut GstLogContextBuilder;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_log_context_builder_set_hash_flags(
builder: *mut GstLogContextBuilder,
flags: GstLogContextHashFlags,
) -> *mut GstLogContextBuilder;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_log_context_builder_set_interval(
builder: *mut GstLogContextBuilder,
interval: GstClockTime,
) -> *mut GstLogContextBuilder;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_log_context_builder_new(
category: *mut GstDebugCategory,
flags: GstLogContextFlags,
) -> *mut GstLogContextBuilder;
//=========================================================================
// GstMemory
//=========================================================================
@ -6084,6 +6174,12 @@ extern "C" {
api: GType,
aggregator: GstAllocationMetaParamsAggregator,
);
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_meta_api_type_tags_contain_only(
api: GType,
valid_tags: *mut *const c_char,
) -> gboolean;
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
pub fn gst_meta_deserialize(
@ -6832,6 +6928,13 @@ extern "C" {
fieldname: *const c_char,
value: *mut gboolean,
) -> gboolean;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_structure_get_caps(
structure: *const GstStructure,
fieldname: *const c_char,
caps: *mut *const GstCaps,
) -> gboolean;
pub fn gst_structure_get_clock_time(
structure: *const GstStructure,
fieldname: *const c_char,
@ -7051,6 +7154,9 @@ extern "C" {
subset: *const GstStructure,
superset: *const GstStructure,
) -> gboolean;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_structure_is_writable(structure: *const GstStructure) -> gboolean;
pub fn gst_structure_map_in_place(
structure: *mut GstStructure,
func: GstStructureMapFunc,
@ -9603,9 +9709,35 @@ extern "C" {
id: *const c_char,
message_string: *const c_char,
);
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_debug_log_id_literal_with_context(
ctx: *mut GstLogContext,
level: GstDebugLevel,
file: *const c_char,
function: *const c_char,
line: c_int,
id: *const c_char,
message: *const c_char,
);
//#[cfg(feature = "v1_22")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
//pub fn gst_debug_log_id_valist(category: *mut GstDebugCategory, level: GstDebugLevel, file: *const c_char, function: *const c_char, line: c_int, id: *const c_char, format: *const c_char, args: /*Unimplemented*/va_list);
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_debug_log_id_with_context(
ctx: *mut GstLogContext,
level: GstDebugLevel,
file: *const c_char,
function: *const c_char,
line: c_int,
id: *const c_char,
format: *const c_char,
...
);
//#[cfg(feature = "v1_28")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
//pub fn gst_debug_log_id_with_context_valist(ctx: *mut GstLogContext, level: GstDebugLevel, file: *const c_char, function: *const c_char, line: c_int, id: *const c_char, format: *const c_char, args: /*Unimplemented*/va_list);
#[cfg(feature = "v1_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
pub fn gst_debug_log_literal(
@ -9617,7 +9749,33 @@ extern "C" {
object: *mut gobject::GObject,
message_string: *const c_char,
);
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_debug_log_literal_with_context(
ctx: *mut GstLogContext,
level: GstDebugLevel,
file: *const c_char,
function: *const c_char,
line: c_int,
object: *mut gobject::GObject,
message: *const c_char,
);
//pub fn gst_debug_log_valist(category: *mut GstDebugCategory, level: GstDebugLevel, file: *const c_char, function: *const c_char, line: c_int, object: *mut gobject::GObject, format: *const c_char, args: /*Unimplemented*/va_list);
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_debug_log_with_context(
ctx: *mut GstLogContext,
level: GstDebugLevel,
file: *const c_char,
function: *const c_char,
line: c_int,
object: *mut gobject::GObject,
format: *const c_char,
...
);
//#[cfg(feature = "v1_28")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
//pub fn gst_debug_log_with_context_valist(ctx: *mut GstLogContext, level: GstDebugLevel, file: *const c_char, function: *const c_char, line: c_int, object: *mut gobject::GObject, format: *const c_char, args: /*Unimplemented*/va_list);
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_debug_print_object(ptr: gconstpointer) -> *mut c_char;

View file

@ -699,6 +699,20 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstLockFlags>(),
},
),
(
"GstLogContextFlags",
Layout {
size: size_of::<GstLogContextFlags>(),
alignment: align_of::<GstLogContextFlags>(),
},
),
(
"GstLogContextHashFlags",
Layout {
size: size_of::<GstLogContextHashFlags>(),
alignment: align_of::<GstLogContextHashFlags>(),
},
),
(
"GstMapFlags",
Layout {
@ -1767,6 +1781,14 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_LOCK_FLAG_READ", "1"),
("GST_LOCK_FLAG_READWRITE", "3"),
("(guint) GST_LOCK_FLAG_WRITE", "2"),
("(guint) GST_LOG_CONTEXT_DEFAULT", "0"),
("(guint) GST_LOG_CONTEXT_FLAG_NONE", "0"),
("(guint) GST_LOG_CONTEXT_FLAG_THROTTLE", "1"),
("(guint) GST_LOG_CONTEXT_IGNORE_FILE", "4"),
("(guint) GST_LOG_CONTEXT_IGNORE_FORMAT", "2"),
("(guint) GST_LOG_CONTEXT_IGNORE_OBJECT", "1"),
("(guint) GST_LOG_CONTEXT_USE_LINE_NUMBER", "8"),
("(guint) GST_LOG_CONTEXT_USE_STRING_ARGS", "16"),
("(guint) GST_MAP_FLAG_LAST", "65536"),
("(guint) GST_MAP_READ", "1"),
("GST_MAP_READWRITE", "3"),

View file

@ -298,6 +298,14 @@ int main() {
PRINT_CONSTANT((guint) GST_LOCK_FLAG_READ);
PRINT_CONSTANT(GST_LOCK_FLAG_READWRITE);
PRINT_CONSTANT((guint) GST_LOCK_FLAG_WRITE);
PRINT_CONSTANT((guint) GST_LOG_CONTEXT_DEFAULT);
PRINT_CONSTANT((guint) GST_LOG_CONTEXT_FLAG_NONE);
PRINT_CONSTANT((guint) GST_LOG_CONTEXT_FLAG_THROTTLE);
PRINT_CONSTANT((guint) GST_LOG_CONTEXT_IGNORE_FILE);
PRINT_CONSTANT((guint) GST_LOG_CONTEXT_IGNORE_FORMAT);
PRINT_CONSTANT((guint) GST_LOG_CONTEXT_IGNORE_OBJECT);
PRINT_CONSTANT((guint) GST_LOG_CONTEXT_USE_LINE_NUMBER);
PRINT_CONSTANT((guint) GST_LOG_CONTEXT_USE_STRING_ARGS);
PRINT_CONSTANT((guint) GST_MAP_FLAG_LAST);
PRINT_CONSTANT((guint) GST_MAP_READ);
PRINT_CONSTANT(GST_MAP_READWRITE);

View file

@ -79,6 +79,8 @@ int main() {
printf("%s;%zu;%zu\n", "GstIteratorResult", sizeof(GstIteratorResult), alignof(GstIteratorResult));
printf("%s;%zu;%zu\n", "GstLibraryError", sizeof(GstLibraryError), alignof(GstLibraryError));
printf("%s;%zu;%zu\n", "GstLockFlags", sizeof(GstLockFlags), alignof(GstLockFlags));
printf("%s;%zu;%zu\n", "GstLogContextFlags", sizeof(GstLogContextFlags), alignof(GstLogContextFlags));
printf("%s;%zu;%zu\n", "GstLogContextHashFlags", sizeof(GstLogContextHashFlags), alignof(GstLogContextHashFlags));
printf("%s;%zu;%zu\n", "GstMapFlags", sizeof(GstMapFlags), alignof(GstMapFlags));
printf("%s;%zu;%zu\n", "GstMapInfo", sizeof(GstMapInfo), alignof(GstMapInfo));
printf("%s;%zu;%zu\n", "GstMemory", sizeof(GstMemory), alignof(GstMemory));