Function libaom_sys::aom_codec_set_option
source · pub unsafe extern "C" fn aom_codec_set_option(
ctx: *mut aom_codec_ctx_t,
name: *const c_char,
value: *const c_char
) -> aom_codec_err_t
Expand description
Key & Value API
aom_codec_set_option() takes a context, a key (option name) and a value. If the context is non-null and an error occurs, ctx->err will be set to the same value as the return value.
\param[in] ctx Pointer to this instance’s context \param[in] name The name of the option (key) \param[in] value The value of the option
\retval #AOM_CODEC_OK The value of the option was set. \retval #AOM_CODEC_INVALID_PARAM The data was not valid. \retval #AOM_CODEC_ERROR The option was not successfully set.