Mercurial > libavformat.hg
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 |
| rev | line source |
|---|---|
| 885 | 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 | 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 | 9 * modify it under the terms of the GNU Lesser General Public |
| 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 | 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 | 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 | |
|
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 | 21 */ |
| 3286 | 22 |
| 0 | 23 #include "avformat.h" |
|
2545
213268d7594e
move unrelated functions declarations out of allformats.h
aurel
parents:
2368
diff
changeset
|
24 #include "raw.h" |
| 0 | 25 |
| 26 /* simple formats */ | |
|
1078
0bc9422cc0ad
Raw flac muxer, patch by Justin Ruggles (jruggle earthlink net). Can be
banan
parents:
1070
diff
changeset
|
27 |
| 4206 | 28 #if CONFIG_MUXERS |
| 6425 | 29 int ff_raw_write_packet(AVFormatContext *s, AVPacket *pkt) |
| 0 | 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 | 33 return 0; |
| 34 } | |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
35 #endif |
| 0 | 36 |
| 4206 | 37 #if CONFIG_DEMUXERS |
| 0 | 38 /* raw input */ |
| 6445 | 39 int ff_raw_read_header(AVFormatContext *s, AVFormatParameters *ap) |
| 0 | 40 { |
| 41 AVStream *st; | |
|
5360
a00cc1aac80d
Use enum instead of integer types where appropriate.
cehoyos
parents:
5263
diff
changeset
|
42 enum CodecID id; |
| 0 | 43 |
| 44 st = av_new_stream(s, 0); | |
| 45 if (!st) | |
|
2273
7eb456c4ed8a
Replace all occurrences of AVERROR_NOMEM with AVERROR(ENOMEM).
takis
parents:
2231
diff
changeset
|
46 return AVERROR(ENOMEM); |
| 1003 | 47 |
| 0 | 48 id = s->iformat->value; |
| 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 | 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 | 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 | 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 | 59 if(ap->channels) st->codec->channels = ap->channels; |
| 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 | 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 | 76 break; |
| 77 default: | |
| 78 return -1; | |
| 79 } | |
| 80 return 0; | |
| 81 } | |
| 82 | |
| 83 #define RAW_PACKET_SIZE 1024 | |
| 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 | 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 | 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 | 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 | 113 st->need_parsing = AVSTREAM_PARSE_FULL; |
| 931 | 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 | 116 return 0; |
| 117 } | |
| 118 | |
| 3725 | 119 /* MPEG-1/H.263 input */ |
| 6430 | 120 int ff_raw_video_read_header(AVFormatContext *s, |
| 0 | 121 AVFormatParameters *ap) |
| 122 { | |
| 123 AVStream *st; | |
| 124 | |
| 125 st = av_new_stream(s, 0); | |
| 126 if (!st) | |
|
2273
7eb456c4ed8a
Replace all occurrences of AVERROR_NOMEM with AVERROR(ENOMEM).
takis
parents:
2231
diff
changeset
|
127 return AVERROR(ENOMEM); |
| 0 | 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 | 131 st->need_parsing = AVSTREAM_PARSE_FULL; |
| 306 | 132 |
| 3725 | 133 /* for MJPEG, specify frame rate */ |
| 134 /* for MPEG-4 specify it, too (most MPEG-4 streams do not have the fixed_vop_rate set ...)*/ | |
| 1003 | 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 | 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 | 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 | 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 | 146 |
| 0 | 147 return 0; |
| 148 } | |
|
3730
ee001685e4e5
Surround format-specific functions with matching preprocessor conditionals.
diego
parents:
3729
diff
changeset
|
149 #endif |
| 0 | 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 | 153 #if CONFIG_AC3_MUXER |
| 1167 | 154 AVOutputFormat ac3_muxer = { |
| 0 | 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 | 157 "audio/x-ac3", |
| 0 | 158 "ac3", |
| 159 0, | |
| 160 CODEC_ID_AC3, | |
| 3289 | 161 CODEC_ID_NONE, |
| 2305 | 162 NULL, |
| 6425 | 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 | 165 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
166 #endif |
| 0 | 167 |
| 4206 | 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 | 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 | 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 | 183 #if CONFIG_DNXHD_MUXER |
| 4004 | 184 AVOutputFormat dnxhd_muxer = { |
| 185 "dnxhd", | |
| 186 NULL_IF_CONFIG_SMALL("raw DNxHD (SMPTE VC-3)"), | |
| 187 NULL, | |
| 188 "dnxhd", | |
| 189 0, | |
| 190 CODEC_ID_NONE, | |
| 191 CODEC_ID_DNXHD, | |
| 192 NULL, | |
| 6425 | 193 ff_raw_write_packet, |
| 4004 | 194 .flags= AVFMT_NOTIMESTAMPS, |
| 195 }; | |
| 196 #endif | |
| 197 | |
| 4206 | 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 | 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 | 207 NULL, |
| 6425 | 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 | 213 #if CONFIG_EAC3_MUXER |
| 3862 | 214 AVOutputFormat eac3_muxer = { |
| 215 "eac3", | |
| 216 NULL_IF_CONFIG_SMALL("raw E-AC-3"), | |
| 217 "audio/x-eac3", | |
| 218 "eac3", | |
| 219 0, | |
| 220 CODEC_ID_EAC3, | |
| 221 CODEC_ID_NONE, | |
| 222 NULL, | |
| 6425 | 223 ff_raw_write_packet, |
| 3862 | 224 .flags= AVFMT_NOTIMESTAMPS, |
| 225 }; | |
| 226 #endif | |
| 227 | |
| 4206 | 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 | 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 | 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 | 242 #if CONFIG_H261_MUXER |
| 1167 | 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 | 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 | 251 NULL, |
| 6425 | 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 | 257 #if CONFIG_H263_MUXER |
| 1167 | 258 AVOutputFormat h263_muxer = { |
| 0 | 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 | 261 "video/x-h263", |
| 262 "h263", | |
| 263 0, | |
| 3289 | 264 CODEC_ID_NONE, |
| 0 | 265 CODEC_ID_H263, |
| 2305 | 266 NULL, |
| 6425 | 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 | 269 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
270 #endif |
| 0 | 271 |
| 4206 | 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 | 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 | 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 | 302 #if CONFIG_M4V_MUXER |
| 1167 | 303 AVOutputFormat m4v_muxer = { |
| 0 | 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 | 306 NULL, |
| 307 "m4v", | |
| 308 0, | |
| 309 CODEC_ID_NONE, | |
| 310 CODEC_ID_MPEG4, | |
| 2305 | 311 NULL, |
| 6425 | 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 | 314 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
315 #endif |
| 0 | 316 |
| 4206 | 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 | 320 NULL_IF_CONFIG_SMALL("raw MJPEG video"), |
| 100 | 321 0, |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
322 NULL, |
| 6430 | 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 | 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 | 328 }; |
|
3729
ed875181c3fa
Surround AVInputFormat declarations with format-specific #ifdefs.
diego
parents:
3728
diff
changeset
|
329 #endif |
| 100 | 330 |
| 4206 | 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 | 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 | 337 0, |
| 338 CODEC_ID_NONE, | |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
339 CODEC_ID_MJPEG, |
| 2305 | 340 NULL, |
| 6425 | 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 | 343 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
344 #endif |
| 100 | 345 |
| 4206 | 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 | 350 0, |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
351 NULL, |
| 6429 | 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 | 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 | 357 }; |
|
3729
ed875181c3fa
Surround AVInputFormat declarations with format-specific #ifdefs.
diego
parents:
3728
diff
changeset
|
358 #endif |
| 0 | 359 |
| 4901 | 360 #if CONFIG_MLP_MUXER |
| 4899 | 361 AVOutputFormat mlp_muxer = { |
| 362 "mlp", | |
| 363 NULL_IF_CONFIG_SMALL("raw MLP"), | |
| 364 NULL, | |
| 365 "mlp", | |
| 366 0, | |
| 367 CODEC_ID_MLP, | |
| 368 CODEC_ID_NONE, | |
| 369 NULL, | |
| 6425 | 370 ff_raw_write_packet, |
| 4899 | 371 .flags= AVFMT_NOTIMESTAMPS, |
| 372 }; | |
| 373 #endif | |
| 374 | |
| 6308 | 375 #if CONFIG_SRT_MUXER |
| 376 AVOutputFormat srt_muxer = { | |
| 377 .name = "srt", | |
| 378 .long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle format"), | |
| 379 .mime_type = "application/x-subrip", | |
| 380 .extensions = "srt", | |
| 6425 | 381 .write_packet = ff_raw_write_packet, |
| 6308 | 382 .flags = AVFMT_NOTIMESTAMPS, |
| 383 .subtitle_codec = CODEC_ID_SRT, | |
| 384 }; | |
| 385 #endif | |
| 386 | |
| 4751 | 387 #if CONFIG_TRUEHD_DEMUXER |
| 388 AVInputFormat truehd_demuxer = { | |
| 389 "truehd", | |
| 390 NULL_IF_CONFIG_SMALL("raw TrueHD"), | |
| 391 0, | |
| 392 NULL, | |
| 6429 | 393 ff_raw_audio_read_header, |
| 4751 | 394 ff_raw_read_partial_packet, |
| 395 .flags= AVFMT_GENERIC_INDEX, | |
| 396 .extensions = "thd", | |
| 397 .value = CODEC_ID_TRUEHD, | |
| 398 }; | |
| 399 #endif | |
| 400 | |
| 401 #if CONFIG_TRUEHD_MUXER | |
| 402 AVOutputFormat truehd_muxer = { | |
| 403 "truehd", | |
| 404 NULL_IF_CONFIG_SMALL("raw TrueHD"), | |
| 405 NULL, | |
| 406 "thd", | |
| 407 0, | |
| 408 CODEC_ID_TRUEHD, | |
| 409 CODEC_ID_NONE, | |
| 410 NULL, | |
| 6425 | 411 ff_raw_write_packet, |
| 4751 | 412 .flags= AVFMT_NOTIMESTAMPS, |
| 413 }; | |
| 414 #endif | |
| 415 | |
| 4206 | 416 #if CONFIG_MPEG1VIDEO_MUXER |
| 1167 | 417 AVOutputFormat mpeg1video_muxer = { |
| 0 | 418 "mpeg1video", |
| 4501 | 419 NULL_IF_CONFIG_SMALL("raw MPEG-1 video"), |
| 0 | 420 "video/x-mpeg", |
| 814 | 421 "mpg,mpeg,m1v", |
| 0 | 422 0, |
| 3289 | 423 CODEC_ID_NONE, |
| 0 | 424 CODEC_ID_MPEG1VIDEO, |
| 2305 | 425 NULL, |
| 6425 | 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 | 428 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
429 #endif |
| 0 | 430 |
| 4206 | 431 #if CONFIG_MPEG2VIDEO_MUXER |
| 1167 | 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 | 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 | 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 | 440 NULL, |
| 6425 | 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 | 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 | 452 0, |
| 3289 | 453 CODEC_ID_NONE, |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
454 CODEC_ID_RAWVIDEO, |
| 2305 | 455 NULL, |
| 6425 | 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 | 458 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
459 #endif |
| 0 | 460 |
| 4206 | 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 | 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 | 475 #if CONFIG_VC1_DEMUXER |
| 1773 | 476 AVInputFormat vc1_demuxer = { |
| 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 | 479 0, |
| 480 NULL /* vc1_probe */, | |
| 6430 | 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 | 483 .extensions = "vc1", |
| 484 .value = CODEC_ID_VC1, | |
| 485 }; | |
|
3729
ed875181c3fa
Surround AVInputFormat declarations with format-specific #ifdefs.
diego
parents:
3728
diff
changeset
|
486 #endif |
