mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 04:51:09 +00:00
video: Add VideoFormatInfo::has_subtiles()
This commit is contained in:
parent
fe7850720c
commit
faa1311fcd
1 changed files with 6 additions and 0 deletions
|
@ -107,6 +107,12 @@ impl VideoFormatInfo {
|
||||||
self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_PALETTE != 0
|
self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_PALETTE != 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||||
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||||
|
pub fn has_subtiles(&self) -> bool {
|
||||||
|
self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_SUBTILES != 0
|
||||||
|
}
|
||||||
|
|
||||||
pub fn is_complex(&self) -> bool {
|
pub fn is_complex(&self) -> bool {
|
||||||
self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_COMPLEX != 0
|
self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_COMPLEX != 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue