/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved. * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at www.aomedia.org/license/software. If the Alliance for Open * Media Patent License 1.0 was not distributed with this source code in the * PATENTS file, you can obtain it at www.aomedia.org/license/patent. */ #include <memory> #include "gtest/gtest.h" #include "test/codec_factory.h" #include "test/encode_test_driver.h" #include "test/util.h" #include "test/y4m_video_source.h" #include "test/yuv_video_source.h" #include "av1/encoder/ratectrl.h" namespace { const unsigned int kFrames = …; const int kBitrate = …; #define ARF_NOT_SEEN … #define ARF_SEEN_ONCE … TestVideoParam; TestEncodeParam; const TestVideoParam kTestVectors[] = …; const TestEncodeParam kEncodeVectors[] = …; const int kMinArfVectors[] = …; class ArfFreqTestLarge : public ::libaom_test::CodecTestWith3Params<TestVideoParam, TestEncodeParam, int>, public ::libaom_test::EncoderTest { … }; TEST_P(ArfFreqTestLarge, MinArfFreqTest) { … } #if CONFIG_AV1_ENCODER // TODO(angiebird): 25-29 fail in high bitdepth mode. // TODO(zoeliu): This ArfFreqTest does not work with BWDREF_FRAME, as // BWDREF_FRAME is also a non-show frame, and the minimum run between two // consecutive BWDREF_FRAME's may vary between 1 and any arbitrary positive // number as long as it does not exceed the gf_group interval. INSTANTIATE_TEST_SUITE_P(…); #endif // CONFIG_AV1_ENCODER } // namespace