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 #ifndef VPX_DSP_MIPS_VPX_COMMON_DSPR2_H_
12 #define VPX_DSP_MIPS_VPX_COMMON_DSPR2_H_
13 
14 #include <assert.h>
15 
16 #include "./vpx_config.h"
17 #include "vpx/vpx_integer.h"
18 #include "vpx_dsp/mips/common_dspr2.h"
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #if HAVE_DSPR2
25 void vpx_convolve2_horiz_dspr2(const uint8_t *src, ptrdiff_t src_stride,
26                                uint8_t *dst, ptrdiff_t dst_stride,
27                                const int16_t *filter_x, int x_step_q4,
28                                const int16_t *filter_y, int y_step_q4, int w,
29                                int h);
30 
31 void vpx_convolve2_avg_horiz_dspr2(const uint8_t *src, ptrdiff_t src_stride,
32                                    uint8_t *dst, ptrdiff_t dst_stride,
33                                    const int16_t *filter_x, int x_step_q4,
34                                    const int16_t *filter_y, int y_step_q4,
35                                    int w, int h);
36 
37 void vpx_convolve2_avg_vert_dspr2(const uint8_t *src, ptrdiff_t src_stride,
38                                   uint8_t *dst, ptrdiff_t dst_stride,
39                                   const int16_t *filter_x, int x_step_q4,
40                                   const int16_t *filter_y, int y_step_q4, int w,
41                                   int h);
42 
43 void vpx_convolve2_dspr2(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst,
44                          ptrdiff_t dst_stride, const int16_t *filter, int w,
45                          int h);
46 
47 void vpx_convolve2_vert_dspr2(const uint8_t *src, ptrdiff_t src_stride,
48                               uint8_t *dst, ptrdiff_t dst_stride,
49                               const int16_t *filter_x, int x_step_q4,
50                               const int16_t *filter_y, int y_step_q4, int w,
51                               int h);
52 
53 #endif  // #if HAVE_DSPR2
54 #ifdef __cplusplus
55 }  // extern "C"
56 #endif
57 
58 #endif  // VPX_DSP_MIPS_VPX_COMMON_DSPR2_H_
59