1 /*
2 * RAW demuxers
3 * Copyright (c) 2001 Fabrice Bellard
4 * Copyright (c) 2005 Alex Beregszaszi
5 *
6 * This file is part of FFmpeg.
7 *
8 * FFmpeg is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * FFmpeg is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
31
32 #define RAW_PACKET_SIZE 1024
33
35 {
37
39
42
46 if (ret < 0) {
49 }
52 }
53
55 {
57 if (!st)
63 /* the parameters will be extracted from the compressed bitstream */
64
65 return 0;
66 }
67
68 /* MPEG-1/H.263 input */
70 {
74
75
77 if (!st) {
79 goto fail;
80 }
81
85
88
89 fail:
91 }
92
94 {
96 if (!st)
101 return 0;
102 }
103
104 /* Note: Do not forget to add new entries to the Makefile as well. */
105
106 #define OFFSET(x) offsetof(FFRawVideoDemuxerContext, x)
107 #define DEC AV_OPT_FLAG_DECODING_PARAM
110 { NULL },
111 };
112
113 #if CONFIG_DATA_DEMUXER
120 };
121 #endif
122
123 #if CONFIG_LATM_DEMUXER
130 .extensions = "latm",
132 };
133 #endif
134
135 #if CONFIG_MJPEG_DEMUXER
137 #endif
138
139 #if CONFIG_MLP_DEMUXER
146 .extensions = "mlp",
148 };
149 #endif
150
151 #if CONFIG_TRUEHD_DEMUXER
158 .extensions = "thd",
160 };
161 #endif
162
163 #if CONFIG_SHORTEN_DEMUXER
170 .extensions = "shn",
172 };
173 #endif
174
175 #if CONFIG_VC1_DEMUXER
177 #endif