OLD | NEW |
1 /* | 1 /* |
2 * copyright (c) 2004 AGAWA Koji | 2 * copyright (c) 2004 AGAWA Koji |
3 * | 3 * |
4 * This file is part of FFmpeg. | 4 * This file is part of FFmpeg. |
5 * | 5 * |
6 * FFmpeg is free software; you can redistribute it and/or | 6 * FFmpeg is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2.1 of the License, or (at your option) any later version. | 9 * version 2.1 of the License, or (at your option) any later version. |
10 * | 10 * |
11 * FFmpeg is distributed in the hope that it will be useful, | 11 * FFmpeg is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Lesser General Public License for more details. | 14 * Lesser General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU Lesser General Public | 16 * You should have received a copy of the GNU Lesser General Public |
17 * License along with FFmpeg; if not, write to the Free Software | 17 * License along with FFmpeg; if not, write to the Free Software |
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
19 */ | 19 */ |
20 | 20 |
21 #include "libavcodec/avcodec.h" | 21 #include "libavcodec/avcodec.h" |
22 #include "libavcodec/dsputil.h" | 22 #include "libavcodec/dsputil.h" |
23 #include "libavcodec/mpegvideo.h" | 23 #include "libavcodec/mpegvideo.h" |
| 24 #include "mpegvideo_arm.h" |
24 | 25 |
25 static void dct_unquantize_h263_intra_iwmmxt(MpegEncContext *s, | 26 static void dct_unquantize_h263_intra_iwmmxt(MpegEncContext *s, |
26 DCTELEM *block, int n, int qscale) | 27 DCTELEM *block, int n, int qscale) |
27 { | 28 { |
28 int level, qmul, qadd; | 29 int level, qmul, qadd; |
29 int nCoeffs; | 30 int nCoeffs; |
30 DCTELEM *block_orig = block; | 31 DCTELEM *block_orig = block; |
31 | 32 |
32 assert(s->block_last_index[n]>=0); | 33 assert(s->block_last_index[n]>=0); |
33 | 34 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 111 |
111 void MPV_common_init_iwmmxt(MpegEncContext *s) | 112 void MPV_common_init_iwmmxt(MpegEncContext *s) |
112 { | 113 { |
113 if (!(mm_flags & FF_MM_IWMMXT)) return; | 114 if (!(mm_flags & FF_MM_IWMMXT)) return; |
114 | 115 |
115 s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_iwmmxt; | 116 s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_iwmmxt; |
116 #if 0 | 117 #if 0 |
117 s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_iwmmxt; | 118 s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_iwmmxt; |
118 #endif | 119 #endif |
119 } | 120 } |
OLD | NEW |