diff options
Diffstat (limited to 'third_party/aom/test/av1_fwd_txfm1d_test.cc')
-rw-r--r-- | third_party/aom/test/av1_fwd_txfm1d_test.cc | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/third_party/aom/test/av1_fwd_txfm1d_test.cc b/third_party/aom/test/av1_fwd_txfm1d_test.cc index b10e84d2c..9deef3c95 100644 --- a/third_party/aom/test/av1_fwd_txfm1d_test.cc +++ b/third_party/aom/test/av1_fwd_txfm1d_test.cc @@ -51,11 +51,6 @@ TEST(av1_fwd_txfm1d, round_shift) { EXPECT_EQ(round_shift(-8, 2), -2); } -TEST(av1_fwd_txfm1d, get_max_bit) { - int max_bit = get_max_bit(8); - EXPECT_EQ(max_bit, 3); -} - TEST(av1_fwd_txfm1d, cospi_arr_data) { for (int i = 0; i < 7; i++) { for (int j = 0; j < 64; j++) { @@ -65,31 +60,6 @@ TEST(av1_fwd_txfm1d, cospi_arr_data) { } } -TEST(av1_fwd_txfm1d, clamp_block) { - int16_t block[5][5] = { { 7, -5, 6, -3, 9 }, - { 7, -5, 6, -3, 9 }, - { 7, -5, 6, -3, 9 }, - { 7, -5, 6, -3, 9 }, - { 7, -5, 6, -3, 9 } }; - - int16_t ref_block[5][5] = { { 7, -5, 6, -3, 9 }, - { 7, -5, 6, -3, 9 }, - { 7, -4, 2, -3, 9 }, - { 7, -4, 2, -3, 9 }, - { 7, -4, 2, -3, 9 } }; - - int row = 2; - int col = 1; - int block_size = 3; - int stride = 5; - clamp_block(block[row] + col, block_size, block_size, stride, -4, 2); - for (int r = 0; r < stride; r++) { - for (int c = 0; c < stride; c++) { - EXPECT_EQ(block[r][c], ref_block[r][c]); - } - } -} - TEST(av1_fwd_txfm1d, accuracy) { ACMRandom rnd(ACMRandom::DeterministicSeed()); for (int si = 0; si < txfm_size_num; ++si) { |