| 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 "libavutil/cpu.h" |
| 21 #include "libavcodec/avcodec.h" | 22 #include "libavcodec/avcodec.h" |
| 22 #include "libavcodec/dsputil.h" | 23 #include "libavcodec/dsputil.h" |
| 23 #include "libavcodec/mpegvideo.h" | 24 #include "libavcodec/mpegvideo.h" |
| 24 #include "mpegvideo_arm.h" | 25 #include "mpegvideo_arm.h" |
| 25 | 26 |
| 26 static void dct_unquantize_h263_intra_iwmmxt(MpegEncContext *s, | 27 static void dct_unquantize_h263_intra_iwmmxt(MpegEncContext *s, |
| 27 DCTELEM *block, int n, int qscale) | 28 DCTELEM *block, int n, int qscale) |
| 28 { | 29 { |
| 29 int level, qmul, qadd; | 30 int level, qmul, qadd; |
| 30 int nCoeffs; | 31 int nCoeffs; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 nCoeffs=63; | 105 nCoeffs=63; |
| 105 else | 106 else |
| 106 nCoeffs= s->inter_scantable.raster_end[ s->block_last_index[n] ]; | 107 nCoeffs= s->inter_scantable.raster_end[ s->block_last_index[n] ]; |
| 107 | 108 |
| 108 ippiQuantInvInter_Compact_H263_16s_I(block, nCoeffs+1, qscale); | 109 ippiQuantInvInter_Compact_H263_16s_I(block, nCoeffs+1, qscale); |
| 109 } | 110 } |
| 110 #endif | 111 #endif |
| 111 | 112 |
| 112 void MPV_common_init_iwmmxt(MpegEncContext *s) | 113 void MPV_common_init_iwmmxt(MpegEncContext *s) |
| 113 { | 114 { |
| 114 if (!(mm_flags & FF_MM_IWMMXT)) return; | 115 if (!(mm_flags & AV_CPU_FLAG_IWMMXT)) return; |
| 115 | 116 |
| 116 s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_iwmmxt; | 117 s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_iwmmxt; |
| 117 #if 0 | 118 #if 0 |
| 118 s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_iwmmxt; | 119 s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_iwmmxt; |
| 119 #endif | 120 #endif |
| 120 } | 121 } |
| OLD | NEW |