Trait EncoderInput

Source
pub trait EncoderInput {
    // Required methods
    fn pitch(&self) -> u32;
    fn handle(&mut self) -> *mut c_void;
}
Expand description

If a type implements this trait it means it is a valid input buffer for the encoding API.

Required Methods§

Source

fn pitch(&self) -> u32

Get the pitch (AKA stride) of the input resource.

Source

fn handle(&mut self) -> *mut c_void

Get the handle of the input resource.

Implementors§