convolve.h 1.56 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
/*
 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
 *
 * 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.
 */

Yaowu Xu's avatar
Yaowu Xu committed
12
13
14
15
16
17
18
19
20
21
22
#ifndef AV1_COMMON_AV1_CONVOLVE_H_
#define AV1_COMMON_AV1_CONVOLVE_H_
#include "av1/common/filter.h"

#ifdef __cplusplus
extern "C" {
#endif

void av1_convolve(const uint8_t *src, int src_stride, uint8_t *dst,
                  int dst_stride, int w, int h,
#if CONFIG_DUAL_FILTER
James Zern's avatar
James Zern committed
23
                  const InterpFilter *interp_filter,
Yaowu Xu's avatar
Yaowu Xu committed
24
#else
James Zern's avatar
James Zern committed
25
                  const InterpFilter interp_filter,
Yaowu Xu's avatar
Yaowu Xu committed
26
27
28
29
30
31
32
33
#endif
                  const int subpel_x, int xstep, const int subpel_y, int ystep,
                  int avg);

#if CONFIG_AOM_HIGHBITDEPTH
void av1_highbd_convolve(const uint8_t *src, int src_stride, uint8_t *dst,
                         int dst_stride, int w, int h,
#if CONFIG_DUAL_FILTER
James Zern's avatar
James Zern committed
34
                         const InterpFilter *interp_filter,
Yaowu Xu's avatar
Yaowu Xu committed
35
#else
James Zern's avatar
James Zern committed
36
                         const InterpFilter interp_filter,
Yaowu Xu's avatar
Yaowu Xu committed
37
38
39
40
41
42
43
44
45
46
#endif
                         const int subpel_x, int xstep, const int subpel_y,
                         int ystep, int avg, int bd);
#endif  // CONFIG_AOM_HIGHBITDEPTH

#ifdef __cplusplus
}  // extern "C"
#endif

#endif  // AV1_COMMON_AV1_CONVOLVE_H_