Struct gstreamer_video::video_meta::VideoMeta
source · pub struct VideoMeta(/* private fields */);
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.Trait Implementations§
Auto Trait Implementations§
impl Freeze for VideoMeta
impl RefUnwindSafe for VideoMeta
impl Unpin for VideoMeta
impl UnwindSafe for VideoMeta
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more