From 845a638d4c7183ed91b223fbd5047a9cc27b47c8 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 1 Dec 2011 11:01:51 +0100 Subject: Set frame number/timestamp and write results --- test/ipedec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/ipedec.c b/test/ipedec.c index 1aef1d6..2b44ddd 100644 --- a/test/ipedec.c +++ b/test/ipedec.c @@ -55,7 +55,7 @@ int main(int argc, char const* argv[]) struct timeval start, end; long seconds = 0L, useconds = 0L; - /* FILE *fp = fopen("test.raw", "wb"); */ + FILE *fp = fopen("test.raw", "wb"); while (!err) { gettimeofday(&start, NULL); @@ -66,10 +66,10 @@ int main(int argc, char const* argv[]) num_frames++; seconds += end.tv_sec - start.tv_sec; useconds += end.tv_usec - start.tv_usec; - /* fwrite(pixels, sizeof(uint16_t), 2048 * 1088, fp); */ + fwrite(pixels, sizeof(uint16_t), 2048 * 1088, fp); } } - /* fclose(fp); */ + fclose(fp); float mtime = seconds * 1000.0 + useconds / 1000.0; printf("Decoded %i frames in %.5fms\n", num_frames, mtime); -- cgit v1.2.3