Skip to main content

JxlDecoderSetPreferredColorProfile

Function JxlDecoderSetPreferredColorProfile 

Source
pub unsafe extern "C" fn JxlDecoderSetPreferredColorProfile(
    dec: *mut JxlDecoder,
    color_encoding: *const JxlColorEncoding,
) -> JxlDecoderStatus
Expand description

Sets the desired output color profile of the decoded image by calling @ref JxlDecoderSetOutputColorProfile, passing on @c color_encoding and setting @c icc_data to NULL. See @ref JxlDecoderSetOutputColorProfile for details.

@param dec decoder object @param color_encoding the default color encoding to set @return ::JXL_DEC_SUCCESS if the preference was set successfully, @ref JXL_DEC_ERROR otherwise.