• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

修订版21b718316b33522d1761fc3bb15b5cef31860bd9 (tree)
时间2010-04-15 10:18:53
作者Xiang, Haihao <haihao.xiang@inte...>
CommiterXiang, Haihao

Log Message

i965_drv_video: [H.264] fix for weight/offset state

更改概述

差异

--- a/i965_drv_video/i965_avc_bsd.c
+++ b/i965_drv_video/i965_avc_bsd.c
@@ -263,18 +263,16 @@ i965_avc_bsd_slice_state(VADriverContextP ctx,
263263 cmd_len += 16;
264264 }
265265
266- if (slice_param->luma_weight_l0_flag | slice_param->chroma_weight_l0_flag) {
266+ if (pic_param->pic_fields.bits.weighted_pred_flag == 1 ||
267+ pic_param->pic_fields.bits.weighted_bipred_idc == 1) {
267268 present_flag |= PRESENT_WEIGHT_OFFSET_L0;
268269 cmd_len += 48;
269- assert((pic_param->pic_fields.bits.weighted_pred_flag == 1) || /* P slice */
270- (pic_param->pic_fields.bits.weighted_bipred_idc == 1)); /* B slice */
271270 }
272271
273- if (slice_param->luma_weight_l1_flag | slice_param->chroma_weight_l1_flag) {
272+ if (pic_param->pic_fields.bits.weighted_bipred_idc == 1) {
274273 present_flag |= PRESENT_WEIGHT_OFFSET_L1;
275274 cmd_len += 48;
276275 assert(slice_param->slice_type == SLICE_TYPE_B);
277- assert(pic_param->pic_fields.bits.weighted_bipred_idc == 1);
278276 }
279277
280278 BEGIN_BCS_BATCH(ctx, cmd_len);