[−][src]Struct gstreamer_video::video_frame::VideoFrameRef
Methods
impl<T> VideoFrameRef<T>
[src]
pub fn info(&self) -> &VideoInfo
[src]
pub fn flags(&self) -> VideoFrameFlags
[src]
pub fn id(&self) -> i32
[src]
pub fn copy(
&self,
dest: &mut VideoFrameRef<&mut BufferRef>
) -> Result<(), BoolError>
[src]
&self,
dest: &mut VideoFrameRef<&mut BufferRef>
) -> Result<(), BoolError>
pub fn copy_plane(
&self,
dest: &mut VideoFrameRef<&mut BufferRef>,
plane: u32
) -> Result<(), BoolError>
[src]
&self,
dest: &mut VideoFrameRef<&mut BufferRef>,
plane: u32
) -> Result<(), BoolError>
pub fn format(&self) -> VideoFormat
[src]
pub fn format_info(&self) -> VideoFormatInfo
[src]
pub fn width(&self) -> u32
[src]
pub fn height(&self) -> u32
[src]
pub fn size(&self) -> usize
[src]
pub fn is_interlaced(&self) -> bool
[src]
pub fn is_tff(&self) -> bool
[src]
pub fn is_rff(&self) -> bool
[src]
pub fn is_onefield(&self) -> bool
[src]
pub fn n_planes(&self) -> u32
[src]
pub fn n_components(&self) -> u32
[src]
pub fn plane_stride(&self) -> &[i32]
[src]
pub fn plane_offset(&self) -> &[usize]
[src]
pub fn plane_data(&self, plane: u32) -> Result<&[u8], BoolError>
[src]
pub fn as_ptr(&self) -> *const GstVideoFrame
[src]
impl<'a> VideoFrameRef<&'a BufferRef>
[src]
pub unsafe fn from_glib_borrow(frame: *const GstVideoFrame) -> Self
[src]
pub fn from_buffer_ref_readable<'b>(
buffer: &'a BufferRef,
info: &'b VideoInfo
) -> Result<VideoFrameRef<&'a BufferRef>, BoolError>
[src]
buffer: &'a BufferRef,
info: &'b VideoInfo
) -> Result<VideoFrameRef<&'a BufferRef>, BoolError>
pub fn from_buffer_ref_id_readable<'b>(
buffer: &'a BufferRef,
id: i32,
info: &'b VideoInfo
) -> Result<VideoFrameRef<&'a BufferRef>, BoolError>
[src]
buffer: &'a BufferRef,
id: i32,
info: &'b VideoInfo
) -> Result<VideoFrameRef<&'a BufferRef>, BoolError>
pub fn buffer(&self) -> &BufferRef
[src]
impl<'a> VideoFrameRef<&'a mut BufferRef>
[src]
pub unsafe fn from_glib_borrow_mut(frame: *mut GstVideoFrame) -> Self
[src]
pub fn from_buffer_ref_writable<'b>(
buffer: &'a mut BufferRef,
info: &'b VideoInfo
) -> Result<VideoFrameRef<&'a mut BufferRef>, BoolError>
[src]
buffer: &'a mut BufferRef,
info: &'b VideoInfo
) -> Result<VideoFrameRef<&'a mut BufferRef>, BoolError>
pub fn from_buffer_ref_id_writable<'b>(
buffer: &'a mut BufferRef,
id: i32,
info: &'b VideoInfo
) -> Result<VideoFrameRef<&'a mut BufferRef>, BoolError>
[src]
buffer: &'a mut BufferRef,
id: i32,
info: &'b VideoInfo
) -> Result<VideoFrameRef<&'a mut BufferRef>, BoolError>
pub fn buffer_mut(&mut self) -> &mut BufferRef
[src]
pub fn plane_data_mut(&mut self, plane: u32) -> Result<&mut [u8], BoolError>
[src]
pub fn as_mut_ptr(&mut self) -> *mut GstVideoFrame
[src]
Methods from Deref<Target = VideoFrameRef<&'a BufferRef>>
pub fn info(&self) -> &VideoInfo
[src]
pub fn flags(&self) -> VideoFrameFlags
[src]
pub fn id(&self) -> i32
[src]
pub fn copy(
&self,
dest: &mut VideoFrameRef<&mut BufferRef>
) -> Result<(), BoolError>
[src]
&self,
dest: &mut VideoFrameRef<&mut BufferRef>
) -> Result<(), BoolError>
pub fn copy_plane(
&self,
dest: &mut VideoFrameRef<&mut BufferRef>,
plane: u32
) -> Result<(), BoolError>
[src]
&self,
dest: &mut VideoFrameRef<&mut BufferRef>,
plane: u32
) -> Result<(), BoolError>
pub fn format(&self) -> VideoFormat
[src]
pub fn format_info(&self) -> VideoFormatInfo
[src]
pub fn width(&self) -> u32
[src]
pub fn height(&self) -> u32
[src]
pub fn size(&self) -> usize
[src]
pub fn is_interlaced(&self) -> bool
[src]
pub fn is_tff(&self) -> bool
[src]
pub fn is_rff(&self) -> bool
[src]
pub fn is_onefield(&self) -> bool
[src]
pub fn n_planes(&self) -> u32
[src]
pub fn n_components(&self) -> u32
[src]
pub fn plane_stride(&self) -> &[i32]
[src]
pub fn plane_offset(&self) -> &[usize]
[src]
pub fn plane_data(&self, plane: u32) -> Result<&[u8], BoolError>
[src]
pub fn as_ptr(&self) -> *const GstVideoFrame
[src]
Trait Implementations
impl<T: Debug> Debug for VideoFrameRef<T>
[src]
impl<'a> Deref for VideoFrameRef<&'a mut BufferRef>
[src]
type Target = VideoFrameRef<&'a BufferRef>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<T> Drop for VideoFrameRef<T>
[src]
impl<T> Send for VideoFrameRef<T>
[src]
impl<T> Sync for VideoFrameRef<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for VideoFrameRef<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Unpin for VideoFrameRef<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for VideoFrameRef<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,