summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h21
1 files changed, 19 insertions, 2 deletions
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 <qwidget.h>
+#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 */