Added gst-plugins-base-subtitles0.10-0.10.34 for Meego Harmattan 1.2
[mafwsubrenderer] / gst-plugins-base-subtitles0.10 / gst-libs / gst / pbutils / codec-utils.h
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
5  *
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.
10  *
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.
15  *
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.
20  */
21
22 #ifndef __GST_PB_UTILS_CODEC_UTILS_H__
23 #define __GST_PB_UTILS_CODEC_UTILS_H__
24
25 #include <gst/gst.h>
26
27 G_BEGIN_DECLS
28
29 /* AAC */
30
31 guint         gst_codec_utils_aac_get_sample_rate_from_index (guint sr_idx);
32
33 const gchar * gst_codec_utils_aac_get_profile (const guint8 * audio_config, guint len);
34
35 const gchar * gst_codec_utils_aac_get_level   (const guint8 * audio_config, guint len);
36
37 gboolean      gst_codec_utils_aac_caps_set_level_and_profile (GstCaps      * caps,
38                                                               const guint8 * audio_config,
39                                                               guint          len);
40
41 /* H.264 */
42
43 const gchar * gst_codec_utils_h264_get_profile (const guint8 * sps, guint len);
44
45 const gchar * gst_codec_utils_h264_get_level   (const guint8 * sps, guint len);
46
47 gboolean      gst_codec_utils_h264_caps_set_level_and_profile (GstCaps      * caps,
48                                                                const guint8 * sps,
49                                                                guint          len);
50
51 /* MPEG-4 part 2 */
52
53 const gchar * gst_codec_utils_mpeg4video_get_profile (const guint8 * vis_obj_seq, guint len);
54
55 const gchar * gst_codec_utils_mpeg4video_get_level   (const guint8 * vis_obj_seq, guint len);
56
57 gboolean      gst_codec_utils_mpeg4video_caps_set_level_and_profile (GstCaps      * caps,
58                                                                      const guint8 * vis_obj_seq,
59                                                                      guint          len);
60
61 G_END_DECLS
62
63 #endif /* __GST_PB_UTILS_CODEC_UTILS_H__ */