xref: /aosp_15_r20/external/libvpx/vpx_dsp/vpx_convolve.h (revision fb1b10ab9aebc7c7068eedab379b749d7e3900be)
1*fb1b10abSAndroid Build Coastguard Worker /*
2*fb1b10abSAndroid Build Coastguard Worker  *  Copyright (c) 2013 The WebM project authors. All Rights Reserved.
3*fb1b10abSAndroid Build Coastguard Worker  *
4*fb1b10abSAndroid Build Coastguard Worker  *  Use of this source code is governed by a BSD-style license
5*fb1b10abSAndroid Build Coastguard Worker  *  that can be found in the LICENSE file in the root of the source
6*fb1b10abSAndroid Build Coastguard Worker  *  tree. An additional intellectual property rights grant can be found
7*fb1b10abSAndroid Build Coastguard Worker  *  in the file PATENTS.  All contributing project authors may
8*fb1b10abSAndroid Build Coastguard Worker  *  be found in the AUTHORS file in the root of the source tree.
9*fb1b10abSAndroid Build Coastguard Worker  */
10*fb1b10abSAndroid Build Coastguard Worker #ifndef VPX_VPX_DSP_VPX_CONVOLVE_H_
11*fb1b10abSAndroid Build Coastguard Worker #define VPX_VPX_DSP_VPX_CONVOLVE_H_
12*fb1b10abSAndroid Build Coastguard Worker 
13*fb1b10abSAndroid Build Coastguard Worker #include "./vpx_config.h"
14*fb1b10abSAndroid Build Coastguard Worker #include "vpx/vpx_integer.h"
15*fb1b10abSAndroid Build Coastguard Worker 
16*fb1b10abSAndroid Build Coastguard Worker #ifdef __cplusplus
17*fb1b10abSAndroid Build Coastguard Worker extern "C" {
18*fb1b10abSAndroid Build Coastguard Worker #endif
19*fb1b10abSAndroid Build Coastguard Worker 
20*fb1b10abSAndroid Build Coastguard Worker typedef void (*convolve_fn_t)(const uint8_t *src, ptrdiff_t src_stride,
21*fb1b10abSAndroid Build Coastguard Worker                               uint8_t *dst, ptrdiff_t dst_stride,
22*fb1b10abSAndroid Build Coastguard Worker                               const InterpKernel *filter, int x0_q4,
23*fb1b10abSAndroid Build Coastguard Worker                               int x_step_q4, int y0_q4, int y_step_q4, int w,
24*fb1b10abSAndroid Build Coastguard Worker                               int h);
25*fb1b10abSAndroid Build Coastguard Worker 
26*fb1b10abSAndroid Build Coastguard Worker #if CONFIG_VP9_HIGHBITDEPTH
27*fb1b10abSAndroid Build Coastguard Worker typedef void (*highbd_convolve_fn_t)(const uint16_t *src, ptrdiff_t src_stride,
28*fb1b10abSAndroid Build Coastguard Worker                                      uint16_t *dst, ptrdiff_t dst_stride,
29*fb1b10abSAndroid Build Coastguard Worker                                      const InterpKernel *filter, int x0_q4,
30*fb1b10abSAndroid Build Coastguard Worker                                      int x_step_q4, int y0_q4, int y_step_q4,
31*fb1b10abSAndroid Build Coastguard Worker                                      int w, int h, int bd);
32*fb1b10abSAndroid Build Coastguard Worker #endif
33*fb1b10abSAndroid Build Coastguard Worker 
34*fb1b10abSAndroid Build Coastguard Worker #ifdef __cplusplus
35*fb1b10abSAndroid Build Coastguard Worker }  // extern "C"
36*fb1b10abSAndroid Build Coastguard Worker #endif
37*fb1b10abSAndroid Build Coastguard Worker 
38*fb1b10abSAndroid Build Coastguard Worker #endif  // VPX_VPX_DSP_VPX_CONVOLVE_H_
39