9 #include <xcb/xcb_image.h>
11 #include "evas_common.h"
12 #include "evas_common_soft8.h"
14 extern int _evas_engine_soft8_x11_log_dom;
18 #define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_soft8_x11_log_dom, __VA_ARGS__)
23 #define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_soft8_x11_log_dom, __VA_ARGS__)
28 #define INF(...) EINA_LOG_DOM_INFO(_evas_engine_soft8_x11_log_dom, __VA_ARGS__)
33 #define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_soft8_x11_log_dom, __VA_ARGS__)
38 #define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_soft8_x11_log_dom, __VA_ARGS__)
40 typedef struct _X_Output_Buffer X_Output_Buffer;
42 struct _X_Output_Buffer
45 xcb_connection_t *connection;
48 xcb_drawable_t drawable;
50 xcb_shm_segment_info_t *shm_info;
56 void evas_software_x11_x_init (void);
58 int evas_software_x11_x_can_do_shm (xcb_connection_t *c, xcb_screen_t *screen);
59 X_Output_Buffer *evas_software_x11_x_output_buffer_new (xcb_connection_t *, xcb_screen_t *screen, int depth, unsigned char *pal, int w, int h, int try_shm, void *data);
60 void evas_software_x11_x_output_buffer_free (X_Output_Buffer *xob, int sync);
61 void evas_software_x11_x_output_buffer_paste (X_Output_Buffer *xob, xcb_drawable_t d, xcb_gcontext_t gc, int x, int y, int w, int h, int sync);
62 DATA8 *evas_software_x11_x_output_buffer_data (X_Output_Buffer *xob, int *bytes_per_line_ret);
63 int evas_software_x11_x_output_buffer_depth (X_Output_Buffer *xob);
64 int evas_software_x11_x_output_buffer_byte_order (X_Output_Buffer *xob);
65 int evas_software_x11_x_output_buffer_bit_order (X_Output_Buffer *xob);