chromium/third_party/libaom/source/libaom/test/av1_txfm_test.cc

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

#include "test/av1_txfm_test.h"

#include <stdio.h>

#include <memory>
#include <new>

namespace libaom_test {

const char *tx_type_name[] =;

int get_txfm1d_size(TX_SIZE tx_size) {}

void get_txfm1d_type(TX_TYPE txfm2d_type, TYPE_TXFM *type0, TYPE_TXFM *type1) {}

double Sqrt2 =;
double invSqrt2 =;

static double dct_matrix(double n, double k, int size) {}

void reference_dct_1d(const double *in, double *out, int size) {}

void reference_idct_1d(const double *in, double *out, int size) {}

// TODO(any): Copied from the old 'fadst4' (same as the new 'av1_fadst4'
// function). Should be replaced by a proper reference function that takes
// 'double' input & output.
static void fadst4_new(const tran_low_t *input, tran_low_t *output) {}

void reference_adst_1d(const double *in, double *out, int size) {}

static void reference_idtx_1d(const double *in, double *out, int size) {}

void reference_hybrid_1d(double *in, double *out, int size, int type) {}

double get_amplification_factor(TX_TYPE tx_type, TX_SIZE tx_size) {}

void reference_hybrid_2d(double *in, double *out, TX_TYPE tx_type,
                         TX_SIZE tx_size) {}

template <typename Type>
void fliplr(Type *dest, int width, int height, int stride) {}

template <typename Type>
void flipud(Type *dest, int width, int height, int stride) {}

template <typename Type>
void fliplrud(Type *dest, int width, int height, int stride) {}

template void fliplr<double>(double *dest, int width, int height, int stride);
template void flipud<double>(double *dest, int width, int height, int stride);
template void fliplrud<double>(double *dest, int width, int height, int stride);

int bd_arr[BD_NUM] =;

int8_t low_range_arr[BD_NUM] =;
int8_t high_range_arr[BD_NUM] =;

void txfm_stage_range_check(const int8_t *stage_range, int stage_num,
                            int8_t cos_bit, int low_range, int high_range) {}
}  // namespace libaom_test