Image module

jpeg_sync_restart

procedureextensionsince 0.28.0Source

Called between restart intervals: drops the buffered bits and finds the next RSTn marker. expected is the number (0..7) the next restart marker should carry; skipped returns how many whole intervals were lost when the marker found is further ahead. False when the entropy data has no further restart marker (the scan is over).

jpeg_sync_restart :: (d: *Jpeg_Decoder, expected: *s32, skipped: *s32) -> bool

Parameters

expected: *s32
skipped: *s32

Returns

bool

See also