From: Xiang, Haihao Date: Fri, 25 Jun 2010 05:16:30 +0000 (+0800) Subject: i965_drv_video: [H.264] fix chroma issue X-Git-Tag: libva-1.0.4~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F19%2F619%2F1;p=profile%2Fivi%2Flibva.git i965_drv_video: [H.264] fix chroma issue --- diff --git a/i965_drv_video/i965_avc_bsd.c b/i965_drv_video/i965_avc_bsd.c index 1334f26..6f75130 100644 --- a/i965_drv_video/i965_avc_bsd.c +++ b/i965_drv_video/i965_avc_bsd.c @@ -177,8 +177,8 @@ i965_avc_bsd_img_state(VADriverContextP ctx, struct decode_state *decode_state) (height_in_mbs << 16) | (width_in_mbs << 0)); OUT_BCS_BATCH(ctx, - (pic_param->second_chroma_qp_index_offset << 24) | - (pic_param->chroma_qp_index_offset << 16) | + ((pic_param->second_chroma_qp_index_offset & 0x1f) << 24) | + ((pic_param->chroma_qp_index_offset & 0x1f) << 16) | (SCAN_RASTER_ORDER << 15) | /* AVC ILDB Data */ (SCAN_SPECIAL_ORDER << 14) | /* AVC IT Command */ (SCAN_RASTER_ORDER << 13) | /* AVC IT Data */