/* * 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 <memory> #include <new> #include "av1/encoder/av1_fwd_txfm1d.h" #include "test/av1_txfm_test.h" ACMRandom; input_base; reference_hybrid_1d; TYPE_ADST; TYPE_DCT; TYPE_IDTX; TYPE_TXFM; namespace { const int txfm_type_num = …; const TYPE_TXFM txfm_type_ls[txfm_type_num] = …; const int txfm_size_num = …; const int txfm_size_ls[] = …; const TxfmFunc fwd_txfm_func_ls[][txfm_type_num] = …; // the maximum stage number of fwd/inv 1d dct/adst txfm is 12 const int8_t cos_bit = …; const int8_t range_bit[12] = …; TEST(av1_fwd_txfm1d, round_shift) { … } TEST(av1_fwd_txfm1d, av1_cospi_arr_data) { … } TEST(av1_fwd_txfm1d, accuracy) { … } } // namespace