[][src]Function jpegxl_sys::JpegxlDecoderSetDCOutBuffer

pub unsafe extern "C" fn JpegxlDecoderSetDCOutBuffer(
    dec: *mut JpegxlDecoder,
    format: *const JpegxlPixelFormat,
    buffer: *mut c_void,
    size: size_t
) -> JpegxlDecoderStatus

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 JpegxlDecoderDCOutBufferSize. The buffer follows the format described by JpegxlPixelFormat. The DC image has dimensions ceil(sizex / 8) * ceil(sizey / 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 JPEGXL_DEC_SUCCESS on success, JPEGXL_DEC_ERROR on error, such as size too small.