Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / libvpx / source / libvpx / vp9 / common / arm / neon / vp9_loopfilter_16_neon.c
1 /*
2  *  Copyright (c) 2013 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 "./vp9_rtcd.h"
12 #include "vpx/vpx_integer.h"
13
14 void vp9_lpf_horizontal_8_dual_neon(uint8_t *s, int p /* pitch */,
15                                     const uint8_t *blimit0,
16                                     const uint8_t *limit0,
17                                     const uint8_t *thresh0,
18                                     const uint8_t *blimit1,
19                                     const uint8_t *limit1,
20                                     const uint8_t *thresh1) {
21   vp9_lpf_horizontal_8(s, p, blimit0, limit0, thresh0, 1);
22   vp9_lpf_horizontal_8(s + 8, p, blimit1, limit1, thresh1, 1);
23 }
24
25 void vp9_lpf_vertical_4_dual_neon(uint8_t *s, int p,
26                                   const uint8_t *blimit0,
27                                   const uint8_t *limit0,
28                                   const uint8_t *thresh0,
29                                   const uint8_t *blimit1,
30                                   const uint8_t *limit1,
31                                   const uint8_t *thresh1) {
32   vp9_lpf_vertical_4_neon(s, p, blimit0, limit0, thresh0, 1);
33   vp9_lpf_vertical_4_neon(s + 8 * p, p, blimit1, limit1, thresh1, 1);
34 }
35
36 void vp9_lpf_vertical_8_dual_neon(uint8_t *s, int p,
37                                   const uint8_t *blimit0,
38                                   const uint8_t *limit0,
39                                   const uint8_t *thresh0,
40                                   const uint8_t *blimit1,
41                                   const uint8_t *limit1,
42                                   const uint8_t *thresh1) {
43   vp9_lpf_vertical_8_neon(s, p, blimit0, limit0, thresh0, 1);
44   vp9_lpf_vertical_8_neon(s + 8 * p, p, blimit1, limit1, thresh1, 1);
45 }
46
47 void vp9_lpf_vertical_16_dual_neon(uint8_t *s, int p,
48                                    const uint8_t *blimit,
49                                    const uint8_t *limit,
50                                    const uint8_t *thresh) {
51   vp9_lpf_vertical_16_neon(s, p, blimit, limit, thresh);
52   vp9_lpf_vertical_16_neon(s + 8 * p, p, blimit, limit, thresh);
53 }