Home | History | Annotate | Download | only in arm
      1 /*
      2  *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
      3  *
      4  *  Use of this source code is governed by a BSD-style license
      5  *  that can be found in the LICENSE file in the root of the source
      6  *  tree. An additional intellectual property rights grant can be found
      7  *  in the file PATENTS.  All contributing project authors may
      8  *  be found in the AUTHORS file in the root of the source tree.
      9  */
     10 
     11 
     12 #include "encodemb.h"
     13 #include "reconinter.h"
     14 #include "quantize.h"
     15 #include "invtrans.h"
     16 #include "recon.h"
     17 #include "reconintra.h"
     18 #include "dct.h"
     19 #include "vpx_mem/vpx_mem.h"
     20 
     21 extern void vp8_subtract_b_neon_func(short *diff, unsigned char *src, unsigned char *pred, int stride, int pitch);
     22 
     23 void vp8_subtract_b_neon(BLOCK *be, BLOCKD *bd, int pitch)
     24 {
     25     unsigned char *src_ptr = (*(be->base_src) + be->src);
     26     short *diff_ptr = be->src_diff;
     27     unsigned char *pred_ptr = bd->predictor;
     28     int src_stride = be->src_stride;
     29 
     30     vp8_subtract_b_neon_func(diff_ptr, src_ptr, pred_ptr, src_stride, pitch);
     31 }
     32