pub unsafe extern "C-unwind" fn JxlDecoderRewind(dec: *mut JxlDecoder)Expand description
Rewinds decoder to the beginning. The same input must be given again from
the beginning of the file and the decoder will emit events from the beginning
again. When rewinding (as opposed to JxlDecoderReset), the decoder can
keep state about the image, which it can use to skip to a requested frame
more efficiently with JxlDecoderSkipFrames. Settings such as parallel
runner or subscribed events are kept. After rewind, JxlDecoderSubscribeEvents
can be used again, and it is feasible to leave out events that were already
handled before, such as JxlDecoderStatus::BasicInfo and JxlDecoderStatus::ColorEncoding,
since they will provide the same information as before.
The difference to JxlDecoderReset is that some state is kept, namely
settings set by a call to
JxlDecoderSetCoalescing,JxlDecoderSetDesiredIntensityTarget,JxlDecoderSetDecompressBoxes,JxlDecoderSetKeepOrientation,JxlDecoderSetUnpremultiplyAlpha,JxlDecoderSetParallelRunner,JxlDecoderSetRenderSpotcolors, andJxlDecoderSubscribeEvents.
ยงParameters
dec: decoder object