codecUtilsAacCapsSetLevelAndProfile
fn
bool codecUtilsAacCapsSetLevelAndProfile(gst.caps.Caps caps, ubyte[] audioConfig)Sets the level and profile on caps if it can be determined from audio_config. See [gstpbutils.global.codecUtilsAacGetLevel] and [gstpbutils.global.codecUtilsAacGetProfile] for more details on the parameters. caps must be audio/mpeg caps with an "mpegversion" field of either 2 or 4. If mpegversion is 4, the "base-profile" field is also set in caps.
Parameters
caps | the #GstCaps to which level and profile fields are to be added |
audioConfig | a pointer to the AudioSpecificConfig as specified in the Elementary Stream Descriptor (esds) in ISO/IEC 14496-1. (See below for more details) |
Returns
true if the level and profile could be set, false otherwise.