Revision 7d90972c libavcodec/arm/dsputil_neon.c

View differences:

libavcodec/arm/dsputil_neon.c
188 188
    c->put_signed_pixels_clamped = ff_put_signed_pixels_clamped_neon;
189 189

  
190 190
    if (CONFIG_H264_DECODER) {
191
    c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_neon;
192
    c->put_h264_chroma_pixels_tab[1] = ff_put_h264_chroma_mc4_neon;
193

  
194
    c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_neon;
195
    c->avg_h264_chroma_pixels_tab[1] = ff_avg_h264_chroma_mc4_neon;
196

  
197
    c->put_h264_qpel_pixels_tab[0][ 0] = ff_put_h264_qpel16_mc00_neon;
198
    c->put_h264_qpel_pixels_tab[0][ 1] = ff_put_h264_qpel16_mc10_neon;
199
    c->put_h264_qpel_pixels_tab[0][ 2] = ff_put_h264_qpel16_mc20_neon;
200
    c->put_h264_qpel_pixels_tab[0][ 3] = ff_put_h264_qpel16_mc30_neon;
201
    c->put_h264_qpel_pixels_tab[0][ 4] = ff_put_h264_qpel16_mc01_neon;
202
    c->put_h264_qpel_pixels_tab[0][ 5] = ff_put_h264_qpel16_mc11_neon;
203
    c->put_h264_qpel_pixels_tab[0][ 6] = ff_put_h264_qpel16_mc21_neon;
204
    c->put_h264_qpel_pixels_tab[0][ 7] = ff_put_h264_qpel16_mc31_neon;
205
    c->put_h264_qpel_pixels_tab[0][ 8] = ff_put_h264_qpel16_mc02_neon;
206
    c->put_h264_qpel_pixels_tab[0][ 9] = ff_put_h264_qpel16_mc12_neon;
207
    c->put_h264_qpel_pixels_tab[0][10] = ff_put_h264_qpel16_mc22_neon;
208
    c->put_h264_qpel_pixels_tab[0][11] = ff_put_h264_qpel16_mc32_neon;
209
    c->put_h264_qpel_pixels_tab[0][12] = ff_put_h264_qpel16_mc03_neon;
210
    c->put_h264_qpel_pixels_tab[0][13] = ff_put_h264_qpel16_mc13_neon;
211
    c->put_h264_qpel_pixels_tab[0][14] = ff_put_h264_qpel16_mc23_neon;
212
    c->put_h264_qpel_pixels_tab[0][15] = ff_put_h264_qpel16_mc33_neon;
213

  
214
    c->put_h264_qpel_pixels_tab[1][ 0] = ff_put_h264_qpel8_mc00_neon;
215
    c->put_h264_qpel_pixels_tab[1][ 1] = ff_put_h264_qpel8_mc10_neon;
216
    c->put_h264_qpel_pixels_tab[1][ 2] = ff_put_h264_qpel8_mc20_neon;
217
    c->put_h264_qpel_pixels_tab[1][ 3] = ff_put_h264_qpel8_mc30_neon;
218
    c->put_h264_qpel_pixels_tab[1][ 4] = ff_put_h264_qpel8_mc01_neon;
219
    c->put_h264_qpel_pixels_tab[1][ 5] = ff_put_h264_qpel8_mc11_neon;
220
    c->put_h264_qpel_pixels_tab[1][ 6] = ff_put_h264_qpel8_mc21_neon;
221
    c->put_h264_qpel_pixels_tab[1][ 7] = ff_put_h264_qpel8_mc31_neon;
222
    c->put_h264_qpel_pixels_tab[1][ 8] = ff_put_h264_qpel8_mc02_neon;
223
    c->put_h264_qpel_pixels_tab[1][ 9] = ff_put_h264_qpel8_mc12_neon;
224
    c->put_h264_qpel_pixels_tab[1][10] = ff_put_h264_qpel8_mc22_neon;
225
    c->put_h264_qpel_pixels_tab[1][11] = ff_put_h264_qpel8_mc32_neon;
226
    c->put_h264_qpel_pixels_tab[1][12] = ff_put_h264_qpel8_mc03_neon;
227
    c->put_h264_qpel_pixels_tab[1][13] = ff_put_h264_qpel8_mc13_neon;
228
    c->put_h264_qpel_pixels_tab[1][14] = ff_put_h264_qpel8_mc23_neon;
229
    c->put_h264_qpel_pixels_tab[1][15] = ff_put_h264_qpel8_mc33_neon;
230

  
231
    c->avg_h264_qpel_pixels_tab[0][ 0] = ff_avg_h264_qpel16_mc00_neon;
232

  
233
    c->h264_v_loop_filter_luma = ff_h264_v_loop_filter_luma_neon;
234
    c->h264_h_loop_filter_luma = ff_h264_h_loop_filter_luma_neon;
235
    c->h264_v_loop_filter_chroma = ff_h264_v_loop_filter_chroma_neon;
236
    c->h264_h_loop_filter_chroma = ff_h264_h_loop_filter_chroma_neon;
237

  
238
    c->weight_h264_pixels_tab[0] = ff_weight_h264_pixels_16x16_neon;
239
    c->weight_h264_pixels_tab[1] = ff_weight_h264_pixels_16x8_neon;
240
    c->weight_h264_pixels_tab[2] = ff_weight_h264_pixels_8x16_neon;
241
    c->weight_h264_pixels_tab[3] = ff_weight_h264_pixels_8x8_neon;
242
    c->weight_h264_pixels_tab[4] = ff_weight_h264_pixels_8x4_neon;
243
    c->weight_h264_pixels_tab[5] = ff_weight_h264_pixels_4x8_neon;
244
    c->weight_h264_pixels_tab[6] = ff_weight_h264_pixels_4x4_neon;
245
    c->weight_h264_pixels_tab[7] = ff_weight_h264_pixels_4x2_neon;
246

  
247
    c->biweight_h264_pixels_tab[0] = ff_biweight_h264_pixels_16x16_neon;
248
    c->biweight_h264_pixels_tab[1] = ff_biweight_h264_pixels_16x8_neon;
249
    c->biweight_h264_pixels_tab[2] = ff_biweight_h264_pixels_8x16_neon;
250
    c->biweight_h264_pixels_tab[3] = ff_biweight_h264_pixels_8x8_neon;
251
    c->biweight_h264_pixels_tab[4] = ff_biweight_h264_pixels_8x4_neon;
252
    c->biweight_h264_pixels_tab[5] = ff_biweight_h264_pixels_4x8_neon;
253
    c->biweight_h264_pixels_tab[6] = ff_biweight_h264_pixels_4x4_neon;
254
    c->biweight_h264_pixels_tab[7] = ff_biweight_h264_pixels_4x2_neon;
255

  
256
    c->h264_idct_add = ff_h264_idct_add_neon;
257
    c->h264_idct_dc_add = ff_h264_idct_dc_add_neon;
258
    c->h264_idct_add16      = ff_h264_idct_add16_neon;
259
    c->h264_idct_add16intra = ff_h264_idct_add16intra_neon;
260
    c->h264_idct_add8       = ff_h264_idct_add8_neon;
191
        c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_neon;
192
        c->put_h264_chroma_pixels_tab[1] = ff_put_h264_chroma_mc4_neon;
193

  
194
        c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_neon;
195
        c->avg_h264_chroma_pixels_tab[1] = ff_avg_h264_chroma_mc4_neon;
196

  
197
        c->put_h264_qpel_pixels_tab[0][ 0] = ff_put_h264_qpel16_mc00_neon;
198
        c->put_h264_qpel_pixels_tab[0][ 1] = ff_put_h264_qpel16_mc10_neon;
199
        c->put_h264_qpel_pixels_tab[0][ 2] = ff_put_h264_qpel16_mc20_neon;
200
        c->put_h264_qpel_pixels_tab[0][ 3] = ff_put_h264_qpel16_mc30_neon;
201
        c->put_h264_qpel_pixels_tab[0][ 4] = ff_put_h264_qpel16_mc01_neon;
202
        c->put_h264_qpel_pixels_tab[0][ 5] = ff_put_h264_qpel16_mc11_neon;
203
        c->put_h264_qpel_pixels_tab[0][ 6] = ff_put_h264_qpel16_mc21_neon;
204
        c->put_h264_qpel_pixels_tab[0][ 7] = ff_put_h264_qpel16_mc31_neon;
205
        c->put_h264_qpel_pixels_tab[0][ 8] = ff_put_h264_qpel16_mc02_neon;
206
        c->put_h264_qpel_pixels_tab[0][ 9] = ff_put_h264_qpel16_mc12_neon;
207
        c->put_h264_qpel_pixels_tab[0][10] = ff_put_h264_qpel16_mc22_neon;
208
        c->put_h264_qpel_pixels_tab[0][11] = ff_put_h264_qpel16_mc32_neon;
209
        c->put_h264_qpel_pixels_tab[0][12] = ff_put_h264_qpel16_mc03_neon;
210
        c->put_h264_qpel_pixels_tab[0][13] = ff_put_h264_qpel16_mc13_neon;
211
        c->put_h264_qpel_pixels_tab[0][14] = ff_put_h264_qpel16_mc23_neon;
212
        c->put_h264_qpel_pixels_tab[0][15] = ff_put_h264_qpel16_mc33_neon;
213

  
214
        c->put_h264_qpel_pixels_tab[1][ 0] = ff_put_h264_qpel8_mc00_neon;
215
        c->put_h264_qpel_pixels_tab[1][ 1] = ff_put_h264_qpel8_mc10_neon;
216
        c->put_h264_qpel_pixels_tab[1][ 2] = ff_put_h264_qpel8_mc20_neon;
217
        c->put_h264_qpel_pixels_tab[1][ 3] = ff_put_h264_qpel8_mc30_neon;
218
        c->put_h264_qpel_pixels_tab[1][ 4] = ff_put_h264_qpel8_mc01_neon;
219
        c->put_h264_qpel_pixels_tab[1][ 5] = ff_put_h264_qpel8_mc11_neon;
220
        c->put_h264_qpel_pixels_tab[1][ 6] = ff_put_h264_qpel8_mc21_neon;
221
        c->put_h264_qpel_pixels_tab[1][ 7] = ff_put_h264_qpel8_mc31_neon;
222
        c->put_h264_qpel_pixels_tab[1][ 8] = ff_put_h264_qpel8_mc02_neon;
223
        c->put_h264_qpel_pixels_tab[1][ 9] = ff_put_h264_qpel8_mc12_neon;
224
        c->put_h264_qpel_pixels_tab[1][10] = ff_put_h264_qpel8_mc22_neon;
225
        c->put_h264_qpel_pixels_tab[1][11] = ff_put_h264_qpel8_mc32_neon;
226
        c->put_h264_qpel_pixels_tab[1][12] = ff_put_h264_qpel8_mc03_neon;
227
        c->put_h264_qpel_pixels_tab[1][13] = ff_put_h264_qpel8_mc13_neon;
228
        c->put_h264_qpel_pixels_tab[1][14] = ff_put_h264_qpel8_mc23_neon;
229
        c->put_h264_qpel_pixels_tab[1][15] = ff_put_h264_qpel8_mc33_neon;
230

  
231
        c->avg_h264_qpel_pixels_tab[0][ 0] = ff_avg_h264_qpel16_mc00_neon;
232

  
233
        c->h264_v_loop_filter_luma   = ff_h264_v_loop_filter_luma_neon;
234
        c->h264_h_loop_filter_luma   = ff_h264_h_loop_filter_luma_neon;
235
        c->h264_v_loop_filter_chroma = ff_h264_v_loop_filter_chroma_neon;
236
        c->h264_h_loop_filter_chroma = ff_h264_h_loop_filter_chroma_neon;
237

  
238
        c->weight_h264_pixels_tab[0] = ff_weight_h264_pixels_16x16_neon;
239
        c->weight_h264_pixels_tab[1] = ff_weight_h264_pixels_16x8_neon;
240
        c->weight_h264_pixels_tab[2] = ff_weight_h264_pixels_8x16_neon;
241
        c->weight_h264_pixels_tab[3] = ff_weight_h264_pixels_8x8_neon;
242
        c->weight_h264_pixels_tab[4] = ff_weight_h264_pixels_8x4_neon;
243
        c->weight_h264_pixels_tab[5] = ff_weight_h264_pixels_4x8_neon;
244
        c->weight_h264_pixels_tab[6] = ff_weight_h264_pixels_4x4_neon;
245
        c->weight_h264_pixels_tab[7] = ff_weight_h264_pixels_4x2_neon;
246

  
247
        c->biweight_h264_pixels_tab[0] = ff_biweight_h264_pixels_16x16_neon;
248
        c->biweight_h264_pixels_tab[1] = ff_biweight_h264_pixels_16x8_neon;
249
        c->biweight_h264_pixels_tab[2] = ff_biweight_h264_pixels_8x16_neon;
250
        c->biweight_h264_pixels_tab[3] = ff_biweight_h264_pixels_8x8_neon;
251
        c->biweight_h264_pixels_tab[4] = ff_biweight_h264_pixels_8x4_neon;
252
        c->biweight_h264_pixels_tab[5] = ff_biweight_h264_pixels_4x8_neon;
253
        c->biweight_h264_pixels_tab[6] = ff_biweight_h264_pixels_4x4_neon;
254
        c->biweight_h264_pixels_tab[7] = ff_biweight_h264_pixels_4x2_neon;
255

  
256
        c->h264_idct_add        = ff_h264_idct_add_neon;
257
        c->h264_idct_dc_add     = ff_h264_idct_dc_add_neon;
258
        c->h264_idct_add16      = ff_h264_idct_add16_neon;
259
        c->h264_idct_add16intra = ff_h264_idct_add16intra_neon;
260
        c->h264_idct_add8       = ff_h264_idct_add8_neon;
261 261
    }
262 262

  
263 263
    if (CONFIG_VP3_DECODER) {

Also available in: Unified diff