summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarco <marpan@google.com>2015-03-11 14:07:34 -0700
committerMarco <marpan@google.com>2015-03-11 14:09:49 -0700
commita250ebf8b86371e9ffb76ceb4b22fb45d81bf0ac (patch)
treee2d841f5337f1eb09bc3f079b29e74b8ad9a6fae /examples
parentdc902fedb2052037edca8016d244df49bd7ca1d5 (diff)
downloadlibvpx-a250ebf8b86371e9ffb76ceb4b22fb45d81bf0ac.tar.gz
libvpx-a250ebf8b86371e9ffb76ceb4b22fb45d81bf0ac.tar.bz2
libvpx-a250ebf8b86371e9ffb76ceb4b22fb45d81bf0ac.zip
vpx_temporal_svc_encoder: Update some default settings.
Set flags=0 if layering_mode=0, and set static_thresh=1. Change-Id: Id9874923b23966a2b1d0e83965add7d5c9d26d16
Diffstat (limited to 'examples')
-rw-r--r--examples/vpx_temporal_svc_encoder.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/vpx_temporal_svc_encoder.c b/examples/vpx_temporal_svc_encoder.c
index dea29c021..d5cd46c68 100644
--- a/examples/vpx_temporal_svc_encoder.c
+++ b/examples/vpx_temporal_svc_encoder.c
@@ -677,7 +677,7 @@ int main(int argc, char **argv) {
vpx_codec_control(&codec, VP9E_SET_AQ_MODE, 3);
vpx_codec_control(&codec, VP9E_SET_FRAME_PERIODIC_BOOST, 0);
vpx_codec_control(&codec, VP9E_SET_NOISE_SENSITIVITY, 0);
- vpx_codec_control(&codec, VP8E_SET_STATIC_THRESHOLD, 0);
+ vpx_codec_control(&codec, VP8E_SET_STATIC_THRESHOLD, 1);
vpx_codec_control(&codec, VP9E_SET_TILE_COLUMNS, (cfg.g_threads >> 1));
if (vpx_codec_control(&codec, VP9E_SET_SVC, layering_mode > 0 ? 1: 0)) {
die_codec(&codec, "Failed to set SVC");
@@ -712,6 +712,8 @@ int main(int argc, char **argv) {
layer_id.temporal_layer_id);
}
flags = layer_flags[frame_cnt % flag_periodicity];
+ if (layering_mode == 0)
+ flags = 0;
frame_avail = vpx_img_read(&raw, infile);
if (frame_avail)
++rc.layer_input_frames[layer_id.temporal_layer_id];