8 #include "vdevicebase.h"
10 // output_frame is the same one written to device
11 #define BITMAP_PRIMARY 0
12 // output_frame is a temporary converted to the device format
15 class VDeviceX11
: public VDeviceBase
18 VDeviceX11(VideoDevice
*device
, Canvas
*output
);
23 int read_buffer(VFrame
*frame
);
24 int reset_parameters();
25 // User always gets the colormodel requested
26 void new_output_buffer(VFrame
**output_frames
, int colormodel
);
32 // After loading the bitmap with a picture, write it
33 int write_buffer(VFrame
**outputs
, EDL
*edl
);
36 // Closest colormodel the hardware can do for playback
37 int get_best_colormodel(int colormodel
);
38 // Get best colormodel for recording
39 int get_best_colormodel(Asset
*asset
);
41 BC_Bitmap
*bitmap
; // Bitmap to be written to device
42 VFrame
*output_frame
; // Wrapper for bitmap or intermediate frame
43 int bitmap_type
; // Type of output_frame
44 int bitmap_w
, bitmap_h
; // dimensions of buffers written to window
45 ArrayList
<int> render_strategies
;
49 int color_model_selected
;
50 // Transfers for last frame rendered.
51 // These stick the last frame to the display.
52 int in_x
, in_y
, in_w
, in_h
, out_x
, out_y
, out_w
, out_h
;
54 BC_Capture
*capture_bitmap
;