caps_set_level_and_profile


Description:

[ CCode ( cname = "gst_codec_utils_aac_caps_set_level_and_profile" ) ]
public bool caps_set_level_and_profile (Caps caps, uint8[] audio_config)

Sets the level and profile on caps if it can be determined from audio_config.

See get_level and get_profile 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 Caps to which level and profile fields are to be added

audio_config

a pointer to the AudioSpecificConfig as specified in the Elementary Stream Descriptor (esds) in ISO/IEC 14496-1. (See below for more details)

len

Length of audio_config in bytes

Returns:

true if the level and profile could be set, false otherwise.