From 2c0f324544cd4ccf7c672ffbf13b8f9f844b4425 Mon Sep 17 00:00:00 2001 From: Elaine Wang Date: Fri, 19 Apr 2013 01:25:50 +0800 Subject: [PATCH] h264encode: fix wrong print information Signed-off-by: Elaine Wang --- test/encode/h264encode.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/encode/h264encode.c b/test/encode/h264encode.c index 799b39d..4376965 100644 --- a/test/encode/h264encode.c +++ b/test/encode/h264encode.c @@ -601,7 +601,7 @@ static char *fourcc_to_string(int fourcc) { switch (fourcc) { case VA_FOURCC_NV12: - return "NONE"; + return "NV12"; case VA_FOURCC_IYUV: return "IYUV"; case VA_FOURCC_YV12: @@ -1822,13 +1822,13 @@ static int print_input() printf("INPUT: IpPeriod : %d\n", ip_period); printf("INPUT: Initial QP : %d\n", initial_qp); printf("INPUT: Min QP : %d\n", minimal_qp); - printf("INPUT: Source YUV : %s", srcyuv_fn?"FILE":"AUTO generated"); + printf("INPUT: Source YUV : %s", srcyuv_fp?"FILE":"AUTO generated"); if (srcyuv_fp) printf(":%s (fourcc %s)\n", srcyuv_fn, fourcc_to_string(srcyuv_fourcc)); else printf("\n"); printf("INPUT: Coded Clip : %s\n", coded_fn); - if (srcyuv_fp == NULL) + if (recyuv_fp == NULL) printf("INPUT: Rec Clip : %s\n", "Not save reconstructed frame"); else 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) printf("PERFORMANCE: SavePicture : %d ms (%.2f, %.2f%% percent)\n", (int) SavePictureTicks, ((double) SavePictureTicks) / (double) PictureCount, SavePictureTicks/(double) TotalTicks/0.01); - printf("PERFORMANCE: Others : %d ms (%.2f, %.2f%% percent)\n", (int) others, ((double) others) / (double) PictureCount, others/(double) TotalTicks/0.01); - + + if (encode_syncmode == 0) + printf("(Multithread enabled, the profiling is only for reference)\n"); + return 0; } -- 2.11.0