Mercurial > libavcodec.hg
annotate mpegaudiodata.h @ 9915:f1707434e40b libavcodec
If the end of the input buffer is reached while decoding MJPEG and at least
a valid SOF was found, emulate an EOI.
This allows e.g. to at least decode the available part of incomplete MJPEG frames.
author | reimar |
---|---|
date | Sat, 04 Jul 2009 18:24:43 +0000 |
parents | e9d9d946f213 |
children | 7dd2a45249a9 |
rev | line source |
---|---|
5031
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
1 /* |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
2 * MPEG Audio common tables |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
3 * copyright (c) 2002 Fabrice Bellard |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
4 * |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
5 * This file is part of FFmpeg. |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
6 * |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
7 * FFmpeg is free software; you can redistribute it and/or |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
8 * modify it under the terms of the GNU Lesser General Public |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
9 * License as published by the Free Software Foundation; either |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
10 * version 2.1 of the License, or (at your option) any later version. |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
11 * |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
12 * FFmpeg is distributed in the hope that it will be useful, |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
15 * Lesser General Public License for more details. |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
16 * |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
17 * You should have received a copy of the GNU Lesser General Public |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
18 * License along with FFmpeg; if not, write to the Free Software |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
20 */ |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
21 |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
22 /** |
8718
e9d9d946f213
Use full internal pathname in doxygen @file directives.
diego
parents:
7760
diff
changeset
|
23 * @file libavcodec/mpegaudiodata.h |
5031
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
24 * mpeg audio layer common tables. |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
25 */ |
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
26 |
7760 | 27 #ifndef AVCODEC_MPEGAUDIODATA_H |
28 #define AVCODEC_MPEGAUDIODATA_H | |
5031
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
29 |
6763 | 30 #include "libavutil/common.h" |
5031
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
31 |
5886
85c4aca68be3
Move 2 defines from mpegaudiodec.c to mpegaudiodata.h to allow compilation
benoit
parents:
5830
diff
changeset
|
32 #define MODE_EXT_MS_STEREO 2 |
85c4aca68be3
Move 2 defines from mpegaudiodec.c to mpegaudiodata.h to allow compilation
benoit
parents:
5830
diff
changeset
|
33 #define MODE_EXT_I_STEREO 1 |
85c4aca68be3
Move 2 defines from mpegaudiodec.c to mpegaudiodata.h to allow compilation
benoit
parents:
5830
diff
changeset
|
34 |
5032 | 35 extern const uint16_t ff_mpa_bitrate_tab[2][3][15]; |
36 extern const uint16_t ff_mpa_freq_tab[3]; | |
37 extern const int32_t ff_mpa_enwindow[257]; | |
38 extern const int ff_mpa_sblimit_table[5]; | |
39 extern const int ff_mpa_quant_steps[17]; | |
40 extern const int ff_mpa_quant_bits[17]; | |
7129 | 41 extern const unsigned char * const ff_mpa_alloc_tables[5]; |
5031
70f194a2ee53
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
aurel
parents:
diff
changeset
|
42 |
7760 | 43 #endif /* AVCODEC_MPEGAUDIODATA_H */ |