chromium/third_party/libaom/source/libaom/aom_dsp/txfm_common.h

/*
 * 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.
 */

#ifndef AOM_AOM_DSP_TXFM_COMMON_H_
#define AOM_AOM_DSP_TXFM_COMMON_H_

#include "aom_dsp/aom_dsp_common.h"

// Constants and Macros used by all idct/dct functions
#define DCT_CONST_BITS
#define DCT_CONST_ROUNDING

#define UNIT_QUANT_SHIFT
#define UNIT_QUANT_FACTOR

// block transform size
enum {} UENUM1BYTE();

enum {} UENUM1BYTE();

enum {} UENUM1BYTE();

TxfmParam;

// Constants:
//  for (int i = 1; i< 32; ++i)
//    printf("static const int cospi_%d_64 = %.0f;\n", i,
//           round(16384 * cos(i*PI/64)));
// Note: sin(k*Pi/64) = cos((32-k)*Pi/64)
static const tran_high_t cospi_1_64 =;
static const tran_high_t cospi_2_64 =;
static const tran_high_t cospi_3_64 =;
static const tran_high_t cospi_4_64 =;
static const tran_high_t cospi_5_64 =;
static const tran_high_t cospi_6_64 =;
static const tran_high_t cospi_7_64 =;
static const tran_high_t cospi_8_64 =;
static const tran_high_t cospi_9_64 =;
static const tran_high_t cospi_10_64 =;
static const tran_high_t cospi_11_64 =;
static const tran_high_t cospi_12_64 =;
static const tran_high_t cospi_13_64 =;
static const tran_high_t cospi_14_64 =;
static const tran_high_t cospi_15_64 =;
static const tran_high_t cospi_16_64 =;
static const tran_high_t cospi_17_64 =;
static const tran_high_t cospi_18_64 =;
static const tran_high_t cospi_19_64 =;
static const tran_high_t cospi_20_64 =;
static const tran_high_t cospi_21_64 =;
static const tran_high_t cospi_22_64 =;
static const tran_high_t cospi_23_64 =;
static const tran_high_t cospi_24_64 =;
static const tran_high_t cospi_25_64 =;
static const tran_high_t cospi_26_64 =;
static const tran_high_t cospi_27_64 =;
static const tran_high_t cospi_28_64 =;
static const tran_high_t cospi_29_64 =;
static const tran_high_t cospi_30_64 =;
static const tran_high_t cospi_31_64 =;

//  16384 * sqrt(2) * sin(kPi/9) * 2 / 3
static const tran_high_t sinpi_1_9 =;
static const tran_high_t sinpi_2_9 =;
static const tran_high_t sinpi_3_9 =;
static const tran_high_t sinpi_4_9 =;

// 16384 * sqrt(2)
static const tran_high_t Sqrt2 =;
static const tran_high_t InvSqrt2 =;

static inline tran_high_t fdct_round_shift(tran_high_t input) {}

#endif  // AOM_AOM_DSP_TXFM_COMMON_H_