descriptions.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. #ifndef __GST_PB_UTILS_DESCRIPTIONS_H__
  20. #define __GST_PB_UTILS_DESCRIPTIONS_H__
  21. #include <gst/gsttaglist.h>
  22. #include <gst/gstcaps.h>
  23. G_BEGIN_DECLS
  24. /*
  25. * functions for use by demuxers or decoders to add CODEC tags to tag lists
  26. * from caps
  27. */
  28. gboolean gst_pb_utils_add_codec_description_to_tag_list (GstTagList * taglist,
  29. const gchar * codec_tag,
  30. const GstCaps * caps);
  31. gchar * gst_pb_utils_get_codec_description (const GstCaps * caps);
  32. /*
  33. * functions mainly used by the missing plugins message creation functions to
  34. * find descriptions of what exactly is missing
  35. */
  36. gchar * gst_pb_utils_get_source_description (const gchar * protocol);
  37. gchar * gst_pb_utils_get_sink_description (const gchar * protocol);
  38. gchar * gst_pb_utils_get_decoder_description (const GstCaps * caps);
  39. gchar * gst_pb_utils_get_encoder_description (const GstCaps * caps);
  40. gchar * gst_pb_utils_get_element_description (const gchar * factory_name);
  41. G_END_DECLS
  42. #endif /* __GST_PB_UTILS_DESCRIPTIONS_H__ */