projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9b5c7b6
)
Refresh contrib/performance/0001-Instrument-code-with-fps-meter.patch
author
Antonio Ospite <ao2@ao2.it>
Thu, 1 Mar 2018 14:33:34 +0000
(15:33 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Thu, 1 Mar 2018 15:12:16 +0000
(16:12 +0100)
contrib/performance/0001-Instrument-code-with-fps-meter.patch
patch
|
blob
|
history
diff --git
a/contrib/performance/0001-Instrument-code-with-fps-meter.patch
b/contrib/performance/0001-Instrument-code-with-fps-meter.patch
index
ef81acb
..
1a74b76
100644
(file)
--- a/
contrib/performance/0001-Instrument-code-with-fps-meter.patch
+++ b/
contrib/performance/0001-Instrument-code-with-fps-meter.patch
@@
-1,4
+1,4
@@
-From
ab3f910957638300224f1f114df6e73115ec86b7
Mon Sep 17 00:00:00 2001
+From
bf1163a19667377a1861b38fa64a8cf7ee2d0e40
Mon Sep 17 00:00:00 2001
From: Antonio Ospite <ao2@ao2.it>
Date: Tue, 17 Nov 2015 16:28:03 +0100
Subject: [PATCH] Instrument code with fps-meter
From: Antonio Ospite <ao2@ao2.it>
Date: Tue, 17 Nov 2015 16:28:03 +0100
Subject: [PATCH] Instrument code with fps-meter
@@
-9,42
+9,30
@@
X-Face: z*RaLf`X<@C75u6Ig9}{oW$H;1_\2t5)({*|jhM<pyWR#k60!#=#>/Vb;]yA5<GWI5`6u&+
Instrument code with fps-meter:
http://git.ao2.it/experiments/fps-meter.git/
---
Instrument code with fps-meter:
http://git.ao2.it/experiments/fps-meter.git/
---
- examples/CMakeLists.txt | 2 +-
- examples/am7xxx-play.c | 5 +++++
- 2 files changed, 6 insertions(+), 1 deletion(-)
+ examples/am7xxx-play.c | 5 +++++
+ 1 file changed, 5 insertions(+)
-diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
-index c563f5f..4bdbdec 100644
---- a/examples/CMakeLists.txt
-+++ b/examples/CMakeLists.txt
-@@ -1,5 +1,5 @@
- include(CheckSymbolExists)
--add_definitions("-D_POSIX_C_SOURCE=2") # for getopt()
-+add_definitions("-D_POSIX_C_SOURCE=200112L") # for clock_gettime()
- add_definitions("-D_POSIX_SOURCE") # for sigaction
- add_definitions("-D_BSD_SOURCE") # for strdup
-
diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c
diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c
-index
6b0d206..271677b
100644
+index
81aff84..4828a9d
100644
--- a/examples/am7xxx-play.c
+++ b/examples/am7xxx-play.c
--- a/examples/am7xxx-play.c
+++ b/examples/am7xxx-play.c
-@@ -3
4,6 +34
,7 @@
+@@ -3
5,6 +35
,7 @@
#include <libswscale/swscale.h>
#include <am7xxx.h>
+#include "fps-meter.h"
#include <libswscale/swscale.h>
#include <am7xxx.h>
+#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
-@@ -
293,6 +294
,7 @@ static int am7xxx_play(const char *input_format_string,
- int got_
pictur
e;
+ static unsigned int run = 1;
+
+@@ -
342,6 +343
,7 @@ static int am7xxx_play(const char *input_format_string,
+ int got_
fram
e;
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) {
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) {
-@@ -
358,6 +360
,8 @@ 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;
}
goto cleanup_out_buf;
}
@@
-53,7
+41,7
@@
index 6b0d206..271677b 100644
got_packet = 0;
while (run) {
/* read packet */
got_packet = 0;
while (run) {
/* read packet */
-@@ -
447,6 +451
,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;
}
run = 0;
goto end_while;
}
@@
-62,5
+50,5
@@
index 6b0d206..271677b 100644
end_while:
if (!output_ctx.raw_output && got_packet)
--
end_while:
if (!output_ctx.raw_output && got_packet)
--
-2.6.2
+2.
1
6.2