[−][src]Struct ffmpeg::codec::picture::Picture
Implementations
impl<'a> Picture<'a>
[src]
pub unsafe fn wrap(
ptr: *mut AVPicture,
format: Pixel,
width: u32,
height: u32
) -> Self
[src]
ptr: *mut AVPicture,
format: Pixel,
width: u32,
height: u32
) -> Self
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]
&self,
format: Pixel,
width: u32,
height: u32,
out: &mut [u8]
) -> Result<usize, Error>
pub fn crop(
&self,
source: &mut Picture<'_>,
top: u32,
left: u32
) -> Result<(), Error>
[src]
&self,
source: &mut Picture<'_>,
top: u32,
left: u32
) -> Result<(), Error>
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]
&self,
width: u32,
height: u32,
flags: Flags
) -> Result<Context, Error>
pub fn converter(&self, format: Pixel) -> Result<Context, Error>
[src]
Trait Implementations
impl<'a> Clone for Picture<'a>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
[src]
impl<'a> Drop for Picture<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Picture<'a>
impl<'a> !Send for Picture<'a>
impl<'a> !Sync for Picture<'a>
impl<'a> Unpin for Picture<'a>
impl<'a> UnwindSafe for Picture<'a>
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,