• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

hardware/intel/intel-driver


Commit MetaInfo

Revisión996f6d4ef03fbe4447a8f8ef26f86e49964c1d01 (tree)
Tiempo2015-04-29 16:57:50
AutorXiang, Haihao <haihao.xiang@inte...>
CommiterXiang, Haihao

Log Message

HEVC/dec: Fix weight/offset in HCP_WEIGHTOFFSET

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>

Cambiar Resumen

Diferencia incremental

--- a/src/gen9_mfd.c
+++ b/src/gen9_mfd.c
@@ -649,8 +649,8 @@ gen9_hcpd_weightoffset_state_1(struct intel_batchbuffer *batch,
649649 for (i = 0; i < 16; i++) {
650650 if (i < MIN((num_ref_minus1 + 1), 15)) {
651651 OUT_BCS_BATCH(batch,
652- luma_offset[i] << 8 |
653- delta_luma_weight[i]);
652+ (luma_offset[i] & 0xff) << 8 |
653+ (delta_luma_weight[i] & 0xff));
654654 } else {
655655 OUT_BCS_BATCH(batch, 0);
656656 }
@@ -658,10 +658,10 @@ gen9_hcpd_weightoffset_state_1(struct intel_batchbuffer *batch,
658658 for (i = 0; i < 16; i++) {
659659 if (i < MIN((num_ref_minus1 + 1), 15)) {
660660 OUT_BCS_BATCH(batch,
661- chroma_offset[i][1] << 24 |
662- delta_chroma_weight[i][1] << 16 |
663- chroma_offset[i][0] << 8 |
664- delta_chroma_weight[i][0]);
661+ (chroma_offset[i][1] & 0xff) << 24 |
662+ (delta_chroma_weight[i][1] & 0xff) << 16 |
663+ (chroma_offset[i][0] & 0xff) << 8 |
664+ (delta_chroma_weight[i][0] & 0xff));
665665 } else {
666666 OUT_BCS_BATCH(batch, 0);
667667 }