• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

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_put_pixels16_neon(uint8_t *, const uint8_t *, int, int);
00038 void ff_put_pixels16_x2_neon(uint8_t *, const uint8_t *, int, int);
00039 void ff_put_pixels16_y2_neon(uint8_t *, const uint8_t *, int, int);
00040 void ff_put_pixels16_xy2_neon(uint8_t *, const uint8_t *, int, int);
00041 void ff_put_pixels8_neon(uint8_t *, const uint8_t *, int, int);
00042 void ff_put_pixels8_x2_neon(uint8_t *, const uint8_t *, int, int);
00043 void ff_put_pixels8_y2_neon(uint8_t *, const uint8_t *, int, int);
00044 void ff_put_pixels8_xy2_neon(uint8_t *, const uint8_t *, int, int);
00045 void ff_put_pixels16_x2_no_rnd_neon(uint8_t *, const uint8_t *, int, int);
00046 void ff_put_pixels16_y2_no_rnd_neon(uint8_t *, const uint8_t *, int, int);
00047 void ff_put_pixels16_xy2_no_rnd_neon(uint8_t *, const uint8_t *, int, int);
00048 void ff_put_pixels8_x2_no_rnd_neon(uint8_t *, const uint8_t *, int, int);
00049 void ff_put_pixels8_y2_no_rnd_neon(uint8_t *, const uint8_t *, int, int);
00050 void ff_put_pixels8_xy2_no_rnd_neon(uint8_t *, const uint8_t *, int, int);
00051 
00052 void ff_avg_pixels16_neon(uint8_t *, const uint8_t *, int, int);
00053 void ff_avg_pixels8_neon(uint8_t *, const uint8_t *, int, int);
00054 
00055 void ff_add_pixels_clamped_neon(const DCTELEM *, uint8_t *, int);
00056 void ff_put_pixels_clamped_neon(const DCTELEM *, uint8_t *, int);
00057 void ff_put_signed_pixels_clamped_neon(const DCTELEM *, uint8_t *, int);
00058 
00059 void ff_put_h264_qpel16_mc00_neon(uint8_t *, uint8_t *, int);
00060 void ff_put_h264_qpel16_mc10_neon(uint8_t *, uint8_t *, int);
00061 void ff_put_h264_qpel16_mc20_neon(uint8_t *, uint8_t *, int);
00062 void ff_put_h264_qpel16_mc30_neon(uint8_t *, uint8_t *, int);
00063 void ff_put_h264_qpel16_mc01_neon(uint8_t *, uint8_t *, int);
00064 void ff_put_h264_qpel16_mc11_neon(uint8_t *, uint8_t *, int);
00065 void ff_put_h264_qpel16_mc21_neon(uint8_t *, uint8_t *, int);
00066 void ff_put_h264_qpel16_mc31_neon(uint8_t *, uint8_t *, int);
00067 void ff_put_h264_qpel16_mc02_neon(uint8_t *, uint8_t *, int);
00068 void ff_put_h264_qpel16_mc12_neon(uint8_t *, uint8_t *, int);
00069 void ff_put_h264_qpel16_mc22_neon(uint8_t *, uint8_t *, int);
00070 void ff_put_h264_qpel16_mc32_neon(uint8_t *, uint8_t *, int);
00071 void ff_put_h264_qpel16_mc03_neon(uint8_t *, uint8_t *, int);
00072 void ff_put_h264_qpel16_mc13_neon(uint8_t *, uint8_t *, int);
00073 void ff_put_h264_qpel16_mc23_neon(uint8_t *, uint8_t *, int);
00074 void ff_put_h264_qpel16_mc33_neon(uint8_t *, uint8_t *, int);
00075 
00076 void ff_put_h264_qpel8_mc00_neon(uint8_t *, uint8_t *, int);
00077 void ff_put_h264_qpel8_mc10_neon(uint8_t *, uint8_t *, int);
00078 void ff_put_h264_qpel8_mc20_neon(uint8_t *, uint8_t *, int);
00079 void ff_put_h264_qpel8_mc30_neon(uint8_t *, uint8_t *, int);
00080 void ff_put_h264_qpel8_mc01_neon(uint8_t *, uint8_t *, int);
00081 void ff_put_h264_qpel8_mc11_neon(uint8_t *, uint8_t *, int);
00082 void ff_put_h264_qpel8_mc21_neon(uint8_t *, uint8_t *, int);
00083 void ff_put_h264_qpel8_mc31_neon(uint8_t *, uint8_t *, int);
00084 void ff_put_h264_qpel8_mc02_neon(uint8_t *, uint8_t *, int);
00085 void ff_put_h264_qpel8_mc12_neon(uint8_t *, uint8_t *, int);
00086 void ff_put_h264_qpel8_mc22_neon(uint8_t *, uint8_t *, int);
00087 void ff_put_h264_qpel8_mc32_neon(uint8_t *, uint8_t *, int);
00088 void ff_put_h264_qpel8_mc03_neon(uint8_t *, uint8_t *, int);
00089 void ff_put_h264_qpel8_mc13_neon(uint8_t *, uint8_t *, int);
00090 void ff_put_h264_qpel8_mc23_neon(uint8_t *, uint8_t *, int);
00091 void ff_put_h264_qpel8_mc33_neon(uint8_t *, uint8_t *, int);
00092 
00093 void ff_avg_h264_qpel16_mc00_neon(uint8_t *, uint8_t *, int);
00094 void ff_avg_h264_qpel16_mc10_neon(uint8_t *, uint8_t *, int);
00095 void ff_avg_h264_qpel16_mc20_neon(uint8_t *, uint8_t *, int);
00096 void ff_avg_h264_qpel16_mc30_neon(uint8_t *, uint8_t *, int);
00097 void ff_avg_h264_qpel16_mc01_neon(uint8_t *, uint8_t *, int);
00098 void ff_avg_h264_qpel16_mc11_neon(uint8_t *, uint8_t *, int);
00099 void ff_avg_h264_qpel16_mc21_neon(uint8_t *, uint8_t *, int);
00100 void ff_avg_h264_qpel16_mc31_neon(uint8_t *, uint8_t *, int);
00101 void ff_avg_h264_qpel16_mc02_neon(uint8_t *, uint8_t *, int);
00102 void ff_avg_h264_qpel16_mc12_neon(uint8_t *, uint8_t *, int);
00103 void ff_avg_h264_qpel16_mc22_neon(uint8_t *, uint8_t *, int);
00104 void ff_avg_h264_qpel16_mc32_neon(uint8_t *, uint8_t *, int);
00105 void ff_avg_h264_qpel16_mc03_neon(uint8_t *, uint8_t *, int);
00106 void ff_avg_h264_qpel16_mc13_neon(uint8_t *, uint8_t *, int);
00107 void ff_avg_h264_qpel16_mc23_neon(uint8_t *, uint8_t *, int);
00108 void ff_avg_h264_qpel16_mc33_neon(uint8_t *, uint8_t *, int);
00109 
00110 void ff_avg_h264_qpel8_mc00_neon(uint8_t *, uint8_t *, int);
00111 void ff_avg_h264_qpel8_mc10_neon(uint8_t *, uint8_t *, int);
00112 void ff_avg_h264_qpel8_mc20_neon(uint8_t *, uint8_t *, int);
00113 void ff_avg_h264_qpel8_mc30_neon(uint8_t *, uint8_t *, int);
00114 void ff_avg_h264_qpel8_mc01_neon(uint8_t *, uint8_t *, int);
00115 void ff_avg_h264_qpel8_mc11_neon(uint8_t *, uint8_t *, int);
00116 void ff_avg_h264_qpel8_mc21_neon(uint8_t *, uint8_t *, int);
00117 void ff_avg_h264_qpel8_mc31_neon(uint8_t *, uint8_t *, int);
00118 void ff_avg_h264_qpel8_mc02_neon(uint8_t *, uint8_t *, int);
00119 void ff_avg_h264_qpel8_mc12_neon(uint8_t *, uint8_t *, int);
00120 void ff_avg_h264_qpel8_mc22_neon(uint8_t *, uint8_t *, int);
00121 void ff_avg_h264_qpel8_mc32_neon(uint8_t *, uint8_t *, int);
00122 void ff_avg_h264_qpel8_mc03_neon(uint8_t *, uint8_t *, int);
00123 void ff_avg_h264_qpel8_mc13_neon(uint8_t *, uint8_t *, int);
00124 void ff_avg_h264_qpel8_mc23_neon(uint8_t *, uint8_t *, int);
00125 void ff_avg_h264_qpel8_mc33_neon(uint8_t *, uint8_t *, int);
00126 
00127 void ff_put_h264_chroma_mc8_neon(uint8_t *, uint8_t *, int, int, int, int);
00128 void ff_put_h264_chroma_mc4_neon(uint8_t *, uint8_t *, int, int, int, int);
00129 void ff_put_h264_chroma_mc2_neon(uint8_t *, uint8_t *, int, int, int, int);
00130 
00131 void ff_avg_h264_chroma_mc8_neon(uint8_t *, uint8_t *, int, int, int, int);
00132 void ff_avg_h264_chroma_mc4_neon(uint8_t *, uint8_t *, int, int, int, int);
00133 void ff_avg_h264_chroma_mc2_neon(uint8_t *, uint8_t *, int, int, int, int);
00134 
00135 void ff_vp3_v_loop_filter_neon(uint8_t *, int, int *);
00136 void ff_vp3_h_loop_filter_neon(uint8_t *, int, int *);
00137 
00138 void ff_vector_fmul_neon(float *dst, const float *src, int len);
00139 void ff_vector_fmul_window_neon(float *dst, const float *src0,
00140                                 const float *src1, const float *win,
00141                                 float add_bias, int len);
00142 void ff_vector_fmul_scalar_neon(float *dst, const float *src, float mul,
00143                                 int len);
00144 void ff_vector_fmul_sv_scalar_2_neon(float *dst, const float *src,
00145                                      const float **vp, float mul, int len);
00146 void ff_vector_fmul_sv_scalar_4_neon(float *dst, const float *src,
00147                                      const float **vp, float mul, int len);
00148 void ff_sv_fmul_scalar_2_neon(float *dst, const float **vp, float mul,
00149                               int len);
00150 void ff_sv_fmul_scalar_4_neon(float *dst, const float **vp, float mul,
00151                               int len);
00152 void ff_butterflies_float_neon(float *v1, float *v2, int len);
00153 float ff_scalarproduct_float_neon(const float *v1, const float *v2, int len);
00154 void ff_int32_to_float_fmul_scalar_neon(float *dst, const int *src,
00155                                         float mul, 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 void ff_float_to_int16_neon(int16_t *, const float *, long);
00164 void ff_float_to_int16_interleave_neon(int16_t *, const float **, long, int);
00165 
00166 void ff_vorbis_inverse_coupling_neon(float *mag, float *ang, int blocksize);
00167 
00168 int32_t ff_scalarproduct_int16_neon(int16_t *v1, int16_t *v2, int len,
00169                                     int shift);
00170 int32_t ff_scalarproduct_and_madd_int16_neon(int16_t *v1, int16_t *v2,
00171                                              int16_t *v3, int len, int mul);
00172 
00173 void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx)
00174 {
00175     if (!avctx->lowres) {
00176         if (avctx->idct_algo == FF_IDCT_AUTO ||
00177             avctx->idct_algo == FF_IDCT_SIMPLENEON) {
00178             c->idct_put              = ff_simple_idct_put_neon;
00179             c->idct_add              = ff_simple_idct_add_neon;
00180             c->idct                  = ff_simple_idct_neon;
00181             c->idct_permutation_type = FF_PARTTRANS_IDCT_PERM;
00182         } else if ((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER ||
00183                     CONFIG_VP6_DECODER) &&
00184                    avctx->idct_algo == FF_IDCT_VP3) {
00185             c->idct_put              = ff_vp3_idct_put_neon;
00186             c->idct_add              = ff_vp3_idct_add_neon;
00187             c->idct                  = ff_vp3_idct_neon;
00188             c->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM;
00189         }
00190     }
00191 
00192     c->put_pixels_tab[0][0] = ff_put_pixels16_neon;
00193     c->put_pixels_tab[0][1] = ff_put_pixels16_x2_neon;
00194     c->put_pixels_tab[0][2] = ff_put_pixels16_y2_neon;
00195     c->put_pixels_tab[0][3] = ff_put_pixels16_xy2_neon;
00196     c->put_pixels_tab[1][0] = ff_put_pixels8_neon;
00197     c->put_pixels_tab[1][1] = ff_put_pixels8_x2_neon;
00198     c->put_pixels_tab[1][2] = ff_put_pixels8_y2_neon;
00199     c->put_pixels_tab[1][3] = ff_put_pixels8_xy2_neon;
00200 
00201     c->put_no_rnd_pixels_tab[0][0] = ff_put_pixels16_neon;
00202     c->put_no_rnd_pixels_tab[0][1] = ff_put_pixels16_x2_no_rnd_neon;
00203     c->put_no_rnd_pixels_tab[0][2] = ff_put_pixels16_y2_no_rnd_neon;
00204     c->put_no_rnd_pixels_tab[0][3] = ff_put_pixels16_xy2_no_rnd_neon;
00205     c->put_no_rnd_pixels_tab[1][0] = ff_put_pixels8_neon;
00206     c->put_no_rnd_pixels_tab[1][1] = ff_put_pixels8_x2_no_rnd_neon;
00207     c->put_no_rnd_pixels_tab[1][2] = ff_put_pixels8_y2_no_rnd_neon;
00208     c->put_no_rnd_pixels_tab[1][3] = ff_put_pixels8_xy2_no_rnd_neon;
00209 
00210     c->avg_pixels_tab[0][0] = ff_avg_pixels16_neon;
00211     c->avg_pixels_tab[1][0] = ff_avg_pixels8_neon;
00212 
00213     c->add_pixels_clamped = ff_add_pixels_clamped_neon;
00214     c->put_pixels_clamped = ff_put_pixels_clamped_neon;
00215     c->put_signed_pixels_clamped = ff_put_signed_pixels_clamped_neon;
00216 
00217     if (CONFIG_H264_DECODER) {
00218         c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_neon;
00219         c->put_h264_chroma_pixels_tab[1] = ff_put_h264_chroma_mc4_neon;
00220         c->put_h264_chroma_pixels_tab[2] = ff_put_h264_chroma_mc2_neon;
00221 
00222         c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_neon;
00223         c->avg_h264_chroma_pixels_tab[1] = ff_avg_h264_chroma_mc4_neon;
00224         c->avg_h264_chroma_pixels_tab[2] = ff_avg_h264_chroma_mc2_neon;
00225 
00226         c->put_h264_qpel_pixels_tab[0][ 0] = ff_put_h264_qpel16_mc00_neon;
00227         c->put_h264_qpel_pixels_tab[0][ 1] = ff_put_h264_qpel16_mc10_neon;
00228         c->put_h264_qpel_pixels_tab[0][ 2] = ff_put_h264_qpel16_mc20_neon;
00229         c->put_h264_qpel_pixels_tab[0][ 3] = ff_put_h264_qpel16_mc30_neon;
00230         c->put_h264_qpel_pixels_tab[0][ 4] = ff_put_h264_qpel16_mc01_neon;
00231         c->put_h264_qpel_pixels_tab[0][ 5] = ff_put_h264_qpel16_mc11_neon;
00232         c->put_h264_qpel_pixels_tab[0][ 6] = ff_put_h264_qpel16_mc21_neon;
00233         c->put_h264_qpel_pixels_tab[0][ 7] = ff_put_h264_qpel16_mc31_neon;
00234         c->put_h264_qpel_pixels_tab[0][ 8] = ff_put_h264_qpel16_mc02_neon;
00235         c->put_h264_qpel_pixels_tab[0][ 9] = ff_put_h264_qpel16_mc12_neon;
00236         c->put_h264_qpel_pixels_tab[0][10] = ff_put_h264_qpel16_mc22_neon;
00237         c->put_h264_qpel_pixels_tab[0][11] = ff_put_h264_qpel16_mc32_neon;
00238         c->put_h264_qpel_pixels_tab[0][12] = ff_put_h264_qpel16_mc03_neon;
00239         c->put_h264_qpel_pixels_tab[0][13] = ff_put_h264_qpel16_mc13_neon;
00240         c->put_h264_qpel_pixels_tab[0][14] = ff_put_h264_qpel16_mc23_neon;
00241         c->put_h264_qpel_pixels_tab[0][15] = ff_put_h264_qpel16_mc33_neon;
00242 
00243         c->put_h264_qpel_pixels_tab[1][ 0] = ff_put_h264_qpel8_mc00_neon;
00244         c->put_h264_qpel_pixels_tab[1][ 1] = ff_put_h264_qpel8_mc10_neon;
00245         c->put_h264_qpel_pixels_tab[1][ 2] = ff_put_h264_qpel8_mc20_neon;
00246         c->put_h264_qpel_pixels_tab[1][ 3] = ff_put_h264_qpel8_mc30_neon;
00247         c->put_h264_qpel_pixels_tab[1][ 4] = ff_put_h264_qpel8_mc01_neon;
00248         c->put_h264_qpel_pixels_tab[1][ 5] = ff_put_h264_qpel8_mc11_neon;
00249         c->put_h264_qpel_pixels_tab[1][ 6] = ff_put_h264_qpel8_mc21_neon;
00250         c->put_h264_qpel_pixels_tab[1][ 7] = ff_put_h264_qpel8_mc31_neon;
00251         c->put_h264_qpel_pixels_tab[1][ 8] = ff_put_h264_qpel8_mc02_neon;
00252         c->put_h264_qpel_pixels_tab[1][ 9] = ff_put_h264_qpel8_mc12_neon;
00253         c->put_h264_qpel_pixels_tab[1][10] = ff_put_h264_qpel8_mc22_neon;
00254         c->put_h264_qpel_pixels_tab[1][11] = ff_put_h264_qpel8_mc32_neon;
00255         c->put_h264_qpel_pixels_tab[1][12] = ff_put_h264_qpel8_mc03_neon;
00256         c->put_h264_qpel_pixels_tab[1][13] = ff_put_h264_qpel8_mc13_neon;
00257         c->put_h264_qpel_pixels_tab[1][14] = ff_put_h264_qpel8_mc23_neon;
00258         c->put_h264_qpel_pixels_tab[1][15] = ff_put_h264_qpel8_mc33_neon;
00259 
00260         c->avg_h264_qpel_pixels_tab[0][ 0] = ff_avg_h264_qpel16_mc00_neon;
00261         c->avg_h264_qpel_pixels_tab[0][ 1] = ff_avg_h264_qpel16_mc10_neon;
00262         c->avg_h264_qpel_pixels_tab[0][ 2] = ff_avg_h264_qpel16_mc20_neon;
00263         c->avg_h264_qpel_pixels_tab[0][ 3] = ff_avg_h264_qpel16_mc30_neon;
00264         c->avg_h264_qpel_pixels_tab[0][ 4] = ff_avg_h264_qpel16_mc01_neon;
00265         c->avg_h264_qpel_pixels_tab[0][ 5] = ff_avg_h264_qpel16_mc11_neon;
00266         c->avg_h264_qpel_pixels_tab[0][ 6] = ff_avg_h264_qpel16_mc21_neon;
00267         c->avg_h264_qpel_pixels_tab[0][ 7] = ff_avg_h264_qpel16_mc31_neon;
00268         c->avg_h264_qpel_pixels_tab[0][ 8] = ff_avg_h264_qpel16_mc02_neon;
00269         c->avg_h264_qpel_pixels_tab[0][ 9] = ff_avg_h264_qpel16_mc12_neon;
00270         c->avg_h264_qpel_pixels_tab[0][10] = ff_avg_h264_qpel16_mc22_neon;
00271         c->avg_h264_qpel_pixels_tab[0][11] = ff_avg_h264_qpel16_mc32_neon;
00272         c->avg_h264_qpel_pixels_tab[0][12] = ff_avg_h264_qpel16_mc03_neon;
00273         c->avg_h264_qpel_pixels_tab[0][13] = ff_avg_h264_qpel16_mc13_neon;
00274         c->avg_h264_qpel_pixels_tab[0][14] = ff_avg_h264_qpel16_mc23_neon;
00275         c->avg_h264_qpel_pixels_tab[0][15] = ff_avg_h264_qpel16_mc33_neon;
00276 
00277         c->avg_h264_qpel_pixels_tab[1][ 0] = ff_avg_h264_qpel8_mc00_neon;
00278         c->avg_h264_qpel_pixels_tab[1][ 1] = ff_avg_h264_qpel8_mc10_neon;
00279         c->avg_h264_qpel_pixels_tab[1][ 2] = ff_avg_h264_qpel8_mc20_neon;
00280         c->avg_h264_qpel_pixels_tab[1][ 3] = ff_avg_h264_qpel8_mc30_neon;
00281         c->avg_h264_qpel_pixels_tab[1][ 4] = ff_avg_h264_qpel8_mc01_neon;
00282         c->avg_h264_qpel_pixels_tab[1][ 5] = ff_avg_h264_qpel8_mc11_neon;
00283         c->avg_h264_qpel_pixels_tab[1][ 6] = ff_avg_h264_qpel8_mc21_neon;
00284         c->avg_h264_qpel_pixels_tab[1][ 7] = ff_avg_h264_qpel8_mc31_neon;
00285         c->avg_h264_qpel_pixels_tab[1][ 8] = ff_avg_h264_qpel8_mc02_neon;
00286         c->avg_h264_qpel_pixels_tab[1][ 9] = ff_avg_h264_qpel8_mc12_neon;
00287         c->avg_h264_qpel_pixels_tab[1][10] = ff_avg_h264_qpel8_mc22_neon;
00288         c->avg_h264_qpel_pixels_tab[1][11] = ff_avg_h264_qpel8_mc32_neon;
00289         c->avg_h264_qpel_pixels_tab[1][12] = ff_avg_h264_qpel8_mc03_neon;
00290         c->avg_h264_qpel_pixels_tab[1][13] = ff_avg_h264_qpel8_mc13_neon;
00291         c->avg_h264_qpel_pixels_tab[1][14] = ff_avg_h264_qpel8_mc23_neon;
00292         c->avg_h264_qpel_pixels_tab[1][15] = ff_avg_h264_qpel8_mc33_neon;
00293     }
00294 
00295     if (CONFIG_VP3_DECODER) {
00296         c->vp3_v_loop_filter = ff_vp3_v_loop_filter_neon;
00297         c->vp3_h_loop_filter = ff_vp3_h_loop_filter_neon;
00298         c->vp3_idct_dc_add   = ff_vp3_idct_dc_add_neon;
00299     }
00300 
00301     c->vector_fmul                = ff_vector_fmul_neon;
00302     c->vector_fmul_window         = ff_vector_fmul_window_neon;
00303     c->vector_fmul_scalar         = ff_vector_fmul_scalar_neon;
00304     c->butterflies_float          = ff_butterflies_float_neon;
00305     c->scalarproduct_float        = ff_scalarproduct_float_neon;
00306     c->int32_to_float_fmul_scalar = ff_int32_to_float_fmul_scalar_neon;
00307     c->vector_fmul_reverse        = ff_vector_fmul_reverse_neon;
00308     c->vector_fmul_add            = ff_vector_fmul_add_neon;
00309     c->vector_clipf               = ff_vector_clipf_neon;
00310 
00311     c->vector_fmul_sv_scalar[0] = ff_vector_fmul_sv_scalar_2_neon;
00312     c->vector_fmul_sv_scalar[1] = ff_vector_fmul_sv_scalar_4_neon;
00313 
00314     c->sv_fmul_scalar[0] = ff_sv_fmul_scalar_2_neon;
00315     c->sv_fmul_scalar[1] = ff_sv_fmul_scalar_4_neon;
00316 
00317     if (!(avctx->flags & CODEC_FLAG_BITEXACT)) {
00318         c->float_to_int16            = ff_float_to_int16_neon;
00319         c->float_to_int16_interleave = ff_float_to_int16_interleave_neon;
00320     }
00321 
00322     if (CONFIG_VORBIS_DECODER)
00323         c->vorbis_inverse_coupling = ff_vorbis_inverse_coupling_neon;
00324 
00325     c->scalarproduct_int16 = ff_scalarproduct_int16_neon;
00326     c->scalarproduct_and_madd_int16 = ff_scalarproduct_and_madd_int16_neon;
00327 }

Generated on Fri Sep 16 2011 17:17:34 for FFmpeg by  doxygen 1.7.1