#include <vdevicex11.h>
Inherits VDeviceBase.

Public Member Functions | |
| VDeviceX11 (VideoDevice *device, Canvas *output) | |
| ~VDeviceX11 () | |
| int | open_input () |
| int | close_all () |
| int | read_buffer (VFrame *frame) |
| int | reset_parameters () |
| void | new_output_buffer (VFrame **output, int colormodel) |
| int | open_output () |
| int | start_playback () |
| int | stop_playback () |
| int | output_visible () |
| int | write_buffer (VFrame *result, EDL *edl) |
| int | get_best_colormodel (Asset *asset) |
| void | clear_output () |
| void | do_camera (VFrame *output, VFrame *input, float in_x1, float in_y1, float in_x2, float in_y2, float out_x1, float out_y1, float out_x2, float out_y2) |
| void | clear_input (VFrame *frame) |
| void | do_fade (VFrame *output_temp, float fade) |
| void | do_mask (VFrame *output_temp, int64_t start_position_project, MaskAutos *keyframe_set, MaskAuto *keyframe, MaskAuto *default_auto) |
| void | overlay (VFrame *output_frame, VFrame *input, float in_x1, float in_y1, float in_x2, float in_y2, float out_x1, float out_y1, float out_x2, float out_y2, float alpha, int mode, EDL *edl) |
| void | run_plugin (PluginClient *client) |
| void | copy_frame (VFrame *dst, VFrame *src) |
Private Member Functions | |
| int | get_best_colormodel (int colormodel) |
Private Attributes | |
| BC_Bitmap * | bitmap |
| VFrame * | output_frame |
| int | bitmap_type |
| int | bitmap_w |
| int | bitmap_h |
| ArrayList< int > | render_strategies |
| Canvas * | output |
| int | window_id |
| int | texture_w |
| int | texture_h |
| int | color_model |
| int | color_model_selected |
| float | output_x1 |
| float | output_y1 |
| float | output_x2 |
| float | output_y2 |
| float | canvas_x1 |
| float | canvas_y1 |
| float | canvas_x2 |
| float | canvas_y2 |
| BC_Capture * | capture_bitmap |
| int | is_cleared |
Definition at line 18 of file vdevicex11.h.
| VDeviceX11::VDeviceX11 | ( | VideoDevice * | device, | |
| Canvas * | output | |||
| ) |
Definition at line 23 of file vdevicex11.C.
References reset_parameters().

| VDeviceX11::~VDeviceX11 | ( | ) |
Definition at line 30 of file vdevicex11.C.
References close_all().

| int VDeviceX11::open_input | ( | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 57 of file vdevicex11.C.
References capture_bitmap, VDeviceBase::device, VideoInConfig::h, VideoDevice::in_config, VideoInConfig::screencapture_display, and VideoInConfig::w.
| int VDeviceX11::close_all | ( | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 106 of file vdevicex11.C.
References BC_RGB888, bitmap, capture_bitmap, VFrame::copy_from(), Playback3D::copy_from(), VDeviceBase::device, Canvas::draw_refresh(), VideoOutConfig::driver, Canvas::get_canvas(), VFrame::get_color_model(), VFrame::get_h(), VFrame::get_opengl_state(), VFrame::get_w(), Canvas::lock_canvas(), BC_WindowBase::lock_window(), Canvas::mwindow, VideoDevice::out_config, VideoDevice::out_h, VideoDevice::out_w, output, output_frame, MWindow::playback_3d, Canvas::refresh_frame, reset_parameters(), VFrame::SCREEN, VideoDevice::single_frame, Canvas::stop_single(), Canvas::stop_video(), Canvas::unlock_canvas(), and BC_WindowBase::unlock_window().
Referenced by ~VDeviceX11().

| int VDeviceX11::read_buffer | ( | VFrame * | frame | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 219 of file vdevicex11.C.
References capture_bitmap, BC_Capture::capture_frame(), VDeviceBase::device, VideoDevice::input_x, and VideoDevice::input_y.

| int VDeviceX11::reset_parameters | ( | ) |
Definition at line 35 of file vdevicex11.C.
References bitmap, bitmap_h, bitmap_type, bitmap_w, canvas_x1, canvas_x2, canvas_y1, canvas_y2, capture_bitmap, color_model_selected, is_cleared, output_frame, output_x1, output_x2, output_y1, output_y2, and window_id.
Referenced by close_all(), and VDeviceX11().
| void VDeviceX11::new_output_buffer | ( | VFrame ** | output, | |
| int | colormodel | |||
| ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 293 of file vdevicex11.C.
References BC_WindowBase::accel_available(), BC_YUV420P, BC_YUV422, BC_YUV422P, bitmap, BITMAP_PRIMARY, BITMAP_TEMP, bitmap_type, BLACK, color_model_selected, VDeviceBase::device, BC_WindowBase::draw_box(), VideoOutConfig::driver, BC_WindowBase::flash(), get_best_colormodel(), Canvas::get_canvas(), BC_WindowBase::get_color_model(), VFrame::get_color_model(), BC_Bitmap::get_data(), BC_WindowBase::get_h(), BC_Bitmap::get_h(), BC_WindowBase::get_id(), BC_Bitmap::get_shm_offset(), BC_Bitmap::get_u_offset(), BC_Bitmap::get_v_offset(), BC_WindowBase::get_w(), BC_Bitmap::get_w(), BC_Bitmap::get_y_offset(), Canvas::h, BC_Bitmap::hardware_scaling(), Canvas::lock_canvas(), BC_WindowBase::lock_window(), VideoDevice::out_config, VideoDevice::out_h, VideoDevice::out_w, output, output_frame, VFrame::RAM, BC_WindowBase::set_color(), VFrame::set_memory(), VFrame::set_opengl_state(), VFrame::set_shm_offset(), Canvas::unlock_canvas(), BC_WindowBase::unlock_window(), Canvas::use_scrollbars, Canvas::w, and window_id.

| int VDeviceX11::open_output | ( | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 68 of file vdevicex11.C.
References VDeviceBase::device, Canvas::get_canvas(), Canvas::lock_canvas(), BC_WindowBase::lock_window(), output, VideoDevice::single_frame, Canvas::start_single(), Canvas::start_video(), Canvas::unlock_canvas(), and BC_WindowBase::unlock_window().

| int VDeviceX11::start_playback | ( | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 504 of file vdevicex11.C.
References VDeviceBase::device, output, VideoDevice::single_frame, and Canvas::start_video().

| int VDeviceX11::stop_playback | ( | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 512 of file vdevicex11.C.
References VDeviceBase::device, output, VideoDevice::single_frame, and Canvas::stop_video().

| int VDeviceX11::output_visible | ( | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 88 of file vdevicex11.C.
References Canvas::get_canvas(), BC_WindowBase::get_hidden(), Canvas::lock_canvas(), output, and Canvas::unlock_canvas().

Reimplemented from VDeviceBase.
Definition at line 521 of file vdevicex11.C.
References bitmap, BITMAP_TEMP, bitmap_type, canvas_x1, canvas_x2, canvas_y1, canvas_y2, cmodel_transfer(), VDeviceBase::device, BC_WindowBase::draw_bitmap(), VideoOutConfig::driver, Canvas::get_canvas(), BC_Bitmap::get_color_model(), VFrame::get_color_model(), VFrame::get_h(), BC_Bitmap::get_h(), BC_Bitmap::get_row_pointers(), VFrame::get_rows(), Canvas::get_transfers(), VFrame::get_u(), VFrame::get_v(), BC_WindowBase::get_video_on(), VFrame::get_w(), BC_Bitmap::get_w(), VFrame::get_y(), BC_Bitmap::hardware_scaling(), is_cleared, Canvas::lock_canvas(), BC_WindowBase::lock_window(), Canvas::mwindow, VideoDevice::out_config, output, output_frame, output_x1, output_x2, output_y1, output_y2, MWindow::playback_3d, VideoDevice::single_frame, Canvas::unlock_canvas(), BC_WindowBase::unlock_window(), and Playback3D::write_buffer().

| int VDeviceX11::get_best_colormodel | ( | Asset * | asset | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 226 of file vdevicex11.C.
References BC_RGB888.
Referenced by new_output_buffer().
| void VDeviceX11::clear_output | ( | ) |
Definition at line 698 of file vdevicex11.C.
References Playback3D::clear_output(), Canvas::get_canvas(), BC_WindowBase::get_video_on(), is_cleared, Canvas::mwindow, output, output_frame, and MWindow::playback_3d.

| void VDeviceX11::clear_input | ( | VFrame * | frame | ) |
Definition at line 708 of file vdevicex11.C.
References Playback3D::clear_input(), Canvas::mwindow, output, and MWindow::playback_3d.
Referenced by VModule::import_frame().

| void VDeviceX11::do_fade | ( | VFrame * | output_temp, | |
| float | fade | |||
| ) |
Definition at line 738 of file vdevicex11.C.
References Playback3D::do_fade(), Canvas::mwindow, output, and MWindow::playback_3d.

| void VDeviceX11::do_mask | ( | VFrame * | output_temp, | |
| int64_t | start_position_project, | |||
| MaskAutos * | keyframe_set, | |||
| MaskAuto * | keyframe, | |||
| MaskAuto * | default_auto | |||
| ) |
Definition at line 743 of file vdevicex11.C.
References Playback3D::do_mask(), Canvas::mwindow, output, and MWindow::playback_3d.

| void VDeviceX11::overlay | ( | VFrame * | output_frame, | |
| VFrame * | input, | |||
| float | in_x1, | |||
| float | in_y1, | |||
| float | in_x2, | |||
| float | in_y2, | |||
| float | out_x1, | |||
| float | out_y1, | |||
| float | out_x2, | |||
| float | out_y2, | |||
| float | alpha, | |||
| int | mode, | |||
| EDL * | edl | |||
| ) |
Definition at line 757 of file vdevicex11.C.
References canvas_x1, canvas_x2, canvas_y1, canvas_y2, VDeviceBase::device, Canvas::get_canvas(), VFrame::get_h(), Canvas::get_transfers(), VFrame::get_w(), EDLSession::interpolation_type, Canvas::lock_canvas(), BC_WindowBase::lock_window(), Canvas::mwindow, output, output_x1, output_x2, output_y1, output_y2, Playback3D::overlay(), MWindow::playback_3d, EDL::session, VideoDevice::single_frame, Canvas::unlock_canvas(), and BC_WindowBase::unlock_window().

| void VDeviceX11::run_plugin | ( | PluginClient * | client | ) |
Definition at line 899 of file vdevicex11.C.
References Canvas::mwindow, output, MWindow::playback_3d, and Playback3D::run_plugin().

Definition at line 904 of file vdevicex11.C.
References Playback3D::copy_from(), Canvas::mwindow, output, and MWindow::playback_3d.
Referenced by VAttachmentPoint::render().

| int VDeviceX11::get_best_colormodel | ( | int | colormodel | ) | [private] |
Definition at line 232 of file vdevicex11.C.
References BC_RGB888, BC_RGB_FLOAT, BC_RGBA8888, BC_RGBA_FLOAT, BC_YUV420P, BC_YUV422, BC_YUV422P, BC_YUV888, BC_YUVA8888, VDeviceBase::device, VideoOutConfig::driver, Canvas::get_canvas(), BC_WindowBase::get_color_model(), Canvas::lock_canvas(), VideoDevice::out_config, output, VideoDevice::single_frame, and Canvas::unlock_canvas().

BC_Bitmap* VDeviceX11::bitmap [private] |
Definition at line 114 of file vdevicex11.h.
Referenced by close_all(), new_output_buffer(), reset_parameters(), and write_buffer().
VFrame* VDeviceX11::output_frame [private] |
Definition at line 116 of file vdevicex11.h.
Referenced by clear_output(), close_all(), new_output_buffer(), reset_parameters(), and write_buffer().
int VDeviceX11::bitmap_type [private] |
Definition at line 118 of file vdevicex11.h.
Referenced by new_output_buffer(), reset_parameters(), and write_buffer().
int VDeviceX11::bitmap_w [private] |
int VDeviceX11::bitmap_h [private] |
ArrayList<int> VDeviceX11::render_strategies [private] |
Definition at line 121 of file vdevicex11.h.
Canvas* VDeviceX11::output [private] |
Definition at line 123 of file vdevicex11.h.
Referenced by clear_input(), clear_output(), close_all(), copy_frame(), do_fade(), do_mask(), get_best_colormodel(), new_output_buffer(), open_output(), output_visible(), overlay(), run_plugin(), start_playback(), stop_playback(), and write_buffer().
int VDeviceX11::window_id [private] |
Definition at line 126 of file vdevicex11.h.
Referenced by new_output_buffer(), and reset_parameters().
int VDeviceX11::texture_w [private] |
Definition at line 127 of file vdevicex11.h.
int VDeviceX11::texture_h [private] |
Definition at line 128 of file vdevicex11.h.
int VDeviceX11::color_model [private] |
Definition at line 129 of file vdevicex11.h.
int VDeviceX11::color_model_selected [private] |
Definition at line 130 of file vdevicex11.h.
Referenced by new_output_buffer(), and reset_parameters().
float VDeviceX11::output_x1 [private] |
Definition at line 135 of file vdevicex11.h.
Referenced by overlay(), reset_parameters(), and write_buffer().
float VDeviceX11::output_y1 [private] |
Definition at line 135 of file vdevicex11.h.
Referenced by overlay(), reset_parameters(), and write_buffer().
float VDeviceX11::output_x2 [private] |
Definition at line 135 of file vdevicex11.h.
Referenced by overlay(), reset_parameters(), and write_buffer().
float VDeviceX11::output_y2 [private] |
Definition at line 135 of file vdevicex11.h.
Referenced by overlay(), reset_parameters(), and write_buffer().
float VDeviceX11::canvas_x1 [private] |
Definition at line 136 of file vdevicex11.h.
Referenced by overlay(), reset_parameters(), and write_buffer().
float VDeviceX11::canvas_y1 [private] |
Definition at line 136 of file vdevicex11.h.
Referenced by overlay(), reset_parameters(), and write_buffer().
float VDeviceX11::canvas_x2 [private] |
Definition at line 136 of file vdevicex11.h.
Referenced by overlay(), reset_parameters(), and write_buffer().
float VDeviceX11::canvas_y2 [private] |
Definition at line 136 of file vdevicex11.h.
Referenced by overlay(), reset_parameters(), and write_buffer().
BC_Capture* VDeviceX11::capture_bitmap [private] |
Definition at line 138 of file vdevicex11.h.
Referenced by close_all(), open_input(), read_buffer(), and reset_parameters().
int VDeviceX11::is_cleared [private] |
Definition at line 140 of file vdevicex11.h.
Referenced by clear_output(), reset_parameters(), and write_buffer().
1.5.5