mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 16:37:31 +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
51
third_party/aom/test/av1_ext_tile_test.cc
vendored
51
third_party/aom/test/av1_ext_tile_test.cc
vendored
|
|
@ -46,6 +46,7 @@ class AV1ExtTileTest
|
|||
cfg.allow_lowbitdepth = 1;
|
||||
|
||||
decoder_ = codec_->CreateDecoder(cfg, 0);
|
||||
decoder_->Control(AV1_SET_TILE_MODE, 1);
|
||||
decoder_->Control(AV1_SET_DECODE_TILE_ROW, -1);
|
||||
decoder_->Control(AV1_SET_DECODE_TILE_COL, -1);
|
||||
|
||||
|
|
@ -86,13 +87,8 @@ class AV1ExtTileTest
|
|||
encoder->Control(AV1E_SET_TILE_ROWS, kTileSize);
|
||||
// TODO(yunqingwang): test single_tile_decoding = 0.
|
||||
encoder->Control(AV1E_SET_SINGLE_TILE_DECODING, 1);
|
||||
#if CONFIG_EXT_PARTITION
|
||||
// Always use 64x64 max partition.
|
||||
encoder->Control(AV1E_SET_SUPERBLOCK_SIZE, AOM_SUPERBLOCK_SIZE_64X64);
|
||||
#endif
|
||||
#if CONFIG_LOOPFILTERING_ACROSS_TILES
|
||||
encoder->Control(AV1E_SET_TILE_LOOPFILTER, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (video->frame() == 1) {
|
||||
|
|
@ -174,6 +170,23 @@ class AV1ExtTileTest
|
|||
}
|
||||
}
|
||||
|
||||
void TestRoundTrip() {
|
||||
::libaom_test::I420VideoSource video(
|
||||
"hantro_collage_w352h288.yuv", kImgWidth, kImgHeight, 30, 1, 0, kLimit);
|
||||
cfg_.rc_target_bitrate = 500;
|
||||
cfg_.g_error_resilient = AOM_ERROR_RESILIENT_DEFAULT;
|
||||
cfg_.large_scale_tile = 1;
|
||||
cfg_.g_lag_in_frames = 0;
|
||||
cfg_.g_threads = 1;
|
||||
|
||||
// Tile encoding
|
||||
init_flags_ = AOM_CODEC_USE_PSNR;
|
||||
ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
|
||||
|
||||
// Compare to check if two vectors are equal.
|
||||
ASSERT_EQ(md5_, tile_md5_);
|
||||
}
|
||||
|
||||
::libaom_test::TestMode encoding_mode_;
|
||||
int set_cpu_used_;
|
||||
::libaom_test::Decoder *decoder_;
|
||||
|
|
@ -182,25 +195,19 @@ class AV1ExtTileTest
|
|||
std::vector<std::string> tile_md5_;
|
||||
};
|
||||
|
||||
TEST_P(AV1ExtTileTest, DecoderResultTest) {
|
||||
::libaom_test::I420VideoSource video("hantro_collage_w352h288.yuv", kImgWidth,
|
||||
kImgHeight, 30, 1, 0, kLimit);
|
||||
cfg_.rc_target_bitrate = 500;
|
||||
cfg_.g_error_resilient = AOM_ERROR_RESILIENT_DEFAULT;
|
||||
cfg_.large_scale_tile = 1;
|
||||
cfg_.g_lag_in_frames = 0;
|
||||
cfg_.g_threads = 1;
|
||||
|
||||
// Tile encoding
|
||||
init_flags_ = AOM_CODEC_USE_PSNR;
|
||||
ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
|
||||
|
||||
// Compare to check if two vectors are equal.
|
||||
ASSERT_EQ(md5_, tile_md5_);
|
||||
}
|
||||
TEST_P(AV1ExtTileTest, DISABLED_DecoderResultTest) { TestRoundTrip(); }
|
||||
|
||||
AV1_INSTANTIATE_TEST_CASE(
|
||||
// Now only test 2-pass mode.
|
||||
AV1ExtTileTest, ::testing::Values(::libaom_test::kTwoPassGood),
|
||||
::testing::Range(0, 4));
|
||||
::testing::Range(1, 4));
|
||||
|
||||
class AV1ExtTileTestLarge : public AV1ExtTileTest {};
|
||||
|
||||
TEST_P(AV1ExtTileTestLarge, DISABLED_DecoderResultTest) { TestRoundTrip(); }
|
||||
|
||||
AV1_INSTANTIATE_TEST_CASE(
|
||||
// Now only test 2-pass mode.
|
||||
AV1ExtTileTestLarge, ::testing::Values(::libaom_test::kTwoPassGood),
|
||||
::testing::Range(0, 1));
|
||||
} // namespace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue