Struct gstreamer_video::video_frame::VideoFrame[][src]

pub struct VideoFrame<T> { /* fields omitted */ }

A video frame obtained from [Self::map()]

Implementations

impl<T> VideoFrame<T>[src]

pub fn info(&self) -> &VideoInfo[src]

pub fn flags(&self) -> VideoFrameFlags[src]

pub fn id(&self) -> i32[src]

pub fn into_buffer(self) -> Buffer[src]

pub fn copy(&self, dest: &mut VideoFrame<Writable>) -> Result<(), BoolError>[src]

pub fn copy_plane(
    &self,
    dest: &mut VideoFrame<Writable>,
    plane: u32
) -> Result<(), BoolError>
[src]

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 buffer(&self) -> &BufferRef[src]

pub fn plane_data(&self, plane: u32) -> Result<&[u8], BoolError>[src]

pub unsafe fn from_glib_full(frame: GstVideoFrame) -> Self[src]

pub fn as_video_frame_ref(&self) -> VideoFrameRef<&BufferRef>[src]

pub fn as_ptr(&self) -> *const GstVideoFrame[src]

impl VideoFrame<Readable>[src]

pub fn from_buffer_readable(
    buffer: Buffer,
    info: &VideoInfo
) -> Result<Self, Buffer>
[src]

pub fn from_buffer_id_readable(
    buffer: Buffer,
    id: i32,
    info: &VideoInfo
) -> Result<Self, Buffer>
[src]

pub fn buffer_owned(&self) -> Buffer[src]

impl VideoFrame<Writable>[src]

pub fn from_buffer_writable(
    buffer: Buffer,
    info: &VideoInfo
) -> Result<Self, Buffer>
[src]

pub fn from_buffer_id_writable(
    buffer: Buffer,
    id: i32,
    info: &VideoInfo
) -> Result<Self, Buffer>
[src]

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_video_frame_ref(&mut self) -> VideoFrameRef<&mut BufferRef>[src]

pub fn as_mut_ptr(&mut self) -> *mut GstVideoFrame[src]

Trait Implementations

impl<T> Debug for VideoFrame<T>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<T> Drop for VideoFrame<T>[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

impl<T> Send for VideoFrame<T>[src]

impl<T> Sync for VideoFrame<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for VideoFrame<T> where
    T: RefUnwindSafe

impl<T> Unpin for VideoFrame<T> where
    T: Unpin

impl<T> UnwindSafe for VideoFrame<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.