#[repr(C)]
pub struct CompInfo {
pub component_id: i32,
pub component_index: i32,
pub h_samp_factor: i32,
pub v_samp_factor: i32,
pub quant_tbl_no: i32,
pub dc_tbl_no: i32,
pub ac_tbl_no: i32,
pub width_in_blocks: u32,
pub height_in_blocks: u32,
pub quant_table: *mut JQUANT_TBL,
// some fields omitted
}
identifier for this component (0..255)
its index in SOF or cinfo->comp_info[]
horizontal sampling factor (1..4)
vertical sampling factor (1..4)
quantization table selector (0..3)
DC entropy table selector (0..3)
These values may vary between scans.
For compression, they must be supplied by parameter setup;
for decompression, they are read from the SOS marker.
The decompressor output side may not use these variables.
AC entropy table selector (0..3)
Returns the "default value" for a type. Read more
h,v samplinig (1..4). Number of pixels per sample (may be opposite of what you expect!)
Number of pixels per row, including padding to MCU
Total height, including padding to MCU
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static