/* * Copyright (c) 2021, 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.
*/
// Tests on encoder options. // Need to add ones for the decoder in the future if it is also supported in the // key & value API. #if CONFIG_AV1_ENCODER class EncValidTest : public BaseKeyValAPI, public testing::WithParamInterface<KeyValParam> {}; class EncInvalidTest : public BaseKeyValAPI, public testing::WithParamInterface<KeyValParam> {};
// No test for ratio / list for now since the API does not support any of the // parameters of these type. // The string type typically involves reading a path/file, which brings // potential fails. const KeyValParam enc_valid_params[] = {
std::make_tuple("auto-intra-tools-off", "1"), // uint
std::make_tuple("min-gf-interval", "10"), // uint
std::make_tuple("min-partition-size", "4"), // int
std::make_tuple("tune", "psnr"), // enum
};
const KeyValParam enc_invalid_params[] = { // no match
std::make_tuple("a-b-c", "10"), // uint
std::make_tuple("min-gf-interval", "-1"),
std::make_tuple("min-gf-interval", "1.1"),
std::make_tuple("min-gf-interval", "abc"), // int
std::make_tuple("min-partition-size", "1.1"),
std::make_tuple("min-partition-size", "abc"), // enum
std::make_tuple("tune", "PsnR1"), // out of range
std::make_tuple("cq-level", "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.