hardware/intel/libva
修订版 | 1148655089b0196fd095b99087e9293810e0c5d4 (tree) |
---|---|
时间 | 2013-06-25 14:53:58 |
作者 | Elaine Wang <elaine.wang@inte...> |
Commiter | Xiang, Haihao |
h264encode: add some comments
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
@@ -1283,9 +1283,9 @@ static int render_picture(void) | ||
1283 | 1283 | pic_param.CurrPic.BottomFieldOrderCnt = pic_param.CurrPic.TopFieldOrderCnt; |
1284 | 1284 | CurrentCurrPic = pic_param.CurrPic; |
1285 | 1285 | |
1286 | - if (getenv("TO_DEL")) { | |
1287 | - update_RefPicList(); | |
1288 | - memset(pic_param.ReferenceFrames, 1, 16 * sizeof(VAPictureH264)); | |
1286 | + if (getenv("TO_DEL")) { /* set RefPicList into ReferenceFrames */ | |
1287 | + update_RefPicList(); /* calc RefPicList */ | |
1288 | + memset(pic_param.ReferenceFrames, 0xff, 16 * sizeof(VAPictureH264)); /* invalid all */ | |
1289 | 1289 | if (current_frame_type == FRAME_P) { |
1290 | 1290 | pic_param.ReferenceFrames[0] = RefPicList0_P[0]; |
1291 | 1291 | } else if (current_frame_type == FRAME_B) { |
@@ -1533,14 +1533,6 @@ static int render_slice(void) | ||
1533 | 1533 | } |
1534 | 1534 | } |
1535 | 1535 | |
1536 | - if (getenv("NOREF")) { | |
1537 | - for (i = 0; i < 32; i++) { | |
1538 | - slice_param.RefPicList0[i].picture_id = VA_INVALID_SURFACE; | |
1539 | - slice_param.RefPicList1[i].picture_id = VA_INVALID_SURFACE; | |
1540 | - } | |
1541 | - } | |
1542 | - | |
1543 | - | |
1544 | 1536 | slice_param.slice_alpha_c0_offset_div2 = 2; |
1545 | 1537 | slice_param.slice_beta_offset_div2 = 2; |
1546 | 1538 | slice_param.pic_order_cnt_lsb = current_frame_display % MaxPicOrderCntLsb; |