Skip to main content

JxlEncoderFrameSettingsSetFloatOption

Function JxlEncoderFrameSettingsSetFloatOption 

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

Sets a frame-specific option of float 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 Float 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.