Function libjxl_sys::JxlDecoderDefaultPixelFormat
source · [−]pub unsafe extern "C" fn JxlDecoderDefaultPixelFormat(
dec: *const JxlDecoder,
format: *mut JxlPixelFormat
) -> JxlDecoderStatus
Expand description
Get the default pixel format for this decoder.
Requires that the decoder can produce JxlBasicInfo.
@param dec @ref 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 @ref JXL_DEC_SUCCESS if no error, @ref JXL_DEC_NEED_MORE_INPUT if the basic info isn’t yet available, and @ref JXL_DEC_ERROR otherwise.