• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer base utils library source/sink/codec description support
2  * Copyright (C) 2006 Tim-Philipp Müller <tim centricular net>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef __GST_PB_UTILS_DESCRIPTIONS_H__
21 #define __GST_PB_UTILS_DESCRIPTIONS_H__
22 
23 #include <gst/gsttaglist.h>
24 #include <gst/gstcaps.h>
25 #include <gst/pbutils/pbutils-prelude.h>
26 
27 G_BEGIN_DECLS
28 
29 /*
30  * functions for use by demuxers or decoders to add CODEC tags to tag lists
31  * from caps
32  */
33 
34 GST_PBUTILS_API
35 gboolean   gst_pb_utils_add_codec_description_to_tag_list (GstTagList    * taglist,
36                                                              const gchar   * codec_tag,
37                                                              const GstCaps * caps);
38 
39 GST_PBUTILS_API
40 gchar    * gst_pb_utils_get_codec_description (const GstCaps * caps);
41 
42 /*
43  * functions mainly used by the missing plugins message creation functions to
44  * find descriptions of what exactly is missing
45  */
46 
47 GST_PBUTILS_API
48 gchar    * gst_pb_utils_get_source_description (const gchar * protocol);
49 
50 GST_PBUTILS_API
51 gchar    * gst_pb_utils_get_sink_description (const gchar * protocol);
52 
53 GST_PBUTILS_API
54 gchar    * gst_pb_utils_get_decoder_description (const GstCaps * caps);
55 
56 GST_PBUTILS_API
57 gchar    * gst_pb_utils_get_encoder_description (const GstCaps * caps);
58 
59 GST_PBUTILS_API
60 gchar    * gst_pb_utils_get_element_description (const gchar * factory_name);
61 
62 
63 G_END_DECLS
64 
65 #endif /* __GST_PB_UTILS_DESCRIPTIONS_H__ */
66 
67