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.
11 #ifndef VP9_ENCODER_VP9_DCT_H_
12 #define VP9_ENCODER_VP9_DCT_H_
14 #include "vp9/common/vp9_idct.h"
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
,
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
,
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
61 #endif // VP9_ENCODER_VP9_DCT_H_