refine screencapture feature
[framework/uifw/cbhm.git] / src / scrcapture.h
1 #ifndef _scrcapture_h_
2 #define _scrcapture_h_
3
4 #include <X11/Xlib.h>
5 #include <X11/Xutil.h>
6 #include <X11/extensions/Xcomposite.h>
7 #include <X11/extensions/XShm.h>
8 #include <X11/Xatom.h>
9
10 // XV extension API - start 
11 const char* createScreenShot(int width, int height);
12 void releaseScreenShot(const char *ss);
13 // XV extension API - end
14
15 char *scrcapture_capture_screen_by_x11(Window xid, int *size);
16 char *scrcapture_capture_screen_by_xv_ext(int width, int height);
17 void scrcapture_release_screen_by_xv_ext(const char *s);
18
19 int init_scrcapture(void *data);
20 void close_scrcapture(void *data);
21
22 #endif // _scrcapture_h_