• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine 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

Revision3a849d73b6f4df0670338d0ed2302bd98d16074c (tree)
Zeit2013-06-19 15:34:41
AutorElaine Wang <elaine.wang@inte...>
CommiterXiang, Haihao

Log Message

vatrace: dump flags of VAPictureH264

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
(cherry picked from commit e1d86f000749d5fdbd6e36b55260d3fae096e457)

Ändern Zusammenfassung

Diff

--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -1010,17 +1010,18 @@ static void va_TraceVAPictureParameterBufferH264(
10101010 va_TraceMsg(idx, "\tCurrPic.TopFieldOrderCnt = %d\n", p->CurrPic.TopFieldOrderCnt);
10111011 va_TraceMsg(idx, "\tCurrPic.BottomFieldOrderCnt = %d\n", p->CurrPic.BottomFieldOrderCnt);
10121012
1013- va_TraceMsg(idx, "\tReferenceFrames (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx:\n");
1013+ va_TraceMsg(idx, "\tReferenceFrames (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags:\n");
10141014 for (i = 0; i < 16; i++)
10151015 {
10161016 if (p->ReferenceFrames[i].flags != VA_PICTURE_H264_INVALID) {
1017- va_TraceMsg(idx, "\t\t%d-%d-0x%08x-%d\n",
1017+ va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08x\n",
10181018 p->ReferenceFrames[i].TopFieldOrderCnt,
10191019 p->ReferenceFrames[i].BottomFieldOrderCnt,
10201020 p->ReferenceFrames[i].picture_id,
1021- p->ReferenceFrames[i].frame_idx);
1021+ p->ReferenceFrames[i].frame_idx,
1022+ p->ReferenceFrames[i].flags);
10221023 } else
1023- va_TraceMsg(idx, "\t\tinv-inv-inv-inv\n");
1024+ va_TraceMsg(idx, "\t\tinv-inv-inv-inv-inv\n");
10241025 }
10251026 va_TraceMsg(idx, "\n");
10261027
@@ -1095,13 +1096,13 @@ static void va_TraceVASliceParameterBufferH264(
10951096 if (p->slice_type == 0 || p->slice_type == 1) {
10961097 va_TraceMsg(idx, "\tRefPicList0 =");
10971098 for (i = 0; (i < p->num_ref_idx_l0_active_minus1 + 1 && i < 32); i++) {
1098- va_TraceMsg(idx, "%d-%d-0x%08x-%d\n", p->RefPicList0[i].TopFieldOrderCnt, p->RefPicList0[i].BottomFieldOrderCnt, p->RefPicList0[i].picture_id, p->RefPicList0[i].frame_idx);
1099+ 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);
10991100 }
11001101 if (p->slice_type == 1) {
11011102 va_TraceMsg(idx, "\tRefPicList1 =");
11021103 for (i = 0; (i < p->num_ref_idx_l1_active_minus1 + 1 && i < 32); i++)
11031104 {
1104- va_TraceMsg(idx, "%d-%d-0x%08x-%d\n", p->RefPicList1[i].TopFieldOrderCnt, p->RefPicList1[i].BottomFieldOrderCnt, p->RefPicList1[i].picture_id, p->RefPicList1[i].frame_idx);
1105+ 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);
11051106 }
11061107 }
11071108 }
@@ -1273,15 +1274,17 @@ static void va_TraceVAEncPictureParameterBufferH264(
12731274 va_TraceMsg(idx, "\tCurrPic.flags = %d\n", p->CurrPic.flags);
12741275 va_TraceMsg(idx, "\tCurrPic.TopFieldOrderCnt = %d\n", p->CurrPic.TopFieldOrderCnt);
12751276 va_TraceMsg(idx, "\tCurrPic.BottomFieldOrderCnt = %d\n", p->CurrPic.BottomFieldOrderCnt);
1276- va_TraceMsg(idx, "\tReferenceFrames (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx):\n");
1277+ va_TraceMsg(idx, "\tReferenceFrames (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags):\n");
12771278 for (i = 0; i < 16; i++)
12781279 {
12791280 if (p->ReferenceFrames[i].flags != VA_PICTURE_H264_INVALID) {
1280- va_TraceMsg(idx, "\t\t%d-%d-0x%08x-%d\n",
1281+ va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08x\n",
12811282 p->ReferenceFrames[i].TopFieldOrderCnt,
12821283 p->ReferenceFrames[i].BottomFieldOrderCnt,
12831284 p->ReferenceFrames[i].picture_id,
1284- p->ReferenceFrames[i].frame_idx);
1285+ p->ReferenceFrames[i].frame_idx,
1286+ p->ReferenceFrames[i].flags
1287+ );
12851288 } else
12861289 va_TraceMsg(idx, "\t\tinv-inv-inv-inv\n");
12871290 }
@@ -1372,28 +1375,31 @@ static void va_TraceVAEncSliceParameterBufferH264(
13721375 va_TraceMsg(idx, "\tslice_beta_offset_div2 = %d\n", p->slice_beta_offset_div2);
13731376
13741377 if (p->slice_type == 0 || p->slice_type == 1) {
1375- va_TraceMsg(idx, "\tRefPicList0 (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx):\n");
1378+ va_TraceMsg(idx, "\tRefPicList0 (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags):\n");
13761379 for (i = 0; i < 32; i++) {
13771380 if (p->RefPicList0[i].flags != VA_PICTURE_H264_INVALID) {
1378- va_TraceMsg(idx, "\t\t%d-%d-0x%08x-%d\n",
1381+ va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08x\n",
13791382 p->RefPicList0[i].TopFieldOrderCnt,
13801383 p->RefPicList0[i].BottomFieldOrderCnt,
13811384 p->RefPicList0[i].picture_id,
1382- p->RefPicList0[i].frame_idx);
1385+ p->RefPicList0[i].frame_idx,
1386+ p->RefPicList0[i].flags);
13831387 } else
13841388 break;
13851389 }
13861390 }
13871391
13881392 if (p->slice_type == 1) {
1389- va_TraceMsg(idx, "\tRefPicList1 (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx):\n");
1393+ va_TraceMsg(idx, "\tRefPicList1 (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags):\n");
13901394 for (i = 0; i < 32; i++) {
13911395 if (p->RefPicList1[i].flags != VA_PICTURE_H264_INVALID)
1392- va_TraceMsg(idx, "\t\t%d-%d-0x%08x-%d\n",
1396+ va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08d\n",
13931397 p->RefPicList1[i].TopFieldOrderCnt,
13941398 p->RefPicList1[i].BottomFieldOrderCnt,
13951399 p->RefPicList1[i].picture_id,
1396- p->RefPicList1[i].frame_idx);
1400+ p->RefPicList1[i].frame_idx,
1401+ p->RefPicList1[i].flags
1402+ );
13971403 else
13981404 break;
13991405 }