1 /*
2 * Copyright (c) 2014 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 #include <arm_neon.h>
12
13 #include "./vp9_rtcd.h"
14 #include "./vpx_config.h"
15 #include "vpx/vpx_integer.h"
16
vp9_lpf_vertical_4_dual_neon(uint8_t * s,int p,const uint8_t * blimit0,const uint8_t * limit0,const uint8_t * thresh0,const uint8_t * blimit1,const uint8_t * limit1,const uint8_t * thresh1)17 void vp9_lpf_vertical_4_dual_neon(uint8_t *s, int p,
18 const uint8_t *blimit0,
19 const uint8_t *limit0,
20 const uint8_t *thresh0,
21 const uint8_t *blimit1,
22 const uint8_t *limit1,
23 const uint8_t *thresh1) {
24 vp9_lpf_vertical_4_neon(s, p, blimit0, limit0, thresh0, 1);
25 vp9_lpf_vertical_4_neon(s + 8 * p, p, blimit1, limit1, thresh1, 1);
26 }
27
28 #if HAVE_NEON_ASM
vp9_lpf_horizontal_8_dual_neon(uint8_t * s,int p,const uint8_t * blimit0,const uint8_t * limit0,const uint8_t * thresh0,const uint8_t * blimit1,const uint8_t * limit1,const uint8_t * thresh1)29 void vp9_lpf_horizontal_8_dual_neon(uint8_t *s, int p /* pitch */,
30 const uint8_t *blimit0,
31 const uint8_t *limit0,
32 const uint8_t *thresh0,
33 const uint8_t *blimit1,
34 const uint8_t *limit1,
35 const uint8_t *thresh1) {
36 vp9_lpf_horizontal_8_neon(s, p, blimit0, limit0, thresh0, 1);
37 vp9_lpf_horizontal_8_neon(s + 8, p, blimit1, limit1, thresh1, 1);
38 }
39
vp9_lpf_vertical_8_dual_neon(uint8_t * s,int p,const uint8_t * blimit0,const uint8_t * limit0,const uint8_t * thresh0,const uint8_t * blimit1,const uint8_t * limit1,const uint8_t * thresh1)40 void vp9_lpf_vertical_8_dual_neon(uint8_t *s, int p,
41 const uint8_t *blimit0,
42 const uint8_t *limit0,
43 const uint8_t *thresh0,
44 const uint8_t *blimit1,
45 const uint8_t *limit1,
46 const uint8_t *thresh1) {
47 vp9_lpf_vertical_8_neon(s, p, blimit0, limit0, thresh0, 1);
48 vp9_lpf_vertical_8_neon(s + 8 * p, p, blimit1, limit1, thresh1, 1);
49 }
50
vp9_lpf_vertical_16_dual_neon(uint8_t * s,int p,const uint8_t * blimit,const uint8_t * limit,const uint8_t * thresh)51 void vp9_lpf_vertical_16_dual_neon(uint8_t *s, int p,
52 const uint8_t *blimit,
53 const uint8_t *limit,
54 const uint8_t *thresh) {
55 vp9_lpf_vertical_16_neon(s, p, blimit, limit, thresh);
56 vp9_lpf_vertical_16_neon(s + 8 * p, p, blimit, limit, thresh);
57 }
58 #endif // HAVE_NEON_ASM
59