Add psnr/ssim tuning option
authorJohn Koleszar <jkoleszar@google.com>
Fri, 17 Dec 2010 14:43:39 +0000 (09:43 -0500)
committerJohn Koleszar <jkoleszar@google.com>
Fri, 17 Dec 2010 15:01:05 +0000 (10:01 -0500)
commitb0da9b399d8e9129f47c81366902e66823063878
tree11bd71c9ebaf7e4a7ba3e17e2075b09d7edd1970
parent64baa8df2e3f5cd8036fac9715d3f7d348620fa6
Add psnr/ssim tuning option

Add a new encoder control, VP8E_SET_TUNING, to allow the application
to inform the encoder that the material will benefit from certain
tuning. Expose this control as the --tune option to vpxenc. The args
helper is expanded to support enumerated arguments by name or value.

Two tunings are provided by this patch, PSNR (default) and SSIM.
Activity masking is made dependent on setting --tune=ssim, as the
current implementation hurts speed (10%) and PSNR (2.7% avg,
10% peak) too much for it to be a default yet.

Change-Id: I110d969381c4805347ff5a0ffaf1a14ca1965257
args.c
args.h
vp8/common/onyx.h
vp8/encoder/encodeframe.c
vp8/encoder/ethreading.c
vp8/vp8_cx_iface.c
vpx/vp8cx.h
vpxenc.c