Libav 0.7.1
|
00001 /* 00002 * ARM NEON optimised DSP functions 00003 * Copyright (c) 2008 Mans Rullgard <mans@mansr.com> 00004 * 00005 * This file is part of Libav. 00006 * 00007 * Libav is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * Libav is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with Libav; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00020 */ 00021 00022 #include <stdint.h> 00023 00024 #include "libavcodec/avcodec.h" 00025 #include "libavcodec/dsputil.h" 00026 #include "dsputil_arm.h" 00027 00028 void ff_simple_idct_neon(DCTELEM *data); 00029 void ff_simple_idct_put_neon(uint8_t *dest, int line_size, DCTELEM *data); 00030 void ff_simple_idct_add_neon(uint8_t *dest, int line_size, DCTELEM *data); 00031 00032 void ff_vp3_idct_neon(DCTELEM *data); 00033 void ff_vp3_idct_put_neon(uint8_t *dest, int line_size, DCTELEM *data); 00034 void ff_vp3_idct_add_neon(uint8_t *dest, int line_size, DCTELEM *data); 00035 void ff_vp3_idct_dc_add_neon(uint8_t *dest, int line_size, const DCTELEM *data); 00036 00037 void ff_clear_block_neon(DCTELEM *block); 00038 void ff_clear_blocks_neon(DCTELEM *blocks); 00039 00040 void ff_put_pixels16_neon(uint8_t *, const uint8_t *, int, int); 00041 void ff_put_pixels16_x2_neon(uint8_t *, const uint8_t *, int, int); 00042 void ff_put_pixels16_y2_neon(uint8_t *, const uint8_t *, int, int); 00043 void ff_put_pixels16_xy2_neon(uint8_t *, const uint8_t *, int, int); 00044 void ff_put_pixels8_neon(uint8_t *, const uint8_t *, int, int); 00045 void ff_put_pixels8_x2_neon(uint8_t *, const uint8_t *, int, int); 00046 void ff_put_pixels8_y2_neon(uint8_t *, const uint8_t *, int, int); 00047 void ff_put_pixels8_xy2_neon(uint8_t *, const uint8_t *, int, int); 00048 void ff_put_pixels16_x2_no_rnd_neon(uint8_t *, const uint8_t *, int, int); 00049 void ff_put_pixels16_y2_no_rnd_neon(uint8_t *, const uint8_t *, int, int); 00050 void ff_put_pixels16_xy2_no_rnd_neon(uint8_t *, const uint8_t *, int, int); 00051 void ff_put_pixels8_x2_no_rnd_neon(uint8_t *, const uint8_t *, int, int); 00052 void ff_put_pixels8_y2_no_rnd_neon(uint8_t *, const uint8_t *, int, int); 00053 void ff_put_pixels8_xy2_no_rnd_neon(uint8_t *, const uint8_t *, int, int); 00054 00055 void ff_avg_pixels16_neon(uint8_t *, const uint8_t *, int, int); 00056 void ff_avg_pixels8_neon(uint8_t *, const uint8_t *, int, int); 00057 00058 void ff_add_pixels_clamped_neon(const DCTELEM *, uint8_t *, int); 00059 void ff_put_pixels_clamped_neon(const DCTELEM *, uint8_t *, int); 00060 void ff_put_signed_pixels_clamped_neon(const DCTELEM *, uint8_t *, int); 00061 00062 void ff_put_h264_qpel16_mc00_neon(uint8_t *, uint8_t *, int); 00063 void ff_put_h264_qpel16_mc10_neon(uint8_t *, uint8_t *, int); 00064 void ff_put_h264_qpel16_mc20_neon(uint8_t *, uint8_t *, int); 00065 void ff_put_h264_qpel16_mc30_neon(uint8_t *, uint8_t *, int); 00066 void ff_put_h264_qpel16_mc01_neon(uint8_t *, uint8_t *, int); 00067 void ff_put_h264_qpel16_mc11_neon(uint8_t *, uint8_t *, int); 00068 void ff_put_h264_qpel16_mc21_neon(uint8_t *, uint8_t *, int); 00069 void ff_put_h264_qpel16_mc31_neon(uint8_t *, uint8_t *, int); 00070 void ff_put_h264_qpel16_mc02_neon(uint8_t *, uint8_t *, int); 00071 void ff_put_h264_qpel16_mc12_neon(uint8_t *, uint8_t *, int); 00072 void ff_put_h264_qpel16_mc22_neon(uint8_t *, uint8_t *, int); 00073 void ff_put_h264_qpel16_mc32_neon(uint8_t *, uint8_t *, int); 00074 void ff_put_h264_qpel16_mc03_neon(uint8_t *, uint8_t *, int); 00075 void ff_put_h264_qpel16_mc13_neon(uint8_t *, uint8_t *, int); 00076 void ff_put_h264_qpel16_mc23_neon(uint8_t *, uint8_t *, int); 00077 void ff_put_h264_qpel16_mc33_neon(uint8_t *, uint8_t *, int); 00078 00079 void ff_put_h264_qpel8_mc00_neon(uint8_t *, uint8_t *, int); 00080 void ff_put_h264_qpel8_mc10_neon(uint8_t *, uint8_t *, int); 00081 void ff_put_h264_qpel8_mc20_neon(uint8_t *, uint8_t *, int); 00082 void ff_put_h264_qpel8_mc30_neon(uint8_t *, uint8_t *, int); 00083 void ff_put_h264_qpel8_mc01_neon(uint8_t *, uint8_t *, int); 00084 void ff_put_h264_qpel8_mc11_neon(uint8_t *, uint8_t *, int); 00085 void ff_put_h264_qpel8_mc21_neon(uint8_t *, uint8_t *, int); 00086 void ff_put_h264_qpel8_mc31_neon(uint8_t *, uint8_t *, int); 00087 void ff_put_h264_qpel8_mc02_neon(uint8_t *, uint8_t *, int); 00088 void ff_put_h264_qpel8_mc12_neon(uint8_t *, uint8_t *, int); 00089 void ff_put_h264_qpel8_mc22_neon(uint8_t *, uint8_t *, int); 00090 void ff_put_h264_qpel8_mc32_neon(uint8_t *, uint8_t *, int); 00091 void ff_put_h264_qpel8_mc03_neon(uint8_t *, uint8_t *, int); 00092 void ff_put_h264_qpel8_mc13_neon(uint8_t *, uint8_t *, int); 00093 void ff_put_h264_qpel8_mc23_neon(uint8_t *, uint8_t *, int); 00094 void ff_put_h264_qpel8_mc33_neon(uint8_t *, uint8_t *, int); 00095 00096 void ff_avg_h264_qpel16_mc00_neon(uint8_t *, uint8_t *, int); 00097 void ff_avg_h264_qpel16_mc10_neon(uint8_t *, uint8_t *, int); 00098 void ff_avg_h264_qpel16_mc20_neon(uint8_t *, uint8_t *, int); 00099 void ff_avg_h264_qpel16_mc30_neon(uint8_t *, uint8_t *, int); 00100 void ff_avg_h264_qpel16_mc01_neon(uint8_t *, uint8_t *, int); 00101 void ff_avg_h264_qpel16_mc11_neon(uint8_t *, uint8_t *, int); 00102 void ff_avg_h264_qpel16_mc21_neon(uint8_t *, uint8_t *, int); 00103 void ff_avg_h264_qpel16_mc31_neon(uint8_t *, uint8_t *, int); 00104 void ff_avg_h264_qpel16_mc02_neon(uint8_t *, uint8_t *, int); 00105 void ff_avg_h264_qpel16_mc12_neon(uint8_t *, uint8_t *, int); 00106 void ff_avg_h264_qpel16_mc22_neon(uint8_t *, uint8_t *, int); 00107 void ff_avg_h264_qpel16_mc32_neon(uint8_t *, uint8_t *, int); 00108 void ff_avg_h264_qpel16_mc03_neon(uint8_t *, uint8_t *, int); 00109 void ff_avg_h264_qpel16_mc13_neon(uint8_t *, uint8_t *, int); 00110 void ff_avg_h264_qpel16_mc23_neon(uint8_t *, uint8_t *, int); 00111 void ff_avg_h264_qpel16_mc33_neon(uint8_t *, uint8_t *, int); 00112 00113 void ff_avg_h264_qpel8_mc00_neon(uint8_t *, uint8_t *, int); 00114 void ff_avg_h264_qpel8_mc10_neon(uint8_t *, uint8_t *, int); 00115 void ff_avg_h264_qpel8_mc20_neon(uint8_t *, uint8_t *, int); 00116 void ff_avg_h264_qpel8_mc30_neon(uint8_t *, uint8_t *, int); 00117 void ff_avg_h264_qpel8_mc01_neon(uint8_t *, uint8_t *, int); 00118 void ff_avg_h264_qpel8_mc11_neon(uint8_t *, uint8_t *, int); 00119 void ff_avg_h264_qpel8_mc21_neon(uint8_t *, uint8_t *, int); 00120 void ff_avg_h264_qpel8_mc31_neon(uint8_t *, uint8_t *, int); 00121 void ff_avg_h264_qpel8_mc02_neon(uint8_t *, uint8_t *, int); 00122 void ff_avg_h264_qpel8_mc12_neon(uint8_t *, uint8_t *, int); 00123 void ff_avg_h264_qpel8_mc22_neon(uint8_t *, uint8_t *, int); 00124 void ff_avg_h264_qpel8_mc32_neon(uint8_t *, uint8_t *, int); 00125 void ff_avg_h264_qpel8_mc03_neon(uint8_t *, uint8_t *, int); 00126 void ff_avg_h264_qpel8_mc13_neon(uint8_t *, uint8_t *, int); 00127 void ff_avg_h264_qpel8_mc23_neon(uint8_t *, uint8_t *, int); 00128 void ff_avg_h264_qpel8_mc33_neon(uint8_t *, uint8_t *, int); 00129 00130 void ff_put_h264_chroma_mc8_neon(uint8_t *, uint8_t *, int, int, int, int); 00131 void ff_put_h264_chroma_mc4_neon(uint8_t *, uint8_t *, int, int, int, int); 00132 void ff_put_h264_chroma_mc2_neon(uint8_t *, uint8_t *, int, int, int, int); 00133 00134 void ff_avg_h264_chroma_mc8_neon(uint8_t *, uint8_t *, int, int, int, int); 00135 void ff_avg_h264_chroma_mc4_neon(uint8_t *, uint8_t *, int, int, int, int); 00136 void ff_avg_h264_chroma_mc2_neon(uint8_t *, uint8_t *, int, int, int, int); 00137 00138 void ff_vp3_v_loop_filter_neon(uint8_t *, int, int *); 00139 void ff_vp3_h_loop_filter_neon(uint8_t *, int, int *); 00140 00141 void ff_vector_fmul_neon(float *dst, const float *src0, const float *src1, int len); 00142 void ff_vector_fmul_window_neon(float *dst, const float *src0, 00143 const float *src1, const float *win, int len); 00144 void ff_vector_fmul_scalar_neon(float *dst, const float *src, float mul, 00145 int len); 00146 void ff_vector_fmul_sv_scalar_2_neon(float *dst, const float *src, 00147 const float **vp, float mul, int len); 00148 void ff_vector_fmul_sv_scalar_4_neon(float *dst, const float *src, 00149 const float **vp, float mul, int len); 00150 void ff_sv_fmul_scalar_2_neon(float *dst, const float **vp, float mul, 00151 int len); 00152 void ff_sv_fmul_scalar_4_neon(float *dst, const float **vp, float mul, 00153 int len); 00154 void ff_butterflies_float_neon(float *v1, float *v2, int len); 00155 float ff_scalarproduct_float_neon(const float *v1, const float *v2, int len); 00156 void ff_vector_fmul_reverse_neon(float *dst, const float *src0, 00157 const float *src1, int len); 00158 void ff_vector_fmul_add_neon(float *dst, const float *src0, const float *src1, 00159 const float *src2, int len); 00160 00161 void ff_vector_clipf_neon(float *dst, const float *src, float min, float max, 00162 int len); 00163 00164 void ff_vorbis_inverse_coupling_neon(float *mag, float *ang, int blocksize); 00165 00166 int32_t ff_scalarproduct_int16_neon(const int16_t *v1, const int16_t *v2, int len, 00167 int shift); 00168 int32_t ff_scalarproduct_and_madd_int16_neon(int16_t *v1, const int16_t *v2, 00169 const int16_t *v3, int len, int mul); 00170 00171 void ff_apply_window_int16_neon(int16_t *dst, const int16_t *src, 00172 const int16_t *window, unsigned n); 00173 00174 void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx) 00175 { 00176 const int high_bit_depth = avctx->codec_id == CODEC_ID_H264 && avctx->bits_per_raw_sample > 8; 00177 00178 if (!avctx->lowres) { 00179 if (avctx->idct_algo == FF_IDCT_AUTO || 00180 avctx->idct_algo == FF_IDCT_SIMPLENEON) { 00181 c->idct_put = ff_simple_idct_put_neon; 00182 c->idct_add = ff_simple_idct_add_neon; 00183 c->idct = ff_simple_idct_neon; 00184 c->idct_permutation_type = FF_PARTTRANS_IDCT_PERM; 00185 } else if ((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER || 00186 CONFIG_VP6_DECODER) && 00187 avctx->idct_algo == FF_IDCT_VP3) { 00188 c->idct_put = ff_vp3_idct_put_neon; 00189 c->idct_add = ff_vp3_idct_add_neon; 00190 c->idct = ff_vp3_idct_neon; 00191 c->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM; 00192 } 00193 } 00194 00195 if (!high_bit_depth) { 00196 c->clear_block = ff_clear_block_neon; 00197 c->clear_blocks = ff_clear_blocks_neon; 00198 00199 c->put_pixels_tab[0][0] = ff_put_pixels16_neon; 00200 c->put_pixels_tab[0][1] = ff_put_pixels16_x2_neon; 00201 c->put_pixels_tab[0][2] = ff_put_pixels16_y2_neon; 00202 c->put_pixels_tab[0][3] = ff_put_pixels16_xy2_neon; 00203 c->put_pixels_tab[1][0] = ff_put_pixels8_neon; 00204 c->put_pixels_tab[1][1] = ff_put_pixels8_x2_neon; 00205 c->put_pixels_tab[1][2] = ff_put_pixels8_y2_neon; 00206 c->put_pixels_tab[1][3] = ff_put_pixels8_xy2_neon; 00207 00208 c->put_no_rnd_pixels_tab[0][0] = ff_put_pixels16_neon; 00209 c->put_no_rnd_pixels_tab[0][1] = ff_put_pixels16_x2_no_rnd_neon; 00210 c->put_no_rnd_pixels_tab[0][2] = ff_put_pixels16_y2_no_rnd_neon; 00211 c->put_no_rnd_pixels_tab[0][3] = ff_put_pixels16_xy2_no_rnd_neon; 00212 c->put_no_rnd_pixels_tab[1][0] = ff_put_pixels8_neon; 00213 c->put_no_rnd_pixels_tab[1][1] = ff_put_pixels8_x2_no_rnd_neon; 00214 c->put_no_rnd_pixels_tab[1][2] = ff_put_pixels8_y2_no_rnd_neon; 00215 c->put_no_rnd_pixels_tab[1][3] = ff_put_pixels8_xy2_no_rnd_neon; 00216 00217 c->avg_pixels_tab[0][0] = ff_avg_pixels16_neon; 00218 c->avg_pixels_tab[1][0] = ff_avg_pixels8_neon; 00219 } 00220 00221 c->add_pixels_clamped = ff_add_pixels_clamped_neon; 00222 c->put_pixels_clamped = ff_put_pixels_clamped_neon; 00223 c->put_signed_pixels_clamped = ff_put_signed_pixels_clamped_neon; 00224 00225 if (CONFIG_H264_DECODER) { 00226 if (!high_bit_depth) { 00227 c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_neon; 00228 c->put_h264_chroma_pixels_tab[1] = ff_put_h264_chroma_mc4_neon; 00229 c->put_h264_chroma_pixels_tab[2] = ff_put_h264_chroma_mc2_neon; 00230 00231 c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_neon; 00232 c->avg_h264_chroma_pixels_tab[1] = ff_avg_h264_chroma_mc4_neon; 00233 c->avg_h264_chroma_pixels_tab[2] = ff_avg_h264_chroma_mc2_neon; 00234 00235 c->put_h264_qpel_pixels_tab[0][ 0] = ff_put_h264_qpel16_mc00_neon; 00236 c->put_h264_qpel_pixels_tab[0][ 1] = ff_put_h264_qpel16_mc10_neon; 00237 c->put_h264_qpel_pixels_tab[0][ 2] = ff_put_h264_qpel16_mc20_neon; 00238 c->put_h264_qpel_pixels_tab[0][ 3] = ff_put_h264_qpel16_mc30_neon; 00239 c->put_h264_qpel_pixels_tab[0][ 4] = ff_put_h264_qpel16_mc01_neon; 00240 c->put_h264_qpel_pixels_tab[0][ 5] = ff_put_h264_qpel16_mc11_neon; 00241 c->put_h264_qpel_pixels_tab[0][ 6] = ff_put_h264_qpel16_mc21_neon; 00242 c->put_h264_qpel_pixels_tab[0][ 7] = ff_put_h264_qpel16_mc31_neon; 00243 c->put_h264_qpel_pixels_tab[0][ 8] = ff_put_h264_qpel16_mc02_neon; 00244 c->put_h264_qpel_pixels_tab[0][ 9] = ff_put_h264_qpel16_mc12_neon; 00245 c->put_h264_qpel_pixels_tab[0][10] = ff_put_h264_qpel16_mc22_neon; 00246 c->put_h264_qpel_pixels_tab[0][11] = ff_put_h264_qpel16_mc32_neon; 00247 c->put_h264_qpel_pixels_tab[0][12] = ff_put_h264_qpel16_mc03_neon; 00248 c->put_h264_qpel_pixels_tab[0][13] = ff_put_h264_qpel16_mc13_neon; 00249 c->put_h264_qpel_pixels_tab[0][14] = ff_put_h264_qpel16_mc23_neon; 00250 c->put_h264_qpel_pixels_tab[0][15] = ff_put_h264_qpel16_mc33_neon; 00251 00252 c->put_h264_qpel_pixels_tab[1][ 0] = ff_put_h264_qpel8_mc00_neon; 00253 c->put_h264_qpel_pixels_tab[1][ 1] = ff_put_h264_qpel8_mc10_neon; 00254 c->put_h264_qpel_pixels_tab[1][ 2] = ff_put_h264_qpel8_mc20_neon; 00255 c->put_h264_qpel_pixels_tab[1][ 3] = ff_put_h264_qpel8_mc30_neon; 00256 c->put_h264_qpel_pixels_tab[1][ 4] = ff_put_h264_qpel8_mc01_neon; 00257 c->put_h264_qpel_pixels_tab[1][ 5] = ff_put_h264_qpel8_mc11_neon; 00258 c->put_h264_qpel_pixels_tab[1][ 6] = ff_put_h264_qpel8_mc21_neon; 00259 c->put_h264_qpel_pixels_tab[1][ 7] = ff_put_h264_qpel8_mc31_neon; 00260 c->put_h264_qpel_pixels_tab[1][ 8] = ff_put_h264_qpel8_mc02_neon; 00261 c->put_h264_qpel_pixels_tab[1][ 9] = ff_put_h264_qpel8_mc12_neon; 00262 c->put_h264_qpel_pixels_tab[1][10] = ff_put_h264_qpel8_mc22_neon; 00263 c->put_h264_qpel_pixels_tab[1][11] = ff_put_h264_qpel8_mc32_neon; 00264 c->put_h264_qpel_pixels_tab[1][12] = ff_put_h264_qpel8_mc03_neon; 00265 c->put_h264_qpel_pixels_tab[1][13] = ff_put_h264_qpel8_mc13_neon; 00266 c->put_h264_qpel_pixels_tab[1][14] = ff_put_h264_qpel8_mc23_neon; 00267 c->put_h264_qpel_pixels_tab[1][15] = ff_put_h264_qpel8_mc33_neon; 00268 00269 c->avg_h264_qpel_pixels_tab[0][ 0] = ff_avg_h264_qpel16_mc00_neon; 00270 c->avg_h264_qpel_pixels_tab[0][ 1] = ff_avg_h264_qpel16_mc10_neon; 00271 c->avg_h264_qpel_pixels_tab[0][ 2] = ff_avg_h264_qpel16_mc20_neon; 00272 c->avg_h264_qpel_pixels_tab[0][ 3] = ff_avg_h264_qpel16_mc30_neon; 00273 c->avg_h264_qpel_pixels_tab[0][ 4] = ff_avg_h264_qpel16_mc01_neon; 00274 c->avg_h264_qpel_pixels_tab[0][ 5] = ff_avg_h264_qpel16_mc11_neon; 00275 c->avg_h264_qpel_pixels_tab[0][ 6] = ff_avg_h264_qpel16_mc21_neon; 00276 c->avg_h264_qpel_pixels_tab[0][ 7] = ff_avg_h264_qpel16_mc31_neon; 00277 c->avg_h264_qpel_pixels_tab[0][ 8] = ff_avg_h264_qpel16_mc02_neon; 00278 c->avg_h264_qpel_pixels_tab[0][ 9] = ff_avg_h264_qpel16_mc12_neon; 00279 c->avg_h264_qpel_pixels_tab[0][10] = ff_avg_h264_qpel16_mc22_neon; 00280 c->avg_h264_qpel_pixels_tab[0][11] = ff_avg_h264_qpel16_mc32_neon; 00281 c->avg_h264_qpel_pixels_tab[0][12] = ff_avg_h264_qpel16_mc03_neon; 00282 c->avg_h264_qpel_pixels_tab[0][13] = ff_avg_h264_qpel16_mc13_neon; 00283 c->avg_h264_qpel_pixels_tab[0][14] = ff_avg_h264_qpel16_mc23_neon; 00284 c->avg_h264_qpel_pixels_tab[0][15] = ff_avg_h264_qpel16_mc33_neon; 00285 00286 c->avg_h264_qpel_pixels_tab[1][ 0] = ff_avg_h264_qpel8_mc00_neon; 00287 c->avg_h264_qpel_pixels_tab[1][ 1] = ff_avg_h264_qpel8_mc10_neon; 00288 c->avg_h264_qpel_pixels_tab[1][ 2] = ff_avg_h264_qpel8_mc20_neon; 00289 c->avg_h264_qpel_pixels_tab[1][ 3] = ff_avg_h264_qpel8_mc30_neon; 00290 c->avg_h264_qpel_pixels_tab[1][ 4] = ff_avg_h264_qpel8_mc01_neon; 00291 c->avg_h264_qpel_pixels_tab[1][ 5] = ff_avg_h264_qpel8_mc11_neon; 00292 c->avg_h264_qpel_pixels_tab[1][ 6] = ff_avg_h264_qpel8_mc21_neon; 00293 c->avg_h264_qpel_pixels_tab[1][ 7] = ff_avg_h264_qpel8_mc31_neon; 00294 c->avg_h264_qpel_pixels_tab[1][ 8] = ff_avg_h264_qpel8_mc02_neon; 00295 c->avg_h264_qpel_pixels_tab[1][ 9] = ff_avg_h264_qpel8_mc12_neon; 00296 c->avg_h264_qpel_pixels_tab[1][10] = ff_avg_h264_qpel8_mc22_neon; 00297 c->avg_h264_qpel_pixels_tab[1][11] = ff_avg_h264_qpel8_mc32_neon; 00298 c->avg_h264_qpel_pixels_tab[1][12] = ff_avg_h264_qpel8_mc03_neon; 00299 c->avg_h264_qpel_pixels_tab[1][13] = ff_avg_h264_qpel8_mc13_neon; 00300 c->avg_h264_qpel_pixels_tab[1][14] = ff_avg_h264_qpel8_mc23_neon; 00301 c->avg_h264_qpel_pixels_tab[1][15] = ff_avg_h264_qpel8_mc33_neon; 00302 } 00303 } 00304 00305 if (CONFIG_VP3_DECODER) { 00306 c->vp3_v_loop_filter = ff_vp3_v_loop_filter_neon; 00307 c->vp3_h_loop_filter = ff_vp3_h_loop_filter_neon; 00308 c->vp3_idct_dc_add = ff_vp3_idct_dc_add_neon; 00309 } 00310 00311 c->vector_fmul = ff_vector_fmul_neon; 00312 c->vector_fmul_window = ff_vector_fmul_window_neon; 00313 c->vector_fmul_scalar = ff_vector_fmul_scalar_neon; 00314 c->butterflies_float = ff_butterflies_float_neon; 00315 c->scalarproduct_float = ff_scalarproduct_float_neon; 00316 c->vector_fmul_reverse = ff_vector_fmul_reverse_neon; 00317 c->vector_fmul_add = ff_vector_fmul_add_neon; 00318 c->vector_clipf = ff_vector_clipf_neon; 00319 00320 c->vector_fmul_sv_scalar[0] = ff_vector_fmul_sv_scalar_2_neon; 00321 c->vector_fmul_sv_scalar[1] = ff_vector_fmul_sv_scalar_4_neon; 00322 00323 c->sv_fmul_scalar[0] = ff_sv_fmul_scalar_2_neon; 00324 c->sv_fmul_scalar[1] = ff_sv_fmul_scalar_4_neon; 00325 00326 if (CONFIG_VORBIS_DECODER) 00327 c->vorbis_inverse_coupling = ff_vorbis_inverse_coupling_neon; 00328 00329 c->scalarproduct_int16 = ff_scalarproduct_int16_neon; 00330 c->scalarproduct_and_madd_int16 = ff_scalarproduct_and_madd_int16_neon; 00331 00332 c->apply_window_int16 = ff_apply_window_int16_neon; 00333 }