[][src]Struct ffmpeg_next::codec::picture::Picture

pub struct Picture<'a> { /* fields omitted */ }

Implementations

impl<'a> Picture<'a>[src]

pub unsafe fn wrap(
    ptr: *mut AVPicture,
    format: Pixel,
    width: u32,
    height: u32
) -> Self
[src]

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

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

impl<'a> Picture<'a>[src]

pub fn size(format: Pixel, width: u32, height: u32) -> Result<usize, Error>[src]

pub fn new(format: Pixel, width: u32, height: u32) -> Result<Self, Error>[src]

pub fn format(&self) -> Pixel[src]

pub fn width(&self) -> u32[src]

pub fn height(&self) -> u32[src]

pub fn layout(&self, out: &mut [u8]) -> Result<usize, Error>[src]

pub fn layout_as(
    &self,
    format: Pixel,
    width: u32,
    height: u32,
    out: &mut [u8]
) -> Result<usize, Error>
[src]

pub fn crop(
    &self,
    source: &mut Picture<'_>,
    top: u32,
    left: u32
) -> Result<(), Error>
[src]

pub fn data(&self) -> Vec<&[u8]>[src]

pub fn data_mut(&mut self) -> Vec<&mut [u8]>[src]

impl<'a> Picture<'a>[src]

pub fn scaler(
    &self,
    width: u32,
    height: u32,
    flags: Flags
) -> Result<Context, Error>
[src]

pub fn converter(&self, format: Pixel) -> Result<Context, Error>[src]

Trait Implementations

impl<'a> Clone for Picture<'a>[src]

impl<'a> Drop for Picture<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Picture<'a>[src]

impl<'a> !Send for Picture<'a>[src]

impl<'a> !Sync for Picture<'a>[src]

impl<'a> Unpin for Picture<'a>[src]

impl<'a> UnwindSafe for Picture<'a>[src]

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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.