pub trait CompInfoExt {
// Required methods
fn row_stride(&self) -> usize;
fn col_stride(&self) -> usize;
fn sampling(&self) -> (u8, u8);
fn qtable(&self) -> Option<QTable>;
fn width_in_blocks(&self) -> usize;
fn height_in_blocks(&self) -> usize;
}Required Methods§
Sourcefn row_stride(&self) -> usize
fn row_stride(&self) -> usize
Number of pixels per row, including padding to MCU
Sourcefn col_stride(&self) -> usize
fn col_stride(&self) -> usize
Total height, including padding to MCU
Sourcefn sampling(&self) -> (u8, u8)
fn sampling(&self) -> (u8, u8)
h,v samplinig (1..4). Number of pixels per sample (may be opposite of what you expect!)