pub trait YUVSource {
// Required methods
fn width(&self) -> i32;
fn height(&self) -> i32;
fn y(&self) -> &[u8] ⓘ;
fn u(&self) -> &[u8] ⓘ;
fn v(&self) -> &[u8] ⓘ;
fn y_stride(&self) -> i32;
fn u_stride(&self) -> i32;
fn v_stride(&self) -> i32;
}Expand description
Allows the Encoder to be generic over a YUV source.