pub unsafe extern "C" fn JxlDecoderFlushImage(
    dec: *mut JxlDecoder
) -> JxlDecoderStatus
Expand description

Outputs progressive step towards the decoded image so far when only partial input was received. If the flush was successful, the buffer set with @ref JxlDecoderSetImageOutBuffer will contain partial image data.

Can be called when @ref JxlDecoderProcessInput returns @ref JXL_DEC_NEED_MORE_INPUT, after the @ref JXL_DEC_FRAME event already occurred and before the @ref JXL_DEC_FULL_IMAGE event occurred for a frame.

@param dec decoder object @return @ref JXL_DEC_SUCCESS if image data was flushed to the output buffer, or @ref JXL_DEC_ERROR when no flush was done, e.g. if not enough image data was available yet even for flush, or no output buffer was set yet. This error is not fatal, it only indicates no flushed image is available right now. Regular decoding can still be performed.