/* * 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.
*/
// force the quantizer, to reduce the sensitivity on encoding choices. // e.g, we don't want this test to break when the rate control is modified.
{ constint max_q = cfg.rc_max_quantizer; constint min_q = cfg.rc_min_quantizer; constint q = rnd_.PseudoUniform(max_q - min_q + 1) + min_q;
aom_codec_iter_t iter = nullptr; return Serialize(aom_codec_get_frame(&dec_, &iter));
}
private:
aom_codec_ctx_t dec_;
};
// Try to reveal a mismatch between LBD and HBD coding paths.
TEST(CodingPathSync, SearchForHbdLbdMismatch) { constint count_tests = 10; for (int i = 0; i < count_tests; ++i) {
Decoder dec_hbd(0);
Decoder dec_lbd(1);
CompressedSource enc(i);
for (int k = 0; k < 3; ++k) { const aom_codec_cx_pkt_t *frame = enc.ReadFrame();
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.