[Libva] [Libva-intel-driver][PATCH] Set cost to 0 for CHROMA INTRA mode
Xiang, Haihao
haihao.xiang at intel.com
Tue Aug 16 04:10:55 UTC 2016
Commit 1cd6795 causes quality drop for U/V plane.
Reported-by: Wang, Fei W <fei.w.wang at intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
Tested-by: Wang, Fei W <fei.w.wang at intel.com>
---
src/gen6_mfc_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gen6_mfc_common.c b/src/gen6_mfc_common.c
index b0342da..9f041d8 100644
--- a/src/gen6_mfc_common.c
+++ b/src/gen6_mfc_common.c
@@ -776,7 +776,7 @@ void intel_h264_calc_mbmvcost_qp(int qp,
lambda = intel_lambda_qp(qp);
m_cost = lambda;
- vme_state_message[MODE_CHROMA_INTRA] = intel_format_lutvalue(m_cost, 0x8f);
+ vme_state_message[MODE_CHROMA_INTRA] = 0;
vme_state_message[MODE_REFID_COST] = intel_format_lutvalue(m_cost, 0x8f);
if (slice_type == SLICE_TYPE_I) {
--
1.9.1
More information about the Libva
mailing list