Mercurial > libavcodec.hg
annotate h263.h @ 8130:c45366b01126 libavcodec
ARM: fix j_rev_dct_ARM
This is a bugfix for ARMv4 assembly implementation of 'j_rev_dct'
function.
The problem was in the incorrect partially empty row detection. Even
if the first two coefficients in the row were nonzero, it handled this
just like the case with only the first nonzero coefficient.
Now this function produces exactly the same output as the stripped
down reference C version of 'j_rev_dct' (with the nested checks like
'if (d6) { if (d2) { ...' always evaluated as true, avoiding shortcut
branches).
author | mru |
---|---|
date | Wed, 12 Nov 2008 20:23:36 +0000 |
parents | c4a4495715dd |
children | 68e959302527 |
rev | line source |
---|---|
5277
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
1 /* |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
2 * H263/MPEG4 backend for ffmpeg encoder and decoder |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
3 * copyright (c) 2007 Aurelien Jacobs <aurel@gnuage.org> |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
4 * |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
5 * This file is part of FFmpeg. |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
6 * |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
7 * FFmpeg is free software; you can redistribute it and/or |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
8 * modify it under the terms of the GNU Lesser General Public |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
9 * License as published by the Free Software Foundation; either |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
10 * version 2.1 of the License, or (at your option) any later version. |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
11 * |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
12 * FFmpeg is distributed in the hope that it will be useful, |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
15 * Lesser General Public License for more details. |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
16 * |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
17 * You should have received a copy of the GNU Lesser General Public |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
18 * License along with FFmpeg; if not, write to the Free Software |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
20 */ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
21 |
7760 | 22 #ifndef AVCODEC_H263_H |
23 #define AVCODEC_H263_H | |
5277
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
24 |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
25 #include "config.h" |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
26 #include "msmpeg4.h" |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
27 |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
28 #define ENABLE_ANY_H263_DECODER (ENABLE_H263_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
29 ENABLE_H263I_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
30 ENABLE_FLV_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
31 ENABLE_RV10_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
32 ENABLE_RV20_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
33 ENABLE_MPEG4_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
34 ENABLE_MSMPEG4_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
35 ENABLE_WMV_DECODER) |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
36 #define ENABLE_ANY_H263_ENCODER (ENABLE_H263_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
37 ENABLE_H263P_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
38 ENABLE_FLV_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
39 ENABLE_RV10_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
40 ENABLE_RV20_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
41 ENABLE_MPEG4_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
42 ENABLE_MSMPEG4_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
43 ENABLE_WMV_ENCODER) |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
44 #define ENABLE_ANY_H263 (ENABLE_ANY_H263_DECODER || ENABLE_ANY_H263_ENCODER) |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
45 |
7760 | 46 #endif /* AVCODEC_H263_H */ |