diff options
author | Paul Wilkins <paulwilkins@google.com> | 2011-01-06 17:10:07 +0000 |
---|---|---|
committer | Paul Wilkins <paulwilkins@google.com> | 2011-01-06 17:10:07 +0000 |
commit | 431dac08d10b28803a0b5754337099bc79a79fb5 (patch) | |
tree | 3d9e175bd199e7e10b81fb15a0f6acc90e81145b /vp8/encoder | |
parent | b095d9df3c7492e9ba031c4491a0a565f668c9e5 (diff) | |
download | libvpx-431dac08d10b28803a0b5754337099bc79a79fb5.tar libvpx-431dac08d10b28803a0b5754337099bc79a79fb5.tar.gz libvpx-431dac08d10b28803a0b5754337099bc79a79fb5.tar.bz2 libvpx-431dac08d10b28803a0b5754337099bc79a79fb5.zip |
Disable some features for first pass.
The following features don't make sense for the first
pass in its current form and have a significant impact on its
speed (up to 50%).
Slow quantizer, slow dct and trellis optimization.
Change-Id: Id9943f6765ffbd71fc0084ec7dfbc9d376fd6fcd
Diffstat (limited to 'vp8/encoder')
-rw-r--r-- | vp8/encoder/onyx_if.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index 56f7ef6f8..96e7a6caa 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -576,7 +576,7 @@ void vp8_set_speed_features(VP8_COMP *cpi) cpi->mbs_tested_so_far = 0; - // best quality + // best quality defaults sf->RD = 1; sf->search_method = NSTEP; sf->improved_quant = 1; @@ -1268,6 +1268,15 @@ void vp8_set_speed_features(VP8_COMP *cpi) }; + // Slow quant, dct and trellis not worthwhile for first pass + // so make sure they are always turned off. + if ( cpi->pass == 1 ) + { + sf->improved_quant = 0; + sf->optimize_coefficients = 0; + sf->improved_dct = 0; + } + if (cpi->sf.search_method == NSTEP) { vp8_init3smotion_compensation(&cpi->mb, cm->yv12_fb[cm->lst_fb_idx].y_stride); |