Struct rsmpeg::avcodec::AVPicture[][src]

pub struct AVPicture { /* fields omitted */ }

Implementations

impl AVPicture[src]

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

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

pub unsafe fn set_ptr(&mut self, ptr: NonNull<AVPicture>)[src]

Safety

This function should only be called when the pointer is valid and the data it’s pointing to can be dropped.

pub unsafe fn from_raw(raw: NonNull<AVPicture>) -> Self[src]

Safety

This function should only be called when the pointer is valid and the data it’s pointing to can be dropped.

pub fn into_raw(self) -> NonNull<AVPicture>[src]

impl AVPicture[src]

pub fn data_mut(&mut self) -> &mut [*mut u8; 8][src]

👎 Deprecated:

AVPicture is deprecated

pub fn linesize_mut(&mut self) -> &mut [c_int; 8][src]

👎 Deprecated:

AVPicture is deprecated

pub fn new(pix_fmt: AVPixelFormat, width: i32, height: i32) -> Option<Self>[src]

👎 Deprecated:

AVPicture is deprecated

pub fn get_size(pix_fmt: AVPixelFormat, width: i32, height: i32) -> Result<i32>[src]

👎 Deprecated:

Use av_image_get_buffer_size() instead.

pub fn copy(
    &self,
    dst: &mut AVPicture,
    pix_fmt: AVPixelFormat,
    width: i32,
    height: i32
)
[src]

👎 Deprecated:

Use av_image_copy() instead

pub unsafe fn layout(
    &self,
    pix_fmt: AVPixelFormat,
    width: i32,
    height: i32,
    dest: *mut u8,
    dest_size: i32
) -> Result<()>
[src]

👎 Deprecated:

Use av_image_copy_to_buffer() instead

Copy AVPicture’s image data from an image into a buffer.

Safety

The dest’s size shouldn’t smaller than dest_size.

pub unsafe fn fill(
    &mut self,
    src: *const u8,
    pix_fmt: AVPixelFormat,
    width: i32,
    height: i32
) -> Result<()>
[src]

👎 Deprecated:

Use av_image_fill_arrays() instead.

Setup the AVPicture’s data pointers and linesizes based on the specified image parameters and the provided array.

Safety

The dest’s size shouldn’t smaller than dest_size.

Trait Implementations

impl Deref for AVPicture[src]

type Target = AVPicture

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Dereferences the value.

impl Drop for AVPicture[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

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.