From 76bf65075854fa2888e6a65743638592cf0b4007 Mon Sep 17 00:00:00 2001 From: galogui Date: Thu, 8 Jun 2023 15:51:52 +0800 Subject: [PATCH] fix bug:hw encode score is not right. --- workload/hwcodec/src/source/hw_encode.c | 1 + workload/hwcodec/src/source/sw_decode.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 workload/hwcodec/src/source/hw_encode.c mode change 100644 => 100755 workload/hwcodec/src/source/sw_decode.c diff --git a/workload/hwcodec/src/source/hw_encode.c b/workload/hwcodec/src/source/hw_encode.c old mode 100644 new mode 100755 index 17abf00..b79b764 --- a/workload/hwcodec/src/source/hw_encode.c +++ b/workload/hwcodec/src/source/hw_encode.c @@ -525,6 +525,7 @@ int hwencode(int width, int height, int pixfmt, astring codec, astring raw_image float score = calc_score(&enc); printf("=======================\n"); printf("score for %s encoder: %.2f\n", codec, score); + printf("COUNT|%.2f|0|score\n", score); printf("=======================\n"); } diff --git a/workload/hwcodec/src/source/sw_decode.c b/workload/hwcodec/src/source/sw_decode.c old mode 100644 new mode 100755 index 3af6bb4..ef5dc46 --- a/workload/hwcodec/src/source/sw_decode.c +++ b/workload/hwcodec/src/source/sw_decode.c @@ -246,13 +246,13 @@ int swdecode(astring filename, astring outdir, int dump_file_count) #endif double fps = g_sw_decode_frames / runtime_second; - printf("software decode : %s\n", "swdec"); + //printf("software decode : %s\n", "swdec"); printf("using totaltime : %f s\n", runtime_second); printf("codec : %s\n", avcodec_get_name(g_sw_codecid)); printf("video size : %dx%d\n", g_sw_video_width, g_sw_video_height); printf("decode frames : %d\n", g_sw_decode_frames); printf("decode fps : %5.2f\n", fps); - fprintf(stderr,"COUNT|%f|0|fps\n",fps); + //fprintf(stderr,"COUNT|%f|0|fps\n",fps); printf("\n*************print test result end*************\n"); av_frame_free(&frame); -- Gitee