mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 03:21:03 +00:00
video: add VIDEO_MAX_PLANES constant
This commit is contained in:
parent
491eaf3a73
commit
840d1847a1
1 changed files with 3 additions and 1 deletions
|
@ -23,6 +23,8 @@ use std::mem;
|
|||
use std::ptr;
|
||||
use std::str;
|
||||
|
||||
pub const VIDEO_MAX_PLANES: u32 = gst_video_sys::GST_VIDEO_MAX_PLANES as u32;
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||
pub enum VideoColorRange {
|
||||
Unknown,
|
||||
|
@ -943,7 +945,7 @@ mod tests {
|
|||
assert_eq!(info.stride(), [1920, 1920]);
|
||||
assert_eq!(info.offset(), [0, 2073600]);
|
||||
|
||||
let mut align = ::VideoAlignment::new(0, 0, 0, 8, &[0; 4]);
|
||||
let mut align = ::VideoAlignment::new(0, 0, 0, 8, &[0; VIDEO_MAX_PLANES as usize]);
|
||||
assert!(info.align(&mut align));
|
||||
|
||||
assert_eq!(info.stride(), [1928, 1928]);
|
||||
|
|
Loading…
Reference in a new issue