Skip to main content

JxlEncoderFrameSettingsSetOption

Function JxlEncoderFrameSettingsSetOption 

Source
pub unsafe extern "C" fn JxlEncoderFrameSettingsSetOption(
    frame_settings: *mut JxlEncoderFrameSettings,
    option: JxlEncoderFrameSettingId,
    value: i64,
) -> JxlEncoderStatus
Expand description

Sets a frame-specific option of integer type to the encoder options. The @ref JxlEncoderFrameSettingId argument determines which option is set.

@param frame_settings set of options and metadata for this frame. Also includes reference to the encoder object. @param option ID of the option to set. @param value Integer value to set for this option. @return ::JXL_ENC_SUCCESS if the operation was successful, @ref JXL_ENC_ERROR in case of an error, such as invalid or unknown option id, or invalid integer value for the given option. If an error is returned, the state of the @ref JxlEncoderFrameSettings object is still valid and is the same as before this function was called.