|
1 /* GStreamer RIFF I/O |
|
2 * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net> |
|
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., 59 Temple Place - Suite 330, |
|
19 * Boston, MA 02111-1307, USA. |
|
20 */ |
|
21 |
|
22 #ifndef __GST_RIFF_MEDIA_H__ |
|
23 #define __GST_RIFF_MEDIA_H__ |
|
24 |
|
25 #include <glib.h> |
|
26 #include <gst/gst.h> |
|
27 #include "riff-ids.h" |
|
28 |
|
29 G_BEGIN_DECLS |
|
30 |
|
31 /* |
|
32 * Create caos. strh/strf, strf/strd_data and codec_name can be NULL. |
|
33 */ |
|
34 #ifdef __SYMBIAN32__ |
|
35 IMPORT_C |
|
36 #endif |
|
37 |
|
38 |
|
39 GstCaps * gst_riff_create_video_caps (guint32 codec_fcc, |
|
40 gst_riff_strh * strh, |
|
41 gst_riff_strf_vids * strf, |
|
42 GstBuffer * strf_data, |
|
43 GstBuffer * strd_data, |
|
44 char ** codec_name); |
|
45 #ifdef __SYMBIAN32__ |
|
46 IMPORT_C |
|
47 #endif |
|
48 |
|
49 |
|
50 GstCaps * gst_riff_create_audio_caps (guint16 codec_id, |
|
51 gst_riff_strh * strh, |
|
52 gst_riff_strf_auds * strf, |
|
53 GstBuffer * strf_data, |
|
54 GstBuffer * strd_data, |
|
55 char ** codec_name); |
|
56 #ifdef __SYMBIAN32__ |
|
57 IMPORT_C |
|
58 #endif |
|
59 |
|
60 |
|
61 GstCaps * gst_riff_create_iavs_caps (guint32 codec_fcc, |
|
62 gst_riff_strh * strh, |
|
63 gst_riff_strf_iavs * strf, |
|
64 GstBuffer * strf_data, |
|
65 GstBuffer * strd_data, |
|
66 char ** codec_name); |
|
67 /* |
|
68 * Create template caps (includes all known types). |
|
69 */ |
|
70 #ifdef __SYMBIAN32__ |
|
71 IMPORT_C |
|
72 #endif |
|
73 |
|
74 |
|
75 GstCaps * gst_riff_create_video_template_caps (void); |
|
76 #ifdef __SYMBIAN32__ |
|
77 IMPORT_C |
|
78 #endif |
|
79 |
|
80 GstCaps * gst_riff_create_audio_template_caps (void); |
|
81 #ifdef __SYMBIAN32__ |
|
82 IMPORT_C |
|
83 #endif |
|
84 |
|
85 GstCaps * gst_riff_create_iavs_template_caps (void); |
|
86 |
|
87 G_END_DECLS |
|
88 |
|
89 #endif /* __GST_RIFF_READ_H__ */ |