mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-28 20:41:31 +00:00
video: Add new Colorimetry::is_equivalent()
This commit is contained in:
parent
b5920ee729
commit
8cb13ac752
1 changed files with 14 additions and 0 deletions
|
@ -121,6 +121,20 @@ impl VideoColorimetry {
|
|||
pub fn primaries(&self) -> crate::VideoColorPrimaries {
|
||||
unsafe { from_glib(self.0.primaries) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[doc(alias = "gst_video_colorimetry_is_equivalent")]
|
||||
pub fn is_equivalent(&self, bitdepth: u32, other: &Self, other_bitdepth: u32) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_video_colorimetry_is_equivalent(
|
||||
&self.0,
|
||||
bitdepth,
|
||||
&other.0,
|
||||
other_bitdepth,
|
||||
))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq for VideoColorimetry {
|
||||
|
|
Loading…
Reference in a new issue