forked from mirrors/gstreamer-rs
video: properly version VideoFormat members
The C API is not safe when called on unknown formats. Need to do this manually until gir gives us the version info: https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/348 Fix #267
This commit is contained in:
parent
2afcdfe79f
commit
2f1b3306de
3 changed files with 302 additions and 0 deletions
|
@ -248,6 +248,150 @@ status = "generate"
|
||||||
[[object.derive]]
|
[[object.derive]]
|
||||||
name = "Debug, Eq, PartialEq, Hash"
|
name = "Debug, Eq, PartialEq, Hash"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "p010_10be"
|
||||||
|
version = "1.10"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "p010_10le"
|
||||||
|
version = "1.10"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "iyu2"
|
||||||
|
version = "1.10"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "vyuy"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "gbra"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "gbra_10be"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "gbra_10le"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "gbr_12be"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "gbr_12le"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "gbra_12be"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "gbra_12le"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "i420_12be"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "i420_12le"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "i422_12be"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "i422_12le"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "y444_12be"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "y444_12le"
|
||||||
|
version = "1.12"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "gray10_le32"
|
||||||
|
version = "1.14"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "nv12_10le32"
|
||||||
|
version = "1.14"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "nv16_10le32"
|
||||||
|
version = "1.14"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "nv12_10le40"
|
||||||
|
version = "1.16"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "y210"
|
||||||
|
version = "1.16"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "y410"
|
||||||
|
version = "1.16"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "vuya"
|
||||||
|
version = "1.16"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "bgr10a2_le"
|
||||||
|
version = "1.16"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "rgb10a2_le"
|
||||||
|
version = "1.18"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "y444_16be"
|
||||||
|
version = "1.18"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "y444_16le"
|
||||||
|
version = "1.18"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "p016_be"
|
||||||
|
version = "1.18"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "p016_le"
|
||||||
|
version = "1.18"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "p012_be"
|
||||||
|
version = "1.18"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "p012_le"
|
||||||
|
version = "1.18"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "y212_be"
|
||||||
|
version = "1.18"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "y212_le"
|
||||||
|
version = "1.18"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "y412_be"
|
||||||
|
version = "1.18"
|
||||||
|
|
||||||
|
[[object.member]]
|
||||||
|
name = "y412_le"
|
||||||
|
version = "1.18"
|
||||||
|
|
||||||
[[object]]
|
[[object]]
|
||||||
name = "GstVideo.VideoSink"
|
name = "GstVideo.VideoSink"
|
||||||
status = "generate"
|
status = "generate"
|
||||||
|
|
|
@ -742,41 +742,77 @@ pub enum VideoFormat {
|
||||||
A44410be,
|
A44410be,
|
||||||
A44410le,
|
A44410le,
|
||||||
Nv61,
|
Nv61,
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
P01010be,
|
P01010be,
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
P01010le,
|
P01010le,
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
Iyu2,
|
Iyu2,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
Vyuy,
|
Vyuy,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
Gbra,
|
Gbra,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
Gbra10be,
|
Gbra10be,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
Gbra10le,
|
Gbra10le,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
Gbr12be,
|
Gbr12be,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
Gbr12le,
|
Gbr12le,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
Gbra12be,
|
Gbra12be,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
Gbra12le,
|
Gbra12le,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
I42012be,
|
I42012be,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
I42012le,
|
I42012le,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
I42212be,
|
I42212be,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
I42212le,
|
I42212le,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
Y44412be,
|
Y44412be,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
Y44412le,
|
Y44412le,
|
||||||
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
Gray10Le32,
|
Gray10Le32,
|
||||||
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
Nv1210le32,
|
Nv1210le32,
|
||||||
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
Nv1610le32,
|
Nv1610le32,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
Nv1210le40,
|
Nv1210le40,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
Y210,
|
Y210,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
Y410,
|
Y410,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
Vuya,
|
Vuya,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
Bgr10a2Le,
|
Bgr10a2Le,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
Rgb10a2Le,
|
Rgb10a2Le,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
Y44416be,
|
Y44416be,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
Y44416le,
|
Y44416le,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
P016Be,
|
P016Be,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
P016Le,
|
P016Le,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
P012Be,
|
P012Be,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
P012Le,
|
P012Le,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
Y212Be,
|
Y212Be,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
Y212Le,
|
Y212Le,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
Y412Be,
|
Y412Be,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
Y412Le,
|
Y412Le,
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
__Unknown(i32),
|
__Unknown(i32),
|
||||||
|
@ -849,41 +885,77 @@ impl ToGlib for VideoFormat {
|
||||||
VideoFormat::A44410be => gst_video_sys::GST_VIDEO_FORMAT_A444_10BE,
|
VideoFormat::A44410be => gst_video_sys::GST_VIDEO_FORMAT_A444_10BE,
|
||||||
VideoFormat::A44410le => gst_video_sys::GST_VIDEO_FORMAT_A444_10LE,
|
VideoFormat::A44410le => gst_video_sys::GST_VIDEO_FORMAT_A444_10LE,
|
||||||
VideoFormat::Nv61 => gst_video_sys::GST_VIDEO_FORMAT_NV61,
|
VideoFormat::Nv61 => gst_video_sys::GST_VIDEO_FORMAT_NV61,
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
VideoFormat::P01010be => gst_video_sys::GST_VIDEO_FORMAT_P010_10BE,
|
VideoFormat::P01010be => gst_video_sys::GST_VIDEO_FORMAT_P010_10BE,
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
VideoFormat::P01010le => gst_video_sys::GST_VIDEO_FORMAT_P010_10LE,
|
VideoFormat::P01010le => gst_video_sys::GST_VIDEO_FORMAT_P010_10LE,
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
VideoFormat::Iyu2 => gst_video_sys::GST_VIDEO_FORMAT_IYU2,
|
VideoFormat::Iyu2 => gst_video_sys::GST_VIDEO_FORMAT_IYU2,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::Vyuy => gst_video_sys::GST_VIDEO_FORMAT_VYUY,
|
VideoFormat::Vyuy => gst_video_sys::GST_VIDEO_FORMAT_VYUY,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::Gbra => gst_video_sys::GST_VIDEO_FORMAT_GBRA,
|
VideoFormat::Gbra => gst_video_sys::GST_VIDEO_FORMAT_GBRA,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::Gbra10be => gst_video_sys::GST_VIDEO_FORMAT_GBRA_10BE,
|
VideoFormat::Gbra10be => gst_video_sys::GST_VIDEO_FORMAT_GBRA_10BE,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::Gbra10le => gst_video_sys::GST_VIDEO_FORMAT_GBRA_10LE,
|
VideoFormat::Gbra10le => gst_video_sys::GST_VIDEO_FORMAT_GBRA_10LE,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::Gbr12be => gst_video_sys::GST_VIDEO_FORMAT_GBR_12BE,
|
VideoFormat::Gbr12be => gst_video_sys::GST_VIDEO_FORMAT_GBR_12BE,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::Gbr12le => gst_video_sys::GST_VIDEO_FORMAT_GBR_12LE,
|
VideoFormat::Gbr12le => gst_video_sys::GST_VIDEO_FORMAT_GBR_12LE,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::Gbra12be => gst_video_sys::GST_VIDEO_FORMAT_GBRA_12BE,
|
VideoFormat::Gbra12be => gst_video_sys::GST_VIDEO_FORMAT_GBRA_12BE,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::Gbra12le => gst_video_sys::GST_VIDEO_FORMAT_GBRA_12LE,
|
VideoFormat::Gbra12le => gst_video_sys::GST_VIDEO_FORMAT_GBRA_12LE,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::I42012be => gst_video_sys::GST_VIDEO_FORMAT_I420_12BE,
|
VideoFormat::I42012be => gst_video_sys::GST_VIDEO_FORMAT_I420_12BE,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::I42012le => gst_video_sys::GST_VIDEO_FORMAT_I420_12LE,
|
VideoFormat::I42012le => gst_video_sys::GST_VIDEO_FORMAT_I420_12LE,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::I42212be => gst_video_sys::GST_VIDEO_FORMAT_I422_12BE,
|
VideoFormat::I42212be => gst_video_sys::GST_VIDEO_FORMAT_I422_12BE,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::I42212le => gst_video_sys::GST_VIDEO_FORMAT_I422_12LE,
|
VideoFormat::I42212le => gst_video_sys::GST_VIDEO_FORMAT_I422_12LE,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::Y44412be => gst_video_sys::GST_VIDEO_FORMAT_Y444_12BE,
|
VideoFormat::Y44412be => gst_video_sys::GST_VIDEO_FORMAT_Y444_12BE,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
VideoFormat::Y44412le => gst_video_sys::GST_VIDEO_FORMAT_Y444_12LE,
|
VideoFormat::Y44412le => gst_video_sys::GST_VIDEO_FORMAT_Y444_12LE,
|
||||||
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
VideoFormat::Gray10Le32 => gst_video_sys::GST_VIDEO_FORMAT_GRAY10_LE32,
|
VideoFormat::Gray10Le32 => gst_video_sys::GST_VIDEO_FORMAT_GRAY10_LE32,
|
||||||
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
VideoFormat::Nv1210le32 => gst_video_sys::GST_VIDEO_FORMAT_NV12_10LE32,
|
VideoFormat::Nv1210le32 => gst_video_sys::GST_VIDEO_FORMAT_NV12_10LE32,
|
||||||
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
VideoFormat::Nv1610le32 => gst_video_sys::GST_VIDEO_FORMAT_NV16_10LE32,
|
VideoFormat::Nv1610le32 => gst_video_sys::GST_VIDEO_FORMAT_NV16_10LE32,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
VideoFormat::Nv1210le40 => gst_video_sys::GST_VIDEO_FORMAT_NV12_10LE40,
|
VideoFormat::Nv1210le40 => gst_video_sys::GST_VIDEO_FORMAT_NV12_10LE40,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
VideoFormat::Y210 => gst_video_sys::GST_VIDEO_FORMAT_Y210,
|
VideoFormat::Y210 => gst_video_sys::GST_VIDEO_FORMAT_Y210,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
VideoFormat::Y410 => gst_video_sys::GST_VIDEO_FORMAT_Y410,
|
VideoFormat::Y410 => gst_video_sys::GST_VIDEO_FORMAT_Y410,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
VideoFormat::Vuya => gst_video_sys::GST_VIDEO_FORMAT_VUYA,
|
VideoFormat::Vuya => gst_video_sys::GST_VIDEO_FORMAT_VUYA,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
VideoFormat::Bgr10a2Le => gst_video_sys::GST_VIDEO_FORMAT_BGR10A2_LE,
|
VideoFormat::Bgr10a2Le => gst_video_sys::GST_VIDEO_FORMAT_BGR10A2_LE,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
VideoFormat::Rgb10a2Le => gst_video_sys::GST_VIDEO_FORMAT_RGB10A2_LE,
|
VideoFormat::Rgb10a2Le => gst_video_sys::GST_VIDEO_FORMAT_RGB10A2_LE,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
VideoFormat::Y44416be => gst_video_sys::GST_VIDEO_FORMAT_Y444_16BE,
|
VideoFormat::Y44416be => gst_video_sys::GST_VIDEO_FORMAT_Y444_16BE,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
VideoFormat::Y44416le => gst_video_sys::GST_VIDEO_FORMAT_Y444_16LE,
|
VideoFormat::Y44416le => gst_video_sys::GST_VIDEO_FORMAT_Y444_16LE,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
VideoFormat::P016Be => gst_video_sys::GST_VIDEO_FORMAT_P016_BE,
|
VideoFormat::P016Be => gst_video_sys::GST_VIDEO_FORMAT_P016_BE,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
VideoFormat::P016Le => gst_video_sys::GST_VIDEO_FORMAT_P016_LE,
|
VideoFormat::P016Le => gst_video_sys::GST_VIDEO_FORMAT_P016_LE,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
VideoFormat::P012Be => gst_video_sys::GST_VIDEO_FORMAT_P012_BE,
|
VideoFormat::P012Be => gst_video_sys::GST_VIDEO_FORMAT_P012_BE,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
VideoFormat::P012Le => gst_video_sys::GST_VIDEO_FORMAT_P012_LE,
|
VideoFormat::P012Le => gst_video_sys::GST_VIDEO_FORMAT_P012_LE,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
VideoFormat::Y212Be => gst_video_sys::GST_VIDEO_FORMAT_Y212_BE,
|
VideoFormat::Y212Be => gst_video_sys::GST_VIDEO_FORMAT_Y212_BE,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
VideoFormat::Y212Le => gst_video_sys::GST_VIDEO_FORMAT_Y212_LE,
|
VideoFormat::Y212Le => gst_video_sys::GST_VIDEO_FORMAT_Y212_LE,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
VideoFormat::Y412Be => gst_video_sys::GST_VIDEO_FORMAT_Y412_BE,
|
VideoFormat::Y412Be => gst_video_sys::GST_VIDEO_FORMAT_Y412_BE,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
VideoFormat::Y412Le => gst_video_sys::GST_VIDEO_FORMAT_Y412_LE,
|
VideoFormat::Y412Le => gst_video_sys::GST_VIDEO_FORMAT_Y412_LE,
|
||||||
VideoFormat::__Unknown(value) => value,
|
VideoFormat::__Unknown(value) => value,
|
||||||
}
|
}
|
||||||
|
@ -956,41 +1028,77 @@ impl FromGlib<gst_video_sys::GstVideoFormat> for VideoFormat {
|
||||||
58 => VideoFormat::A44410be,
|
58 => VideoFormat::A44410be,
|
||||||
59 => VideoFormat::A44410le,
|
59 => VideoFormat::A44410le,
|
||||||
60 => VideoFormat::Nv61,
|
60 => VideoFormat::Nv61,
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
61 => VideoFormat::P01010be,
|
61 => VideoFormat::P01010be,
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
62 => VideoFormat::P01010le,
|
62 => VideoFormat::P01010le,
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
63 => VideoFormat::Iyu2,
|
63 => VideoFormat::Iyu2,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
64 => VideoFormat::Vyuy,
|
64 => VideoFormat::Vyuy,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
65 => VideoFormat::Gbra,
|
65 => VideoFormat::Gbra,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
66 => VideoFormat::Gbra10be,
|
66 => VideoFormat::Gbra10be,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
67 => VideoFormat::Gbra10le,
|
67 => VideoFormat::Gbra10le,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
68 => VideoFormat::Gbr12be,
|
68 => VideoFormat::Gbr12be,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
69 => VideoFormat::Gbr12le,
|
69 => VideoFormat::Gbr12le,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
70 => VideoFormat::Gbra12be,
|
70 => VideoFormat::Gbra12be,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
71 => VideoFormat::Gbra12le,
|
71 => VideoFormat::Gbra12le,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
72 => VideoFormat::I42012be,
|
72 => VideoFormat::I42012be,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
73 => VideoFormat::I42012le,
|
73 => VideoFormat::I42012le,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
74 => VideoFormat::I42212be,
|
74 => VideoFormat::I42212be,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
75 => VideoFormat::I42212le,
|
75 => VideoFormat::I42212le,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
76 => VideoFormat::Y44412be,
|
76 => VideoFormat::Y44412be,
|
||||||
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
77 => VideoFormat::Y44412le,
|
77 => VideoFormat::Y44412le,
|
||||||
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
78 => VideoFormat::Gray10Le32,
|
78 => VideoFormat::Gray10Le32,
|
||||||
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
79 => VideoFormat::Nv1210le32,
|
79 => VideoFormat::Nv1210le32,
|
||||||
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
80 => VideoFormat::Nv1610le32,
|
80 => VideoFormat::Nv1610le32,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
81 => VideoFormat::Nv1210le40,
|
81 => VideoFormat::Nv1210le40,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
82 => VideoFormat::Y210,
|
82 => VideoFormat::Y210,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
83 => VideoFormat::Y410,
|
83 => VideoFormat::Y410,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
84 => VideoFormat::Vuya,
|
84 => VideoFormat::Vuya,
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
85 => VideoFormat::Bgr10a2Le,
|
85 => VideoFormat::Bgr10a2Le,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
86 => VideoFormat::Rgb10a2Le,
|
86 => VideoFormat::Rgb10a2Le,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
87 => VideoFormat::Y44416be,
|
87 => VideoFormat::Y44416be,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
88 => VideoFormat::Y44416le,
|
88 => VideoFormat::Y44416le,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
89 => VideoFormat::P016Be,
|
89 => VideoFormat::P016Be,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
90 => VideoFormat::P016Le,
|
90 => VideoFormat::P016Le,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
91 => VideoFormat::P012Be,
|
91 => VideoFormat::P012Be,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
92 => VideoFormat::P012Le,
|
92 => VideoFormat::P012Le,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
93 => VideoFormat::Y212Be,
|
93 => VideoFormat::Y212Be,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
94 => VideoFormat::Y212Le,
|
94 => VideoFormat::Y212Le,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
95 => VideoFormat::Y412Be,
|
95 => VideoFormat::Y412Be,
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
96 => VideoFormat::Y412Le,
|
96 => VideoFormat::Y412Le,
|
||||||
value => VideoFormat::__Unknown(value),
|
value => VideoFormat::__Unknown(value),
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,20 +34,28 @@ pub static VIDEO_FORMATS_ALL: Lazy<Box<[::VideoFormat]>> = Lazy::new(|| {
|
||||||
Box::new([
|
Box::new([
|
||||||
::VideoFormat::Ayuv64,
|
::VideoFormat::Ayuv64,
|
||||||
::VideoFormat::Argb64,
|
::VideoFormat::Argb64,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbra12le,
|
::VideoFormat::Gbra12le,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbra12be,
|
::VideoFormat::Gbra12be,
|
||||||
::VideoFormat::A44410le,
|
::VideoFormat::A44410le,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbra10le,
|
::VideoFormat::Gbra10le,
|
||||||
::VideoFormat::A44410be,
|
::VideoFormat::A44410be,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbra10be,
|
::VideoFormat::Gbra10be,
|
||||||
::VideoFormat::A42210le,
|
::VideoFormat::A42210le,
|
||||||
::VideoFormat::A42210be,
|
::VideoFormat::A42210be,
|
||||||
::VideoFormat::A42010le,
|
::VideoFormat::A42010le,
|
||||||
::VideoFormat::A42010be,
|
::VideoFormat::A42010be,
|
||||||
|
#[cfg(feature = "v1_16")]
|
||||||
::VideoFormat::Bgr10a2Le,
|
::VideoFormat::Bgr10a2Le,
|
||||||
|
#[cfg(feature = "v1_16")]
|
||||||
::VideoFormat::Y410,
|
::VideoFormat::Y410,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbra,
|
::VideoFormat::Gbra,
|
||||||
::VideoFormat::Abgr,
|
::VideoFormat::Abgr,
|
||||||
|
#[cfg(feature = "v1_16")]
|
||||||
::VideoFormat::Vuya,
|
::VideoFormat::Vuya,
|
||||||
::VideoFormat::Bgra,
|
::VideoFormat::Bgra,
|
||||||
::VideoFormat::Ayuv,
|
::VideoFormat::Ayuv,
|
||||||
|
@ -55,13 +63,21 @@ pub static VIDEO_FORMATS_ALL: Lazy<Box<[::VideoFormat]>> = Lazy::new(|| {
|
||||||
::VideoFormat::Rgba,
|
::VideoFormat::Rgba,
|
||||||
::VideoFormat::A420,
|
::VideoFormat::A420,
|
||||||
::VideoFormat::V216,
|
::VideoFormat::V216,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Y44412le,
|
::VideoFormat::Y44412le,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbr12le,
|
::VideoFormat::Gbr12le,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Y44412be,
|
::VideoFormat::Y44412be,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbr12be,
|
::VideoFormat::Gbr12be,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::I42212le,
|
::VideoFormat::I42212le,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::I42212be,
|
::VideoFormat::I42212be,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::I42012le,
|
::VideoFormat::I42012le,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::I42012be,
|
::VideoFormat::I42012be,
|
||||||
::VideoFormat::Y44410le,
|
::VideoFormat::Y44410le,
|
||||||
::VideoFormat::Gbr10le,
|
::VideoFormat::Gbr10le,
|
||||||
|
@ -70,15 +86,21 @@ pub static VIDEO_FORMATS_ALL: Lazy<Box<[::VideoFormat]>> = Lazy::new(|| {
|
||||||
::VideoFormat::R210,
|
::VideoFormat::R210,
|
||||||
::VideoFormat::I42210le,
|
::VideoFormat::I42210le,
|
||||||
::VideoFormat::I42210be,
|
::VideoFormat::I42210be,
|
||||||
|
#[cfg(feature = "v1_14")]
|
||||||
::VideoFormat::Nv1610le32,
|
::VideoFormat::Nv1610le32,
|
||||||
|
#[cfg(feature = "v1_16")]
|
||||||
::VideoFormat::Y210,
|
::VideoFormat::Y210,
|
||||||
::VideoFormat::V210,
|
::VideoFormat::V210,
|
||||||
::VideoFormat::Uyvp,
|
::VideoFormat::Uyvp,
|
||||||
::VideoFormat::I42010le,
|
::VideoFormat::I42010le,
|
||||||
::VideoFormat::I42010be,
|
::VideoFormat::I42010be,
|
||||||
|
#[cfg(feature = "v1_10")]
|
||||||
::VideoFormat::P01010le,
|
::VideoFormat::P01010le,
|
||||||
|
#[cfg(feature = "v1_14")]
|
||||||
::VideoFormat::Nv1210le32,
|
::VideoFormat::Nv1210le32,
|
||||||
|
#[cfg(feature = "v1_16")]
|
||||||
::VideoFormat::Nv1210le40,
|
::VideoFormat::Nv1210le40,
|
||||||
|
#[cfg(feature = "v1_10")]
|
||||||
::VideoFormat::P01010be,
|
::VideoFormat::P01010be,
|
||||||
::VideoFormat::Y444,
|
::VideoFormat::Y444,
|
||||||
::VideoFormat::Gbr,
|
::VideoFormat::Gbr,
|
||||||
|
@ -88,12 +110,14 @@ pub static VIDEO_FORMATS_ALL: Lazy<Box<[::VideoFormat]>> = Lazy::new(|| {
|
||||||
::VideoFormat::Xrgb,
|
::VideoFormat::Xrgb,
|
||||||
::VideoFormat::Rgbx,
|
::VideoFormat::Rgbx,
|
||||||
::VideoFormat::Bgr,
|
::VideoFormat::Bgr,
|
||||||
|
#[cfg(feature = "v1_10")]
|
||||||
::VideoFormat::Iyu2,
|
::VideoFormat::Iyu2,
|
||||||
::VideoFormat::V308,
|
::VideoFormat::V308,
|
||||||
::VideoFormat::Rgb,
|
::VideoFormat::Rgb,
|
||||||
::VideoFormat::Y42b,
|
::VideoFormat::Y42b,
|
||||||
::VideoFormat::Nv61,
|
::VideoFormat::Nv61,
|
||||||
::VideoFormat::Nv16,
|
::VideoFormat::Nv16,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Vyuy,
|
::VideoFormat::Vyuy,
|
||||||
::VideoFormat::Uyvy,
|
::VideoFormat::Uyvy,
|
||||||
::VideoFormat::Yvyu,
|
::VideoFormat::Yvyu,
|
||||||
|
@ -114,6 +138,7 @@ pub static VIDEO_FORMATS_ALL: Lazy<Box<[::VideoFormat]>> = Lazy::new(|| {
|
||||||
::VideoFormat::Rgb8p,
|
::VideoFormat::Rgb8p,
|
||||||
::VideoFormat::Gray16Le,
|
::VideoFormat::Gray16Le,
|
||||||
::VideoFormat::Gray16Be,
|
::VideoFormat::Gray16Be,
|
||||||
|
#[cfg(feature = "v1_14")]
|
||||||
::VideoFormat::Gray10Le32,
|
::VideoFormat::Gray10Le32,
|
||||||
::VideoFormat::Gray8,
|
::VideoFormat::Gray8,
|
||||||
])
|
])
|
||||||
|
@ -123,20 +148,28 @@ pub static VIDEO_FORMATS_ALL: Lazy<Box<[::VideoFormat]>> = Lazy::new(|| {
|
||||||
Box::new([
|
Box::new([
|
||||||
::VideoFormat::Ayuv64,
|
::VideoFormat::Ayuv64,
|
||||||
::VideoFormat::Argb64,
|
::VideoFormat::Argb64,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbra12be,
|
::VideoFormat::Gbra12be,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbra12le,
|
::VideoFormat::Gbra12le,
|
||||||
::VideoFormat::A44410be,
|
::VideoFormat::A44410be,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbra10be,
|
::VideoFormat::Gbra10be,
|
||||||
::VideoFormat::A44410le,
|
::VideoFormat::A44410le,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbra10le,
|
::VideoFormat::Gbra10le,
|
||||||
::VideoFormat::A42210be,
|
::VideoFormat::A42210be,
|
||||||
::VideoFormat::A42210le,
|
::VideoFormat::A42210le,
|
||||||
::VideoFormat::A42010be,
|
::VideoFormat::A42010be,
|
||||||
::VideoFormat::A42010le,
|
::VideoFormat::A42010le,
|
||||||
|
#[cfg(feature = "v1_16")]
|
||||||
::VideoFormat::Y410,
|
::VideoFormat::Y410,
|
||||||
|
#[cfg(feature = "v1_16")]
|
||||||
::VideoFormat::Bgr10a2Le,
|
::VideoFormat::Bgr10a2Le,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbra,
|
::VideoFormat::Gbra,
|
||||||
::VideoFormat::Abgr,
|
::VideoFormat::Abgr,
|
||||||
|
#[cfg(feature = "v1_16")]
|
||||||
::VideoFormat::Vuya,
|
::VideoFormat::Vuya,
|
||||||
::VideoFormat::Bgra,
|
::VideoFormat::Bgra,
|
||||||
::VideoFormat::Ayuv,
|
::VideoFormat::Ayuv,
|
||||||
|
@ -144,13 +177,21 @@ pub static VIDEO_FORMATS_ALL: Lazy<Box<[::VideoFormat]>> = Lazy::new(|| {
|
||||||
::VideoFormat::Rgba,
|
::VideoFormat::Rgba,
|
||||||
::VideoFormat::A420,
|
::VideoFormat::A420,
|
||||||
::VideoFormat::V216,
|
::VideoFormat::V216,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Y44412be,
|
::VideoFormat::Y44412be,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbr12be,
|
::VideoFormat::Gbr12be,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Y44412le,
|
::VideoFormat::Y44412le,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Gbr12le,
|
::VideoFormat::Gbr12le,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::I42212be,
|
::VideoFormat::I42212be,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::I42212le,
|
::VideoFormat::I42212le,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::I42012be,
|
::VideoFormat::I42012be,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::I42012le,
|
::VideoFormat::I42012le,
|
||||||
::VideoFormat::Y44410be,
|
::VideoFormat::Y44410be,
|
||||||
::VideoFormat::Gbr10be,
|
::VideoFormat::Gbr10be,
|
||||||
|
@ -159,15 +200,21 @@ pub static VIDEO_FORMATS_ALL: Lazy<Box<[::VideoFormat]>> = Lazy::new(|| {
|
||||||
::VideoFormat::R210,
|
::VideoFormat::R210,
|
||||||
::VideoFormat::I42210be,
|
::VideoFormat::I42210be,
|
||||||
::VideoFormat::I42210le,
|
::VideoFormat::I42210le,
|
||||||
|
#[cfg(feature = "v1_14")]
|
||||||
::VideoFormat::Nv1610le32,
|
::VideoFormat::Nv1610le32,
|
||||||
|
#[cfg(feature = "v1_16")]
|
||||||
::VideoFormat::Y210,
|
::VideoFormat::Y210,
|
||||||
::VideoFormat::V210,
|
::VideoFormat::V210,
|
||||||
::VideoFormat::Uyvp,
|
::VideoFormat::Uyvp,
|
||||||
::VideoFormat::I42010be,
|
::VideoFormat::I42010be,
|
||||||
::VideoFormat::I42010le,
|
::VideoFormat::I42010le,
|
||||||
|
#[cfg(feature = "v1_10")]
|
||||||
::VideoFormat::P01010be,
|
::VideoFormat::P01010be,
|
||||||
|
#[cfg(feature = "v1_10")]
|
||||||
::VideoFormat::P01010le,
|
::VideoFormat::P01010le,
|
||||||
|
#[cfg(feature = "v1_14")]
|
||||||
::VideoFormat::Nv1210le32,
|
::VideoFormat::Nv1210le32,
|
||||||
|
#[cfg(feature = "v1_16")]
|
||||||
::VideoFormat::Nv1210le40,
|
::VideoFormat::Nv1210le40,
|
||||||
::VideoFormat::Y444,
|
::VideoFormat::Y444,
|
||||||
::VideoFormat::Gbr,
|
::VideoFormat::Gbr,
|
||||||
|
@ -177,12 +224,14 @@ pub static VIDEO_FORMATS_ALL: Lazy<Box<[::VideoFormat]>> = Lazy::new(|| {
|
||||||
::VideoFormat::Xrgb,
|
::VideoFormat::Xrgb,
|
||||||
::VideoFormat::Rgbx,
|
::VideoFormat::Rgbx,
|
||||||
::VideoFormat::Bgr,
|
::VideoFormat::Bgr,
|
||||||
|
#[cfg(feature = "v1_10")]
|
||||||
::VideoFormat::Iyu2,
|
::VideoFormat::Iyu2,
|
||||||
::VideoFormat::V308,
|
::VideoFormat::V308,
|
||||||
::VideoFormat::Rgb,
|
::VideoFormat::Rgb,
|
||||||
::VideoFormat::Y42b,
|
::VideoFormat::Y42b,
|
||||||
::VideoFormat::Nv61,
|
::VideoFormat::Nv61,
|
||||||
::VideoFormat::Nv16,
|
::VideoFormat::Nv16,
|
||||||
|
#[cfg(feature = "v1_12")]
|
||||||
::VideoFormat::Vyuy,
|
::VideoFormat::Vyuy,
|
||||||
::VideoFormat::Uyvy,
|
::VideoFormat::Uyvy,
|
||||||
::VideoFormat::Yvyu,
|
::VideoFormat::Yvyu,
|
||||||
|
@ -203,6 +252,7 @@ pub static VIDEO_FORMATS_ALL: Lazy<Box<[::VideoFormat]>> = Lazy::new(|| {
|
||||||
::VideoFormat::Rgb8p,
|
::VideoFormat::Rgb8p,
|
||||||
::VideoFormat::Gray16Be,
|
::VideoFormat::Gray16Be,
|
||||||
::VideoFormat::Gray16Le,
|
::VideoFormat::Gray16Le,
|
||||||
|
#[cfg(feature = "v1_14")]
|
||||||
::VideoFormat::Gray10Le32,
|
::VideoFormat::Gray10Le32,
|
||||||
::VideoFormat::Gray8,
|
::VideoFormat::Gray8,
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue