X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/616f2547428a38aee9e0c8a59d71a0583e86e9aa..refs/heads/master:/contrib/performance/0001-Instrument-code-with-fps-meter.patch diff --git a/contrib/performance/0001-Instrument-code-with-fps-meter.patch b/contrib/performance/0001-Instrument-code-with-fps-meter.patch index 5c133ee..1a74b76 100644 --- a/contrib/performance/0001-Instrument-code-with-fps-meter.patch +++ b/contrib/performance/0001-Instrument-code-with-fps-meter.patch @@ -1,6 +1,6 @@ -From dc6b216ffea1e80fd3f43d6144eb679a193f5666 Mon Sep 17 00:00:00 2001 -From: Antonio Ospite -Date: Sun, 28 Jul 2013 01:06:41 +0200 +From bf1163a19667377a1861b38fa64a8cf7ee2d0e40 Mon Sep 17 00:00:00 2001 +From: Antonio Ospite +Date: Tue, 17 Nov 2015 16:28:03 +0100 Subject: [PATCH] Instrument code with fps-meter X-Face: z*RaLf`X<@C75u6Ig9}{oW$H;1_\2t5)({*|jhM/Vb;]yA5/Vb;]yA5 #include +#include "fps-meter.h" - /* On some systems ENOTSUP is not defined, fallback to its value on - * linux which is equal to EOPNOTSUPP which is 95 -@@ -292,6 +293,7 @@ static int am7xxx_play(const char *input_format_string, - int got_picture; + static unsigned int run = 1; + +@@ -342,6 +343,7 @@ static int am7xxx_play(const char *input_format_string, + int got_frame; int got_packet; int ret; + struct fps_meter_stats stats; ret = video_input_init(&input_ctx, input_format_string, input_path, input_options); if (ret < 0) { -@@ -354,6 +356,7 @@ static int am7xxx_play(const char *input_format_string, +@@ -410,6 +412,8 @@ static int am7xxx_play(const char *input_format_string, goto cleanup_out_buf; } + fps_meter_init(&stats); ++ + got_packet = 0; while (run) { /* read packet */ - ret = av_read_frame(input_ctx.format_ctx, &in_packet); -@@ -438,6 +441,7 @@ static int am7xxx_play(const char *input_format_string, +@@ -503,6 +507,7 @@ static int am7xxx_play(const char *input_format_string, run = 0; goto end_while; } @@ -61,5 +50,5 @@ index 3230e67..17228bf 100644 end_while: if (!output_ctx.raw_output && got_packet) -- -1.8.3.2 +2.16.2