From: Yaowu Xu Date: Wed, 4 Dec 2013 20:36:42 +0000 (-0800) Subject: Disable --tune=ssim for vp9 X-Git-Tag: v1.4.0~2899^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d84c09841776cd39d3218b269676289af65525f6;p=libvpx Disable --tune=ssim for vp9 The feature is not yet supported. Change-Id: If46382302d2077b20670391b4a03017045a104f5 --- diff --git a/vp9/vp9_cx_iface.c b/vp9/vp9_cx_iface.c index 9a23ebd53..5d53a4149 100644 --- a/vp9/vp9_cx_iface.c +++ b/vp9/vp9_cx_iface.c @@ -198,6 +198,10 @@ static vpx_codec_err_t validate_config(vpx_codec_alg_priv_t *ctx, RANGE_CHECK(vp8_cfg, arnr_type, 1, 3); RANGE_CHECK(vp8_cfg, cq_level, 0, 63); + // TODO(yaowu): remove this when ssim tuning is implemented for vp9 + if (vp8_cfg->tuning == VP8_TUNE_SSIM) + ERROR("Option --tune=ssim is not currently supported in VP9."); + if (cfg->g_pass == VPX_RC_LAST_PASS) { size_t packet_sz = sizeof(FIRSTPASS_STATS); int n_packets = (int)(cfg->rc_twopass_stats_in.sz / packet_sz);