Skip to main content

CompInfoExt

Trait CompInfoExt 

Source
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§

Source

fn row_stride(&self) -> usize

Number of pixels per row, including padding to MCU

Source

fn col_stride(&self) -> usize

Total height, including padding to MCU

Source

fn sampling(&self) -> (u8, u8)

h,v samplinig (1..4). Number of pixels per sample (may be opposite of what you expect!)

Source

fn qtable(&self) -> Option<QTable>

Source

fn width_in_blocks(&self) -> usize

Source

fn height_in_blocks(&self) -> usize

Implementors§