pub unsafe extern "C" fn aom_codec_enc_config_default(
    iface: *const aom_codec_iface,
    cfg: *mut aom_codec_enc_cfg_t,
    usage: c_uint
) -> aom_codec_err_t
Expand description

Get the default configuration for a usage.

Initializes an encoder configuration structure with default values. Supports the notion of “usages” so that an algorithm may offer different default settings depending on the user’s intended goal. This function \ref SHOULD be called by all applications to initialize the configuration structure before specializing the configuration with application specific values.

\param[in] iface Pointer to the algorithm interface to use. \param[out] cfg Configuration buffer to populate. \param[in] usage Algorithm specific usage value. For AV1, must be set to AOM_USAGE_GOOD_QUALITY (0), AOM_USAGE_REALTIME (1), or AOM_USAGE_ALL_INTRA (2).

\retval #AOM_CODEC_OK The configuration was populated. \retval #AOM_CODEC_INCAPABLE Interface is not an encoder interface. \retval #AOM_CODEC_INVALID_PARAM A parameter was NULL, or the usage value was not recognized.