summaryrefslogtreecommitdiff
path: root/common/vp9_level_stats.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/vp9_level_stats.cc')
-rw-r--r--common/vp9_level_stats.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/common/vp9_level_stats.cc b/common/vp9_level_stats.cc
index 76891e6..96a4bcc 100644
--- a/common/vp9_level_stats.cc
+++ b/common/vp9_level_stats.cc
@@ -17,21 +17,21 @@
namespace vp9_parser {
const Vp9LevelRow Vp9LevelStats::Vp9LevelTable[kNumVp9Levels] = {
- {LEVEL_1, 829440, 36864, 200, 400, 2, 1, 4, 8, 512},
- {LEVEL_1_1, 2764800, 73728, 800, 1000, 2, 1, 4, 8, 768},
- {LEVEL_2, 4608000, 122880, 1800, 1500, 2, 1, 4, 8, 960},
- {LEVEL_2_1, 9216000, 245760, 3600, 2800, 2, 2, 4, 8, 1344},
- {LEVEL_3, 20736000, 552960, 7200, 6000, 2, 4, 4, 8, 2048},
- {LEVEL_3_1, 36864000, 983040, 12000, 10000, 2, 4, 4, 8, 2752},
- {LEVEL_4, 83558400, 2228224, 18000, 16000, 4, 4, 4, 8, 4160},
- {LEVEL_4_1, 160432128, 2228224, 30000, 18000, 4, 4, 5, 6, 4160},
- {LEVEL_5, 311951360, 8912896, 60000, 36000, 6, 8, 6, 4, 8384},
- {LEVEL_5_1, 588251136, 8912896, 120000, 46000, 8, 8, 10, 4, 8384},
+ {LEVEL_1, 829440, 36864, 512, 200, 400, 2, 1, 4, 8},
+ {LEVEL_1_1, 2764800, 73728, 768, 800, 1000, 2, 1, 4, 8},
+ {LEVEL_2, 4608000, 122880, 960, 1800, 1500, 2, 1, 4, 8},
+ {LEVEL_2_1, 9216000, 245760, 1344, 3600, 2800, 2, 2, 4, 8},
+ {LEVEL_3, 20736000, 552960, 2048, 7200, 6000, 2, 4, 4, 8},
+ {LEVEL_3_1, 36864000, 983040, 2752, 12000, 10000, 2, 4, 4, 8},
+ {LEVEL_4, 83558400, 2228224, 4160, 18000, 16000, 4, 4, 4, 8},
+ {LEVEL_4_1, 160432128, 2228224, 4160, 30000, 18000, 4, 4, 5, 6},
+ {LEVEL_5, 311951360, 8912896, 8384, 60000, 36000, 6, 8, 6, 4},
+ {LEVEL_5_1, 588251136, 8912896, 8384, 120000, 46000, 8, 8, 10, 4},
// CPB Size = 0 for levels 5_2 to 6_2
- {LEVEL_5_2, 1176502272, 8912896, 180000, 0, 8, 8, 10, 4, 8384},
- {LEVEL_6, 1176502272, 35651584, 180000, 0, 8, 16, 10, 4, 16832},
- {LEVEL_6_1, 2353004544, 35651584, 240000, 0, 8, 16, 10, 4, 16832},
- {LEVEL_6_2, 4706009088, 35651584, 480000, 0, 8, 16, 10, 4, 16832}};
+ {LEVEL_5_2, 1176502272, 8912896, 8384, 180000, 0, 8, 8, 10, 4},
+ {LEVEL_6, 1176502272, 35651584, 16832, 180000, 0, 8, 16, 10, 4},
+ {LEVEL_6_1, 2353004544, 35651584, 16832, 240000, 0, 8, 16, 10, 4},
+ {LEVEL_6_2, 4706009088, 35651584, 16832, 480000, 0, 8, 16, 10, 4}};
void Vp9LevelStats::AddFrame(const Vp9HeaderParser& parser, int64_t time_ns) {
++frames;
@@ -129,7 +129,7 @@ Vp9Level Vp9LevelStats::GetLevel() const {
const int64_t max_luma_picture_breadth = GetMaxLumaPictureBreadth();
const double average_bitrate = GetAverageBitRate();
const double max_cpb_size = GetMaxCpbSize();
- const double compresion_ratio = GetCompressionRatio();
+ const double compression_ratio = GetCompressionRatio();
const int max_column_tiles = GetMaxColumnTiles();
const int min_altref_distance = GetMinimumAltrefDistance();
const int max_ref_frames = GetMaxReferenceFrames();
@@ -215,7 +215,7 @@ Vp9Level Vp9LevelStats::GetLevel() const {
// The minimum compression ratio has the same behavior as minimum altref
// distance.
- if (compresion_ratio < Vp9LevelTable[level_index].compresion_ratio)
+ if (compression_ratio < Vp9LevelTable[level_index].compression_ratio)
max_level = LEVEL_UNKNOWN;
return max_level;
}