Add non420 code in multi-threaded loopfilter
[aom.git] / vp9 / encoder / vp9_dct.h
blob49afcbbd5b83605474cc906f68c444020d09eb14
1 /*
2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved.
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 */
11 #ifndef VP9_ENCODER_VP9_DCT_H_
12 #define VP9_ENCODER_VP9_DCT_H_
14 #include "vp9/common/vp9_idct.h"
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
20 void vp9_highbd_fdct4x4_c(const int16_t *input, tran_low_t *output, int stride);
21 void vp9_highbd_fdct8x8_c(const int16_t *input, tran_low_t *output, int stride);
22 void vp9_highbd_fdct16x16_c(const int16_t *input, tran_low_t *output,
23 int stride);
24 void vp9_highbd_fdct32x32_c(const int16_t *input, tran_low_t *out, int stride);
25 void vp9_highbd_fdct32x32_rd_c(const int16_t *input, tran_low_t *out,
26 int stride);
28 void vp9_fdct4(const tran_low_t *input, tran_low_t *output);
29 void vp9_fadst4(const tran_low_t *input, tran_low_t *output);
30 void vp9_fdct8(const tran_low_t *input, tran_low_t *output);
31 void vp9_fadst8(const tran_low_t *input, tran_low_t *output);
32 void vp9_fdct16(const tran_low_t in[16], tran_low_t out[16]);
33 void vp9_fadst16(const tran_low_t *input, tran_low_t *output);
34 void vp9_fdct32(const tran_high_t *input, tran_high_t *output, int round);
36 static const transform_2d FHT_4[] = {
37 { vp9_fdct4, vp9_fdct4 }, // DCT_DCT = 0
38 { vp9_fadst4, vp9_fdct4 }, // ADST_DCT = 1
39 { vp9_fdct4, vp9_fadst4 }, // DCT_ADST = 2
40 { vp9_fadst4, vp9_fadst4 } // ADST_ADST = 3
43 static const transform_2d FHT_8[] = {
44 { vp9_fdct8, vp9_fdct8 }, // DCT_DCT = 0
45 { vp9_fadst8, vp9_fdct8 }, // ADST_DCT = 1
46 { vp9_fdct8, vp9_fadst8 }, // DCT_ADST = 2
47 { vp9_fadst8, vp9_fadst8 } // ADST_ADST = 3
50 static const transform_2d FHT_16[] = {
51 { vp9_fdct16, vp9_fdct16 }, // DCT_DCT = 0
52 { vp9_fadst16, vp9_fdct16 }, // ADST_DCT = 1
53 { vp9_fdct16, vp9_fadst16 }, // DCT_ADST = 2
54 { vp9_fadst16, vp9_fadst16 } // ADST_ADST = 3
57 #ifdef __cplusplus
58 } // extern "C"
59 #endif
61 #endif // VP9_ENCODER_VP9_DCT_H_