include/liqx11overlay.h

00001 #ifndef LIQX11OVERLAY_H
00002 #define LIQX11OVERLAY_H
00003 
00004 
00005 
00006 #include <stdlib.h>
00007 #include <stdio.h>
00008 #include <string.h>
00009 #include <unistd.h>
00010 #include <time.h>
00011 #include <sys/ipc.h>
00012 #include <sys/shm.h>
00013 
00014 #include <X11/Xlib.h>
00015 #include <X11/Xutil.h>
00016 
00017 
00018 
00019 #include <X11/cursorfont.h>
00020 #include <X11/Xatom.h>
00021 #include <X11/extensions/Xv.h>
00022 #include <X11/extensions/Xvlib.h>
00023 #include <X11/extensions/XShm.h>
00024 
00025 
00026 #include <X11/keysym.h>
00027 #include <X11/keysymdef.h>
00028 
00029 typedef struct liqx11overlay
00030 {
00031 
00032         Display                         *dpy;
00033         int                                     screen;
00034         Window                          window;
00035         GC                                  gc;
00036         
00037         
00038         int                 yuv_width;
00039         int                 yuv_height;
00040 
00041         XShmSegmentInfo         yuv_shminfo;
00042         XvImage *                       yuv_image;
00043         int                             yuv_shminfo_attached;
00044         int                                 xv_port;
00045 } liqx11overlay;
00046 
00047 
00048 
00049 
00050 
00051 
00052 
00053 
00054 int liqx11overlay_init(liqx11overlay *self, Display *dpy, int screen, Window window, GC gc);
00055 int liqx11overlay_show(liqx11overlay *self);
00056 int liqx11overlay_hide(liqx11overlay *self);
00057 int liqx11overlay_close(liqx11overlay *self);
00058 int liqx11overlay_refreshdisplay(liqx11overlay *self);
00059 int liqx11overlay_drawcolorcube(liqx11overlay *self,int x,int y,char grey);
00060 
00061 
00062 
00063 
00064 
00065 
00066 
00067 
00068 #endif

Generated on Sat May 23 23:03:14 2009 for libliqbase by  doxygen 1.5.1