/* * 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.
*/
Accounting accounting;
aom_accounting_init(&accounting);
br.accounting = &accounting; for (int i = 0; i < kSymbols; i++) {
aom_read(&br, 32, "A");
} // Consecutive symbols that are the same are coalesced.
GTEST_ASSERT_EQ(accounting.syms.num_syms, 1);
GTEST_ASSERT_EQ(accounting.syms.syms[0].samples, (unsignedint)kSymbols);
// Check for collisions. The current aom_accounting_hash function returns // the same hash code for AB and BA.
GTEST_ASSERT_NE(aom_accounting_dictionary_lookup(&accounting, "AB"),
aom_accounting_dictionary_lookup(&accounting, "BA"));
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
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.