/* * 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.
*/
#include"av1/common/timing.h"
/* Tables for AV1 max bitrates for different levels of main and high tier. * The tables are in Kbps instead of Mbps in the specification. * Note that depending on the profile, a multiplier is needed.
*/ #define UNDEFINED_RATE \
(1 << 21) // Placeholder rate for levels with undefined rate #define INVALID_RATE \
(0) // For invalid profile-level configuration, set rate to 0
/* Max Bitrates for levels of Main Tier in kbps. Bitrate in main_kbps [31] */ /* is a dummy value. The decoder model is not applicable for level 31. */ staticconst int32_t main_kbps[1 << LEVEL_BITS] = {
1500, 3000, UNDEFINED_RATE, UNDEFINED_RATE,
6000, 10000, UNDEFINED_RATE, UNDEFINED_RATE,
12000, 20000, UNDEFINED_RATE, UNDEFINED_RATE,
30000, 40000, 60000, 60000,
60000, 100000, 160000, 160000,
UNDEFINED_RATE, UNDEFINED_RATE, UNDEFINED_RATE, UNDEFINED_RATE,
UNDEFINED_RATE, UNDEFINED_RATE, UNDEFINED_RATE, UNDEFINED_RATE,
UNDEFINED_RATE, UNDEFINED_RATE, UNDEFINED_RATE, UNDEFINED_RATE
};
/* Max Bitrates for levels of High Tier in kbps. Bitrate in high_kbps [31] */ /* is a dummy value. The decoder model is not applicable for level 31. */ staticconst int32_t high_kbps[1 << LEVEL_BITS] = {
INVALID_RATE, INVALID_RATE, INVALID_RATE, INVALID_RATE,
INVALID_RATE, INVALID_RATE, INVALID_RATE, INVALID_RATE,
30000, 50000, UNDEFINED_RATE, UNDEFINED_RATE,
100000, 160000, 240000, 240000,
240000, 480000, 800000, 800000,
UNDEFINED_RATE, UNDEFINED_RATE, UNDEFINED_RATE, UNDEFINED_RATE,
UNDEFINED_RATE, UNDEFINED_RATE, UNDEFINED_RATE, UNDEFINED_RATE,
UNDEFINED_RATE, UNDEFINED_RATE, UNDEFINED_RATE, UNDEFINED_RATE
};
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.