/* * 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.
*/
// This class is used to check the presence of altref frame. class AltRefFramePresenceTestLarge
: public ::libaom_test::CodecTestWith2Params<AltRefTestParams, aom_rc_mode>, public ::libaom_test::EncoderTest { protected:
AltRefFramePresenceTestLarge()
: EncoderTest(GET_PARAM(0)), altref_test_params_(GET_PARAM(1)),
rc_end_usage_(GET_PARAM(2)) {
is_arf_frame_present_ = 0;
}
~AltRefFramePresenceTestLarge() override = default;
// This class is used to test if the gf interval bounds configured by the user // are respected by the encoder. class GoldenFrameIntervalTestLarge
: public ::libaom_test::CodecTestWith2Params<gfIntervalParam, aom_rc_mode>, public ::libaom_test::EncoderTest { protected:
GoldenFrameIntervalTestLarge()
: EncoderTest(GET_PARAM(0)), gf_interval_param_(GET_PARAM(1)),
rc_end_usage_(GET_PARAM(2)) {
baseline_gf_interval_ = -1;
limit_ = 60;
frame_num_ = 0;
}
~GoldenFrameIntervalTestLarge() override = default;
void SetUp() override {
InitializeConfig(gf_interval_param_.encoding_mode); const aom_rational timebase = { 1, 30 };
cfg_.g_timebase = timebase;
cfg_.rc_end_usage = rc_end_usage_;
cfg_.g_threads = 1; // kf_min_dist is equal to kf_max_dist to make sure that there are no scene // cuts due to which the min_gf_interval may not be respected.
cfg_.kf_min_dist = limit_;
cfg_.kf_max_dist = limit_;
cfg_.g_limit = limit_;
cfg_.g_lag_in_frames = 35;
cfg_.rc_target_bitrate = 1000;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.