/* * Copyright (c) 2019, 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.
*/
// Compiler may decide to add some padding to the struct above for alignment, // which the gtest may try to print (on error for example). This would cause // valgrind to complain that the padding is uninitialized. To avoid that, we // provide our own function to print the struct. // This also makes '--gtest_list_tests' output more understandable.
std::ostream &operator<<(std::ostream &os, const GFPyrHeightTestParam &p) {
os << "GFPyrHeightTestParam { "
<< "gf_min_pyr_height = " << p.gf_min_pyr_height << ", "
<< "gf_max_pyr_height = " << p.gf_max_pyr_height << ", "
<< "psnr_thresh = " << p.psnr_thresh << " }"; return os;
}
// Params: encoding mode, rate control mode and GFPyrHeightTestParam object. class GFPyrHeightTest
: public ::libaom_test::CodecTestWith3Params<
libaom_test::TestMode, aom_rc_mode, GFPyrHeightTestParam>, public ::libaom_test::EncoderTest { protected:
GFPyrHeightTest()
: EncoderTest(GET_PARAM(0)), encoding_mode_(GET_PARAM(1)),
rc_mode_(GET_PARAM(2)) {
gf_min_pyr_height_ = GET_PARAM(3).gf_min_pyr_height;
gf_max_pyr_height_ = GET_PARAM(3).gf_max_pyr_height;
psnr_threshold_ = GET_PARAM(3).psnr_thresh;
}
~GFPyrHeightTest() override = default;
::libaom_test::TestMode encoding_mode_;
aom_rc_mode rc_mode_; double psnr_threshold_; int gf_min_pyr_height_; int gf_max_pyr_height_; int cpu_used_; int nframes_; double psnr_;
};
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.