aom_convolve.h 1.46 KB
Newer Older
John Koleszar's avatar
John Koleszar committed
1
/*
2
 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
John Koleszar's avatar
John Koleszar committed
3
 *
4 5 6 7 8 9
 * This source code is subject to the terms of the BSD 2 Clause License and
 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
 * was not distributed with this source code in the LICENSE file, you can
 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
 * Media Patent License 1.0 was not distributed with this source code in the
 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
John Koleszar's avatar
John Koleszar committed
10
 */
Zoe Liu's avatar
Zoe Liu committed
11 12
#ifndef VPX_DSP_VPX_CONVOLVE_H_
#define VPX_DSP_VPX_CONVOLVE_H_
John Koleszar's avatar
John Koleszar committed
13

Adrian Grange's avatar
Adrian Grange committed
14 15
#include "./aom_config.h"
#include "aom/aom_integer.h"
John Koleszar's avatar
John Koleszar committed
16

17 18 19 20
#ifdef __cplusplus
extern "C" {
#endif

21 22
typedef void (*convolve_fn_t)(const uint8_t *src, ptrdiff_t src_stride,
                              uint8_t *dst, ptrdiff_t dst_stride,
John Koleszar's avatar
John Koleszar committed
23
                              const int16_t *filter_x, int x_step_q4,
clang-format's avatar
clang-format committed
24 25
                              const int16_t *filter_y, int y_step_q4, int w,
                              int h);
John Koleszar's avatar
John Koleszar committed
26

27
#if CONFIG_VPX_HIGHBITDEPTH
28 29 30 31 32
typedef void (*highbd_convolve_fn_t)(const uint8_t *src, ptrdiff_t src_stride,
                                     uint8_t *dst, ptrdiff_t dst_stride,
                                     const int16_t *filter_x, int x_step_q4,
                                     const int16_t *filter_y, int y_step_q4,
                                     int w, int h, int bd);
33 34
#endif

35 36 37 38
#ifdef __cplusplus
}  // extern "C"
#endif

Zoe Liu's avatar
Zoe Liu committed
39
#endif  // VPX_DSP_VPX_CONVOLVE_H_