convolve_common_dspr2.h revision 7ce0a1d1337c01056ba24006efab21f00e179e04
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 21extern "C" { 22#endif 23 24#if HAVE_DSPR2 25void 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, 29 int w, int h); 30 31void 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 37void 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, 41 int w, int h); 42 43void vpx_convolve2_dspr2(const uint8_t *src, ptrdiff_t src_stride, 44 uint8_t *dst, ptrdiff_t dst_stride, 45 const int16_t *filter, 46 int w, int h); 47 48void vpx_convolve2_vert_dspr2(const uint8_t *src, ptrdiff_t src_stride, 49 uint8_t *dst, ptrdiff_t dst_stride, 50 const int16_t *filter_x, int x_step_q4, 51 const int16_t *filter_y, int y_step_q4, 52 int w, int h); 53 54#endif // #if HAVE_DSPR2 55#ifdef __cplusplus 56} // extern "C" 57#endif 58 59#endif // VPX_DSP_MIPS_VPX_COMMON_DSPR2_H_ 60