Struct gstreamer_video::video_meta::VideoMeta
source · [−]#[repr(transparent)]pub struct VideoMeta(_);
Implementations
sourceimpl 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
This is supported on crate feature
v1_18
only.pub fn plane_size(&self) -> Result<[usize; 4], BoolError>
This is supported on crate feature
v1_18
only.pub fn plane_height(&self) -> Result<[u32; 4], BoolError>
This is supported on crate feature
v1_18
only.pub fn set_alignment(
&mut self,
alignment: &VideoAlignment
) -> Result<(), BoolError>
This is supported on crate feature
v1_18
only.Trait Implementations
impl Send for VideoMeta
impl Sync for VideoMeta
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more