aboutsummaryrefslogtreecommitdiff
path: root/src/osc_graphics.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-10-03 17:57:51 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-10-03 17:57:51 +0200
commitd5dcc19a006f898f21a5b081180a132c9dc6e638 (patch)
treef0e155c31bf098133e7ceafa2fa6272608589304 /src/osc_graphics.h
parentbb65f0fc2176b2ebf0f1be682008609e8bd2cb0a (diff)
downloadosc-graphics-d5dcc19a006f898f21a5b081180a132c9dc6e638.tar.gz
use ffmpeg API to set a recorded frames presentation timestamp
* fixes asynchronity of displayed and recorded graphics * also use the configured framerate instead of a hardcoded one
Diffstat (limited to 'src/osc_graphics.h')
-rw-r--r--src/osc_graphics.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osc_graphics.h b/src/osc_graphics.h
index 47afa7d..9ae1ee4 100644
--- a/src/osc_graphics.h
+++ b/src/osc_graphics.h
@@ -65,6 +65,10 @@ public:
extern SDL_Surface *screen;
extern int config_dump_osc;
+extern int config_framerate;
+
+#define FRAME_DELAY \
+ (1000/config_framerate) /* frame delay in ms */
void rgba_blit_with_alpha(SDL_Surface *src_surf, SDL_Surface *dst_surf,
Uint8 alpha = SDL_ALPHA_TRANSPARENT);