summaryrefslogtreecommitdiff
path: root/client/xvaccelrenderer.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/xvaccelrenderer.h')
-rw-r--r--client/xvaccelrenderer.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/client/xvaccelrenderer.h b/client/xvaccelrenderer.h
index 69745d6..3d70e91 100644
--- a/client/xvaccelrenderer.h
+++ b/client/xvaccelrenderer.h
@@ -1,4 +1,4 @@
-/* -*- mode: c++ -*- */
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
#ifndef __XVACCELRENDERER_H__
#define __XVACCELRENDERER_H__
@@ -31,16 +31,18 @@ public:
XvAccelRender();
uint8_t init(QWidget *window, uint32_t w, uint32_t h);
uint8_t end(void);
- uint8_t display(uint8_t *ptr, uint32_t w, uint32_t h);
+ uint8_t display(uint32_t w, uint32_t h);
unsigned int width, height;
+ char *getDisplayData();
+
private:
unsigned int xv_port;
uint32_t xv_format;
Display *xv_display;
- XvImage *xvimage;
- GC xv_gc;
+ XvImage *xvimage;
+ GC xv_gc;
XGCValues xv_xgc;
Window xv_win;
XShmSegmentInfo Shminfo;
@@ -48,7 +50,7 @@ private:
uint8_t GUI_XvList(Display *dis, uint32_t port, uint32_t * fmt);
uint8_t GUI_XvInit(QWidget *window, uint32_t w, uint32_t h);
void GUI_XvEnd();
- uint8_t GUI_XvDisplay(uint8_t * src, uint32_t w, uint32_t h);
+ uint8_t GUI_XvDisplay(uint32_t w, uint32_t h);
};
#endif/*__XVACCELRENDERER_H__*/