pbutils: add H.264 profile/level extraction functions to codec utils
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 30 Apr 2010 15:20:09 +0000 (20:50 +0530)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 30 Sep 2010 12:09:29 +0000 (13:09 +0100)
commite4bd09f0ed3f33a202eac94149feb8452548f1ff
tree668bab36fb8a7f3e946e7b2bfe3887369cc5871f
parent0cf81938a160a9c16dc4903766dbea76f166ffe5
pbutils: add H.264 profile/level extraction functions to codec utils

This adds code to parse the first few bytes of H.264 sequence parameter
set in order to extract the profile and level as const strings. This
code was originally in both qtdemux and matroskademux.

https://bugzilla.gnome.org/show_bug.cgi?id=617314

API: gst_codec_utils_h264_get_level()
API: gst_codec_utils_h264_get_profile()
API: gst_codec_utils_h264_caps_set_level_and_profile()
gst-libs/gst/pbutils/codec-utils.c
gst-libs/gst/pbutils/codec-utils.h