annotate rawenc.c @ 6469:eb68008daac2 libavformat

Add a muxer and demuxer for raw G.722
author mstorsjo
date Thu, 09 Sep 2010 19:27:41 +0000
parents 4775a49a6045
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 /*
6448
4775a49a6045 split raw.c into rawdec.c and rawenc.c
aurel
parents: 6447
diff changeset
2 * RAW muxers
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"
6448
4775a49a6045 split raw.c into rawdec.c and rawenc.c
aurel
parents: 6447
diff changeset
24 #include "rawenc.h"
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
25
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
26 int ff_raw_write_packet(AVFormatContext *s, AVPacket *pkt)
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
27 {
2771
d52c718e83f9 Use dynamically allocated ByteIOContext in AVFormatContext
andoma
parents: 2545
diff changeset
28 put_buffer(s->pb, pkt->data, pkt->size);
d52c718e83f9 Use dynamically allocated ByteIOContext in AVFormatContext
andoma
parents: 2545
diff changeset
29 put_flush_packet(s->pb);
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
30 return 0;
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
31 }
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
32
3545
2949f7da8931 Add a note to remind people to add new raw formats to the Makefile.
diego
parents: 3543
diff changeset
33 /* 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
34
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
35 #if CONFIG_AC3_MUXER
1167
d89d7ef290da give AVInput/OutputFormat structs consistent names
mru
parents: 1121
diff changeset
36 AVOutputFormat ac3_muxer = {
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
37 "ac3",
3424
7a0230981402 Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents: 3405
diff changeset
38 NULL_IF_CONFIG_SMALL("raw AC-3"),
885
da1d5db0ce5c COSMETICS: Remove all trailing whitespace.
diego
parents: 868
diff changeset
39 "audio/x-ac3",
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
40 "ac3",
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
41 0,
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
42 CODEC_ID_AC3,
3289
811c78fac294 Replace some occurrences of 0 with CODEC_ID_NONE.
cehoyos
parents: 3286
diff changeset
43 CODEC_ID_NONE,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
44 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
45 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
46 .flags= AVFMT_NOTIMESTAMPS,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
47 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
48 #endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
49
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
50 #if CONFIG_DIRAC_MUXER
3272
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
51 AVOutputFormat dirac_muxer = {
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
52 "dirac",
3424
7a0230981402 Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents: 3405
diff changeset
53 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
54 NULL,
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
55 "drc",
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
56 0,
3289
811c78fac294 Replace some occurrences of 0 with CODEC_ID_NONE.
cehoyos
parents: 3286
diff changeset
57 CODEC_ID_NONE,
3272
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
58 CODEC_ID_DIRAC,
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
59 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
60 ff_raw_write_packet,
3272
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
61 .flags= AVFMT_NOTIMESTAMPS,
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
62 };
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
63 #endif
07038dc492ab Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents: 3269
diff changeset
64
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
65 #if CONFIG_DNXHD_MUXER
4004
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
66 AVOutputFormat dnxhd_muxer = {
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
67 "dnxhd",
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
68 NULL_IF_CONFIG_SMALL("raw DNxHD (SMPTE VC-3)"),
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
69 NULL,
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
70 "dnxhd",
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
71 0,
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
72 CODEC_ID_NONE,
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
73 CODEC_ID_DNXHD,
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
74 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
75 ff_raw_write_packet,
4004
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
76 .flags= AVFMT_NOTIMESTAMPS,
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
77 };
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
78 #endif
677bcb3b65cd raw dnxhd de/muxer
bcoudurier
parents: 3995
diff changeset
79
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
80 #if CONFIG_DTS_MUXER
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
81 AVOutputFormat dts_muxer = {
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
82 "dts",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
83 NULL_IF_CONFIG_SMALL("raw DTS"),
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
84 "audio/x-dca",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
85 "dts",
931
7420a756dc7a read/write adts aac
mru
parents: 930
diff changeset
86 0,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
87 CODEC_ID_DTS,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
88 CODEC_ID_NONE,
931
7420a756dc7a read/write adts aac
mru
parents: 930
diff changeset
89 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
90 ff_raw_write_packet,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
91 .flags= AVFMT_NOTIMESTAMPS,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
92 };
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
93 #endif
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
94
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
95 #if CONFIG_EAC3_MUXER
3862
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
96 AVOutputFormat eac3_muxer = {
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
97 "eac3",
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
98 NULL_IF_CONFIG_SMALL("raw E-AC-3"),
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
99 "audio/x-eac3",
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
100 "eac3",
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
101 0,
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
102 CODEC_ID_EAC3,
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
103 CODEC_ID_NONE,
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
104 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
105 ff_raw_write_packet,
3862
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
106 .flags= AVFMT_NOTIMESTAMPS,
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
107 };
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
108 #endif
c11ff84634b2 create a separate codec_id for E-AC-3
jbr
parents: 3757
diff changeset
109
6469
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
110 #if CONFIG_G722_MUXER
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
111 AVOutputFormat g722_muxer = {
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
112 "g722",
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
113 NULL_IF_CONFIG_SMALL("raw G.722"),
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
114 "audio/G722",
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
115 "g722",
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
116 0,
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
117 CODEC_ID_ADPCM_G722,
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
118 CODEC_ID_NONE,
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
119 NULL,
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
120 ff_raw_write_packet,
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
121 .flags= AVFMT_NOTIMESTAMPS,
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
122 };
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
123 #endif
eb68008daac2 Add a muxer and demuxer for raw G.722
mstorsjo
parents: 6448
diff changeset
124
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
125 #if CONFIG_H261_MUXER
1167
d89d7ef290da give AVInput/OutputFormat structs consistent names
mru
parents: 1121
diff changeset
126 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
127 "h261",
3424
7a0230981402 Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents: 3405
diff changeset
128 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
129 "video/x-h261",
f701ba509d0c H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents: 567
diff changeset
130 "h261",
f701ba509d0c H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents: 567
diff changeset
131 0,
3289
811c78fac294 Replace some occurrences of 0 with CODEC_ID_NONE.
cehoyos
parents: 3286
diff changeset
132 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
133 CODEC_ID_H261,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
134 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
135 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
136 .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
137 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
138 #endif
576
f701ba509d0c H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents: 567
diff changeset
139
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
140 #if CONFIG_H263_MUXER
1167
d89d7ef290da give AVInput/OutputFormat structs consistent names
mru
parents: 1121
diff changeset
141 AVOutputFormat h263_muxer = {
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
142 "h263",
3424
7a0230981402 Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents: 3405
diff changeset
143 NULL_IF_CONFIG_SMALL("raw H.263"),
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
144 "video/x-h263",
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
145 "h263",
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
146 0,
3289
811c78fac294 Replace some occurrences of 0 with CODEC_ID_NONE.
cehoyos
parents: 3286
diff changeset
147 CODEC_ID_NONE,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
148 CODEC_ID_H263,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
149 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
150 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
151 .flags= AVFMT_NOTIMESTAMPS,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
152 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
153 #endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
154
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
155 #if CONFIG_H264_MUXER
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
156 AVOutputFormat h264_muxer = {
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
157 "h264",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
158 NULL_IF_CONFIG_SMALL("raw H.264 video format"),
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
159 NULL,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
160 "h264",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
161 0,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
162 CODEC_ID_NONE,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
163 CODEC_ID_H264,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
164 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
165 ff_raw_write_packet,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
166 .flags= AVFMT_NOTIMESTAMPS,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
167 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
168 #endif
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
169
6320
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
170 #if CONFIG_CAVSVIDEO_MUXER
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
171 AVOutputFormat cavsvideo_muxer = {
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
172 "cavsvideo",
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
173 NULL_IF_CONFIG_SMALL("raw Chinese AVS video"),
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
174 NULL,
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
175 "cavs",
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
176 0,
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
177 CODEC_ID_NONE,
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
178 CODEC_ID_CAVS,
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
179 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
180 ff_raw_write_packet,
6320
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
181 .flags= AVFMT_NOTIMESTAMPS,
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
182 };
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
183 #endif
c12a0b951902 add Chinese AVS encoding via external library libxavs
stefang
parents: 6308
diff changeset
184
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
185 #if CONFIG_M4V_MUXER
1167
d89d7ef290da give AVInput/OutputFormat structs consistent names
mru
parents: 1121
diff changeset
186 AVOutputFormat m4v_muxer = {
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
187 "m4v",
3424
7a0230981402 Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents: 3405
diff changeset
188 NULL_IF_CONFIG_SMALL("raw MPEG-4 video format"),
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
189 NULL,
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
190 "m4v",
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
191 0,
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
192 CODEC_ID_NONE,
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
193 CODEC_ID_MPEG4,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
194 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
195 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
196 .flags= AVFMT_NOTIMESTAMPS,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
197 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
198 #endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
199
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
200 #if CONFIG_MJPEG_MUXER
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
201 AVOutputFormat mjpeg_muxer = {
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
202 "mjpeg",
4501
3e5b9c1a413e Make format long_names consistent.
diego
parents: 4293
diff changeset
203 NULL_IF_CONFIG_SMALL("raw MJPEG video"),
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
204 "video/x-mjpeg",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
205 "mjpg,mjpeg",
100
fa3ebf0d0270 H264 decoder & demuxer
michaelni
parents: 85
diff changeset
206 0,
fa3ebf0d0270 H264 decoder & demuxer
michaelni
parents: 85
diff changeset
207 CODEC_ID_NONE,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
208 CODEC_ID_MJPEG,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
209 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
210 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
211 .flags= AVFMT_NOTIMESTAMPS,
100
fa3ebf0d0270 H264 decoder & demuxer
michaelni
parents: 85
diff changeset
212 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
213 #endif
100
fa3ebf0d0270 H264 decoder & demuxer
michaelni
parents: 85
diff changeset
214
4901
62d8279280a8 It should be #if, not #ifdef
andoma
parents: 4899
diff changeset
215 #if CONFIG_MLP_MUXER
4899
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
216 AVOutputFormat mlp_muxer = {
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
217 "mlp",
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
218 NULL_IF_CONFIG_SMALL("raw MLP"),
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
219 NULL,
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
220 "mlp",
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
221 0,
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
222 CODEC_ID_MLP,
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
223 CODEC_ID_NONE,
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
224 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
225 ff_raw_write_packet,
4899
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
226 .flags= AVFMT_NOTIMESTAMPS,
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
227 };
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
228 #endif
52992e9a0109 Add raw MLP muxer.
ramiro
parents: 4872
diff changeset
229
6308
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
230 #if CONFIG_SRT_MUXER
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
231 AVOutputFormat srt_muxer = {
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
232 .name = "srt",
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
233 .long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle format"),
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
234 .mime_type = "application/x-subrip",
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
235 .extensions = "srt",
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
236 .write_packet = ff_raw_write_packet,
6308
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
237 .flags = AVFMT_NOTIMESTAMPS,
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
238 .subtitle_codec = CODEC_ID_SRT,
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
239 };
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
240 #endif
2b1ab404f1cf add SubRip muxer and demuxer
aurel
parents: 6144
diff changeset
241
4751
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
242 #if CONFIG_TRUEHD_MUXER
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
243 AVOutputFormat truehd_muxer = {
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
244 "truehd",
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
245 NULL_IF_CONFIG_SMALL("raw TrueHD"),
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
246 NULL,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
247 "thd",
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
248 0,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
249 CODEC_ID_TRUEHD,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
250 CODEC_ID_NONE,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
251 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
252 ff_raw_write_packet,
4751
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
253 .flags= AVFMT_NOTIMESTAMPS,
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
254 };
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
255 #endif
ffb7e8093289 Support raw TrueHD files
ramiro
parents: 4710
diff changeset
256
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
257 #if CONFIG_MPEG1VIDEO_MUXER
1167
d89d7ef290da give AVInput/OutputFormat structs consistent names
mru
parents: 1121
diff changeset
258 AVOutputFormat mpeg1video_muxer = {
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
259 "mpeg1video",
4501
3e5b9c1a413e Make format long_names consistent.
diego
parents: 4293
diff changeset
260 NULL_IF_CONFIG_SMALL("raw MPEG-1 video"),
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
261 "video/x-mpeg",
814
731af78f150d .m1v and .m2a (feature req #1178960)
michael
parents: 808
diff changeset
262 "mpg,mpeg,m1v",
0
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_MPEG1VIDEO,
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_MPEG2VIDEO_MUXER
1167
d89d7ef290da give AVInput/OutputFormat structs consistent names
mru
parents: 1121
diff changeset
273 AVOutputFormat mpeg2video_muxer = {
637
76e36d97a27a Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents: 576
diff changeset
274 "mpeg2video",
4501
3e5b9c1a413e Make format long_names consistent.
diego
parents: 4293
diff changeset
275 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
276 NULL,
76e36d97a27a Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents: 576
diff changeset
277 "m2v",
76e36d97a27a Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents: 576
diff changeset
278 0,
3289
811c78fac294 Replace some occurrences of 0 with CODEC_ID_NONE.
cehoyos
parents: 3286
diff changeset
279 CODEC_ID_NONE,
637
76e36d97a27a Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents: 576
diff changeset
280 CODEC_ID_MPEG2VIDEO,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
281 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
282 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
283 .flags= AVFMT_NOTIMESTAMPS,
637
76e36d97a27a Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents: 576
diff changeset
284 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
285 #endif
637
76e36d97a27a Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents: 576
diff changeset
286
4206
c3102b189cb6 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 4103
diff changeset
287 #if CONFIG_RAWVIDEO_MUXER
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
288 AVOutputFormat rawvideo_muxer = {
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
289 "rawvideo",
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
290 NULL_IF_CONFIG_SMALL("raw video format"),
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
291 NULL,
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
292 "yuv,rgb",
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
293 0,
3289
811c78fac294 Replace some occurrences of 0 with CODEC_ID_NONE.
cehoyos
parents: 3286
diff changeset
294 CODEC_ID_NONE,
3546
45c3d2b2b2fb Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents: 3545
diff changeset
295 CODEC_ID_RAWVIDEO,
2305
7843ebbe9b0a remove useless raw_write_header
bcoudurier
parents: 2304
diff changeset
296 NULL,
6425
61cc005602fc move id roq muxer to its own file
aurel
parents: 6424
diff changeset
297 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
298 .flags= AVFMT_NOTIMESTAMPS,
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
299 };
3726
514470f7afed cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents: 3725
diff changeset
300 #endif