Skip to main content

Module sample

Module sample 

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