pub unsafe extern "C" fn JxlDecoderSetDCOutBuffer(
    dec: *mut JxlDecoder,
    format: *const JxlPixelFormat,
    buffer: *mut c_void,
    size: usize
) -> JxlDecoderStatus
Expand description

Sets the buffer to write the lower resolution (8x8 sub-sampled) DC image to. The size of the buffer must be at least as large as given by @ref JxlDecoderDCOutBufferSize. The buffer follows the format described by JxlPixelFormat. The DC image has dimensions ceil(xsize / 8) * ceil(ysize / 8). The buffer is owned by the caller.

@param dec decoder object @param format format of pixels. Object owned by user and its contents are copied internally. @param buffer buffer type to output the pixel data to @param size size of buffer in bytes @return @ref JXL_DEC_SUCCESS on success, @ref JXL_DEC_ERROR on error, such as size too small.

@deprecated The DC feature in this form will be removed. Use @ref JxlDecoderFlushImage for progressive rendering.