Expand description
Sample trait for abstracting bit-depth differences in JPEG-LS.
Provides type-level dispatch for 8-bit (u8) and 16-bit (u16) pixel values,
replacing the C++ template specializations in CharLS (LosslessTraitsT, DefaultTraitsT).
Traits§
- Sample
- Trait abstracting a pixel sample type for JPEG-LS encoding/decoding.
Functions§
- needs_
u16 - Dispatch helper: returns true if the given bits_per_sample fits in u8.