From 4864ab21b0679270bd41c280489a8493bcf8c4ee Mon Sep 17 00:00:00 2001 From: Marco Paniconi Date: Thu, 6 Feb 2014 09:23:17 -0800 Subject: Layer based rate control for CBR mode. This patch adds a buffer-based rate control for temporal layers, under CBR mode. Added vpx_temporal_scalable_patters.c encoder for testing temporal layers, for both vp9 and vp8 (replaces the old vp8_scalable_patterns). Updated datarate unittest with tests for temporal layer rate-targeting. Change-Id: I8900a854288b9354d9c697cfeb0243a9fd6790b1 --- vp9/common/vp9_onyx.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'vp9/common/vp9_onyx.h') diff --git a/vp9/common/vp9_onyx.h b/vp9/common/vp9_onyx.h index 564e4195f..ac39a98fd 100644 --- a/vp9/common/vp9_onyx.h +++ b/vp9/common/vp9_onyx.h @@ -147,8 +147,12 @@ extern "C" { // END DATARATE CONTROL OPTIONS // ---------------------------------------------------------------- - // Spatial scalability - int ss_number_layers; + // Spatial and temporal scalability. + int ss_number_layers; // Number of spatial layers. + int ts_number_layers; // Number of temporal layers. + // Bitrate allocation (CBR mode) and framerate factor, for temporal layers. + int ts_target_bitrate[VPX_TS_MAX_LAYERS]; + int ts_rate_decimator[VPX_TS_MAX_LAYERS]; // these parameters aren't to be used in final build don't use!!! int play_alternate; -- cgit v1.2.3