typefinding: add AAC level to ADTS caps
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 12 Apr 2010 12:33:18 +0000 (13:33 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 12 Apr 2010 14:04:31 +0000 (15:04 +0100)
commit43a04483d9e4f9dce2dd9351f548ceb4262601ad
treedf2872011c259532eec3568f0565ee0dc0f05727
parent34dcb8458e2dfee37f83e0a3bf37195a4d503bb2
typefinding: add AAC level to ADTS caps

This adds code to calculate the level for a given AAC stream and export
it in the stream caps. For AAC LC streams, the level is calculated
according to the definition under the AAC Profile. For other streams,
the definition under the Main Profile is used.

HE-AAC support is still to be done, and is dependent on detecting the
presence of SBR and PS in the stream.

Level is added as a field of type string because that's the way it's
done in H.264 caps as well. There are only a few possible levels, so
not using a numerical type is not too painful in this case, and
consistency is nice.

Fixes #613589.
gst/typefind/Makefile.am
gst/typefind/gstaacutil.c [new file with mode: 0644]
gst/typefind/gstaacutil.h [new file with mode: 0644]
gst/typefind/gsttypefindfunctions.c