hardware/intel/libva
Revision | 3a849d73b6f4df0670338d0ed2302bd98d16074c (tree) |
---|---|
Zeit | 2013-06-19 15:34:41 |
Autor | Elaine Wang <elaine.wang@inte...> |
Commiter | Xiang, Haihao |
vatrace: dump flags of VAPictureH264
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
(cherry picked from commit e1d86f000749d5fdbd6e36b55260d3fae096e457)
@@ -1010,17 +1010,18 @@ static void va_TraceVAPictureParameterBufferH264( | ||
1010 | 1010 | va_TraceMsg(idx, "\tCurrPic.TopFieldOrderCnt = %d\n", p->CurrPic.TopFieldOrderCnt); |
1011 | 1011 | va_TraceMsg(idx, "\tCurrPic.BottomFieldOrderCnt = %d\n", p->CurrPic.BottomFieldOrderCnt); |
1012 | 1012 | |
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"); | |
1014 | 1014 | for (i = 0; i < 16; i++) |
1015 | 1015 | { |
1016 | 1016 | 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", | |
1018 | 1018 | p->ReferenceFrames[i].TopFieldOrderCnt, |
1019 | 1019 | p->ReferenceFrames[i].BottomFieldOrderCnt, |
1020 | 1020 | p->ReferenceFrames[i].picture_id, |
1021 | - p->ReferenceFrames[i].frame_idx); | |
1021 | + p->ReferenceFrames[i].frame_idx, | |
1022 | + p->ReferenceFrames[i].flags); | |
1022 | 1023 | } else |
1023 | - va_TraceMsg(idx, "\t\tinv-inv-inv-inv\n"); | |
1024 | + va_TraceMsg(idx, "\t\tinv-inv-inv-inv-inv\n"); | |
1024 | 1025 | } |
1025 | 1026 | va_TraceMsg(idx, "\n"); |
1026 | 1027 |
@@ -1095,13 +1096,13 @@ static void va_TraceVASliceParameterBufferH264( | ||
1095 | 1096 | if (p->slice_type == 0 || p->slice_type == 1) { |
1096 | 1097 | va_TraceMsg(idx, "\tRefPicList0 ="); |
1097 | 1098 | 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); | |
1099 | 1100 | } |
1100 | 1101 | if (p->slice_type == 1) { |
1101 | 1102 | va_TraceMsg(idx, "\tRefPicList1 ="); |
1102 | 1103 | for (i = 0; (i < p->num_ref_idx_l1_active_minus1 + 1 && i < 32); i++) |
1103 | 1104 | { |
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); | |
1105 | 1106 | } |
1106 | 1107 | } |
1107 | 1108 | } |
@@ -1273,15 +1274,17 @@ static void va_TraceVAEncPictureParameterBufferH264( | ||
1273 | 1274 | va_TraceMsg(idx, "\tCurrPic.flags = %d\n", p->CurrPic.flags); |
1274 | 1275 | va_TraceMsg(idx, "\tCurrPic.TopFieldOrderCnt = %d\n", p->CurrPic.TopFieldOrderCnt); |
1275 | 1276 | 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"); | |
1277 | 1278 | for (i = 0; i < 16; i++) |
1278 | 1279 | { |
1279 | 1280 | 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", | |
1281 | 1282 | p->ReferenceFrames[i].TopFieldOrderCnt, |
1282 | 1283 | p->ReferenceFrames[i].BottomFieldOrderCnt, |
1283 | 1284 | p->ReferenceFrames[i].picture_id, |
1284 | - p->ReferenceFrames[i].frame_idx); | |
1285 | + p->ReferenceFrames[i].frame_idx, | |
1286 | + p->ReferenceFrames[i].flags | |
1287 | + ); | |
1285 | 1288 | } else |
1286 | 1289 | va_TraceMsg(idx, "\t\tinv-inv-inv-inv\n"); |
1287 | 1290 | } |
@@ -1372,28 +1375,31 @@ static void va_TraceVAEncSliceParameterBufferH264( | ||
1372 | 1375 | va_TraceMsg(idx, "\tslice_beta_offset_div2 = %d\n", p->slice_beta_offset_div2); |
1373 | 1376 | |
1374 | 1377 | 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"); | |
1376 | 1379 | for (i = 0; i < 32; i++) { |
1377 | 1380 | 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", | |
1379 | 1382 | p->RefPicList0[i].TopFieldOrderCnt, |
1380 | 1383 | p->RefPicList0[i].BottomFieldOrderCnt, |
1381 | 1384 | p->RefPicList0[i].picture_id, |
1382 | - p->RefPicList0[i].frame_idx); | |
1385 | + p->RefPicList0[i].frame_idx, | |
1386 | + p->RefPicList0[i].flags); | |
1383 | 1387 | } else |
1384 | 1388 | break; |
1385 | 1389 | } |
1386 | 1390 | } |
1387 | 1391 | |
1388 | 1392 | 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"); | |
1390 | 1394 | for (i = 0; i < 32; i++) { |
1391 | 1395 | 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", | |
1393 | 1397 | p->RefPicList1[i].TopFieldOrderCnt, |
1394 | 1398 | p->RefPicList1[i].BottomFieldOrderCnt, |
1395 | 1399 | p->RefPicList1[i].picture_id, |
1396 | - p->RefPicList1[i].frame_idx); | |
1400 | + p->RefPicList1[i].frame_idx, | |
1401 | + p->RefPicList1[i].flags | |
1402 | + ); | |
1397 | 1403 | else |
1398 | 1404 | break; |
1399 | 1405 | } |