Struct gstreamer_video::video_meta::VideoMeta
source · #[repr(transparent)]pub struct VideoMeta(_);
Implementations§
source§impl VideoMeta
impl VideoMeta
pub fn add(
buffer: &mut BufferRef,
video_frame_flags: VideoFrameFlags,
format: VideoFormat,
width: u32,
height: u32
) -> Result<MetaRefMut<'_, Self, Standalone>, BoolError>
pub fn add_full<'a>(
buffer: &'a mut BufferRef,
video_frame_flags: VideoFrameFlags,
format: VideoFormat,
width: u32,
height: u32,
offset: &[usize],
stride: &[i32]
) -> Result<MetaRefMut<'a, Self, Standalone>, BoolError>
pub fn video_frame_flags(&self) -> VideoFrameFlags
pub fn format(&self) -> VideoFormat
pub fn id(&self) -> i32
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn n_planes(&self) -> u32
pub fn offset(&self) -> &[usize]
pub fn stride(&self) -> &[i32]
pub fn alignment(&self) -> VideoAlignment
Available on crate feature
v1_18
only.pub fn plane_size(&self) -> Result<[usize; 4], BoolError>
Available on crate feature
v1_18
only.pub fn plane_height(&self) -> Result<[u32; 4], BoolError>
Available on crate feature
v1_18
only.pub fn set_alignment(
&mut self,
alignment: &VideoAlignment
) -> Result<(), BoolError>
Available on crate feature
v1_18
only.