1 /* GStreamer base utils library codec-specific utility functions
2 * Copyright (C) 2010 Arun Raghavan <arun.raghavan@collabora.co.uk>
3 * 2010 Collabora Multimedia
4 * 2010 Nokia Corporation
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef __GST_PB_UTILS_CODEC_UTILS_H__
23 #define __GST_PB_UTILS_CODEC_UTILS_H__
31 guint gst_codec_utils_aac_get_sample_rate_from_index (guint sr_idx);
33 const gchar * gst_codec_utils_aac_get_profile (const guint8 * audio_config, guint len);
35 const gchar * gst_codec_utils_aac_get_level (const guint8 * audio_config, guint len);
37 gboolean gst_codec_utils_aac_caps_set_level_and_profile (GstCaps * caps,
38 const guint8 * audio_config,
43 const gchar * gst_codec_utils_h264_get_profile (const guint8 * sps, guint len);
45 const gchar * gst_codec_utils_h264_get_level (const guint8 * sps, guint len);
47 guint8 gst_codec_utils_h264_get_level_idc (const gchar * level);
49 gboolean gst_codec_utils_h264_caps_set_level_and_profile (GstCaps * caps,
55 const gchar * gst_codec_utils_mpeg4video_get_profile (const guint8 * vis_obj_seq, guint len);
57 const gchar * gst_codec_utils_mpeg4video_get_level (const guint8 * vis_obj_seq, guint len);
59 gboolean gst_codec_utils_mpeg4video_caps_set_level_and_profile (GstCaps * caps,
60 const guint8 * vis_obj_seq,
65 #endif /* __GST_PB_UTILS_CODEC_UTILS_H__ */