Struct gstreamer_video::video_frame::VideoFrameRef
source · pub struct VideoFrameRef<T> { /* private fields */ }
Implementations§
source§impl<T> VideoFrameRef<T>
impl<T> VideoFrameRef<T>
pub fn info(&self) -> &VideoInfo
pub fn flags(&self) -> VideoFrameFlags
pub fn id(&self) -> i32
pub fn copy( &self, dest: &mut VideoFrameRef<&mut BufferRef> ) -> Result<(), BoolError>
pub fn copy_plane( &self, dest: &mut VideoFrameRef<&mut BufferRef>, plane: u32 ) -> Result<(), BoolError>
pub fn format(&self) -> VideoFormat
pub fn format_info(&self) -> VideoFormatInfo
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn size(&self) -> usize
pub fn is_interlaced(&self) -> bool
pub fn is_tff(&self) -> bool
pub fn is_rff(&self) -> bool
pub fn is_onefield(&self) -> bool
pub fn is_bottom_field(&self) -> bool
pub fn is_top_field(&self) -> bool
pub fn n_planes(&self) -> u32
pub fn n_components(&self) -> u32
pub fn plane_stride(&self) -> &[i32]
pub fn plane_offset(&self) -> &[usize]
pub fn comp_data(&self, component: u32) -> Result<&[u8], BoolError>
pub fn comp_depth(&self, component: u32) -> u32
pub fn comp_height(&self, component: u32) -> u32
pub fn comp_width(&self, component: u32) -> u32
pub fn comp_offset(&self, component: u32) -> usize
pub fn comp_poffset(&self, component: u32) -> u32
pub fn comp_pstride(&self, component: u32) -> i32
pub fn comp_stride(&self, component: u32) -> i32
pub fn comp_plane(&self, component: u32) -> u32
pub fn plane_data(&self, plane: u32) -> Result<&[u8], BoolError>
pub fn as_ptr(&self) -> *const GstVideoFrame
source§impl<'a> VideoFrameRef<&'a BufferRef>
impl<'a> VideoFrameRef<&'a BufferRef>
pub unsafe fn from_glib_borrow(frame: *const GstVideoFrame) -> Borrowed<Self>
pub unsafe fn from_glib_full(frame: GstVideoFrame) -> Self
pub fn from_buffer_ref_readable<'b>( buffer: &'a BufferRef, info: &'b VideoInfo ) -> Result<Self, BoolError>
pub fn from_buffer_ref_id_readable<'b>( buffer: &'a BufferRef, id: i32, info: &'b VideoInfo ) -> Result<Self, BoolError>
pub fn buffer(&self) -> &BufferRef
source§impl<'a> VideoFrameRef<&'a mut BufferRef>
impl<'a> VideoFrameRef<&'a mut BufferRef>
pub unsafe fn from_glib_borrow_mut(frame: *mut GstVideoFrame) -> Self
pub unsafe fn from_glib_full_mut(frame: GstVideoFrame) -> Self
pub fn from_buffer_ref_writable<'b>( buffer: &'a mut BufferRef, info: &'b VideoInfo ) -> Result<Self, BoolError>
pub fn from_buffer_ref_id_writable<'b>( buffer: &'a mut BufferRef, id: i32, info: &'b VideoInfo ) -> Result<Self, BoolError>
pub fn buffer_mut(&mut self) -> &mut BufferRef
pub fn comp_data_mut(&mut self, component: u32) -> Result<&mut [u8], BoolError>
pub fn plane_data_mut(&mut self, plane: u32) -> Result<&mut [u8], BoolError>
pub fn as_mut_ptr(&mut self) -> *mut GstVideoFrame
Trait Implementations§
source§impl<T> Debug for VideoFrameRef<T>
impl<T> Debug for VideoFrameRef<T>
source§impl<'a> Deref for VideoFrameRef<&'a mut BufferRef>
impl<'a> Deref for VideoFrameRef<&'a mut BufferRef>
source§impl<T> Drop for VideoFrameRef<T>
impl<T> Drop for VideoFrameRef<T>
impl<T> Send for VideoFrameRef<T>
impl<T> Sync for VideoFrameRef<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for VideoFrameRef<T>where T: RefUnwindSafe,
impl<T> Unpin for VideoFrameRef<T>where T: Unpin,
impl<T> UnwindSafe for VideoFrameRef<T>where T: UnwindSafe,
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