annotate raw.c @ 6447:ef0ad6df55b2 libavformat

move raw video demuxer to its own file
author aurel
date Mon, 30 Aug 2010 22:53:16 +0000
parents 659a7e022950
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
885
da1d5db0ce5c COSMETICS: Remove all trailing whitespace.
diego
parents: 868
diff changeset
1 /*
1415
3b00fb8ef8e4 replace coder/decoder file description in libavformat by muxer/demuxer
aurel
parents: 1399
diff changeset
2 * RAW muxer and demuxer
4251
77e0c7511d41 cosmetics: Remove pointless period after copyright statement non-sentences.
diego
parents: 4206
diff changeset
3 * Copyright (c) 2001 Fabrice Bellard
868
c6b1dde68f3a Ingenient MJPEG support, more at http://www.artificis.hu/files/texts/ingenient.txt
alex
parents: 858
diff changeset
4 * Copyright (c) 2005 Alex Beregszaszi
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
5 *
1358
0899bfe4105c Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 1245
diff changeset
6 * This file is part of FFmpeg.
0899bfe4105c Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 1245
diff changeset
7 *
0899bfe4105c Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 1245
diff changeset
8 * FFmpeg is free software; you can redistribute it and/or
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
9 * modify it under the terms of the GNU Lesser General Public
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
10 * License as published by the Free Software Foundation; either
1358
0899bfe4105c Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 1245
diff changeset
11 * version 2.1 of the License, or (at your option) any later version.
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
12 *
1358
0899bfe4105c Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 1245
diff changeset
13 * FFmpeg is distributed in the hope that it will be useful,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
16 * Lesser General Public License for more details.
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
17 *
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
18 * You should have received a copy of the GNU Lesser General Public
1358
0899bfe4105c Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 1245
diff changeset
19 * License along with FFmpeg; if not, write to the Free Software
896
edbe5c3717f9 Update licensing information: The FSF changed postal address.
diego
parents: 887
diff changeset
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
21 */
3286
6f61c3b36632 Use full path for #includes from another directory.
diego
parents: 3274
diff changeset
22
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
23 #include "avformat.h"
2545
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents: 2368
diff changeset
24 #include "raw.h"
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
25
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
26 /* simple formats */
1078
0bc9422cc0ad Raw flac muxer, patch by Justin Ruggles (jruggle earthlink net). Can be
banan
parents: 1070
diff changeset
27
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
28 #if CONFIG_MUXERS
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
29 int ff_raw_write_packet(AVFormatContext *s, AVPacket *pkt)
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
30 {
2771
d52c718e83f9 Use dynamically allocated ByteIOContext in AVFormatContext
andoma
parents: 2545
diff changeset
31 put_buffer(s->pb, pkt->data, pkt->size);
d52c718e83f9 Use dynamically allocated ByteIOContext in AVFormatContext
andoma
parents: 2545
diff changeset
32 put_flush_packet(s->pb);
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
33 return 0;
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
34 }
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
35 #endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
36
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
37 #if CONFIG_DEMUXERS
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
38 /* raw input */
6445
4aaed59641ff move pcm demuxers to their own file
aurel
parents: 6443
diff changeset
39 int ff_raw_read_header(AVFormatContext *s, AVFormatParameters *ap)
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
40 {
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
41 AVStream *st;
5360
a00cc1aac80d Use enum instead of integer types where appropriate.
cehoyos
parents: 5263
diff changeset
42 enum CodecID id;
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
43
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
44 st = av_new_stream(s, 0);
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
45 if (!st)
2273
7eb456c4ed8a Replace all occurrences of AVERROR_NOMEM with AVERROR(ENOMEM).
takis
parents: 2231
diff changeset
46 return AVERROR(ENOMEM);
1003
2d57ce58f576 simplify AVFormatParameters NULL checks
michael
parents: 985
diff changeset
47
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
48 id = s->iformat->value;
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
49 if (id == CODEC_ID_RAWVIDEO) {
5910
536e5527c1e0 Define AVMediaType enum, and use it instead of enum CodecType, which
stefano
parents: 5657
diff changeset
50 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
51 } else {
5910
536e5527c1e0 Define AVMediaType enum, and use it instead of enum CodecType, which
stefano
parents: 5657
diff changeset
52 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
53 }
820
feca73904e67 changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
michael
parents: 814
diff changeset
54 st->codec->codec_id = id;
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
55
820
feca73904e67 changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
michael
parents: 814
diff changeset
56 switch(st->codec->codec_type) {
5910
536e5527c1e0 Define AVMediaType enum, and use it instead of enum CodecType, which
stefano
parents: 5657
diff changeset
57 case AVMEDIA_TYPE_AUDIO:
820
feca73904e67 changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
michael
parents: 814
diff changeset
58 st->codec->sample_rate = ap->sample_rate;
3995
fcff303d5c8c Assume mono if no other information for raw.
michael
parents: 3973
diff changeset
59 if(ap->channels) st->codec->channels = ap->channels;
fcff303d5c8c Assume mono if no other information for raw.
michael
parents: 3973
diff changeset
60 else st->codec->channels = 1;
4857
18acfe3fe3d5 fix 6 channels raw pcm demuxing, raw pcm now demux a fixed number of samples
bcoudurier
parents: 4751
diff changeset
61 st->codec->bits_per_coded_sample = av_get_bits_per_sample(st->codec->codec_id);
18acfe3fe3d5 fix 6 channels raw pcm demuxing, raw pcm now demux a fixed number of samples
bcoudurier
parents: 4751
diff changeset
62 assert(st->codec->bits_per_coded_sample > 0);
18acfe3fe3d5 fix 6 channels raw pcm demuxing, raw pcm now demux a fixed number of samples
bcoudurier
parents: 4751
diff changeset
63 st->codec->block_align = st->codec->bits_per_coded_sample*st->codec->channels/8;
820
feca73904e67 changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
michael
parents: 814
diff changeset
64 av_set_pts_info(st, 64, 1, st->codec->sample_rate);
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
65 break;
5910
536e5527c1e0 Define AVMediaType enum, and use it instead of enum CodecType, which
stefano
parents: 5657
diff changeset
66 case AVMEDIA_TYPE_VIDEO:
2860
cf6976fdd05f Do not force fps unless the user actually specified one.
michael
parents: 2771
diff changeset
67 if(ap->time_base.num)
cf6976fdd05f Do not force fps unless the user actually specified one.
michael
parents: 2771
diff changeset
68 av_set_pts_info(st, 64, ap->time_base.num, ap->time_base.den);
cf6976fdd05f Do not force fps unless the user actually specified one.
michael
parents: 2771
diff changeset
69 else
cf6976fdd05f Do not force fps unless the user actually specified one.
michael
parents: 2771
diff changeset
70 av_set_pts_info(st, 64, 1, 25);
820
feca73904e67 changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
michael
parents: 814
diff changeset
71 st->codec->width = ap->width;
feca73904e67 changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
michael
parents: 814
diff changeset
72 st->codec->height = ap->height;
feca73904e67 changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
michael
parents: 814
diff changeset
73 st->codec->pix_fmt = ap->pix_fmt;
feca73904e67 changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
michael
parents: 814
diff changeset
74 if(st->codec->pix_fmt == PIX_FMT_NONE)
feca73904e67 changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
michael
parents: 814
diff changeset
75 st->codec->pix_fmt= PIX_FMT_YUV420P;
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
76 break;
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
77 default:
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
78 return -1;
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
79 }
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
80 return 0;
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
81 }
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
82
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
83 #define RAW_PACKET_SIZE 1024
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
84
4610
41542d2edcf4 Separate the raw FLAC demuxer from raw.c and put in a new file,
jbr
parents: 4577
diff changeset
85 int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
389
e14fcd57ad2f decode latency patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
michael
parents: 306
diff changeset
86 {
e14fcd57ad2f decode latency patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
michael
parents: 306
diff changeset
87 int ret, size;
e14fcd57ad2f decode latency patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
michael
parents: 306
diff changeset
88
e14fcd57ad2f decode latency patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
michael
parents: 306
diff changeset
89 size = RAW_PACKET_SIZE;
e14fcd57ad2f decode latency patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
michael
parents: 306
diff changeset
90
e14fcd57ad2f decode latency patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
michael
parents: 306
diff changeset
91 if (av_new_packet(pkt, size) < 0)
5245
30c093f11b4e av_new_packet failing should return ENOMEM, not EIO.
reimar
parents: 5238
diff changeset
92 return AVERROR(ENOMEM);
885
da1d5db0ce5c COSMETICS: Remove all trailing whitespace.
diego
parents: 868
diff changeset
93
2771
d52c718e83f9 Use dynamically allocated ByteIOContext in AVFormatContext
andoma
parents: 2545
diff changeset
94 pkt->pos= url_ftell(s->pb);
389
e14fcd57ad2f decode latency patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
michael
parents: 306
diff changeset
95 pkt->stream_index = 0;
2771
d52c718e83f9 Use dynamically allocated ByteIOContext in AVFormatContext
andoma
parents: 2545
diff changeset
96 ret = get_partial_buffer(s->pb, pkt->data, size);
5254
83cc2a571542 Return any error return values from av_get_packet, get_buffer etc. unchanged
reimar
parents: 5249
diff changeset
97 if (ret < 0) {
389
e14fcd57ad2f decode latency patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
michael
parents: 306
diff changeset
98 av_free_packet(pkt);
5254
83cc2a571542 Return any error return values from av_get_packet, get_buffer etc. unchanged
reimar
parents: 5249
diff changeset
99 return ret;
389
e14fcd57ad2f decode latency patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
michael
parents: 306
diff changeset
100 }
e14fcd57ad2f decode latency patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
michael
parents: 306
diff changeset
101 pkt->size = ret;
e14fcd57ad2f decode latency patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
michael
parents: 306
diff changeset
102 return ret;
e14fcd57ad2f decode latency patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
michael
parents: 306
diff changeset
103 }
e14fcd57ad2f decode latency patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
michael
parents: 306
diff changeset
104
6429
3e32902d7025 move DTS demuxer to its own file
aurel
parents: 6428
diff changeset
105 int ff_raw_audio_read_header(AVFormatContext *s,
3268
319c36da904b set demuxers .value and use common audio_read_header function
bcoudurier
parents: 3238
diff changeset
106 AVFormatParameters *ap)
63
8329ba7cbd01 raw ac3 auto detects parameters
bellard
parents: 49
diff changeset
107 {
3268
319c36da904b set demuxers .value and use common audio_read_header function
bcoudurier
parents: 3238
diff changeset
108 AVStream *st = av_new_stream(s, 0);
686
e2687b784c3a shorten decoder by (Jeff Muizelaar <jrmuizel gmail com>)
michael
parents: 637
diff changeset
109 if (!st)
2273
7eb456c4ed8a Replace all occurrences of AVERROR_NOMEM with AVERROR(ENOMEM).
takis
parents: 2231
diff changeset
110 return AVERROR(ENOMEM);
5910
536e5527c1e0 Define AVMediaType enum, and use it instead of enum CodecType, which
stefano
parents: 5657
diff changeset
111 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
3268
319c36da904b set demuxers .value and use common audio_read_header function
bcoudurier
parents: 3238
diff changeset
112 st->codec->codec_id = s->iformat->value;
2023
a3e79d6e4e3c add an enum for need_parsing
aurel
parents: 2022
diff changeset
113 st->need_parsing = AVSTREAM_PARSE_FULL;
931
7420a756dc7a read/write adts aac
mru
parents: 930
diff changeset
114 /* the parameters will be extracted from the compressed bitstream */
4285
d8803d0a4274 Handle ID3v2 tags in raw FLAC streams by skipping them.
jbr
parents: 4254
diff changeset
115
931
7420a756dc7a read/write adts aac
mru
parents: 930
diff changeset
116 return 0;
7420a756dc7a read/write adts aac
mru
parents: 930
diff changeset
117 }
7420a756dc7a read/write adts aac
mru
parents: 930
diff changeset
118
3725
900a232fc55e cosmetics: misc spelling fixes
diego
parents: 3613
diff changeset
119 /* MPEG-1/H.263 input */
6430
d3a51b32b769 move ingenient demuxer to its own file
aurel
parents: 6429
diff changeset
120 int ff_raw_video_read_header(AVFormatContext *s,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
121 AVFormatParameters *ap)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
122 {
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
123 AVStream *st;
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
124
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
125 st = av_new_stream(s, 0);
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
126 if (!st)
2273
7eb456c4ed8a Replace all occurrences of AVERROR_NOMEM with AVERROR(ENOMEM).
takis
parents: 2231
diff changeset
127 return AVERROR(ENOMEM);
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
128
5910
536e5527c1e0 Define AVMediaType enum, and use it instead of enum CodecType, which
stefano
parents: 5657
diff changeset
129 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
820
feca73904e67 changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
michael
parents: 814
diff changeset
130 st->codec->codec_id = s->iformat->value;
2023
a3e79d6e4e3c add an enum for need_parsing
aurel
parents: 2022
diff changeset
131 st->need_parsing = AVSTREAM_PARSE_FULL;
306
e7a8d4dd8e14 seek support for PCM formats
bellard
parents: 277
diff changeset
132
3725
900a232fc55e cosmetics: misc spelling fixes
diego
parents: 3613
diff changeset
133 /* for MJPEG, specify frame rate */
900a232fc55e cosmetics: misc spelling fixes
diego
parents: 3613
diff changeset
134 /* for MPEG-4 specify it, too (most MPEG-4 streams do not have the fixed_vop_rate set ...)*/
1003
2d57ce58f576 simplify AVFormatParameters NULL checks
michael
parents: 985
diff changeset
135 if (ap->time_base.num) {
4620
290808c90f82 Change the timebase of the raw demuxer to one that can represent the ts of fields.
michael
parents: 4610
diff changeset
136 st->codec->time_base= ap->time_base;
885
da1d5db0ce5c COSMETICS: Remove all trailing whitespace.
diego
parents: 868
diff changeset
137 } else if ( st->codec->codec_id == CODEC_ID_MJPEG ||
820
feca73904e67 changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
michael
parents: 814
diff changeset
138 st->codec->codec_id == CODEC_ID_MPEG4 ||
3272
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
139 st->codec->codec_id == CODEC_ID_DIRAC ||
5451
c0f40f4293cd Add CODEC_ID_DNXHD into the 25 fps case.
michael
parents: 5425
diff changeset
140 st->codec->codec_id == CODEC_ID_DNXHD ||
6120
a2a55244ca6b Fix raw vc1 decoding - this is supposed to break FATE.
cehoyos
parents: 5910
diff changeset
141 st->codec->codec_id == CODEC_ID_VC1 ||
820
feca73904e67 changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
michael
parents: 814
diff changeset
142 st->codec->codec_id == CODEC_ID_H264) {
4620
290808c90f82 Change the timebase of the raw demuxer to one that can represent the ts of fields.
michael
parents: 4610
diff changeset
143 st->codec->time_base= (AVRational){1,25};
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
144 }
4620
290808c90f82 Change the timebase of the raw demuxer to one that can represent the ts of fields.
michael
parents: 4610
diff changeset
145 av_set_pts_info(st, 64, 1, 1200000);
745
a03f1f7497ad always honor the user specified frame rate if set
michael
parents: 743
diff changeset
146
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
147 return 0;
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
148 }
3730
ee001685e4e5 Surround format-specific functions with matching preprocessor conditionals.
diego
parents: 3729
diff changeset
149 #endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
150
3545
2949f7da8931 Add a note to remind people to add new raw formats to the Makefile.
diego
parents: 3543
diff changeset
151 /* Note: Do not forget to add new entries to the Makefile as well. */
2949f7da8931 Add a note to remind people to add new raw formats to the Makefile.
diego
parents: 3543
diff changeset
152
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
153 #if CONFIG_AC3_MUXER
1167
d89d7ef290da give AVInput/OutputFormat structs consistent names
mru
parents: 1121
diff changeset
154 AVOutputFormat ac3_muxer = {
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
155 "ac3",
3424
7a0230981402 Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents: 3405
diff changeset
156 NULL_IF_CONFIG_SMALL("raw AC-3"),
885
da1d5db0ce5c COSMETICS: Remove all trailing whitespace.
diego
parents: 868
diff changeset
157 "audio/x-ac3",
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
158 "ac3",
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
159 0,
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
160 CODEC_ID_AC3,
3289
811c78fac294 Replace some occurrences of 0 with CODEC_ID_NONE.
cehoyos
parents: 3286
diff changeset
161 CODEC_ID_NONE,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
162 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
163 ff_raw_write_packet,
1245
e59b75051ded dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents: 1169
diff changeset
164 .flags= AVFMT_NOTIMESTAMPS,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
165 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
166 #endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
167
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
168 #if CONFIG_DIRAC_MUXER
3272
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
169 AVOutputFormat dirac_muxer = {
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
170 "dirac",
3424
7a0230981402 Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents: 3405
diff changeset
171 NULL_IF_CONFIG_SMALL("raw Dirac"),
3272
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
172 NULL,
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
173 "drc",
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
174 0,
3289
811c78fac294 Replace some occurrences of 0 with CODEC_ID_NONE.
cehoyos
parents: 3286
diff changeset
175 CODEC_ID_NONE,
3272
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
176 CODEC_ID_DIRAC,
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
177 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
178 ff_raw_write_packet,
3272
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
179 .flags= AVFMT_NOTIMESTAMPS,
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
180 };
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
181 #endif
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
182
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
183 #if CONFIG_DNXHD_MUXER
4004
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
184 AVOutputFormat dnxhd_muxer = {
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
185 "dnxhd",
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
186 NULL_IF_CONFIG_SMALL("raw DNxHD (SMPTE VC-3)"),
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
187 NULL,
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
188 "dnxhd",
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
189 0,
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
190 CODEC_ID_NONE,
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
191 CODEC_ID_DNXHD,
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
192 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
193 ff_raw_write_packet,
4004
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
194 .flags= AVFMT_NOTIMESTAMPS,
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
195 };
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
196 #endif
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
197
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
198 #if CONFIG_DTS_MUXER
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
199 AVOutputFormat dts_muxer = {
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
200 "dts",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
201 NULL_IF_CONFIG_SMALL("raw DTS"),
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
202 "audio/x-dca",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
203 "dts",
931
7420a756dc7a read/write adts aac
mru
parents: 930
diff changeset
204 0,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
205 CODEC_ID_DTS,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
206 CODEC_ID_NONE,
931
7420a756dc7a read/write adts aac
mru
parents: 930
diff changeset
207 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
208 ff_raw_write_packet,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
209 .flags= AVFMT_NOTIMESTAMPS,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
210 };
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
211 #endif
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
212
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
213 #if CONFIG_EAC3_MUXER
3862
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
214 AVOutputFormat eac3_muxer = {
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
215 "eac3",
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
216 NULL_IF_CONFIG_SMALL("raw E-AC-3"),
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
217 "audio/x-eac3",
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
218 "eac3",
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
219 0,
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
220 CODEC_ID_EAC3,
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
221 CODEC_ID_NONE,
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
222 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
223 ff_raw_write_packet,
3862
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
224 .flags= AVFMT_NOTIMESTAMPS,
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
225 };
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
226 #endif
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
227
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
228 #if CONFIG_GSM_DEMUXER
3269
55d4f01c9728 raw GSM demuxer (does not work yet as parser is missing)
michael
parents: 3268
diff changeset
229 AVInputFormat gsm_demuxer = {
55d4f01c9728 raw GSM demuxer (does not work yet as parser is missing)
michael
parents: 3268
diff changeset
230 "gsm",
4501
3e5b9c1a413e Make format long_names consistent.
diego
parents: 4293
diff changeset
231 NULL_IF_CONFIG_SMALL("raw GSM"),
3269
55d4f01c9728 raw GSM demuxer (does not work yet as parser is missing)
michael
parents: 3268
diff changeset
232 0,
55d4f01c9728 raw GSM demuxer (does not work yet as parser is missing)
michael
parents: 3268
diff changeset
233 NULL,
6429
3e32902d7025 move DTS demuxer to its own file
aurel
parents: 6428
diff changeset
234 ff_raw_audio_read_header,
4610
41542d2edcf4 Separate the raw FLAC demuxer from raw.c and put in a new file,
jbr
parents: 4577
diff changeset
235 ff_raw_read_partial_packet,
3269
55d4f01c9728 raw GSM demuxer (does not work yet as parser is missing)
michael
parents: 3268
diff changeset
236 .flags= AVFMT_GENERIC_INDEX,
55d4f01c9728 raw GSM demuxer (does not work yet as parser is missing)
michael
parents: 3268
diff changeset
237 .extensions = "gsm",
55d4f01c9728 raw GSM demuxer (does not work yet as parser is missing)
michael
parents: 3268
diff changeset
238 .value = CODEC_ID_GSM,
55d4f01c9728 raw GSM demuxer (does not work yet as parser is missing)
michael
parents: 3268
diff changeset
239 };
3729
ed875181c3fa Surround AVInputFormat declarations with format-specific #ifdefs.
diego
parents: 3728
diff changeset
240 #endif
3269
55d4f01c9728 raw GSM demuxer (does not work yet as parser is missing)
michael
parents: 3268
diff changeset
241
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
242 #if CONFIG_H261_MUXER
1167
d89d7ef290da give AVInput/OutputFormat structs consistent names
mru
parents: 1121
diff changeset
243 AVOutputFormat h261_muxer = {
576
f701ba509d0c H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents: 567
diff changeset
244 "h261",
3424
7a0230981402 Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents: 3405
diff changeset
245 NULL_IF_CONFIG_SMALL("raw H.261"),
576
f701ba509d0c H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents: 567
diff changeset
246 "video/x-h261",
f701ba509d0c H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents: 567
diff changeset
247 "h261",
f701ba509d0c H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents: 567
diff changeset
248 0,
3289
811c78fac294 Replace some occurrences of 0 with CODEC_ID_NONE.
cehoyos
parents: 3286
diff changeset
249 CODEC_ID_NONE,
576
f701ba509d0c H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents: 567
diff changeset
250 CODEC_ID_H261,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
251 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
252 ff_raw_write_packet,
1245
e59b75051ded dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents: 1169
diff changeset
253 .flags= AVFMT_NOTIMESTAMPS,
576
f701ba509d0c H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents: 567
diff changeset
254 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
255 #endif
576
f701ba509d0c H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents: 567
diff changeset
256
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
257 #if CONFIG_H263_MUXER
1167
d89d7ef290da give AVInput/OutputFormat structs consistent names
mru
parents: 1121
diff changeset
258 AVOutputFormat h263_muxer = {
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
259 "h263",
3424
7a0230981402 Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents: 3405
diff changeset
260 NULL_IF_CONFIG_SMALL("raw H.263"),
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
261 "video/x-h263",
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
262 "h263",
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
263 0,
3289
811c78fac294 Replace some occurrences of 0 with CODEC_ID_NONE.
cehoyos
parents: 3286
diff changeset
264 CODEC_ID_NONE,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
265 CODEC_ID_H263,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
266 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
267 ff_raw_write_packet,
1245
e59b75051ded dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents: 1169
diff changeset
268 .flags= AVFMT_NOTIMESTAMPS,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
269 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
270 #endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
271
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
272 #if CONFIG_H264_MUXER
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
273 AVOutputFormat h264_muxer = {
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
274 "h264",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
275 NULL_IF_CONFIG_SMALL("raw H.264 video format"),
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
276 NULL,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
277 "h264",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
278 0,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
279 CODEC_ID_NONE,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
280 CODEC_ID_H264,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
281 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
282 ff_raw_write_packet,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
283 .flags= AVFMT_NOTIMESTAMPS,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
284 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
285 #endif
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
286
6320
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
287 #if CONFIG_CAVSVIDEO_MUXER
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
288 AVOutputFormat cavsvideo_muxer = {
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
289 "cavsvideo",
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
290 NULL_IF_CONFIG_SMALL("raw Chinese AVS video"),
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
291 NULL,
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
292 "cavs",
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
293 0,
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
294 CODEC_ID_NONE,
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
295 CODEC_ID_CAVS,
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
296 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
297 ff_raw_write_packet,
6320
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
298 .flags= AVFMT_NOTIMESTAMPS,
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
299 };
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
300 #endif
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
301
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
302 #if CONFIG_M4V_MUXER
1167
d89d7ef290da give AVInput/OutputFormat structs consistent names
mru
parents: 1121
diff changeset
303 AVOutputFormat m4v_muxer = {
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
304 "m4v",
3424
7a0230981402 Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents: 3405
diff changeset
305 NULL_IF_CONFIG_SMALL("raw MPEG-4 video format"),
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
306 NULL,
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
307 "m4v",
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
308 0,
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
309 CODEC_ID_NONE,
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
310 CODEC_ID_MPEG4,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
311 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
312 ff_raw_write_packet,
1245
e59b75051ded dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents: 1169
diff changeset
313 .flags= AVFMT_NOTIMESTAMPS,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
314 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
315 #endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
316
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
317 #if CONFIG_MJPEG_DEMUXER
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
318 AVInputFormat mjpeg_demuxer = {
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
319 "mjpeg",
4501
3e5b9c1a413e Make format long_names consistent.
diego
parents: 4293
diff changeset
320 NULL_IF_CONFIG_SMALL("raw MJPEG video"),
100
fa3ebf0d0270 H264 decoder & demuxer
michaelni
parents: 85
diff changeset
321 0,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
322 NULL,
6430
d3a51b32b769 move ingenient demuxer to its own file
aurel
parents: 6429
diff changeset
323 ff_raw_video_read_header,
4610
41542d2edcf4 Separate the raw FLAC demuxer from raw.c and put in a new file,
jbr
parents: 4577
diff changeset
324 ff_raw_read_partial_packet,
1756
5d72afc6c8aa better generic index building and seeking code
michael
parents: 1463
diff changeset
325 .flags= AVFMT_GENERIC_INDEX,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
326 .extensions = "mjpg,mjpeg",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
327 .value = CODEC_ID_MJPEG,
100
fa3ebf0d0270 H264 decoder & demuxer
michaelni
parents: 85
diff changeset
328 };
3729
ed875181c3fa Surround AVInputFormat declarations with format-specific #ifdefs.
diego
parents: 3728
diff changeset
329 #endif
100
fa3ebf0d0270 H264 decoder & demuxer
michaelni
parents: 85
diff changeset
330
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
331 #if CONFIG_MJPEG_MUXER
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
332 AVOutputFormat mjpeg_muxer = {
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
333 "mjpeg",
4501
3e5b9c1a413e Make format long_names consistent.
diego
parents: 4293
diff changeset
334 NULL_IF_CONFIG_SMALL("raw MJPEG video"),
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
335 "video/x-mjpeg",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
336 "mjpg,mjpeg",
100
fa3ebf0d0270 H264 decoder & demuxer
michaelni
parents: 85
diff changeset
337 0,
fa3ebf0d0270 H264 decoder & demuxer
michaelni
parents: 85
diff changeset
338 CODEC_ID_NONE,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
339 CODEC_ID_MJPEG,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
340 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
341 ff_raw_write_packet,
1245
e59b75051ded dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents: 1169
diff changeset
342 .flags= AVFMT_NOTIMESTAMPS,
100
fa3ebf0d0270 H264 decoder & demuxer
michaelni
parents: 85
diff changeset
343 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
344 #endif
100
fa3ebf0d0270 H264 decoder & demuxer
michaelni
parents: 85
diff changeset
345
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
346 #if CONFIG_MLP_DEMUXER
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
347 AVInputFormat mlp_demuxer = {
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
348 "mlp",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
349 NULL_IF_CONFIG_SMALL("raw MLP"),
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
350 0,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
351 NULL,
6429
3e32902d7025 move DTS demuxer to its own file
aurel
parents: 6428
diff changeset
352 ff_raw_audio_read_header,
4610
41542d2edcf4 Separate the raw FLAC demuxer from raw.c and put in a new file,
jbr
parents: 4577
diff changeset
353 ff_raw_read_partial_packet,
1756
5d72afc6c8aa better generic index building and seeking code
michael
parents: 1463
diff changeset
354 .flags= AVFMT_GENERIC_INDEX,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
355 .extensions = "mlp",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
356 .value = CODEC_ID_MLP,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
357 };
3729
ed875181c3fa Surround AVInputFormat declarations with format-specific #ifdefs.
diego
parents: 3728
diff changeset
358 #endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
359
4901
62d8279280a8 It should be #if, not #ifdef
andoma
parents: 4899
diff changeset
360 #if CONFIG_MLP_MUXER
4899
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
361 AVOutputFormat mlp_muxer = {
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
362 "mlp",
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
363 NULL_IF_CONFIG_SMALL("raw MLP"),
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
364 NULL,
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
365 "mlp",
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
366 0,
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
367 CODEC_ID_MLP,
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
368 CODEC_ID_NONE,
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
369 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
370 ff_raw_write_packet,
4899
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
371 .flags= AVFMT_NOTIMESTAMPS,
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
372 };
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
373 #endif
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
374
6308
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
375 #if CONFIG_SRT_MUXER
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
376 AVOutputFormat srt_muxer = {
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
377 .name = "srt",
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
378 .long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle format"),
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
379 .mime_type = "application/x-subrip",
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
380 .extensions = "srt",
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
381 .write_packet = ff_raw_write_packet,
6308
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
382 .flags = AVFMT_NOTIMESTAMPS,
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
383 .subtitle_codec = CODEC_ID_SRT,
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
384 };
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
385 #endif
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
386
4751
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
387 #if CONFIG_TRUEHD_DEMUXER
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
388 AVInputFormat truehd_demuxer = {
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
389 "truehd",
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
390 NULL_IF_CONFIG_SMALL("raw TrueHD"),
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
391 0,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
392 NULL,
6429
3e32902d7025 move DTS demuxer to its own file
aurel
parents: 6428
diff changeset
393 ff_raw_audio_read_header,
4751
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
394 ff_raw_read_partial_packet,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
395 .flags= AVFMT_GENERIC_INDEX,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
396 .extensions = "thd",
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
397 .value = CODEC_ID_TRUEHD,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
398 };
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
399 #endif
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
400
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
401 #if CONFIG_TRUEHD_MUXER
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
402 AVOutputFormat truehd_muxer = {
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
403 "truehd",
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
404 NULL_IF_CONFIG_SMALL("raw TrueHD"),
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
405 NULL,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
406 "thd",
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
407 0,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
408 CODEC_ID_TRUEHD,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
409 CODEC_ID_NONE,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
410 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
411 ff_raw_write_packet,
4751
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
412 .flags= AVFMT_NOTIMESTAMPS,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
413 };
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
414 #endif
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
415
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
416 #if CONFIG_MPEG1VIDEO_MUXER
1167
d89d7ef290da give AVInput/OutputFormat structs consistent names
mru
parents: 1121
diff changeset
417 AVOutputFormat mpeg1video_muxer = {
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
418 "mpeg1video",
4501
3e5b9c1a413e Make format long_names consistent.
diego
parents: 4293
diff changeset
419 NULL_IF_CONFIG_SMALL("raw MPEG-1 video"),
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
420 "video/x-mpeg",
814
731af78f150d .m1v and .m2a (feature req #1178960)
michael
parents: 808
diff changeset
421 "mpg,mpeg,m1v",
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
422 0,
3289
811c78fac294 Replace some occurrences of 0 with CODEC_ID_NONE.
cehoyos
parents: 3286
diff changeset
423 CODEC_ID_NONE,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
424 CODEC_ID_MPEG1VIDEO,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
425 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
426 ff_raw_write_packet,
1245
e59b75051ded dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents: 1169
diff changeset
427 .flags= AVFMT_NOTIMESTAMPS,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
428 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
429 #endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
430
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
431 #if CONFIG_MPEG2VIDEO_MUXER
1167
d89d7ef290da give AVInput/OutputFormat structs consistent names
mru
parents: 1121
diff changeset
432 AVOutputFormat mpeg2video_muxer = {
637
76e36d97a27a Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents: 576
diff changeset
433 "mpeg2video",
4501
3e5b9c1a413e Make format long_names consistent.
diego
parents: 4293
diff changeset
434 NULL_IF_CONFIG_SMALL("raw MPEG-2 video"),
637
76e36d97a27a Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents: 576
diff changeset
435 NULL,
76e36d97a27a Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents: 576
diff changeset
436 "m2v",
76e36d97a27a Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents: 576
diff changeset
437 0,
3289
811c78fac294 Replace some occurrences of 0 with CODEC_ID_NONE.
cehoyos
parents: 3286
diff changeset
438 CODEC_ID_NONE,
637
76e36d97a27a Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents: 576
diff changeset
439 CODEC_ID_MPEG2VIDEO,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
440 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
441 ff_raw_write_packet,
1245
e59b75051ded dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents: 1169
diff changeset
442 .flags= AVFMT_NOTIMESTAMPS,
637
76e36d97a27a Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents: 576
diff changeset
443 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
444 #endif
637
76e36d97a27a Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents: 576
diff changeset
445
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
446 #if CONFIG_RAWVIDEO_MUXER
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
447 AVOutputFormat rawvideo_muxer = {
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
448 "rawvideo",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
449 NULL_IF_CONFIG_SMALL("raw video format"),
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
450 NULL,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
451 "yuv,rgb",
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
452 0,
3289
811c78fac294 Replace some occurrences of 0 with CODEC_ID_NONE.
cehoyos
parents: 3286
diff changeset
453 CODEC_ID_NONE,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
454 CODEC_ID_RAWVIDEO,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
455 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
456 ff_raw_write_packet,
1245
e59b75051ded dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents: 1169
diff changeset
457 .flags= AVFMT_NOTIMESTAMPS,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
458 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
459 #endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
460
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
461 #if CONFIG_SHORTEN_DEMUXER
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
462 AVInputFormat shorten_demuxer = {
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
463 "shn",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
464 NULL_IF_CONFIG_SMALL("raw Shorten"),
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
465 0,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
466 NULL,
6429
3e32902d7025 move DTS demuxer to its own file
aurel
parents: 6428
diff changeset
467 ff_raw_audio_read_header,
4610
41542d2edcf4 Separate the raw FLAC demuxer from raw.c and put in a new file,
jbr
parents: 4577
diff changeset
468 ff_raw_read_partial_packet,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
469 .flags= AVFMT_GENERIC_INDEX,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
470 .extensions = "shn",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
471 .value = CODEC_ID_SHORTEN,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
472 };
3729
ed875181c3fa Surround AVInputFormat declarations with format-specific #ifdefs.
diego
parents: 3728
diff changeset
473 #endif
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
474
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
475 #if CONFIG_VC1_DEMUXER
1773
4b8313d5b23b Raw VC-1 demuxer
kostya
parents: 1768
diff changeset
476 AVInputFormat vc1_demuxer = {
4b8313d5b23b Raw VC-1 demuxer
kostya
parents: 1768
diff changeset
477 "vc1",
3424
7a0230981402 Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents: 3405
diff changeset
478 NULL_IF_CONFIG_SMALL("raw VC-1"),
1773
4b8313d5b23b Raw VC-1 demuxer
kostya
parents: 1768
diff changeset
479 0,
4b8313d5b23b Raw VC-1 demuxer
kostya
parents: 1768
diff changeset
480 NULL /* vc1_probe */,
6430
d3a51b32b769 move ingenient demuxer to its own file
aurel
parents: 6429
diff changeset
481 ff_raw_video_read_header,
4610
41542d2edcf4 Separate the raw FLAC demuxer from raw.c and put in a new file,
jbr
parents: 4577
diff changeset
482 ff_raw_read_partial_packet,
1773
4b8313d5b23b Raw VC-1 demuxer
kostya
parents: 1768
diff changeset
483 .extensions = "vc1",
4b8313d5b23b Raw VC-1 demuxer
kostya
parents: 1768
diff changeset
484 .value = CODEC_ID_VC1,
4b8313d5b23b Raw VC-1 demuxer
kostya
parents: 1768
diff changeset
485 };
3729
ed875181c3fa Surround AVInputFormat declarations with format-specific #ifdefs.
diego
parents: 3728
diff changeset
486 #endif