1*77c1e3ccSAndroid Build Coastguard Worker /*
2*77c1e3ccSAndroid Build Coastguard Worker * Copyright (c) 2016, Alliance for Open Media. All rights reserved.
3*77c1e3ccSAndroid Build Coastguard Worker *
4*77c1e3ccSAndroid Build Coastguard Worker * This source code is subject to the terms of the BSD 2 Clause License and
5*77c1e3ccSAndroid Build Coastguard Worker * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6*77c1e3ccSAndroid Build Coastguard Worker * was not distributed with this source code in the LICENSE file, you can
7*77c1e3ccSAndroid Build Coastguard Worker * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8*77c1e3ccSAndroid Build Coastguard Worker * Media Patent License 1.0 was not distributed with this source code in the
9*77c1e3ccSAndroid Build Coastguard Worker * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
10*77c1e3ccSAndroid Build Coastguard Worker */
11*77c1e3ccSAndroid Build Coastguard Worker
12*77c1e3ccSAndroid Build Coastguard Worker #ifndef AOM_AV1_COMMON_IDCT_H_
13*77c1e3ccSAndroid Build Coastguard Worker #define AOM_AV1_COMMON_IDCT_H_
14*77c1e3ccSAndroid Build Coastguard Worker
15*77c1e3ccSAndroid Build Coastguard Worker #include "config/aom_config.h"
16*77c1e3ccSAndroid Build Coastguard Worker
17*77c1e3ccSAndroid Build Coastguard Worker #include "av1/common/blockd.h"
18*77c1e3ccSAndroid Build Coastguard Worker #include "av1/common/common.h"
19*77c1e3ccSAndroid Build Coastguard Worker #include "av1/common/enums.h"
20*77c1e3ccSAndroid Build Coastguard Worker #include "aom_dsp/txfm_common.h"
21*77c1e3ccSAndroid Build Coastguard Worker
22*77c1e3ccSAndroid Build Coastguard Worker #ifdef __cplusplus
23*77c1e3ccSAndroid Build Coastguard Worker extern "C" {
24*77c1e3ccSAndroid Build Coastguard Worker #endif
25*77c1e3ccSAndroid Build Coastguard Worker
26*77c1e3ccSAndroid Build Coastguard Worker typedef void (*transform_1d)(const tran_low_t *, tran_low_t *);
27*77c1e3ccSAndroid Build Coastguard Worker
28*77c1e3ccSAndroid Build Coastguard Worker typedef struct {
29*77c1e3ccSAndroid Build Coastguard Worker transform_1d cols, rows; // vertical and horizontal
30*77c1e3ccSAndroid Build Coastguard Worker } transform_2d;
31*77c1e3ccSAndroid Build Coastguard Worker
32*77c1e3ccSAndroid Build Coastguard Worker #define MAX_TX_SCALE 1
33*77c1e3ccSAndroid Build Coastguard Worker int av1_get_tx_scale(const TX_SIZE tx_size);
34*77c1e3ccSAndroid Build Coastguard Worker
35*77c1e3ccSAndroid Build Coastguard Worker void av1_inverse_transform_block(const MACROBLOCKD *xd,
36*77c1e3ccSAndroid Build Coastguard Worker const tran_low_t *dqcoeff, int plane,
37*77c1e3ccSAndroid Build Coastguard Worker TX_TYPE tx_type, TX_SIZE tx_size, uint8_t *dst,
38*77c1e3ccSAndroid Build Coastguard Worker int stride, int eob, int reduced_tx_set);
39*77c1e3ccSAndroid Build Coastguard Worker void av1_highbd_iwht4x4_add(const tran_low_t *input, uint8_t *dest, int stride,
40*77c1e3ccSAndroid Build Coastguard Worker int eob, int bd);
41*77c1e3ccSAndroid Build Coastguard Worker
cast_to_int32(const tran_low_t * input)42*77c1e3ccSAndroid Build Coastguard Worker static inline const int32_t *cast_to_int32(const tran_low_t *input) {
43*77c1e3ccSAndroid Build Coastguard Worker assert(sizeof(int32_t) == sizeof(tran_low_t));
44*77c1e3ccSAndroid Build Coastguard Worker return (const int32_t *)input;
45*77c1e3ccSAndroid Build Coastguard Worker }
46*77c1e3ccSAndroid Build Coastguard Worker
47*77c1e3ccSAndroid Build Coastguard Worker #ifdef __cplusplus
48*77c1e3ccSAndroid Build Coastguard Worker } // extern "C"
49*77c1e3ccSAndroid Build Coastguard Worker #endif
50*77c1e3ccSAndroid Build Coastguard Worker
51*77c1e3ccSAndroid Build Coastguard Worker #endif // AOM_AV1_COMMON_IDCT_H_
52