summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_onyx.h
diff options
context:
space:
mode:
authorMarco Paniconi <marpan@google.com>2014-02-06 09:23:17 -0800
committerMarco Paniconi <marpan@google.com>2014-02-06 09:24:45 -0800
commit4864ab21b0679270bd41c280489a8493bcf8c4ee (patch)
tree2bf295f4311f473b2099bec757396e113c83af26 /vp9/common/vp9_onyx.h
parent9602ed8808498c0bdc176ec4ffc60654860f12ec (diff)
downloadlibvpx-4864ab21b0679270bd41c280489a8493bcf8c4ee.tar
libvpx-4864ab21b0679270bd41c280489a8493bcf8c4ee.tar.gz
libvpx-4864ab21b0679270bd41c280489a8493bcf8c4ee.tar.bz2
libvpx-4864ab21b0679270bd41c280489a8493bcf8c4ee.zip
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
Diffstat (limited to 'vp9/common/vp9_onyx.h')
-rw-r--r--vp9/common/vp9_onyx.h8
1 files changed, 6 insertions, 2 deletions
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;