mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-12 02:07:33 +09:00
Update aom to v1.0.0
Update aom to commit id d14c5bb4f336ef1842046089849dee4a301fbbf0.
This commit is contained in:
parent
bb61121b44
commit
48f6d2e034
1087 changed files with 154333 additions and 265310 deletions
45
third_party/aom/test/intrabc_test.cc
vendored
45
third_party/aom/test/intrabc_test.cc
vendored
|
|
@ -11,10 +11,13 @@
|
|||
|
||||
#include "third_party/googletest/src/googletest/include/gtest/gtest.h"
|
||||
|
||||
#include "./aom_config.h"
|
||||
#include "config/aom_config.h"
|
||||
|
||||
#include "av1/common/blockd.h"
|
||||
#include "av1/common/enums.h"
|
||||
#include "av1/common/mv.h"
|
||||
#include "av1/common/mvref_common.h"
|
||||
#include "av1/common/onyxc_int.h"
|
||||
#include "av1/common/tile_common.h"
|
||||
|
||||
namespace {
|
||||
|
|
@ -29,9 +32,7 @@ TEST(IntrabcTest, DvValidation) {
|
|||
const int kSubPelScale = 8;
|
||||
const int kTileMaxMibWidth = 8;
|
||||
const DvTestCase kDvCases[] = {
|
||||
#if CONFIG_EXT_PARTITION
|
||||
{ { 0, 0 }, 0, 0, BLOCK_128X128, false },
|
||||
#endif
|
||||
{ { 0, 0 }, 0, 0, BLOCK_64X64, false },
|
||||
{ { 0, 0 }, 0, 0, BLOCK_32X32, false },
|
||||
{ { 0, 0 }, 0, 0, BLOCK_16X16, false },
|
||||
|
|
@ -46,7 +47,7 @@ TEST(IntrabcTest, DvValidation) {
|
|||
MAX_SB_SIZE / MI_SIZE,
|
||||
MAX_SB_SIZE / MI_SIZE,
|
||||
BLOCK_16X16,
|
||||
true },
|
||||
false },
|
||||
{ { -MAX_SB_SIZE * kSubPelScale, 0 },
|
||||
MAX_SB_SIZE / MI_SIZE,
|
||||
MAX_SB_SIZE / MI_SIZE,
|
||||
|
|
@ -111,7 +112,7 @@ TEST(IntrabcTest, DvValidation) {
|
|||
MAX_SB_SIZE / MI_SIZE,
|
||||
MAX_SB_SIZE / MI_SIZE,
|
||||
BLOCK_LARGEST,
|
||||
true },
|
||||
false },
|
||||
{ { -MAX_SB_SIZE * kSubPelScale, -(MAX_SB_SIZE - 1) * kSubPelScale },
|
||||
MAX_SB_SIZE / MI_SIZE,
|
||||
MAX_SB_SIZE / MI_SIZE,
|
||||
|
|
@ -126,13 +127,13 @@ TEST(IntrabcTest, DvValidation) {
|
|||
MAX_SB_SIZE / MI_SIZE,
|
||||
MAX_SB_SIZE / MI_SIZE,
|
||||
BLOCK_LARGEST,
|
||||
true },
|
||||
false },
|
||||
{ { -MAX_SB_SIZE * kSubPelScale,
|
||||
(kTileMaxMibWidth - 2) * MAX_SB_SIZE * kSubPelScale },
|
||||
MAX_SB_SIZE / MI_SIZE,
|
||||
MAX_SB_SIZE / MI_SIZE,
|
||||
BLOCK_LARGEST,
|
||||
true },
|
||||
false },
|
||||
{ { -MAX_SB_SIZE * kSubPelScale,
|
||||
((kTileMaxMibWidth - 2) * MAX_SB_SIZE + 1) * kSubPelScale },
|
||||
MAX_SB_SIZE / MI_SIZE,
|
||||
|
|
@ -140,17 +141,27 @@ TEST(IntrabcTest, DvValidation) {
|
|||
BLOCK_LARGEST,
|
||||
false },
|
||||
};
|
||||
TileInfo tile;
|
||||
tile.mi_row_start = 8 * MAX_MIB_SIZE;
|
||||
tile.mi_row_end = 16 * MAX_MIB_SIZE;
|
||||
tile.mi_col_start = 24 * MAX_MIB_SIZE;
|
||||
tile.mi_col_end = tile.mi_col_start + kTileMaxMibWidth * MAX_MIB_SIZE;
|
||||
|
||||
MACROBLOCKD xd;
|
||||
memset(&xd, 0, sizeof(xd));
|
||||
xd.tile.mi_row_start = 8 * MAX_MIB_SIZE;
|
||||
xd.tile.mi_row_end = 16 * MAX_MIB_SIZE;
|
||||
xd.tile.mi_col_start = 24 * MAX_MIB_SIZE;
|
||||
xd.tile.mi_col_end = xd.tile.mi_col_start + kTileMaxMibWidth * MAX_MIB_SIZE;
|
||||
xd.plane[1].subsampling_x = 1;
|
||||
xd.plane[1].subsampling_y = 1;
|
||||
xd.plane[2].subsampling_x = 1;
|
||||
xd.plane[2].subsampling_y = 1;
|
||||
|
||||
AV1_COMMON cm;
|
||||
memset(&cm, 0, sizeof(cm));
|
||||
|
||||
for (int i = 0; i < static_cast<int>(GTEST_ARRAY_SIZE_(kDvCases)); ++i) {
|
||||
EXPECT_EQ(kDvCases[i].valid,
|
||||
is_dv_valid(kDvCases[i].dv, &tile,
|
||||
tile.mi_row_start + kDvCases[i].mi_row_offset,
|
||||
tile.mi_col_start + kDvCases[i].mi_col_offset,
|
||||
kDvCases[i].bsize))
|
||||
EXPECT_EQ(static_cast<int>(kDvCases[i].valid),
|
||||
av1_is_dv_valid(kDvCases[i].dv, &cm, &xd,
|
||||
xd.tile.mi_row_start + kDvCases[i].mi_row_offset,
|
||||
xd.tile.mi_col_start + kDvCases[i].mi_col_offset,
|
||||
kDvCases[i].bsize, MAX_MIB_SIZE_LOG2))
|
||||
<< "DvCases[" << i << "]";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue