[Libva] [Libva-intel-driver][PATCH] Set cost to 0 for CHROMA INTRA mode

Sean V Kelley seanvk at posteo.de
Fri Aug 19 22:27:08 UTC 2016


On Tue, 2016-08-16 at 12:10 +0800, Xiang, Haihao wrote:
> 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>

Good catch.  lgtm. applied.

Thanks,

Sean

> ---
>  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) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/libva/attachments/20160819/b6fb5dd7/attachment.sig>


More information about the Libva mailing list