• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine 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

Revision2c0f324544cd4ccf7c672ffbf13b8f9f844b4425 (tree)
Zeit2013-06-25 11:48:25
AutorElaine Wang <elaine.wang@inte...>
CommiterXiang, Haihao

Log Message

h264encode: fix wrong print information

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

Ändern Zusammenfassung

Diff

--- a/test/encode/h264encode.c
+++ b/test/encode/h264encode.c
@@ -601,7 +601,7 @@ static char *fourcc_to_string(int fourcc)
601601 {
602602 switch (fourcc) {
603603 case VA_FOURCC_NV12:
604- return "NONE";
604+ return "NV12";
605605 case VA_FOURCC_IYUV:
606606 return "IYUV";
607607 case VA_FOURCC_YV12:
@@ -1822,13 +1822,13 @@ static int print_input()
18221822 printf("INPUT: IpPeriod : %d\n", ip_period);
18231823 printf("INPUT: Initial QP : %d\n", initial_qp);
18241824 printf("INPUT: Min QP : %d\n", minimal_qp);
1825- printf("INPUT: Source YUV : %s", srcyuv_fn?"FILE":"AUTO generated");
1825+ printf("INPUT: Source YUV : %s", srcyuv_fp?"FILE":"AUTO generated");
18261826 if (srcyuv_fp)
18271827 printf(":%s (fourcc %s)\n", srcyuv_fn, fourcc_to_string(srcyuv_fourcc));
18281828 else
18291829 printf("\n");
18301830 printf("INPUT: Coded Clip : %s\n", coded_fn);
1831- if (srcyuv_fp == NULL)
1831+ if (recyuv_fp == NULL)
18321832 printf("INPUT: Rec Clip : %s\n", "Not save reconstructed frame");
18331833 else
18341834 printf("INPUT: Rec Clip : Save reconstructed frame into %s (fourcc %s)\n", recyuv_fn,
@@ -1871,11 +1871,13 @@ static int print_performance(unsigned int PictureCount)
18711871 printf("PERFORMANCE: SavePicture : %d ms (%.2f, %.2f%% percent)\n",
18721872 (int) SavePictureTicks, ((double) SavePictureTicks) / (double) PictureCount,
18731873 SavePictureTicks/(double) TotalTicks/0.01);
1874-
18751874 printf("PERFORMANCE: Others : %d ms (%.2f, %.2f%% percent)\n",
18761875 (int) others, ((double) others) / (double) PictureCount,
18771876 others/(double) TotalTicks/0.01);
1878-
1877+
1878+ if (encode_syncmode == 0)
1879+ printf("(Multithread enabled, the profiling is only for reference)\n");
1880+
18791881 return 0;
18801882 }
18811883