• 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

修订版988984235c5532362d083ffc6ae6e99dc6a9899a (tree)
时间2014-03-17 10:31:05
作者Austin Yuan <shengquan.yuan@inte...>
CommiterXiang, Haihao

Log Message

vatrace: always printf RefPicList

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit e9e685fe752b9865ba9e28cb63e18ce3f8aed2a0)

更改概述

差异

--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -1344,18 +1344,21 @@ static void va_TraceVASliceParameterBufferH264(
13441344 va_TraceMsg(idx, "\tslice_alpha_c0_offset_div2 = %d\n", p->slice_alpha_c0_offset_div2);
13451345 va_TraceMsg(idx, "\tslice_beta_offset_div2 = %d\n", p->slice_beta_offset_div2);
13461346
1347- if (p->slice_type == 0 || p->slice_type == 1) {
1348- va_TraceMsg(idx, "\tRefPicList0 =");
1349- for (i = 0; (i < p->num_ref_idx_l0_active_minus1 + 1 && i < 32); i++) {
1350- va_TraceMsg(idx, "%08d-%08d-0x%08x-%08d-0x%08x\n", p->RefPicList0[i].TopFieldOrderCnt, p->RefPicList0[i].BottomFieldOrderCnt, p->RefPicList0[i].picture_id, p->RefPicList0[i].frame_idx, p->RefPicList0[i].flags);
1351- }
1352- if (p->slice_type == 1) {
1353- va_TraceMsg(idx, "\tRefPicList1 =");
1354- for (i = 0; (i < p->num_ref_idx_l1_active_minus1 + 1 && i < 32); i++)
1355- {
1356- va_TraceMsg(idx, "%08d-%08d-0x%08x-%08d-0x%08x\n", p->RefPicList1[i].TopFieldOrderCnt, p->RefPicList1[i].BottomFieldOrderCnt, p->RefPicList1[i].picture_id, p->RefPicList1[i].frame_idx, p->RefPicList1[i].flags);
1357- }
1358- }
1347+ va_TraceMsg(idx, "\tRefPicList0 =");
1348+ for (i = 0; i < 32; i++) {
1349+ if ((p->RefPicList0[i].picture_id != VA_INVALID_SURFACE) &&
1350+ ((p->RefPicList0[i].flags & VA_PICTURE_H264_INVALID) == 0))
1351+ va_TraceMsg(idx, "%08d-%08d-0x%08x-%08d-0x%08x\n", p->RefPicList0[i].TopFieldOrderCnt, p->RefPicList0[i].BottomFieldOrderCnt, p->RefPicList0[i].picture_id, p->RefPicList0[i].frame_idx, p->RefPicList0[i].flags);
1352+ else
1353+ break;
1354+ }
1355+ va_TraceMsg(idx, "\tRefPicList1 =");
1356+ for (i = 0; i < 32; i++) {
1357+ if ((p->RefPicList0[i].picture_id != VA_INVALID_SURFACE) &&
1358+ ((p->RefPicList0[i].flags & VA_PICTURE_H264_INVALID) == 0))
1359+ va_TraceMsg(idx, "%08d-%08d-0x%08x-%08d-0x%08x\n", p->RefPicList1[i].TopFieldOrderCnt, p->RefPicList1[i].BottomFieldOrderCnt, p->RefPicList1[i].picture_id, p->RefPicList1[i].frame_idx, p->RefPicList1[i].flags);
1360+ else
1361+ break;
13591362 }
13601363
13611364 va_TraceMsg(idx, "\tluma_log2_weight_denom = %d\n", p->luma_log2_weight_denom);
@@ -1626,37 +1629,33 @@ static void va_TraceVAEncSliceParameterBufferH264(
16261629 va_TraceMsg(idx, "\tnum_ref_idx_l1_active_minus1 = %d\n", p->num_ref_idx_l1_active_minus1);
16271630 va_TraceMsg(idx, "\tslice_beta_offset_div2 = %d\n", p->slice_beta_offset_div2);
16281631
1629- if (p->slice_type == 0 || p->slice_type == 1) {
1630- va_TraceMsg(idx, "\tRefPicList0 (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags):\n");
1631- for (i = 0; i < 32; i++) {
1632- if ((p->RefPicList0[i].picture_id != VA_INVALID_SURFACE) &&
1633- ((p->RefPicList0[i].flags & VA_PICTURE_H264_INVALID) == 0))
1634- va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08x\n",
1635- p->RefPicList0[i].TopFieldOrderCnt,
1636- p->RefPicList0[i].BottomFieldOrderCnt,
1637- p->RefPicList0[i].picture_id,
1638- p->RefPicList0[i].frame_idx,
1639- p->RefPicList0[i].flags);
1640- else
1641- break;
1642- }
1632+ va_TraceMsg(idx, "\tRefPicList0 (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags):\n");
1633+ for (i = 0; i < 32; i++) {
1634+ if ((p->RefPicList0[i].picture_id != VA_INVALID_SURFACE) &&
1635+ ((p->RefPicList0[i].flags & VA_PICTURE_H264_INVALID) == 0))
1636+ va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08x\n",
1637+ p->RefPicList0[i].TopFieldOrderCnt,
1638+ p->RefPicList0[i].BottomFieldOrderCnt,
1639+ p->RefPicList0[i].picture_id,
1640+ p->RefPicList0[i].frame_idx,
1641+ p->RefPicList0[i].flags);
1642+ else
1643+ break;
16431644 }
16441645
1645- if (p->slice_type == 1) {
1646- va_TraceMsg(idx, "\tRefPicList1 (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags):\n");
1647- for (i = 0; i < 32; i++) {
1648- if ((p->RefPicList1[i].picture_id != VA_INVALID_SURFACE) &&
1649- ((p->RefPicList1[i].flags & VA_PICTURE_H264_INVALID) == 0))
1650- va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08d\n",
1651- p->RefPicList1[i].TopFieldOrderCnt,
1652- p->RefPicList1[i].BottomFieldOrderCnt,
1653- p->RefPicList1[i].picture_id,
1654- p->RefPicList1[i].frame_idx,
1655- p->RefPicList1[i].flags
1656- );
1657- else
1658- break;
1659- }
1646+ va_TraceMsg(idx, "\tRefPicList1 (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags):\n");
1647+ for (i = 0; i < 32; i++) {
1648+ if ((p->RefPicList1[i].picture_id != VA_INVALID_SURFACE) &&
1649+ ((p->RefPicList1[i].flags & VA_PICTURE_H264_INVALID) == 0))
1650+ va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08d\n",
1651+ p->RefPicList1[i].TopFieldOrderCnt,
1652+ p->RefPicList1[i].BottomFieldOrderCnt,
1653+ p->RefPicList1[i].picture_id,
1654+ p->RefPicList1[i].frame_idx,
1655+ p->RefPicList1[i].flags
1656+ );
1657+ else
1658+ break;
16601659 }
16611660
16621661 va_TraceMsg(idx, "\tluma_log2_weight_denom = %d\n", p->luma_log2_weight_denom);