/* * 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.
*/
/* DecodePerfTest takes a tuple of filename + number of threads to decode with
*/ typedef std::tuple<constchar *, unsigned> DecodePerfParam;
// TODO(jimbankoski): Add actual test vectors here when available. // const DecodePerfParam kAV1DecodePerfVectors[] = {};
/* In order to reflect real world performance as much as possible, Perf tests *DO NOT* do any correctness checks. Please run them alongside correctness tests to ensure proper codec integrity. Furthermore, in this test we deliberately limit the amount of system calls we make to avoid OS preemption.
TODO(joshualitt) create a more detailed perf measurement test to collect power/temp/min max frame decode times/etc
*/
class DecodePerfTest : public ::testing::TestWithParam<DecodePerfParam> {};
// TODO(jimbankoski): Enabled when we have actual AV1 Decode vectors. // INSTANTIATE_TEST_SUITE_P(AV1, DecodePerfTest, // ::testing::ValuesIn(kAV1DecodePerfVectors));
class AV1NewEncodeDecodePerfTest
: public ::libaom_test::CodecTestWithParam<libaom_test::TestMode>, public ::libaom_test::EncoderTest { protected:
AV1NewEncodeDecodePerfTest()
: EncoderTest(GET_PARAM(0)), encoding_mode_(GET_PARAM(1)), speed_(0),
outfile_(nullptr), out_frames_(0) {}
// TODO(JBB): Make this work by going through the set of given files. constint i = 0; const aom_rational timebase = { 33333333, 1000000000 };
cfg_.g_timebase = timebase;
cfg_.rc_target_bitrate = kAV1EncodePerfTestVectors[i].bitrate;
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.