2002-11-08 00:02:15 -08:00
|
|
|
#ifndef EVAS_ENGINE_H
|
2011-07-07 17:21:17 -07:00
|
|
|
# define EVAS_ENGINE_H
|
2002-11-08 00:02:15 -08:00
|
|
|
|
2011-07-07 17:21:17 -07:00
|
|
|
# include <sys/ipc.h>
|
|
|
|
# include <sys/shm.h>
|
2008-12-17 00:13:49 -08:00
|
|
|
|
2016-11-01 07:04:47 -07:00
|
|
|
# include <X11/Xlib.h>
|
|
|
|
# include <X11/Xutil.h>
|
|
|
|
# include <X11/Xatom.h>
|
|
|
|
# include <X11/extensions/XShm.h>
|
|
|
|
# include <X11/Xresource.h> // xres - dpi
|
2008-12-17 00:13:49 -08:00
|
|
|
|
2014-06-17 23:47:23 -07:00
|
|
|
#include "../software_generic/Evas_Engine_Software_Generic.h"
|
|
|
|
|
2009-10-22 08:22:22 -07:00
|
|
|
extern int _evas_engine_soft_x11_log_dom;
|
|
|
|
|
2011-07-07 17:21:17 -07:00
|
|
|
# ifdef ERR
|
|
|
|
# undef ERR
|
|
|
|
# endif
|
|
|
|
# define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_soft_x11_log_dom, __VA_ARGS__)
|
2009-10-22 08:22:22 -07:00
|
|
|
|
2011-07-07 17:21:17 -07:00
|
|
|
# ifdef DBG
|
|
|
|
# undef DBG
|
|
|
|
# endif
|
|
|
|
# define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_soft_x11_log_dom, __VA_ARGS__)
|
2009-10-22 08:22:22 -07:00
|
|
|
|
2011-07-07 17:21:17 -07:00
|
|
|
# ifdef INF
|
|
|
|
# undef INF
|
|
|
|
# endif
|
|
|
|
# define INF(...) EINA_LOG_DOM_INFO(_evas_engine_soft_x11_log_dom, __VA_ARGS__)
|
2009-10-22 08:22:22 -07:00
|
|
|
|
2011-07-07 17:21:17 -07:00
|
|
|
# ifdef WRN
|
|
|
|
# undef WRN
|
|
|
|
# endif
|
|
|
|
# define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_soft_x11_log_dom, __VA_ARGS__)
|
2002-11-08 00:02:15 -08:00
|
|
|
|
2013-12-25 19:22:05 -08:00
|
|
|
# ifdef CRI
|
|
|
|
# undef CRI
|
2011-07-07 17:21:17 -07:00
|
|
|
# endif
|
2013-12-25 19:22:05 -08:00
|
|
|
# define CRI(...) \
|
2011-07-07 17:21:17 -07:00
|
|
|
EINA_LOG_DOM_CRIT(_evas_engine_soft_x11_log_dom, __VA_ARGS__)
|
|
|
|
|
2002-11-08 00:02:15 -08:00
|
|
|
struct _Outbuf
|
|
|
|
{
|
2011-07-07 17:21:17 -07:00
|
|
|
Outbuf_Depth depth;
|
|
|
|
int w, h;
|
|
|
|
int rot;
|
|
|
|
int onebuf;
|
|
|
|
|
2020-06-20 02:54:26 -07:00
|
|
|
struct
|
2011-07-07 17:21:17 -07:00
|
|
|
{
|
|
|
|
Convert_Pal *pal;
|
2020-06-20 02:54:26 -07:00
|
|
|
union
|
2011-07-07 17:21:17 -07:00
|
|
|
{
|
2020-06-20 02:54:26 -07:00
|
|
|
struct
|
2011-07-07 17:21:17 -07:00
|
|
|
{
|
|
|
|
Display *disp;
|
|
|
|
Window win;
|
|
|
|
Pixmap mask;
|
|
|
|
Visual *vis;
|
|
|
|
Colormap cmap;
|
2012-12-19 07:40:52 -08:00
|
|
|
int depth, imdepth, shm;
|
2011-07-07 17:21:17 -07:00
|
|
|
GC gc, gcm;
|
|
|
|
unsigned char swap : 1;
|
|
|
|
unsigned char bit_swap : 1;
|
|
|
|
} xlib;
|
|
|
|
} x11;
|
2020-06-20 02:54:26 -07:00
|
|
|
struct
|
2011-07-07 17:21:17 -07:00
|
|
|
{
|
|
|
|
DATA32 r, g, b;
|
|
|
|
} mask;
|
|
|
|
|
|
|
|
/* 1 big buffer for updates - flush on idle_flush */
|
|
|
|
RGBA_Image *onebuf;
|
2012-07-04 02:39:23 -07:00
|
|
|
Eina_Array onebuf_regions;
|
2020-06-20 02:54:26 -07:00
|
|
|
|
2012-11-19 05:43:48 -08:00
|
|
|
void *swapper;
|
2011-07-07 17:21:17 -07:00
|
|
|
|
|
|
|
/* a list of pending regions to write to the target */
|
|
|
|
Eina_List *pending_writes;
|
|
|
|
|
|
|
|
/* a list of previous frame pending regions to write to the target */
|
|
|
|
Eina_List *prev_pending_writes;
|
2016-07-25 21:18:22 -07:00
|
|
|
Eina_Spinlock lock;
|
2011-07-07 17:21:17 -07:00
|
|
|
|
|
|
|
unsigned char mask_dither : 1;
|
|
|
|
unsigned char destination_alpha : 1;
|
|
|
|
unsigned char debug : 1;
|
|
|
|
unsigned char synced : 1;
|
|
|
|
} priv;
|
2002-11-08 00:02:15 -08:00
|
|
|
};
|
|
|
|
|
2011-07-07 17:21:17 -07:00
|
|
|
void evas_software_xlib_x_init(void);
|
2005-05-21 19:49:50 -07:00
|
|
|
|
2002-11-08 00:02:15 -08:00
|
|
|
#endif
|