2 * X11 driver definitions
4 * Copyright 1996 Alexandre Julliard
5 * Copyright 1999 Patrik Stridvall
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef __WINE_X11DRV_H
23 #define __WINE_X11DRV_H
25 #ifndef __WINE_CONFIG_H
26 # error You must include config.h to use this header
31 #include <X11/Xresource.h>
32 #include <X11/Xutil.h>
33 #include <X11/Xatom.h>
35 # include <X11/extensions/XShm.h>
36 #endif /* defined(HAVE_LIBXXSHM) */
38 #undef Status /* avoid conflict with wintrnl.h */
48 #define MAX_PIXELFORMATS 8
51 struct tagCURSORICONINFO;
55 extern void wine_tsx11_lock(void);
56 extern void wine_tsx11_unlock(void);
68 int type; /* GEOMETRIC || COSMETIC */
71 /* X physical brush */
81 typedef UINT X_PHYSFONT;
83 typedef struct tagXRENDERINFO *XRENDERINFO;
85 /* X physical device */
89 struct tagDC *dc; /* direct pointer to DC, should go away */
90 GC gc; /* X Window GC */
92 POINT org; /* DC origin relative to drawable */
93 POINT drawable_org; /* Origin of drawable relative to screen */
99 int depth; /* bit depth of the DC */
100 int exposures; /* count of graphics exposures operations */
101 XVisualInfo *visuals[MAX_PIXELFORMATS];
108 /* GCs used for B&W and color bitmap operations */
109 extern GC BITMAP_monoGC, BITMAP_colorGC;
110 extern Pixmap BITMAP_stock_pixmap; /* pixmap for the default stock bitmap */
112 #define BITMAP_GC(bmp) \
113 (((bmp)->bitmap.bmBitsPixel == 1) ? BITMAP_monoGC : BITMAP_colorGC)
115 extern unsigned int X11DRV_server_startticks;
117 /* Wine driver X11 functions */
119 extern BOOL X11DRV_BitBlt( X11DRV_PDEVICE *physDevDst, INT xDst, INT yDst,
120 INT width, INT height, X11DRV_PDEVICE *physDevSrc,
121 INT xSrc, INT ySrc, DWORD rop );
122 extern BOOL X11DRV_EnumDeviceFonts( X11DRV_PDEVICE *physDev, LPLOGFONTW plf,
123 FONTENUMPROCW dfeproc, LPARAM lp );
124 extern LONG X11DRV_GetBitmapBits( HBITMAP hbitmap, void *bits, LONG count );
125 extern BOOL X11DRV_GetCharWidth( X11DRV_PDEVICE *physDev, UINT firstChar,
126 UINT lastChar, LPINT buffer );
127 extern BOOL X11DRV_GetDCOrgEx( X11DRV_PDEVICE *physDev, LPPOINT lpp );
128 extern BOOL X11DRV_GetTextExtentPoint( X11DRV_PDEVICE *physDev, LPCWSTR str,
129 INT count, LPSIZE size );
130 extern BOOL X11DRV_GetTextMetrics(X11DRV_PDEVICE *physDev, TEXTMETRICW *metrics);
131 extern BOOL X11DRV_PatBlt( X11DRV_PDEVICE *physDev, INT left, INT top,
132 INT width, INT height, DWORD rop );
133 extern BOOL X11DRV_StretchBlt( X11DRV_PDEVICE *physDevDst, INT xDst, INT yDst,
134 INT widthDst, INT heightDst,
135 X11DRV_PDEVICE *physDevSrc, INT xSrc, INT ySrc,
136 INT widthSrc, INT heightSrc, DWORD rop );
137 extern BOOL X11DRV_LineTo( X11DRV_PDEVICE *physDev, INT x, INT y);
138 extern BOOL X11DRV_Arc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
139 INT bottom, INT xstart, INT ystart, INT xend,
141 extern BOOL X11DRV_Pie( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
142 INT bottom, INT xstart, INT ystart, INT xend,
144 extern BOOL X11DRV_Chord( X11DRV_PDEVICE *physDev, INT left, INT top,
145 INT right, INT bottom, INT xstart,
146 INT ystart, INT xend, INT yend );
147 extern BOOL X11DRV_Ellipse( X11DRV_PDEVICE *physDev, INT left, INT top,
148 INT right, INT bottom );
149 extern BOOL X11DRV_Rectangle(X11DRV_PDEVICE *physDev, INT left, INT top,
150 INT right, INT bottom);
151 extern BOOL X11DRV_RoundRect( X11DRV_PDEVICE *physDev, INT left, INT top,
152 INT right, INT bottom, INT ell_width,
154 extern COLORREF X11DRV_SetPixel( X11DRV_PDEVICE *physDev, INT x, INT y,
156 extern COLORREF X11DRV_GetPixel( X11DRV_PDEVICE *physDev, INT x, INT y);
157 extern BOOL X11DRV_PaintRgn( X11DRV_PDEVICE *physDev, HRGN hrgn );
158 extern BOOL X11DRV_Polyline( X11DRV_PDEVICE *physDev,const POINT* pt,INT count);
159 extern BOOL X11DRV_Polygon( X11DRV_PDEVICE *physDev, const POINT* pt, INT count );
160 extern BOOL X11DRV_PolyPolygon( X11DRV_PDEVICE *physDev, const POINT* pt,
161 const INT* counts, UINT polygons);
162 extern BOOL X11DRV_PolyPolyline( X11DRV_PDEVICE *physDev, const POINT* pt,
163 const DWORD* counts, DWORD polylines);
165 extern COLORREF X11DRV_SetBkColor( X11DRV_PDEVICE *physDev, COLORREF color );
166 extern COLORREF X11DRV_SetTextColor( X11DRV_PDEVICE *physDev, COLORREF color );
167 extern BOOL X11DRV_ExtFloodFill( X11DRV_PDEVICE *physDev, INT x, INT y,
168 COLORREF color, UINT fillType );
169 extern BOOL X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y,
170 UINT flags, const RECT *lprect,
171 LPCWSTR str, UINT count, const INT *lpDx );
172 extern LONG X11DRV_SetBitmapBits( HBITMAP hbitmap, const void *bits, LONG count );
173 extern INT X11DRV_SetDIBitsToDevice( X11DRV_PDEVICE *physDev, INT xDest,
174 INT yDest, DWORD cx, DWORD cy,
176 UINT startscan, UINT lines,
177 LPCVOID bits, const BITMAPINFO *info,
179 extern BOOL X11DRV_GetDeviceGammaRamp( X11DRV_PDEVICE *physDev, LPVOID ramp );
180 extern BOOL X11DRV_SetDeviceGammaRamp( X11DRV_PDEVICE *physDev, LPVOID ramp );
182 /* OpenGL / X11 driver functions */
183 extern int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
184 const PIXELFORMATDESCRIPTOR *pppfd);
185 extern int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev,
186 int iPixelFormat, UINT nBytes,
187 PIXELFORMATDESCRIPTOR *ppfd);
188 extern int X11DRV_GetPixelFormat(X11DRV_PDEVICE *physDev);
189 extern BOOL X11DRV_SwapBuffers(X11DRV_PDEVICE *physDev);
191 /* X11 driver internal functions */
193 extern BOOL X11DRV_BITMAP_Init(void);
194 extern void X11DRV_FONT_Init( int *log_pixels_x, int *log_pixels_y );
197 extern int X11DRV_DIB_BitmapInfoSize( const BITMAPINFO * info, WORD coloruse );
198 extern XImage *X11DRV_BITMAP_GetXImage( const struct tagBITMAPOBJ *bmp );
199 extern XImage *X11DRV_DIB_CreateXImage( int width, int height, int depth );
200 extern HBITMAP X11DRV_BITMAP_CreateBitmapHeaderFromPixmap(Pixmap pixmap);
201 extern HGLOBAL X11DRV_DIB_CreateDIBFromBitmap(HDC hdc, HBITMAP hBmp);
202 extern HGLOBAL X11DRV_DIB_CreateDIBFromPixmap(Pixmap pixmap, HDC hdc, BOOL bDeletePixmap);
203 extern HBITMAP X11DRV_BITMAP_CreateBitmapFromPixmap(Pixmap pixmap, BOOL bDeletePixmap);
204 extern Pixmap X11DRV_DIB_CreatePixmapFromDIB( HGLOBAL hPackedDIB, HDC hdc );
205 extern Pixmap X11DRV_BITMAP_CreatePixmapFromBitmap( HBITMAP hBmp, HDC hdc );
207 extern RGNDATA *X11DRV_GetRegionData( HRGN hrgn, HDC hdc_lptodp );
209 extern BOOL X11DRV_SetupGCForPatBlt( X11DRV_PDEVICE *physDev, GC gc, BOOL fMapColors );
210 extern BOOL X11DRV_SetupGCForBrush( X11DRV_PDEVICE *physDev );
211 extern BOOL X11DRV_SetupGCForPen( X11DRV_PDEVICE *physDev );
212 extern BOOL X11DRV_SetupGCForText( X11DRV_PDEVICE *physDev );
213 extern INT X11DRV_XWStoDS( X11DRV_PDEVICE *physDev, INT width );
214 extern INT X11DRV_YWStoDS( X11DRV_PDEVICE *physDev, INT height );
216 extern const int X11DRV_XROPfunction[];
218 extern void _XInitImageFuncPtrs(XImage *);
220 extern int client_side_with_core;
221 extern int client_side_with_render;
222 extern int client_side_antialias_with_core;
223 extern int client_side_antialias_with_render;
224 extern int using_client_side_fonts;
225 extern void X11DRV_XRender_Init(void);
226 extern void X11DRV_XRender_Finalize(void);
227 extern BOOL X11DRV_XRender_SelectFont(X11DRV_PDEVICE*, HFONT);
228 extern void X11DRV_XRender_DeleteDC(X11DRV_PDEVICE*);
229 extern BOOL X11DRV_XRender_ExtTextOut(X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags,
230 const RECT *lprect, LPCWSTR wstr,
231 UINT count, const INT *lpDx);
232 extern void X11DRV_XRender_UpdateDrawable(X11DRV_PDEVICE *physDev);
234 extern void X11DRV_OpenGL_Init(Display *display);
235 extern XVisualInfo *X11DRV_setup_opengl_visual(Display *display);
238 extern XIC X11DRV_CreateIC(XIM xim, Display *display, Window win);
239 extern XIM X11DRV_SetupXIM(Display *display, const char *input_style);
240 extern void X11DRV_XIMLookupChars( const char *str, DWORD count );
242 extern int X11DRV_XDND_Event(HWND hWnd, XClientMessageEvent *event);
244 /* exported dib functions for now */
246 /* Additional info for DIB section objects */
249 /* Windows DIB section */
250 DIBSECTION dibSection;
253 int status, p_status;
263 /* Shared memory segment info */
264 XShmSegmentInfo shminfo;
267 /* Aux buffer access function */
268 void (*copy_aux)(void*ctx, int req);
271 /* GDI access lock */
272 CRITICAL_SECTION lock;
276 /* DIB Section sync state */
277 enum { DIB_Status_None, DIB_Status_InSync, DIB_Status_GdiMod, DIB_Status_AppMod, DIB_Status_AuxMod };
279 extern int *X11DRV_DIB_BuildColorMap( X11DRV_PDEVICE *physDev, WORD coloruse,
280 WORD depth, const BITMAPINFO *info,
282 extern INT X11DRV_CoerceDIBSection(X11DRV_PDEVICE *physDev,INT,BOOL);
283 extern INT X11DRV_LockDIBSection(X11DRV_PDEVICE *physDev,INT,BOOL);
284 extern void X11DRV_UnlockDIBSection(X11DRV_PDEVICE *physDev,BOOL);
285 extern INT X11DRV_CoerceDIBSection2(HBITMAP bmp,INT,BOOL);
286 extern INT X11DRV_LockDIBSection2(HBITMAP bmp,INT,BOOL);
287 extern void X11DRV_UnlockDIBSection2(HBITMAP bmp,BOOL);
289 extern HBITMAP X11DRV_DIB_CreateDIBSection(X11DRV_PDEVICE *physDev, BITMAPINFO *bmi, UINT usage,
290 LPVOID *bits, HANDLE section, DWORD offset, DWORD ovr_pitch);
291 extern void X11DRV_DIB_DeleteDIBSection(struct tagBITMAPOBJ *bmp);
292 extern INT X11DRV_DIB_Coerce(struct tagBITMAPOBJ *,INT,BOOL);
293 extern INT X11DRV_DIB_Lock(struct tagBITMAPOBJ *,INT,BOOL);
294 extern void X11DRV_DIB_Unlock(struct tagBITMAPOBJ *,BOOL);
295 void X11DRV_DIB_CopyDIBSection(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE *physDevDst,
296 DWORD xSrc, DWORD ySrc, DWORD xDest, DWORD yDest,
297 DWORD width, DWORD height);
299 extern INT X11DRV_DCICommand(INT cbInput, const struct _DCICMD *lpCmd, LPVOID lpOutData);
301 /**************************************************************************
305 BOOL X11DRV_GDI_Initialize( Display *display );
306 void X11DRV_GDI_Finalize(void);
308 extern Display *gdi_display; /* display to use for all GDI functions */
310 /* X11 GDI palette driver */
312 #define X11DRV_PALETTE_FIXED 0x0001 /* read-only colormap - have to use XAllocColor (if not virtual) */
313 #define X11DRV_PALETTE_VIRTUAL 0x0002 /* no mapping needed - pixel == pixel color */
315 #define X11DRV_PALETTE_PRIVATE 0x1000 /* private colormap, identity mapping */
316 #define X11DRV_PALETTE_WHITESET 0x2000
318 extern Colormap X11DRV_PALETTE_PaletteXColormap;
319 extern UINT16 X11DRV_PALETTE_PaletteFlags;
321 extern int *X11DRV_PALETTE_PaletteToXPixel;
322 extern int *X11DRV_PALETTE_XPixelToPalette;
324 extern int X11DRV_PALETTE_mapEGAPixel[16];
326 extern int X11DRV_PALETTE_Init(void);
327 extern void X11DRV_PALETTE_Cleanup(void);
328 extern BOOL X11DRV_IsSolidColor(COLORREF color);
330 extern COLORREF X11DRV_PALETTE_ToLogical(int pixel);
331 extern int X11DRV_PALETTE_ToPhysical(X11DRV_PDEVICE *physDev, COLORREF color);
335 #define X11DRV_ESCAPE 6789
336 enum x11drv_escape_codes
338 X11DRV_GET_DISPLAY, /* get X11 display for a DC */
339 X11DRV_GET_DRAWABLE, /* get current drawable for a DC */
340 X11DRV_GET_FONT, /* get current X font for a DC */
341 X11DRV_SET_DRAWABLE, /* set current drawable for a DC */
342 X11DRV_START_EXPOSURES, /* start graphics exposures */
343 X11DRV_END_EXPOSURES, /* end graphics exposures */
346 struct x11drv_escape_set_drawable
348 enum x11drv_escape_codes code; /* escape code (X11DRV_SET_DRAWABLE) */
349 Drawable drawable; /* X drawable */
350 int mode; /* ClipByChildren or IncludeInferiors */
351 POINT org; /* origin of DC relative to drawable */
352 POINT drawable_org; /* origin of drawable relative to screen */
355 /**************************************************************************
359 struct x11drv_thread_data
363 int process_event_count; /* recursion count for event processing */
364 Cursor cursor; /* current cursor */
365 Window cursor_window; /* current window that contains the cursor */
366 HWND last_focus; /* last window that had focus */
367 XIM xim; /* input method */
370 extern struct x11drv_thread_data *x11drv_init_thread_data(void);
372 inline static struct x11drv_thread_data *x11drv_thread_data(void)
374 struct x11drv_thread_data *data = NtCurrentTeb()->driver_data;
375 if (!data) data = x11drv_init_thread_data();
379 inline static Display *thread_display(void) { return x11drv_thread_data()->display; }
381 extern Visual *visual;
382 extern Window root_window;
383 extern DWORD desktop_tid;
384 extern unsigned int screen_width;
385 extern unsigned int screen_height;
386 extern unsigned int screen_depth;
387 extern unsigned int text_caps;
389 extern int use_take_focus;
390 extern int managed_mode;
396 FIRST_XATOM = XA_LAST_PREDEFINED + 1,
397 XATOM_CLIPBOARD = FIRST_XATOM,
400 XATOM_SELECTION_DATA,
406 XATOM_RAW_CAP_HEIGHT,
408 XATOM_WM_DELETE_WINDOW,
410 XATOM_KWM_DOCKWINDOW,
413 XATOM__MOTIF_WM_HINTS,
414 XATOM__KDE_NET_WM_SYSTEM_TRAY_WINDOW_FOR,
418 XATOM__NET_WM_WINDOW_TYPE,
419 XATOM__NET_WM_WINDOW_TYPE_UTILITY,
427 XATOM_XdndActionCopy,
428 XATOM_XdndActionMove,
429 XATOM_XdndActionLink,
431 XATOM_XdndActionPrivate,
443 extern Atom X11DRV_Atoms[NB_XATOMS - FIRST_XATOM];
445 #define x11drv_atom(name) (X11DRV_Atoms[XATOM_##name - FIRST_XATOM])
447 /* X11 clipboard driver */
449 typedef struct tagWINE_CLIPDATA {
454 struct tagWINE_CLIPDATA *PrevData;
455 struct tagWINE_CLIPDATA *NextData;
456 } WINE_CLIPDATA, *LPWINE_CLIPDATA;
458 typedef HANDLE (*DRVEXPORTFUNC)(Window requestor, Atom aTarget, Atom rprop,
459 LPWINE_CLIPDATA lpData, LPDWORD lpBytes);
460 typedef HANDLE (*DRVIMPORTFUNC)(LPBYTE hData, UINT cBytes);
462 typedef struct tagWINE_CLIPFORMAT {
467 DRVIMPORTFUNC lpDrvImportFunc;
468 DRVEXPORTFUNC lpDrvExportFunc;
469 struct tagWINE_CLIPFORMAT *PrevFormat;
470 struct tagWINE_CLIPFORMAT *NextFormat;
471 } WINE_CLIPFORMAT, *LPWINE_CLIPFORMAT;
473 #define CF_FLAG_BUILTINFMT 1 /* Built-in windows format */
474 #define CF_FLAG_SYNTHESIZED 8 /* Implicitly converted data */
476 extern void X11DRV_InitClipboard(void);
477 extern void X11DRV_CLIPBOARD_ReleaseSelection(Atom selType, Window w, HWND hwnd);
478 extern INT X11DRV_CountClipboardFormats(void);
479 extern UINT X11DRV_EnumClipboardFormats(UINT wFormat);
480 extern LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_LookupFormat(WORD wID);
481 extern LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_LookupProperty(UINT drvData);
482 extern LPWINE_CLIPDATA X11DRV_CLIPBOARD_LookupData(DWORD wID);
483 extern UINT X11DRV_CLIPBOARD_LookupPropertyAlias(UINT drvDataProperty);
484 extern LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_LookupAliasProperty(UINT drvDataAlias);
486 /* X11 event driver */
489 X11DRV_INPUT_RELATIVE,
490 X11DRV_INPUT_ABSOLUTE
492 extern INPUT_TYPE X11DRV_EVENT_SetInputMethod(INPUT_TYPE type);
494 #ifdef HAVE_LIBXXF86DGA2
495 void X11DRV_EVENT_SetDGAStatus(HWND hwnd, int event_base) ;
498 extern int X11DRV_ProcessTabletEvent(HWND hwnd, XEvent *event);
500 /* x11drv private window data */
501 struct x11drv_win_data
503 Window whole_window; /* X window for the complete window */
504 Window client_window; /* X window for the client area */
505 Window icon_window; /* X window for the icon */
506 RECT whole_rect; /* X window rectangle for the whole window relative to parent */
507 RECT client_rect; /* client area relative to whole window */
508 XIC xic; /* X input context */
509 HBITMAP hWMIconBitmap;
513 typedef struct x11drv_win_data X11DRV_WND_DATA;
515 extern Window X11DRV_get_client_window( HWND hwnd );
516 extern Window X11DRV_get_whole_window( HWND hwnd );
517 extern XIC X11DRV_get_ic( HWND hwnd );
519 inline static Window get_client_window( WND *wnd )
521 struct x11drv_win_data *data = wnd->pDriverData;
522 return data->client_window;
525 inline static Window get_whole_window( WND *wnd )
527 struct x11drv_win_data *data = wnd->pDriverData;
528 return data->whole_window;
531 inline static BOOL is_window_top_level( WND *win )
533 return (root_window == DefaultRootWindow(gdi_display) && win->parent == GetDesktopWindow());
536 extern void X11DRV_SetFocus( HWND hwnd );
537 extern Cursor X11DRV_GetCursor( Display *display, struct tagCURSORICONINFO *ptr );
539 typedef int (*x11drv_error_callback)( Display *display, XErrorEvent *event, void *arg );
541 extern void X11DRV_expect_error( Display *display, x11drv_error_callback callback, void *arg );
542 extern int X11DRV_check_error(void);
543 extern void X11DRV_register_window( Display *display, HWND hwnd, struct x11drv_win_data *data );
544 extern void X11DRV_set_iconic_state( WND *win );
545 extern void X11DRV_window_to_X_rect( WND *win, RECT *rect );
546 extern void X11DRV_X_to_window_rect( WND *win, RECT *rect );
547 extern void X11DRV_create_desktop_thread(void);
548 extern Window X11DRV_create_desktop( XVisualInfo *desktop_vi, const char *geometry );
549 extern void X11DRV_sync_window_style( Display *display, WND *win );
550 extern int X11DRV_sync_whole_window_position( Display *display, WND *win, int zorder );
551 extern int X11DRV_sync_client_window_position( Display *display, WND *win );
552 extern void X11DRV_set_wm_hints( Display *display, WND *win );
554 extern void X11DRV_Settings_AddDepthModes(void);
555 extern void X11DRV_Settings_AddOneMode(unsigned int width, unsigned int height, unsigned int bpp, unsigned int freq);
556 extern int X11DRV_Settings_CreateDriver(LPDDHALINFO info);
557 extern LPDDHALMODEINFO X11DRV_Settings_CreateModes(unsigned int max_modes, int reserve_depths);
558 unsigned int X11DRV_Settings_GetModeCount(void);
559 void X11DRV_Settings_Init(void);
560 extern void X11DRV_Settings_SetDefaultMode(int mode);
561 LPDDHALMODEINFO X11DRV_Settings_SetHandlers(const char *name,
562 int (*pNewGCM)(void),
563 void (*pNewSCM)(int),
570 void (*Convert_5x5_asis)(int width, int height,
571 const void* srcbits, int srclinebytes,
572 void* dstbits, int dstlinebytes);
573 void (*Convert_555_reverse)(int width, int height,
574 const void* srcbits, int srclinebytes,
575 void* dstbits, int dstlinebytes);
576 void (*Convert_555_to_565_asis)(int width, int height,
577 const void* srcbits, int srclinebytes,
578 void* dstbits, int dstlinebytes);
579 void (*Convert_555_to_565_reverse)(int width, int height,
580 const void* srcbits, int srclinebytes,
581 void* dstbits, int dstlinebytes);
582 void (*Convert_555_to_888_asis)(int width, int height,
583 const void* srcbits, int srclinebytes,
584 void* dstbits, int dstlinebytes);
585 void (*Convert_555_to_888_reverse)(int width, int height,
586 const void* srcbits, int srclinebytes,
587 void* dstbits, int dstlinebytes);
588 void (*Convert_555_to_0888_asis)(int width, int height,
589 const void* srcbits, int srclinebytes,
590 void* dstbits, int dstlinebytes);
591 void (*Convert_555_to_0888_reverse)(int width, int height,
592 const void* srcbits, int srclinebytes,
593 void* dstbits, int dstlinebytes);
594 void (*Convert_5x5_to_any0888)(int width, int height,
595 const void* srcbits, int srclinebytes,
596 WORD rsrc, WORD gsrc, WORD bsrc,
597 void* dstbits, int dstlinebytes,
598 DWORD rdst, DWORD gdst, DWORD bdst);
599 void (*Convert_565_reverse)(int width, int height,
600 const void* srcbits, int srclinebytes,
601 void* dstbits, int dstlinebytes);
602 void (*Convert_565_to_555_asis)(int width, int height,
603 const void* srcbits, int srclinebytes,
604 void* dstbits, int dstlinebytes);
605 void (*Convert_565_to_555_reverse)(int width, int height,
606 const void* srcbits, int srclinebytes,
607 void* dstbits, int dstlinebytes);
608 void (*Convert_565_to_888_asis)(int width, int height,
609 const void* srcbits, int srclinebytes,
610 void* dstbits, int dstlinebytes);
611 void (*Convert_565_to_888_reverse)(int width, int height,
612 const void* srcbits, int srclinebytes,
613 void* dstbits, int dstlinebytes);
614 void (*Convert_565_to_0888_asis)(int width, int height,
615 const void* srcbits, int srclinebytes,
616 void* dstbits, int dstlinebytes);
617 void (*Convert_565_to_0888_reverse)(int width, int height,
618 const void* srcbits, int srclinebytes,
619 void* dstbits, int dstlinebytes);
620 void (*Convert_888_asis)(int width, int height,
621 const void* srcbits, int srclinebytes,
622 void* dstbits, int dstlinebytes);
623 void (*Convert_888_reverse)(int width, int height,
624 const void* srcbits, int srclinebytes,
625 void* dstbits, int dstlinebytes);
626 void (*Convert_888_to_555_asis)(int width, int height,
627 const void* srcbits, int srclinebytes,
628 void* dstbits, int dstlinebytes);
629 void (*Convert_888_to_555_reverse)(int width, int height,
630 const void* srcbits, int srclinebytes,
631 void* dstbits, int dstlinebytes);
632 void (*Convert_888_to_565_asis)(int width, int height,
633 const void* srcbits, int srclinebytes,
634 void* dstbits, int dstlinebytes);
635 void (*Convert_888_to_565_reverse)(int width, int height,
636 const void* srcbits, int srclinebytes,
637 void* dstbits, int dstlinebytes);
638 void (*Convert_888_to_0888_asis)(int width, int height,
639 const void* srcbits, int srclinebytes,
640 void* dstbits, int dstlinebytes);
641 void (*Convert_888_to_0888_reverse)(int width, int height,
642 const void* srcbits, int srclinebytes,
643 void* dstbits, int dstlinebytes);
644 void (*Convert_rgb888_to_any0888)(int width, int height,
645 const void* srcbits, int srclinebytes,
646 void* dstbits, int dstlinebytes,
647 DWORD rdst, DWORD gdst, DWORD bdst);
648 void (*Convert_bgr888_to_any0888)(int width, int height,
649 const void* srcbits, int srclinebytes,
650 void* dstbits, int dstlinebytes,
651 DWORD rdst, DWORD gdst, DWORD bdst);
652 void (*Convert_0888_asis)(int width, int height,
653 const void* srcbits, int srclinebytes,
654 void* dstbits, int dstlinebytes);
655 void (*Convert_0888_reverse)(int width, int height,
656 const void* srcbits, int srclinebytes,
657 void* dstbits, int dstlinebytes);
658 void (*Convert_0888_any)(int width, int height,
659 const void* srcbits, int srclinebytes,
660 DWORD rsrc, DWORD gsrc, DWORD bsrc,
661 void* dstbits, int dstlinebytes,
662 DWORD rdst, DWORD gdst, DWORD bdst);
663 void (*Convert_0888_to_555_asis)(int width, int height,
664 const void* srcbits, int srclinebytes,
665 void* dstbits, int dstlinebytes);
666 void (*Convert_0888_to_555_reverse)(int width, int height,
667 const void* srcbits, int srclinebytes,
668 void* dstbits, int dstlinebytes);
669 void (*Convert_0888_to_565_asis)(int width, int height,
670 const void* srcbits, int srclinebytes,
671 void* dstbits, int dstlinebytes);
672 void (*Convert_0888_to_565_reverse)(int width, int height,
673 const void* srcbits, int srclinebytes,
674 void* dstbits, int dstlinebytes);
675 void (*Convert_any0888_to_5x5)(int width, int height,
676 const void* srcbits, int srclinebytes,
677 DWORD rsrc, DWORD gsrc, DWORD bsrc,
678 void* dstbits, int dstlinebytes,
679 WORD rdst, WORD gdst, WORD bdst);
680 void (*Convert_0888_to_888_asis)(int width, int height,
681 const void* srcbits, int srclinebytes,
682 void* dstbits, int dstlinebytes);
683 void (*Convert_0888_to_888_reverse)(int width, int height,
684 const void* srcbits, int srclinebytes,
685 void* dstbits, int dstlinebytes);
686 void (*Convert_any0888_to_rgb888)(int width, int height,
687 const void* srcbits, int srclinebytes,
688 DWORD rsrc, DWORD gsrc, DWORD bsrc,
689 void* dstbits, int dstlinebytes);
690 void (*Convert_any0888_to_bgr888)(int width, int height,
691 const void* srcbits, int srclinebytes,
692 DWORD rsrc, DWORD gsrc, DWORD bsrc,
693 void* dstbits, int dstlinebytes);
696 extern const dib_conversions dib_normal, dib_src_byteswap, dib_dst_byteswap;
698 extern INT X11DRV_DIB_MaskToShift(DWORD mask);
700 #endif /* __WINE_X11DRV_H */