• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No 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

修订版1148655089b0196fd095b99087e9293810e0c5d4 (tree)
时间2013-06-25 14:53:58
作者Elaine Wang <elaine.wang@inte...>
CommiterXiang, Haihao

Log Message

h264encode: add some comments

Signed-off-by: Elaine Wang <elaine.wang@intel.com>

更改概述

差异

--- a/test/encode/h264encode.c
+++ b/test/encode/h264encode.c
@@ -1283,9 +1283,9 @@ static int render_picture(void)
12831283 pic_param.CurrPic.BottomFieldOrderCnt = pic_param.CurrPic.TopFieldOrderCnt;
12841284 CurrentCurrPic = pic_param.CurrPic;
12851285
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 */
12891289 if (current_frame_type == FRAME_P) {
12901290 pic_param.ReferenceFrames[0] = RefPicList0_P[0];
12911291 } else if (current_frame_type == FRAME_B) {
@@ -1533,14 +1533,6 @@ static int render_slice(void)
15331533 }
15341534 }
15351535
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-
15441536 slice_param.slice_alpha_c0_offset_div2 = 2;
15451537 slice_param.slice_beta_offset_div2 = 2;
15461538 slice_param.pic_order_cnt_lsb = current_frame_display % MaxPicOrderCntLsb;