summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarco Paniconi <marpan@google.com>2014-03-14 14:35:47 -0700
committerMarco Paniconi <marpan@google.com>2014-03-18 10:59:21 -0700
commit6b83884ba995640bf6d348173fdd299d95e3c1aa (patch)
treec04c7a48cecd9a6886ead802712ab4499c95c925 /examples
parentc9a0309f132ffbdfd0566f4a83558057c70a562f (diff)
downloadlibvpx-6b83884ba995640bf6d348173fdd299d95e3c1aa.tar
libvpx-6b83884ba995640bf6d348173fdd299d95e3c1aa.tar.gz
libvpx-6b83884ba995640bf6d348173fdd299d95e3c1aa.tar.bz2
libvpx-6b83884ba995640bf6d348173fdd299d95e3c1aa.zip
In-frame q adjustment for cyclic background refresh.
Activated using aq_mode=3. Change-Id: Ied628b9e7bd0e88b0c75790276bca75b19eb5c07
Diffstat (limited to 'examples')
-rw-r--r--examples/vpx_temporal_scalable_patterns.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/vpx_temporal_scalable_patterns.c b/examples/vpx_temporal_scalable_patterns.c
index 6ec1b6208..a360b8ec7 100644
--- a/examples/vpx_temporal_scalable_patterns.c
+++ b/examples/vpx_temporal_scalable_patterns.c
@@ -563,7 +563,8 @@ int main(int argc, char **argv) {
vpx_codec_control(&codec, VP8E_SET_CPUUSED, -6);
vpx_codec_control(&codec, VP8E_SET_NOISE_SENSITIVITY, 1);
if (strncmp(encoder->name, "vp9", 3) == 0) {
- vpx_codec_control(&codec, VP8E_SET_CPUUSED, 3);
+ vpx_codec_control(&codec, VP8E_SET_CPUUSED, 5);
+ vpx_codec_control(&codec, VP9E_SET_AQ_MODE, 3);
vpx_codec_control(&codec, VP8E_SET_NOISE_SENSITIVITY, 0);
if (vpx_codec_control(&codec, VP9E_SET_SVC, 1)) {
die_codec(&codec, "Failed to set SVC");
@@ -576,6 +577,8 @@ int main(int argc, char **argv) {
// value, like 100 or 200.
max_intra_size_pct = (int) (((double)cfg.rc_buf_optimal_sz * 0.5)
* ((double) cfg.g_timebase.den / cfg.g_timebase.num) / 10.0);
+ // For low-quality key frame.
+ max_intra_size_pct = 200;
vpx_codec_control(&codec, VP8E_SET_MAX_INTRA_BITRATE_PCT, max_intra_size_pct);
frame_avail = 1;