Struct rsmpeg::avutil::AVImage [−][src]
pub struct AVImage { /* fields omitted */ }
Expand description
AVImage
is a image buffer holder. It’s a self referential structure.
Implementations
impl AVImage
[src]
impl AVImage
[src]pub fn new(
pix_fmt: AVPixelFormat,
width: i32,
height: i32,
align: i32
) -> Option<Self>
[src]
pub fn new(
pix_fmt: AVPixelFormat,
width: i32,
height: i32,
align: i32
) -> Option<Self>
[src]Returns None
when parameters are invalid, panic when no memory.
pub fn get_buffer_size(
fmt: AVPixelFormat,
width: i32,
height: i32,
align: i32
) -> Option<i32>
[src]
pub fn get_buffer_size(
fmt: AVPixelFormat,
width: i32,
height: i32,
align: i32
) -> Option<i32>
[src]Return the size in bytes of the amount of data required to store an image with the given parameters. Return None when invalid.