mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 16:57:30 +09:00
aom: update libaom to 0ec86ac7ae1e32a7e70410fa4972a655ec3670a4
This commit is contained in:
parent
bc3f20e378
commit
eb361970c5
438 changed files with 52661 additions and 21905 deletions
13
third_party/aom/test/end_to_end_test.cc
vendored
13
third_party/aom/test/end_to_end_test.cc
vendored
|
|
@ -9,6 +9,8 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "third_party/googletest/src/googletest/include/gtest/gtest.h"
|
||||
|
||||
#include "test/codec_factory.h"
|
||||
|
|
@ -51,6 +53,13 @@ typedef struct {
|
|||
unsigned int profile;
|
||||
} TestVideoParam;
|
||||
|
||||
std::ostream &operator<<(std::ostream &os, const TestVideoParam &test_arg) {
|
||||
return os << "TestVideoParam { filename:" << test_arg.filename
|
||||
<< " input_bit_depth:" << test_arg.input_bit_depth
|
||||
<< " fmt:" << test_arg.fmt << " bit_depth:" << test_arg.bit_depth
|
||||
<< " profile:" << test_arg.profile << "}";
|
||||
}
|
||||
|
||||
const TestVideoParam kTestVectors[] = {
|
||||
{ "park_joy_90p_8_420.y4m", 8, AOM_IMG_FMT_I420, AOM_BITS_8, 0 },
|
||||
{ "park_joy_90p_8_422.y4m", 8, AOM_IMG_FMT_I422, AOM_BITS_8, 2 },
|
||||
|
|
@ -120,7 +129,7 @@ class EndToEndTest
|
|||
|
||||
virtual void PreEncodeFrameHook(::libaom_test::VideoSource *video,
|
||||
::libaom_test::Encoder *encoder) {
|
||||
if (video->frame() == 1) {
|
||||
if (video->frame() == 0) {
|
||||
encoder->Control(AV1E_SET_FRAME_PARALLEL_DECODING, 1);
|
||||
encoder->Control(AV1E_SET_TILE_COLUMNS, 4);
|
||||
encoder->Control(AOME_SET_CPUUSED, cpu_used_);
|
||||
|
|
@ -155,7 +164,7 @@ class EndToEndTest
|
|||
init_flags_ = AOM_CODEC_USE_PSNR;
|
||||
if (cfg_.g_bit_depth > 8) init_flags_ |= AOM_CODEC_USE_HIGHBITDEPTH;
|
||||
|
||||
testing::internal::scoped_ptr<libaom_test::VideoSource> video;
|
||||
std::unique_ptr<libaom_test::VideoSource> video;
|
||||
if (is_extension_y4m(test_video_param_.filename)) {
|
||||
video.reset(new libaom_test::Y4mVideoSource(test_video_param_.filename, 0,
|
||||
kFrames));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue