7 #include <X11/extensions/XShm.h>
16 BC_Capture(int w
, int h
, char *display_path
= "");
17 virtual ~BC_Capture();
19 int init_window(char *display_path
);
20 // x1 and y1 are automatically adjusted if out of bounds
21 int capture_frame(VFrame
*frame
, int &x1
, int &y1
);
25 int w
, h
, default_depth
;
26 unsigned char **row_data
;
34 inline void import_RGB565_to_RGB888(unsigned char* &output
, unsigned char* &input
)
36 *output
++ = (*input
& 0xf800) >> 8;
37 *output
++ = (*input
& 0x7e0) >> 3;
38 *output
++ = (*input
& 0x1f) << 3;
44 inline void import_BGR888_to_RGB888(unsigned char* &output
, unsigned char* &input
)
54 inline void import_BGR8888_to_RGB888(unsigned char* &output
, unsigned char* &input
)
65 int bitmap_color_model
;
68 XShmSegmentInfo shm_info
;
75 int client_byte_order
, server_byte_order
;