riff-media.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* GStreamer RIFF I/O
  2. * Copyright (C) 2003 Ronald Bultje <[email protected]>
  3. *
  4. * riff-media.h: RIFF-id to/from caps routines
  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., 51 Franklin St, Fifth Floor,
  19. * Boston, MA 02110-1301, USA.
  20. */
  21. #ifndef __GST_RIFF_MEDIA_H__
  22. #define __GST_RIFF_MEDIA_H__
  23. #include <glib.h>
  24. #include <gst/gst.h>
  25. #include "riff-ids.h"
  26. G_BEGIN_DECLS
  27. /*
  28. * Create caos. strh/strf, strf/strd_data and codec_name can be NULL.
  29. */
  30. GstCaps * gst_riff_create_video_caps (guint32 codec_fcc,
  31. gst_riff_strh * strh,
  32. gst_riff_strf_vids * strf,
  33. GstBuffer * strf_data,
  34. GstBuffer * strd_data,
  35. char ** codec_name);
  36. GstCaps * gst_riff_create_audio_caps (guint16 codec_id,
  37. gst_riff_strh * strh,
  38. gst_riff_strf_auds * strf,
  39. GstBuffer * strf_data,
  40. GstBuffer * strd_data,
  41. char ** codec_name,
  42. gint channel_reorder_map[18]);
  43. GstCaps * gst_riff_create_iavs_caps (guint32 codec_fcc,
  44. gst_riff_strh * strh,
  45. gst_riff_strf_iavs * strf,
  46. GstBuffer * strf_data,
  47. GstBuffer * strd_data,
  48. char ** codec_name);
  49. /*
  50. * Create template caps (includes all known types).
  51. */
  52. GstCaps * gst_riff_create_video_template_caps (void);
  53. GstCaps * gst_riff_create_audio_template_caps (void);
  54. GstCaps * gst_riff_create_iavs_template_caps (void);
  55. G_END_DECLS
  56. #endif /* __GST_RIFF_READ_H__ */