mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-09-01 01:13:48 +00:00
vulkan: regenerate layout tests with new gir
This commit is contained in:
parent
2eb7784162
commit
a681a308ab
4 changed files with 0 additions and 185 deletions
|
@ -78,11 +78,6 @@ pub const GST_VULKAN_HANDLE_TYPE_VIDEO_SESSION_PARAMETERS: GstVulkanHandleType =
|
|||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
pub const GST_VULKAN_HANDLE_TYPE_SAMPLER_YCBCR_CONVERSION: GstVulkanHandleType = 10;
|
||||
|
||||
pub type GstVulkanVideoOperation = c_int;
|
||||
pub const GST_VULKAN_VIDEO_OPERATION_DECODE: GstVulkanVideoOperation = 0;
|
||||
pub const GST_VULKAN_VIDEO_OPERATION_ENCODE: GstVulkanVideoOperation = 1;
|
||||
pub const GST_VULKAN_VIDEO_OPERATION_UNKNOWN: GstVulkanVideoOperation = 2;
|
||||
|
||||
pub type GstVulkanWindowError = c_int;
|
||||
pub const GST_VULKAN_WINDOW_ERROR_FAILED: GstVulkanWindowError = 0;
|
||||
pub const GST_VULKAN_WINDOW_ERROR_OLD_LIBS: GstVulkanWindowError = 1;
|
||||
|
@ -119,81 +114,6 @@ pub const GST_VULKAN_FORMAT_FLAG_ALPHA: GstVulkanFormatFlags = 4;
|
|||
pub const GST_VULKAN_FORMAT_FLAG_LE: GstVulkanFormatFlags = 8;
|
||||
pub const GST_VULKAN_FORMAT_FLAG_COMPLEX: GstVulkanFormatFlags = 16;
|
||||
|
||||
// Unions
|
||||
#[repr(C)]
|
||||
#[allow(dead_code)]
|
||||
pub struct GstVulkanVideoCapabilities_decoder_codec {
|
||||
_data: [u8; 0],
|
||||
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
|
||||
}
|
||||
|
||||
impl ::std::fmt::Debug for GstVulkanVideoCapabilities_decoder_codec {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!(
|
||||
"GstVulkanVideoCapabilities_decoder_codec @ {self:p}"
|
||||
))
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[allow(dead_code)]
|
||||
pub struct GstVulkanVideoCapabilities_encoder_codec {
|
||||
_data: [u8; 0],
|
||||
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
|
||||
}
|
||||
|
||||
impl ::std::fmt::Debug for GstVulkanVideoCapabilities_encoder_codec {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!(
|
||||
"GstVulkanVideoCapabilities_encoder_codec @ {self:p}"
|
||||
))
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[allow(dead_code)]
|
||||
pub struct GstVulkanVideoCapabilities_u1 {
|
||||
_data: [u8; 0],
|
||||
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
|
||||
}
|
||||
|
||||
impl ::std::fmt::Debug for GstVulkanVideoCapabilities_u1 {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("GstVulkanVideoCapabilities_u1 @ {self:p}"))
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[allow(dead_code)]
|
||||
pub struct GstVulkanVideoProfile_codec {
|
||||
_data: [u8; 0],
|
||||
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
|
||||
}
|
||||
|
||||
impl ::std::fmt::Debug for GstVulkanVideoProfile_codec {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("GstVulkanVideoProfile_codec @ {self:p}"))
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[allow(dead_code)]
|
||||
pub struct GstVulkanVideoProfile_usage {
|
||||
_data: [u8; 0],
|
||||
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
|
||||
}
|
||||
|
||||
impl ::std::fmt::Debug for GstVulkanVideoProfile_usage {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("GstVulkanVideoProfile_usage @ {self:p}"))
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
// Callbacks
|
||||
pub type GstVulkanDeviceForEachQueueFunc =
|
||||
Option<unsafe extern "C" fn(*mut GstVulkanDevice, *mut GstVulkanQueue, gpointer) -> gboolean>;
|
||||
|
@ -935,48 +855,6 @@ impl ::std::fmt::Debug for GstVulkanTrashListClass {
|
|||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[allow(dead_code)]
|
||||
pub struct GstVulkanVideoCapabilities {
|
||||
_truncated_record_marker: c_void,
|
||||
// /*Ignored*/field caps has incomplete type
|
||||
}
|
||||
|
||||
impl ::std::fmt::Debug for GstVulkanVideoCapabilities {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("GstVulkanVideoCapabilities @ {self:p}"))
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[allow(dead_code)]
|
||||
pub struct GstVulkanVideoCapabilities__decoder {
|
||||
_truncated_record_marker: c_void,
|
||||
// /*Ignored*/field caps has incomplete type
|
||||
}
|
||||
|
||||
impl ::std::fmt::Debug for GstVulkanVideoCapabilities__decoder {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("GstVulkanVideoCapabilities__decoder @ {self:p}"))
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[allow(dead_code)]
|
||||
pub struct GstVulkanVideoCapabilities__encoder {
|
||||
_truncated_record_marker: c_void,
|
||||
// /*Ignored*/field caps has incomplete type
|
||||
}
|
||||
|
||||
impl ::std::fmt::Debug for GstVulkanVideoCapabilities__encoder {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("GstVulkanVideoCapabilities__encoder @ {self:p}"))
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
#[repr(C)]
|
||||
pub struct GstVulkanVideoFilterClass {
|
||||
|
@ -992,20 +870,6 @@ impl ::std::fmt::Debug for GstVulkanVideoFilterClass {
|
|||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[allow(dead_code)]
|
||||
pub struct GstVulkanVideoProfile {
|
||||
_truncated_record_marker: c_void,
|
||||
// /*Ignored*/field profile has incomplete type
|
||||
}
|
||||
|
||||
impl ::std::fmt::Debug for GstVulkanVideoProfile {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("GstVulkanVideoProfile @ {self:p}"))
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
#[repr(C)]
|
||||
pub struct GstVulkanWindowClass {
|
||||
|
@ -1502,13 +1366,6 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn gst_vulkan_handle_type_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
// GstVulkanVideoOperation
|
||||
//=========================================================================
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
pub fn gst_vulkan_video_operation_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
// GstVulkanWindowError
|
||||
//=========================================================================
|
||||
|
@ -1741,34 +1598,6 @@ extern "C" {
|
|||
pub fn gst_vulkan_trash_mini_object_unref(device: *mut GstVulkanDevice, user_data: gpointer);
|
||||
pub fn gst_vulkan_trash_object_unref(device: *mut GstVulkanDevice, user_data: gpointer);
|
||||
|
||||
//=========================================================================
|
||||
// GstVulkanVideoProfile
|
||||
//=========================================================================
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
pub fn gst_vulkan_video_profile_is_equal(
|
||||
a: *const GstVulkanVideoProfile,
|
||||
b: *const GstVulkanVideoProfile,
|
||||
) -> gboolean;
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
pub fn gst_vulkan_video_profile_is_valid(
|
||||
profile: *mut GstVulkanVideoProfile,
|
||||
codec: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
pub fn gst_vulkan_video_profile_to_caps(
|
||||
profile: *const GstVulkanVideoProfile,
|
||||
) -> *mut gst::GstCaps;
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
pub fn gst_vulkan_video_profile_from_caps(
|
||||
profile: *mut GstVulkanVideoProfile,
|
||||
caps: *mut gst::GstCaps,
|
||||
video_operation: GstVulkanVideoOperation,
|
||||
) -> gboolean;
|
||||
|
||||
//=========================================================================
|
||||
// GstVulkanBufferMemoryAllocator
|
||||
//=========================================================================
|
||||
|
|
|
@ -531,13 +531,6 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
|
|||
alignment: align_of::<GstVulkanVideoFilterClass>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"GstVulkanVideoOperation",
|
||||
Layout {
|
||||
size: size_of::<GstVulkanVideoOperation>(),
|
||||
alignment: align_of::<GstVulkanVideoOperation>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"GstVulkanWindow",
|
||||
Layout {
|
||||
|
@ -624,9 +617,6 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
|
|||
"GST_VULKAN_SWAPPER_VIDEO_FORMATS",
|
||||
" { RGBA, BGRA, RGB, BGR } ",
|
||||
),
|
||||
("(gint) GST_VULKAN_VIDEO_OPERATION_DECODE", "0"),
|
||||
("(gint) GST_VULKAN_VIDEO_OPERATION_ENCODE", "1"),
|
||||
("(gint) GST_VULKAN_VIDEO_OPERATION_UNKNOWN", "2"),
|
||||
("(gint) GST_VULKAN_WINDOW_ERROR_FAILED", "0"),
|
||||
("(gint) GST_VULKAN_WINDOW_ERROR_OLD_LIBS", "1"),
|
||||
("(gint) GST_VULKAN_WINDOW_ERROR_RESOURCE_UNAVAILABLE", "2"),
|
||||
|
|
|
@ -76,9 +76,6 @@ int main() {
|
|||
PRINT_CONSTANT(GST_VULKAN_MEMORY_ALLOCATOR_NAME);
|
||||
PRINT_CONSTANT(GST_VULKAN_QUEUE_CONTEXT_TYPE_STR);
|
||||
PRINT_CONSTANT(GST_VULKAN_SWAPPER_VIDEO_FORMATS);
|
||||
PRINT_CONSTANT((gint) GST_VULKAN_VIDEO_OPERATION_DECODE);
|
||||
PRINT_CONSTANT((gint) GST_VULKAN_VIDEO_OPERATION_ENCODE);
|
||||
PRINT_CONSTANT((gint) GST_VULKAN_VIDEO_OPERATION_UNKNOWN);
|
||||
PRINT_CONSTANT((gint) GST_VULKAN_WINDOW_ERROR_FAILED);
|
||||
PRINT_CONSTANT((gint) GST_VULKAN_WINDOW_ERROR_OLD_LIBS);
|
||||
PRINT_CONSTANT((gint) GST_VULKAN_WINDOW_ERROR_RESOURCE_UNAVAILABLE);
|
||||
|
|
|
@ -55,7 +55,6 @@ int main() {
|
|||
printf("%s;%zu;%zu\n", "GstVulkanTrashListClass", sizeof(GstVulkanTrashListClass), alignof(GstVulkanTrashListClass));
|
||||
printf("%s;%zu;%zu\n", "GstVulkanVideoFilter", sizeof(GstVulkanVideoFilter), alignof(GstVulkanVideoFilter));
|
||||
printf("%s;%zu;%zu\n", "GstVulkanVideoFilterClass", sizeof(GstVulkanVideoFilterClass), alignof(GstVulkanVideoFilterClass));
|
||||
printf("%s;%zu;%zu\n", "GstVulkanVideoOperation", sizeof(GstVulkanVideoOperation), alignof(GstVulkanVideoOperation));
|
||||
printf("%s;%zu;%zu\n", "GstVulkanWindow", sizeof(GstVulkanWindow), alignof(GstVulkanWindow));
|
||||
printf("%s;%zu;%zu\n", "GstVulkanWindowClass", sizeof(GstVulkanWindowClass), alignof(GstVulkanWindowClass));
|
||||
printf("%s;%zu;%zu\n", "GstVulkanWindowError", sizeof(GstVulkanWindowError), alignof(GstVulkanWindowError));
|
||||
|
|
Loading…
Reference in a new issue