From 9640339f2e9dc126406f6b6f8a091b924898b4f5 Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 25 Sep 2005 20:59:02 +0000 Subject: *** empty log message *** --- src/player.h | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'src/player.h') diff --git a/src/player.h b/src/player.h index 9cfd440..14d08ac 100644 --- a/src/player.h +++ b/src/player.h @@ -53,6 +53,8 @@ #include +#include "yuv_draw.h" + //#define DISPLAYWIDTH 720 // FIXME: These numbers suck! //#define DISPLAYHEIGHT 576 @@ -70,11 +72,17 @@ public: pthread_mutex_t *gmutex); ~Player(); + // These functions are used to set the overlay text. + void setCpr(char *newcpr, char* name); + void startrecord(); + void stoprecord(); + + // Start and stop runnning video (freeze/unfreeze) void start(); void stop(); // Used to reinitialize the SDL output width a new size - void resize(int width, int height); + void resize(int width, int height, bool showtext); void thread_main(); @@ -93,6 +101,13 @@ private: // Set to true, whenever a resize is requested. volatile bool bypass; + // Vars for the text overlay + volatile bool showtext; + volatile bool recording; + bool recording_prev; + volatile bool cprchanged; + char cpr[256]; + Info *info; void player(); @@ -109,8 +124,10 @@ private: SDL_Surface *screen; SDL_Overlay *overlay; + + YUVDraw *yuv_draw; }; -#endif +#endif/*__RTVIDEOREC_PLAYER_H*/ #endif /* USE_GUI */ -- cgit v1.2.3