[mmap] partial revert of 8cef8db4 to disable using mmap file reader
[videoplayer.git] / GLvideo_pbotex.h
blob72f42214a714b1c452fa4aed5692bdacdfd286c4
1 #ifndef __GLVIDEO_PBOTEX
2 #define __GLVIDEO_PBOTEX
4 #include "GLvideo_renderer.h"
6 /* NB, any changes to the public interface
7 * /must/ be reflected in GLvideo_tradtex.h */
8 namespace GLVideoRenderer
10 class PboTex : public GLVideoRenderer {
11 public:
12 PboTex();
13 virtual void createTextures(VideoData *video_data);
14 virtual void deleteTextures();
15 virtual void uploadTextures(VideoData *video_data);
16 virtual void renderVideo(VideoData *video_data, GLuint shader);
17 virtual ~PboTex();
19 private:
20 /* handles for the y/u/v/ textures */
21 struct {
22 GLuint y;
23 GLuint u;
24 GLuint v;
25 } textures;
26 GLuint buf;
30 #endif