• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

hardware/intel/libva


Commit MetaInfo

修訂1d1da291df2b895dfc7cfe964575ef13b68913a4 (tree)
時間2013-06-19 15:35:04
作者Austin Yuan <shengquan.yuan@inte...>
CommiterXiang, Haihao

Log Message

vatrace: only print info of valid reference frames

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

Change Summary

差異

--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -1013,7 +1013,8 @@ static void va_TraceVAPictureParameterBufferH264(
10131013 va_TraceMsg(idx, "\tReferenceFrames (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags:\n");
10141014 for (i = 0; i < 16; i++)
10151015 {
1016- if (p->ReferenceFrames[i].flags != VA_PICTURE_H264_INVALID) {
1016+ if ((p->ReferenceFrames[i].picture_id != VA_INVALID_SURFACE) &&
1017+ ((p->ReferenceFrames[i].flags & VA_PICTURE_H264_INVALID) == 0)) {
10171018 va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08x\n",
10181019 p->ReferenceFrames[i].TopFieldOrderCnt,
10191020 p->ReferenceFrames[i].BottomFieldOrderCnt,
@@ -1277,7 +1278,8 @@ static void va_TraceVAEncPictureParameterBufferH264(
12771278 va_TraceMsg(idx, "\tReferenceFrames (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags):\n");
12781279 for (i = 0; i < 16; i++)
12791280 {
1280- if (p->ReferenceFrames[i].flags != VA_PICTURE_H264_INVALID) {
1281+ if ((p->ReferenceFrames[i].picture_id != VA_INVALID_SURFACE) &&
1282+ ((p->ReferenceFrames[i].flags & VA_PICTURE_H264_INVALID) == 0)) {
12811283 va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08x\n",
12821284 p->ReferenceFrames[i].TopFieldOrderCnt,
12831285 p->ReferenceFrames[i].BottomFieldOrderCnt,
@@ -1286,7 +1288,7 @@ static void va_TraceVAEncPictureParameterBufferH264(
12861288 p->ReferenceFrames[i].flags
12871289 );
12881290 } else
1289- va_TraceMsg(idx, "\t\tinv-inv-inv-inv\n");
1291+ va_TraceMsg(idx, "\t\tinv-inv-inv-inv-inv\n");
12901292 }
12911293 va_TraceMsg(idx, "\tcoded_buf = %08x\n", p->coded_buf);
12921294 va_TraceMsg(idx, "\tpic_parameter_set_id = %d\n", p->pic_parameter_set_id);
@@ -1377,14 +1379,15 @@ static void va_TraceVAEncSliceParameterBufferH264(
13771379 if (p->slice_type == 0 || p->slice_type == 1) {
13781380 va_TraceMsg(idx, "\tRefPicList0 (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags):\n");
13791381 for (i = 0; i < 32; i++) {
1380- if (p->RefPicList0[i].flags != VA_PICTURE_H264_INVALID) {
1382+ if ((p->RefPicList0[i].picture_id != VA_INVALID_SURFACE) &&
1383+ ((p->RefPicList0[i].flags & VA_PICTURE_H264_INVALID) == 0))
13811384 va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08x\n",
13821385 p->RefPicList0[i].TopFieldOrderCnt,
13831386 p->RefPicList0[i].BottomFieldOrderCnt,
13841387 p->RefPicList0[i].picture_id,
13851388 p->RefPicList0[i].frame_idx,
13861389 p->RefPicList0[i].flags);
1387- } else
1390+ else
13881391 break;
13891392 }
13901393 }
@@ -1392,7 +1395,8 @@ static void va_TraceVAEncSliceParameterBufferH264(
13921395 if (p->slice_type == 1) {
13931396 va_TraceMsg(idx, "\tRefPicList1 (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags):\n");
13941397 for (i = 0; i < 32; i++) {
1395- if (p->RefPicList1[i].flags != VA_PICTURE_H264_INVALID)
1398+ if ((p->RefPicList1[i].picture_id != VA_INVALID_SURFACE) &&
1399+ ((p->RefPicList1[i].flags & VA_PICTURE_H264_INVALID) == 0))
13961400 va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08d\n",
13971401 p->RefPicList1[i].TopFieldOrderCnt,
13981402 p->RefPicList1[i].BottomFieldOrderCnt,