ref: 9dcc57e4a53383e5c2caf46527f0af0607363e1a
parent: dd2942e80fa0a1703d1306a5c81e619253885199
author: Jingning Han <[email protected]>
date: Wed Apr 3 12:46:07 EDT 2019
Bypass skip check in tune for sharpness mode The sharpness mode is enabled for hvc visual quality. Bypass the skip block check that could potentially force all zero block in sharpness mode. This resolves the patchy blockiness issue raised in the 4K SDR HVC encode. Change-Id: I0538a1b774b80c6b0899c921e80edecd4a440d5c
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -3718,7 +3718,8 @@
// Cost the skip mb case
rate2 += skip_cost1;
- } else if (ref_frame != INTRA_FRAME && !xd->lossless) {
+ } else if (ref_frame != INTRA_FRAME && !xd->lossless &&
+ !cpi->oxcf.sharpness) {
if (RDCOST(x->rdmult, x->rddiv, rate_y + rate_uv + skip_cost0,
distortion2) <
RDCOST(x->rdmult, x->rddiv, skip_cost1, total_sse)) {