mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 08:07:30 +09:00
update libaom to rev 76574b6c09515d6687ebfa9760319e521f5abeb3 (without moz.build and aom_ports/aom_once.h)
This commit is contained in:
parent
0daf4d9cc9
commit
ef35212f8b
128 changed files with 9426 additions and 4984 deletions
6
third_party/aom/test/av1_inv_txfm1d_test.cc
vendored
6
third_party/aom/test/av1_inv_txfm1d_test.cc
vendored
|
|
@ -16,6 +16,8 @@
|
|||
#include "av1/common/av1_inv_txfm1d.h"
|
||||
#include "av1/encoder/av1_fwd_txfm1d.h"
|
||||
|
||||
typedef TX_SIZE TxSize;
|
||||
|
||||
using libaom_test::ACMRandom;
|
||||
using libaom_test::input_base;
|
||||
|
||||
|
|
@ -77,7 +79,7 @@ TEST(av1_inv_txfm1d, InvAccuracyCheck) {
|
|||
ASSERT_EQ(NELEMENTS(inv_txfm_func_ls), TX_SIZES);
|
||||
for (int k = 0; k < count_test_block; ++k) {
|
||||
// choose a random transform to test
|
||||
const TX_SIZE tx_size = static_cast<TX_SIZE>(rnd.Rand8() % TX_SIZES);
|
||||
const TxSize tx_size = static_cast<TxSize>(rnd.Rand8() % TX_SIZES);
|
||||
const int tx_size_pix = txfm_size_ls[tx_size];
|
||||
const TxfmFunc inv_txfm_func = inv_txfm_func_ls[tx_size][0];
|
||||
|
||||
|
|
@ -88,9 +90,11 @@ TEST(av1_inv_txfm1d, InvAccuracyCheck) {
|
|||
memset(input + 32, 0, 32 * sizeof(input[0]));
|
||||
|
||||
int32_t ref_output[64];
|
||||
memset(ref_output, 0, sizeof(ref_output));
|
||||
reference_idct_1d_int(input, ref_output, tx_size_pix);
|
||||
|
||||
int32_t output[64];
|
||||
memset(output, 0, sizeof(output));
|
||||
inv_txfm_func(input, output, cos_bit, range_bit);
|
||||
|
||||
for (int i = 0; i < tx_size_pix; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue