Function libjxl_sys::JxlDecoderDefaultPixelFormat [−][src]
pub unsafe extern "C" fn JxlDecoderDefaultPixelFormat(
dec: *const JxlDecoder,
format: *mut JxlPixelFormat
) -> JxlDecoderStatus
Get the default pixel format for this decoder.
Requires that the decoder can produce JxlBasicInfo.
@param dec JxlDecoder to query when creating the recommended pixel format. @param format JxlPixelFormat to populate with the recommended settings for the data loaded into this decoder. @return JXL_DEC_SUCCESS if no error, JXL_DEC_NEED_MORE_INPUT if the basic info isn’t yet available, and JXL_DEC_ERROR otherwise.