diff options
author | Austin Yuan <shengquan.yuan@intel.com> | 2013-04-28 11:57:59 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-06-19 14:35:04 +0800 |
commit | 1d1da291df2b895dfc7cfe964575ef13b68913a4 (patch) | |
tree | a33d6f7d33311550a4849190917e3be0603d3fec /va | |
parent | 3a849d73b6f4df0670338d0ed2302bd98d16074c (diff) |
vatrace: only print info of valid reference frames
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 67c489f323188df1370f8ba2d4063bc86153cce7)
Diffstat (limited to 'va')
-rw-r--r-- | va/va_trace.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/va/va_trace.c b/va/va_trace.c index a120a1c..ad1252a 100644 --- a/va/va_trace.c +++ b/va/va_trace.c @@ -1013,7 +1013,8 @@ static void va_TraceVAPictureParameterBufferH264( va_TraceMsg(idx, "\tReferenceFrames (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags:\n"); for (i = 0; i < 16; i++) { - if (p->ReferenceFrames[i].flags != VA_PICTURE_H264_INVALID) { + if ((p->ReferenceFrames[i].picture_id != VA_INVALID_SURFACE) && + ((p->ReferenceFrames[i].flags & VA_PICTURE_H264_INVALID) == 0)) { va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08x\n", p->ReferenceFrames[i].TopFieldOrderCnt, p->ReferenceFrames[i].BottomFieldOrderCnt, @@ -1277,7 +1278,8 @@ static void va_TraceVAEncPictureParameterBufferH264( va_TraceMsg(idx, "\tReferenceFrames (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags):\n"); for (i = 0; i < 16; i++) { - if (p->ReferenceFrames[i].flags != VA_PICTURE_H264_INVALID) { + if ((p->ReferenceFrames[i].picture_id != VA_INVALID_SURFACE) && + ((p->ReferenceFrames[i].flags & VA_PICTURE_H264_INVALID) == 0)) { va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08x\n", p->ReferenceFrames[i].TopFieldOrderCnt, p->ReferenceFrames[i].BottomFieldOrderCnt, @@ -1286,7 +1288,7 @@ static void va_TraceVAEncPictureParameterBufferH264( p->ReferenceFrames[i].flags ); } else - va_TraceMsg(idx, "\t\tinv-inv-inv-inv\n"); + va_TraceMsg(idx, "\t\tinv-inv-inv-inv-inv\n"); } va_TraceMsg(idx, "\tcoded_buf = %08x\n", p->coded_buf); va_TraceMsg(idx, "\tpic_parameter_set_id = %d\n", p->pic_parameter_set_id); @@ -1377,14 +1379,15 @@ static void va_TraceVAEncSliceParameterBufferH264( if (p->slice_type == 0 || p->slice_type == 1) { va_TraceMsg(idx, "\tRefPicList0 (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags):\n"); for (i = 0; i < 32; i++) { - if (p->RefPicList0[i].flags != VA_PICTURE_H264_INVALID) { + if ((p->RefPicList0[i].picture_id != VA_INVALID_SURFACE) && + ((p->RefPicList0[i].flags & VA_PICTURE_H264_INVALID) == 0)) va_TraceMsg(idx, "\t\t%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); - } else + else break; } } @@ -1392,7 +1395,8 @@ static void va_TraceVAEncSliceParameterBufferH264( if (p->slice_type == 1) { va_TraceMsg(idx, "\tRefPicList1 (TopFieldOrderCnt-BottomFieldOrderCnt-picture_id-frame_idx-flags):\n"); for (i = 0; i < 32; i++) { - if (p->RefPicList1[i].flags != VA_PICTURE_H264_INVALID) + if ((p->RefPicList1[i].picture_id != VA_INVALID_SURFACE) && + ((p->RefPicList1[i].flags & VA_PICTURE_H264_INVALID) == 0)) va_TraceMsg(idx, "\t\t%08d-%08d-0x%08x-%08d-0x%08d\n", p->RefPicList1[i].TopFieldOrderCnt, p->RefPicList1[i].BottomFieldOrderCnt, |