[mmap] partial revert of 8cef8db4 to disable using mmap file reader
[videoplayer.git] / GLvideo_x11rep.cpp
blob47710b61a739f7df3fe60077d79899e88a860948
1 #define __GLVIDEO_X11REP
3 #include <cassert>
5 #include "GLvideo_repeater.h"
6 #include <GL/glxew.h>
8 #include "videoData.h"
10 /* NB, any changes to the public interface
11 * /must/ be reflected in GLvideo_x11rep.h */
12 namespace GLVideoRepeater
14 class X11Repeater : public GLVideoRepeater {
15 public:
16 virtual void createRGBDestination(VideoData *video_data);
17 virtual void setupRGBDestination();
18 virtual void renderVideo(VideoData *video_data);
19 virtual unsigned int repeat(unsigned int);
20 virtual void setupScreenDestination();
21 virtual ~X11Repeater();
24 X11Repeater::~X11Repeater()
28 void X11Repeater::createRGBDestination(VideoData *)
32 void X11Repeater::setupRGBDestination()
36 void X11Repeater::setupScreenDestination()
40 void X11Repeater::renderVideo(VideoData *)
44 unsigned int X11Repeater::repeat(unsigned int n)
46 unsigned int retraceCount;
47 glXWaitVideoSyncSGI(n, 0, &retraceCount);
48 return n;
51 } // namespace