Validates the transmitted band before table capture or entropy decoding. A refinement with Ah=2, Al=1 requires every selected coefficient's previous level to be 2.
Signature
jpeg_scan_mode :: (
d: *Jpeg_Decoder,
selected: *[4] s32,
count: s32,
ss: s32,
se: s32,
ah: s32,
al: s32
) -> (mode: s32, error: string)