hardware/intel/libva
Revision | 2c0f324544cd4ccf7c672ffbf13b8f9f844b4425 (tree) |
---|---|
Zeit | 2013-06-25 11:48:25 |
Autor | Elaine Wang <elaine.wang@inte...> |
Commiter | Xiang, Haihao |
h264encode: fix wrong print information
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
@@ -601,7 +601,7 @@ static char *fourcc_to_string(int fourcc) | ||
601 | 601 | { |
602 | 602 | switch (fourcc) { |
603 | 603 | case VA_FOURCC_NV12: |
604 | - return "NONE"; | |
604 | + return "NV12"; | |
605 | 605 | case VA_FOURCC_IYUV: |
606 | 606 | return "IYUV"; |
607 | 607 | case VA_FOURCC_YV12: |
@@ -1822,13 +1822,13 @@ static int print_input() | ||
1822 | 1822 | printf("INPUT: IpPeriod : %d\n", ip_period); |
1823 | 1823 | printf("INPUT: Initial QP : %d\n", initial_qp); |
1824 | 1824 | 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"); | |
1826 | 1826 | if (srcyuv_fp) |
1827 | 1827 | printf(":%s (fourcc %s)\n", srcyuv_fn, fourcc_to_string(srcyuv_fourcc)); |
1828 | 1828 | else |
1829 | 1829 | printf("\n"); |
1830 | 1830 | printf("INPUT: Coded Clip : %s\n", coded_fn); |
1831 | - if (srcyuv_fp == NULL) | |
1831 | + if (recyuv_fp == NULL) | |
1832 | 1832 | printf("INPUT: Rec Clip : %s\n", "Not save reconstructed frame"); |
1833 | 1833 | else |
1834 | 1834 | 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) | ||
1871 | 1871 | printf("PERFORMANCE: SavePicture : %d ms (%.2f, %.2f%% percent)\n", |
1872 | 1872 | (int) SavePictureTicks, ((double) SavePictureTicks) / (double) PictureCount, |
1873 | 1873 | SavePictureTicks/(double) TotalTicks/0.01); |
1874 | - | |
1875 | 1874 | printf("PERFORMANCE: Others : %d ms (%.2f, %.2f%% percent)\n", |
1876 | 1875 | (int) others, ((double) others) / (double) PictureCount, |
1877 | 1876 | others/(double) TotalTicks/0.01); |
1878 | - | |
1877 | + | |
1878 | + if (encode_syncmode == 0) | |
1879 | + printf("(Multithread enabled, the profiling is only for reference)\n"); | |
1880 | + | |
1879 | 1881 | return 0; |
1880 | 1882 | } |
1881 | 1883 |