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 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 comp_data(&self, component: u32) -> Result<&[u8], BoolError>
pub fn plane_data(&self, plane: u32) -> Result<&[u8], BoolError>
pub fn planes_data(&self) -> [&[u8]; 4]
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>
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 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 planes_data_mut(&mut self) -> [&mut [u8]; 4]
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>
source§impl<T> IsVideoFrame for VideoFrameRef<T>
impl<T> IsVideoFrame for VideoFrameRef<T>
fn as_raw(&self) -> &GstVideoFrame
impl<T> Send for VideoFrameRef<T>
impl<T> Sync for VideoFrameRef<T>
Auto Trait Implementations§
impl<T> Freeze for VideoFrameRef<T>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more