libavcodec/arm/dsputil_init_neon.c
Go to the documentation of this file.
00001 /*
00002  * ARM NEON optimised DSP functions
00003  * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>
00004  *
00005  * This file is part of FFmpeg.
00006  *
00007  * FFmpeg 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  * FFmpeg 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 FFmpeg; 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_pixels16_x2_neon(uint8_t *, const uint8_t *, int, int);
00057 void ff_avg_pixels16_y2_neon(uint8_t *, const uint8_t *, int, int);
00058 void ff_avg_pixels16_xy2_neon(uint8_t *, const uint8_t *, int, int);
00059 void ff_avg_pixels8_neon(uint8_t *, const uint8_t *, int, int);
00060 void ff_avg_pixels8_x2_neon(uint8_t *, const uint8_t *, int, int);
00061 void ff_avg_pixels8_y2_neon(uint8_t *, const uint8_t *, int, int);
00062 void ff_avg_pixels8_xy2_neon(uint8_t *, const uint8_t *, int, int);
00063 void ff_avg_pixels16_x2_no_rnd_neon(uint8_t *, const uint8_t *, int, int);
00064 void ff_avg_pixels16_y2_no_rnd_neon(uint8_t *, const uint8_t *, int, int);
00065 void ff_avg_pixels16_xy2_no_rnd_neon(uint8_t *, const uint8_t *, int, int);
00066 void ff_avg_pixels8_x2_no_rnd_neon(uint8_t *, const uint8_t *, int, int);
00067 void ff_avg_pixels8_y2_no_rnd_neon(uint8_t *, const uint8_t *, int, int);
00068 void ff_avg_pixels8_xy2_no_rnd_neon(uint8_t *, const uint8_t *, int, int);
00069 
00070 void ff_add_pixels_clamped_neon(const DCTELEM *, uint8_t *, int);
00071 void ff_put_pixels_clamped_neon(const DCTELEM *, uint8_t *, int);
00072 void ff_put_signed_pixels_clamped_neon(const DCTELEM *, uint8_t *, int);
00073 
00074 void ff_put_h264_qpel16_mc00_neon(uint8_t *, uint8_t *, int);
00075 void ff_put_h264_qpel16_mc10_neon(uint8_t *, uint8_t *, int);
00076 void ff_put_h264_qpel16_mc20_neon(uint8_t *, uint8_t *, int);
00077 void ff_put_h264_qpel16_mc30_neon(uint8_t *, uint8_t *, int);
00078 void ff_put_h264_qpel16_mc01_neon(uint8_t *, uint8_t *, int);
00079 void ff_put_h264_qpel16_mc11_neon(uint8_t *, uint8_t *, int);
00080 void ff_put_h264_qpel16_mc21_neon(uint8_t *, uint8_t *, int);
00081 void ff_put_h264_qpel16_mc31_neon(uint8_t *, uint8_t *, int);
00082 void ff_put_h264_qpel16_mc02_neon(uint8_t *, uint8_t *, int);
00083 void ff_put_h264_qpel16_mc12_neon(uint8_t *, uint8_t *, int);
00084 void ff_put_h264_qpel16_mc22_neon(uint8_t *, uint8_t *, int);
00085 void ff_put_h264_qpel16_mc32_neon(uint8_t *, uint8_t *, int);
00086 void ff_put_h264_qpel16_mc03_neon(uint8_t *, uint8_t *, int);
00087 void ff_put_h264_qpel16_mc13_neon(uint8_t *, uint8_t *, int);
00088 void ff_put_h264_qpel16_mc23_neon(uint8_t *, uint8_t *, int);
00089 void ff_put_h264_qpel16_mc33_neon(uint8_t *, uint8_t *, int);
00090 
00091 void ff_put_h264_qpel8_mc00_neon(uint8_t *, uint8_t *, int);
00092 void ff_put_h264_qpel8_mc10_neon(uint8_t *, uint8_t *, int);
00093 void ff_put_h264_qpel8_mc20_neon(uint8_t *, uint8_t *, int);
00094 void ff_put_h264_qpel8_mc30_neon(uint8_t *, uint8_t *, int);
00095 void ff_put_h264_qpel8_mc01_neon(uint8_t *, uint8_t *, int);
00096 void ff_put_h264_qpel8_mc11_neon(uint8_t *, uint8_t *, int);
00097 void ff_put_h264_qpel8_mc21_neon(uint8_t *, uint8_t *, int);
00098 void ff_put_h264_qpel8_mc31_neon(uint8_t *, uint8_t *, int);
00099 void ff_put_h264_qpel8_mc02_neon(uint8_t *, uint8_t *, int);
00100 void ff_put_h264_qpel8_mc12_neon(uint8_t *, uint8_t *, int);
00101 void ff_put_h264_qpel8_mc22_neon(uint8_t *, uint8_t *, int);
00102 void ff_put_h264_qpel8_mc32_neon(uint8_t *, uint8_t *, int);
00103 void ff_put_h264_qpel8_mc03_neon(uint8_t *, uint8_t *, int);
00104 void ff_put_h264_qpel8_mc13_neon(uint8_t *, uint8_t *, int);
00105 void ff_put_h264_qpel8_mc23_neon(uint8_t *, uint8_t *, int);
00106 void ff_put_h264_qpel8_mc33_neon(uint8_t *, uint8_t *, int);
00107 
00108 void ff_avg_h264_qpel16_mc00_neon(uint8_t *, uint8_t *, int);
00109 void ff_avg_h264_qpel16_mc10_neon(uint8_t *, uint8_t *, int);
00110 void ff_avg_h264_qpel16_mc20_neon(uint8_t *, uint8_t *, int);
00111 void ff_avg_h264_qpel16_mc30_neon(uint8_t *, uint8_t *, int);
00112 void ff_avg_h264_qpel16_mc01_neon(uint8_t *, uint8_t *, int);
00113 void ff_avg_h264_qpel16_mc11_neon(uint8_t *, uint8_t *, int);
00114 void ff_avg_h264_qpel16_mc21_neon(uint8_t *, uint8_t *, int);
00115 void ff_avg_h264_qpel16_mc31_neon(uint8_t *, uint8_t *, int);
00116 void ff_avg_h264_qpel16_mc02_neon(uint8_t *, uint8_t *, int);
00117 void ff_avg_h264_qpel16_mc12_neon(uint8_t *, uint8_t *, int);
00118 void ff_avg_h264_qpel16_mc22_neon(uint8_t *, uint8_t *, int);
00119 void ff_avg_h264_qpel16_mc32_neon(uint8_t *, uint8_t *, int);
00120 void ff_avg_h264_qpel16_mc03_neon(uint8_t *, uint8_t *, int);
00121 void ff_avg_h264_qpel16_mc13_neon(uint8_t *, uint8_t *, int);
00122 void ff_avg_h264_qpel16_mc23_neon(uint8_t *, uint8_t *, int);
00123 void ff_avg_h264_qpel16_mc33_neon(uint8_t *, uint8_t *, int);
00124 
00125 void ff_avg_h264_qpel8_mc00_neon(uint8_t *, uint8_t *, int);
00126 void ff_avg_h264_qpel8_mc10_neon(uint8_t *, uint8_t *, int);
00127 void ff_avg_h264_qpel8_mc20_neon(uint8_t *, uint8_t *, int);
00128 void ff_avg_h264_qpel8_mc30_neon(uint8_t *, uint8_t *, int);
00129 void ff_avg_h264_qpel8_mc01_neon(uint8_t *, uint8_t *, int);
00130 void ff_avg_h264_qpel8_mc11_neon(uint8_t *, uint8_t *, int);
00131 void ff_avg_h264_qpel8_mc21_neon(uint8_t *, uint8_t *, int);
00132 void ff_avg_h264_qpel8_mc31_neon(uint8_t *, uint8_t *, int);
00133 void ff_avg_h264_qpel8_mc02_neon(uint8_t *, uint8_t *, int);
00134 void ff_avg_h264_qpel8_mc12_neon(uint8_t *, uint8_t *, int);
00135 void ff_avg_h264_qpel8_mc22_neon(uint8_t *, uint8_t *, int);
00136 void ff_avg_h264_qpel8_mc32_neon(uint8_t *, uint8_t *, int);
00137 void ff_avg_h264_qpel8_mc03_neon(uint8_t *, uint8_t *, int);
00138 void ff_avg_h264_qpel8_mc13_neon(uint8_t *, uint8_t *, int);
00139 void ff_avg_h264_qpel8_mc23_neon(uint8_t *, uint8_t *, int);
00140 void ff_avg_h264_qpel8_mc33_neon(uint8_t *, uint8_t *, int);
00141 
00142 void ff_put_h264_chroma_mc8_neon(uint8_t *, uint8_t *, int, int, int, int);
00143 void ff_put_h264_chroma_mc4_neon(uint8_t *, uint8_t *, int, int, int, int);
00144 void ff_put_h264_chroma_mc2_neon(uint8_t *, uint8_t *, int, int, int, int);
00145 
00146 void ff_avg_h264_chroma_mc8_neon(uint8_t *, uint8_t *, int, int, int, int);
00147 void ff_avg_h264_chroma_mc4_neon(uint8_t *, uint8_t *, int, int, int, int);
00148 void ff_avg_h264_chroma_mc2_neon(uint8_t *, uint8_t *, int, int, int, int);
00149 
00150 void ff_vp3_v_loop_filter_neon(uint8_t *, int, int *);
00151 void ff_vp3_h_loop_filter_neon(uint8_t *, int, int *);
00152 
00153 void ff_vector_fmul_neon(float *dst, const float *src0, const float *src1, int len);
00154 void ff_vector_fmul_window_neon(float *dst, const float *src0,
00155                                 const float *src1, const float *win, int len);
00156 void ff_vector_fmul_scalar_neon(float *dst, const float *src, float mul,
00157                                 int len);
00158 void ff_vector_fmac_scalar_neon(float *dst, const float *src, float mul,
00159                                 int len);
00160 void ff_butterflies_float_neon(float *v1, float *v2, int len);
00161 float ff_scalarproduct_float_neon(const float *v1, const float *v2, int len);
00162 void ff_vector_fmul_reverse_neon(float *dst, const float *src0,
00163                                  const float *src1, int len);
00164 void ff_vector_fmul_add_neon(float *dst, const float *src0, const float *src1,
00165                              const float *src2, int len);
00166 
00167 void ff_vector_clipf_neon(float *dst, const float *src, float min, float max,
00168                           int len);
00169 void ff_vector_clip_int32_neon(int32_t *dst, const int32_t *src, int32_t min,
00170                                int32_t max, unsigned int len);
00171 
00172 void ff_vorbis_inverse_coupling_neon(float *mag, float *ang, int blocksize);
00173 
00174 int32_t ff_scalarproduct_int16_neon(const int16_t *v1, const int16_t *v2, int len,
00175                                     int shift);
00176 int32_t ff_scalarproduct_and_madd_int16_neon(int16_t *v1, const int16_t *v2,
00177                                              const int16_t *v3, int len, int mul);
00178 
00179 void ff_apply_window_int16_neon(int16_t *dst, const int16_t *src,
00180                                 const int16_t *window, unsigned n);
00181 
00182 void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx)
00183 {
00184     const int high_bit_depth = avctx->bits_per_raw_sample > 8;
00185 
00186     if (!avctx->lowres && avctx->bits_per_raw_sample <= 8) {
00187         if (avctx->idct_algo == FF_IDCT_AUTO ||
00188             avctx->idct_algo == FF_IDCT_SIMPLENEON) {
00189             c->idct_put              = ff_simple_idct_put_neon;
00190             c->idct_add              = ff_simple_idct_add_neon;
00191             c->idct                  = ff_simple_idct_neon;
00192             c->idct_permutation_type = FF_PARTTRANS_IDCT_PERM;
00193         } else if ((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER ||
00194                     CONFIG_VP6_DECODER) &&
00195                    avctx->idct_algo == FF_IDCT_VP3) {
00196             c->idct_put              = ff_vp3_idct_put_neon;
00197             c->idct_add              = ff_vp3_idct_add_neon;
00198             c->idct                  = ff_vp3_idct_neon;
00199             c->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM;
00200         }
00201     }
00202 
00203     if (!high_bit_depth) {
00204         c->clear_block  = ff_clear_block_neon;
00205         c->clear_blocks = ff_clear_blocks_neon;
00206 
00207         c->put_pixels_tab[0][0] = ff_put_pixels16_neon;
00208         c->put_pixels_tab[0][1] = ff_put_pixels16_x2_neon;
00209         c->put_pixels_tab[0][2] = ff_put_pixels16_y2_neon;
00210         c->put_pixels_tab[0][3] = ff_put_pixels16_xy2_neon;
00211         c->put_pixels_tab[1][0] = ff_put_pixels8_neon;
00212         c->put_pixels_tab[1][1] = ff_put_pixels8_x2_neon;
00213         c->put_pixels_tab[1][2] = ff_put_pixels8_y2_neon;
00214         c->put_pixels_tab[1][3] = ff_put_pixels8_xy2_neon;
00215 
00216         c->put_no_rnd_pixels_tab[0][0] = ff_put_pixels16_neon;
00217         c->put_no_rnd_pixels_tab[0][1] = ff_put_pixels16_x2_no_rnd_neon;
00218         c->put_no_rnd_pixels_tab[0][2] = ff_put_pixels16_y2_no_rnd_neon;
00219         c->put_no_rnd_pixels_tab[0][3] = ff_put_pixels16_xy2_no_rnd_neon;
00220         c->put_no_rnd_pixels_tab[1][0] = ff_put_pixels8_neon;
00221         c->put_no_rnd_pixels_tab[1][1] = ff_put_pixels8_x2_no_rnd_neon;
00222         c->put_no_rnd_pixels_tab[1][2] = ff_put_pixels8_y2_no_rnd_neon;
00223         c->put_no_rnd_pixels_tab[1][3] = ff_put_pixels8_xy2_no_rnd_neon;
00224 
00225         c->avg_pixels_tab[0][0] = ff_avg_pixels16_neon;
00226         c->avg_pixels_tab[0][1] = ff_avg_pixels16_x2_neon;
00227         c->avg_pixels_tab[0][2] = ff_avg_pixels16_y2_neon;
00228         c->avg_pixels_tab[0][3] = ff_avg_pixels16_xy2_neon;
00229         c->avg_pixels_tab[1][0] = ff_avg_pixels8_neon;
00230         c->avg_pixels_tab[1][1] = ff_avg_pixels8_x2_neon;
00231         c->avg_pixels_tab[1][2] = ff_avg_pixels8_y2_neon;
00232         c->avg_pixels_tab[1][3] = ff_avg_pixels8_xy2_neon;
00233 
00234         c->avg_no_rnd_pixels_tab[0][0] = ff_avg_pixels16_neon;
00235         c->avg_no_rnd_pixels_tab[0][1] = ff_avg_pixels16_x2_no_rnd_neon;
00236         c->avg_no_rnd_pixels_tab[0][2] = ff_avg_pixels16_y2_no_rnd_neon;
00237         c->avg_no_rnd_pixels_tab[0][3] = ff_avg_pixels16_xy2_no_rnd_neon;
00238         c->avg_no_rnd_pixels_tab[1][0] = ff_avg_pixels8_neon;
00239         c->avg_no_rnd_pixels_tab[1][1] = ff_avg_pixels8_x2_no_rnd_neon;
00240         c->avg_no_rnd_pixels_tab[1][2] = ff_avg_pixels8_y2_no_rnd_neon;
00241         c->avg_no_rnd_pixels_tab[1][3] = ff_avg_pixels8_xy2_no_rnd_neon;
00242     }
00243 
00244     c->add_pixels_clamped = ff_add_pixels_clamped_neon;
00245     c->put_pixels_clamped = ff_put_pixels_clamped_neon;
00246     c->put_signed_pixels_clamped = ff_put_signed_pixels_clamped_neon;
00247 
00248     if (CONFIG_H264_DECODER && !high_bit_depth) {
00249         c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_neon;
00250         c->put_h264_chroma_pixels_tab[1] = ff_put_h264_chroma_mc4_neon;
00251         c->put_h264_chroma_pixels_tab[2] = ff_put_h264_chroma_mc2_neon;
00252 
00253         c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_neon;
00254         c->avg_h264_chroma_pixels_tab[1] = ff_avg_h264_chroma_mc4_neon;
00255         c->avg_h264_chroma_pixels_tab[2] = ff_avg_h264_chroma_mc2_neon;
00256 
00257         c->put_h264_qpel_pixels_tab[0][ 0] = ff_put_h264_qpel16_mc00_neon;
00258         c->put_h264_qpel_pixels_tab[0][ 1] = ff_put_h264_qpel16_mc10_neon;
00259         c->put_h264_qpel_pixels_tab[0][ 2] = ff_put_h264_qpel16_mc20_neon;
00260         c->put_h264_qpel_pixels_tab[0][ 3] = ff_put_h264_qpel16_mc30_neon;
00261         c->put_h264_qpel_pixels_tab[0][ 4] = ff_put_h264_qpel16_mc01_neon;
00262         c->put_h264_qpel_pixels_tab[0][ 5] = ff_put_h264_qpel16_mc11_neon;
00263         c->put_h264_qpel_pixels_tab[0][ 6] = ff_put_h264_qpel16_mc21_neon;
00264         c->put_h264_qpel_pixels_tab[0][ 7] = ff_put_h264_qpel16_mc31_neon;
00265         c->put_h264_qpel_pixels_tab[0][ 8] = ff_put_h264_qpel16_mc02_neon;
00266         c->put_h264_qpel_pixels_tab[0][ 9] = ff_put_h264_qpel16_mc12_neon;
00267         c->put_h264_qpel_pixels_tab[0][10] = ff_put_h264_qpel16_mc22_neon;
00268         c->put_h264_qpel_pixels_tab[0][11] = ff_put_h264_qpel16_mc32_neon;
00269         c->put_h264_qpel_pixels_tab[0][12] = ff_put_h264_qpel16_mc03_neon;
00270         c->put_h264_qpel_pixels_tab[0][13] = ff_put_h264_qpel16_mc13_neon;
00271         c->put_h264_qpel_pixels_tab[0][14] = ff_put_h264_qpel16_mc23_neon;
00272         c->put_h264_qpel_pixels_tab[0][15] = ff_put_h264_qpel16_mc33_neon;
00273 
00274         c->put_h264_qpel_pixels_tab[1][ 0] = ff_put_h264_qpel8_mc00_neon;
00275         c->put_h264_qpel_pixels_tab[1][ 1] = ff_put_h264_qpel8_mc10_neon;
00276         c->put_h264_qpel_pixels_tab[1][ 2] = ff_put_h264_qpel8_mc20_neon;
00277         c->put_h264_qpel_pixels_tab[1][ 3] = ff_put_h264_qpel8_mc30_neon;
00278         c->put_h264_qpel_pixels_tab[1][ 4] = ff_put_h264_qpel8_mc01_neon;
00279         c->put_h264_qpel_pixels_tab[1][ 5] = ff_put_h264_qpel8_mc11_neon;
00280         c->put_h264_qpel_pixels_tab[1][ 6] = ff_put_h264_qpel8_mc21_neon;
00281         c->put_h264_qpel_pixels_tab[1][ 7] = ff_put_h264_qpel8_mc31_neon;
00282         c->put_h264_qpel_pixels_tab[1][ 8] = ff_put_h264_qpel8_mc02_neon;
00283         c->put_h264_qpel_pixels_tab[1][ 9] = ff_put_h264_qpel8_mc12_neon;
00284         c->put_h264_qpel_pixels_tab[1][10] = ff_put_h264_qpel8_mc22_neon;
00285         c->put_h264_qpel_pixels_tab[1][11] = ff_put_h264_qpel8_mc32_neon;
00286         c->put_h264_qpel_pixels_tab[1][12] = ff_put_h264_qpel8_mc03_neon;
00287         c->put_h264_qpel_pixels_tab[1][13] = ff_put_h264_qpel8_mc13_neon;
00288         c->put_h264_qpel_pixels_tab[1][14] = ff_put_h264_qpel8_mc23_neon;
00289         c->put_h264_qpel_pixels_tab[1][15] = ff_put_h264_qpel8_mc33_neon;
00290 
00291         c->avg_h264_qpel_pixels_tab[0][ 0] = ff_avg_h264_qpel16_mc00_neon;
00292         c->avg_h264_qpel_pixels_tab[0][ 1] = ff_avg_h264_qpel16_mc10_neon;
00293         c->avg_h264_qpel_pixels_tab[0][ 2] = ff_avg_h264_qpel16_mc20_neon;
00294         c->avg_h264_qpel_pixels_tab[0][ 3] = ff_avg_h264_qpel16_mc30_neon;
00295         c->avg_h264_qpel_pixels_tab[0][ 4] = ff_avg_h264_qpel16_mc01_neon;
00296         c->avg_h264_qpel_pixels_tab[0][ 5] = ff_avg_h264_qpel16_mc11_neon;
00297         c->avg_h264_qpel_pixels_tab[0][ 6] = ff_avg_h264_qpel16_mc21_neon;
00298         c->avg_h264_qpel_pixels_tab[0][ 7] = ff_avg_h264_qpel16_mc31_neon;
00299         c->avg_h264_qpel_pixels_tab[0][ 8] = ff_avg_h264_qpel16_mc02_neon;
00300         c->avg_h264_qpel_pixels_tab[0][ 9] = ff_avg_h264_qpel16_mc12_neon;
00301         c->avg_h264_qpel_pixels_tab[0][10] = ff_avg_h264_qpel16_mc22_neon;
00302         c->avg_h264_qpel_pixels_tab[0][11] = ff_avg_h264_qpel16_mc32_neon;
00303         c->avg_h264_qpel_pixels_tab[0][12] = ff_avg_h264_qpel16_mc03_neon;
00304         c->avg_h264_qpel_pixels_tab[0][13] = ff_avg_h264_qpel16_mc13_neon;
00305         c->avg_h264_qpel_pixels_tab[0][14] = ff_avg_h264_qpel16_mc23_neon;
00306         c->avg_h264_qpel_pixels_tab[0][15] = ff_avg_h264_qpel16_mc33_neon;
00307 
00308         c->avg_h264_qpel_pixels_tab[1][ 0] = ff_avg_h264_qpel8_mc00_neon;
00309         c->avg_h264_qpel_pixels_tab[1][ 1] = ff_avg_h264_qpel8_mc10_neon;
00310         c->avg_h264_qpel_pixels_tab[1][ 2] = ff_avg_h264_qpel8_mc20_neon;
00311         c->avg_h264_qpel_pixels_tab[1][ 3] = ff_avg_h264_qpel8_mc30_neon;
00312         c->avg_h264_qpel_pixels_tab[1][ 4] = ff_avg_h264_qpel8_mc01_neon;
00313         c->avg_h264_qpel_pixels_tab[1][ 5] = ff_avg_h264_qpel8_mc11_neon;
00314         c->avg_h264_qpel_pixels_tab[1][ 6] = ff_avg_h264_qpel8_mc21_neon;
00315         c->avg_h264_qpel_pixels_tab[1][ 7] = ff_avg_h264_qpel8_mc31_neon;
00316         c->avg_h264_qpel_pixels_tab[1][ 8] = ff_avg_h264_qpel8_mc02_neon;
00317         c->avg_h264_qpel_pixels_tab[1][ 9] = ff_avg_h264_qpel8_mc12_neon;
00318         c->avg_h264_qpel_pixels_tab[1][10] = ff_avg_h264_qpel8_mc22_neon;
00319         c->avg_h264_qpel_pixels_tab[1][11] = ff_avg_h264_qpel8_mc32_neon;
00320         c->avg_h264_qpel_pixels_tab[1][12] = ff_avg_h264_qpel8_mc03_neon;
00321         c->avg_h264_qpel_pixels_tab[1][13] = ff_avg_h264_qpel8_mc13_neon;
00322         c->avg_h264_qpel_pixels_tab[1][14] = ff_avg_h264_qpel8_mc23_neon;
00323         c->avg_h264_qpel_pixels_tab[1][15] = ff_avg_h264_qpel8_mc33_neon;
00324     }
00325 
00326     if (CONFIG_VP3_DECODER) {
00327         c->vp3_v_loop_filter = ff_vp3_v_loop_filter_neon;
00328         c->vp3_h_loop_filter = ff_vp3_h_loop_filter_neon;
00329         c->vp3_idct_dc_add   = ff_vp3_idct_dc_add_neon;
00330     }
00331 
00332     c->vector_fmul                = ff_vector_fmul_neon;
00333     c->vector_fmul_window         = ff_vector_fmul_window_neon;
00334     c->vector_fmul_scalar         = ff_vector_fmul_scalar_neon;
00335     c->vector_fmac_scalar         = ff_vector_fmac_scalar_neon;
00336     c->butterflies_float          = ff_butterflies_float_neon;
00337     c->scalarproduct_float        = ff_scalarproduct_float_neon;
00338     c->vector_fmul_reverse        = ff_vector_fmul_reverse_neon;
00339     c->vector_fmul_add            = ff_vector_fmul_add_neon;
00340     c->vector_clipf               = ff_vector_clipf_neon;
00341     c->vector_clip_int32          = ff_vector_clip_int32_neon;
00342 
00343     if (CONFIG_VORBIS_DECODER)
00344         c->vorbis_inverse_coupling = ff_vorbis_inverse_coupling_neon;
00345 
00346     c->scalarproduct_int16 = ff_scalarproduct_int16_neon;
00347     c->scalarproduct_and_madd_int16 = ff_scalarproduct_and_madd_int16_neon;
00348 
00349     c->apply_window_int16 = ff_apply_window_int16_neon;
00350 }