#include "automation.h"#include "autos.h"#include "bcsignals.h"#include "canvas.h"#include "clip.h"#include "cpanel.h"#include "cplayback.h"#include "ctimebar.h"#include "cursors.h"#include "cwindowgui.h"#include "cwindow.h"#include "cwindowtool.h"#include "editpanel.h"#include "edl.h"#include "edlsession.h"#include "floatauto.h"#include "floatautos.h"#include "keys.h"#include "language.h"#include "localsession.h"#include "mainclock.h"#include "mainmenu.h"#include "mainundo.h"#include "mainsession.h"#include "maskauto.h"#include "maskautos.h"#include "mbuttons.h"#include "meterpanel.h"#include "mwindowgui.h"#include "mwindow.h"#include "playback3d.h"#include "playtransport.h"#include "theme.h"#include "trackcanvas.h"#include "tracks.h"#include "transportque.h"#include "vtrack.h"

Go to the source code of this file.
Defines | |
| #define | CROPHANDLE_W 10 |
| #define | CROPHANDLE_H 10 |
| #define | CONTROL_W 10 |
| #define | CONTROL_H 10 |
| #define | FIRST_CONTROL_W 20 |
| #define | FIRST_CONTROL_H 20 |
| #define | BC_INFINITY 65536 |
| #define | SQR(x) ((x) * (x)) |
| #define | TEST_BOX(cursor_x, cursor_y, target_x, target_y) |
| #define | V_TO_R 1.40200 |
| #define | V_TO_G -0.71414 |
| #define | U_TO_G -0.34414 |
| #define | U_TO_B 1.77200 |
| #define | GET_COLOR(type, components, max, do_yuv) |
| #define | CLAMP(x, y, z) ((x) = ((x) < (y) ? (y) : ((x) > (z) ? (z) : (x)))) |
| #define | DRAW_PROJECTION(offset) |
Variables | |
| static double | my_zoom_table [] |
| static int | total_zooms = sizeof(my_zoom_table) / sizeof(double) |
| #define BC_INFINITY 65536 |
Definition at line 977 of file cwindowgui.C.
Referenced by BC_DragWindow::BC_DragWindow(), EDLSession::boundaries(), BC_WindowBase::create_window(), CWindowCanvas::do_mask(), BC_DragWindow::drag_failure_event(), ResourcePixmap::draw_title(), BC_Bitmap::params_match(), DC_Offset::run(), and BC_WindowBase::set_icon().
| #define CLAMP | ( | x, | |||
| y, | |||||
| z | ) | ((x) = ((x) < (y) ? (y) : ((x) > (z) ? (z) : (x)))) |
| #define CONTROL_H 10 |
| #define CONTROL_W 10 |
| #define CROPHANDLE_H 10 |
Definition at line 965 of file cwindowgui.C.
Referenced by VideoWindowCanvas::button_press(), CWindowCanvas::draw_crop(), VideoWindowCanvas::draw_crop_box(), CWindowCanvas::draw_crophandle(), and CWindowCanvas::test_crop().
| #define CROPHANDLE_W 10 |
Definition at line 964 of file cwindowgui.C.
Referenced by VideoWindowCanvas::button_press(), CWindowCanvas::draw_crop(), VideoWindowCanvas::draw_crop_box(), CWindowCanvas::draw_crophandle(), and CWindowCanvas::test_crop().
| #define DRAW_PROJECTION | ( | offset | ) |
Value:
get_canvas()->draw_rectangle((int)track_x1 + offset, \ (int)track_y1 + offset, \ (int)(track_x2 - track_x1), \ (int)(track_y2 - track_y1)); \ get_canvas()->draw_line((int)track_x1 + offset, \ (int)track_y1 + offset, \ (int)track_x2 + offset, \ (int)track_y2 + offset); \ get_canvas()->draw_line((int)track_x2 + offset, \ (int)track_y1 + offset, \ (int)track_x1 + offset, \ (int)track_y2 + offset); \
Referenced by CWindowCanvas::draw_bezier().
| #define FIRST_CONTROL_H 20 |
| #define FIRST_CONTROL_W 20 |
| #define GET_COLOR | ( | type, | |||
| components, | |||||
| max, | |||||
| do_yuv | ) |
Value:
{ \
type *row = (type*)(refresh_frame->get_rows()[(int)cursor_y]) + \
(int)cursor_x * components; \
float red = (float)*row++ / max; \
float green = (float)*row++ / max; \
float blue = (float)*row++ / max; \
if(do_yuv) \
{ \
mwindow->edl->local_session->red = red + V_TO_R * (blue - 0.5); \
mwindow->edl->local_session->green = red + U_TO_G * (green - 0.5) + V_TO_G * (blue - 0.5); \
mwindow->edl->local_session->blue = red + U_TO_B * (green - 0.5); \
} \
else \
{ \
mwindow->edl->local_session->red = red; \
mwindow->edl->local_session->green = green; \
mwindow->edl->local_session->blue = blue; \
} \
}
Referenced by CWindowCanvas::do_eyedrop().
| #define SQR | ( | x | ) | ((x) * (x)) |
Definition at line 979 of file cwindowgui.C.
Referenced by ahd_interpolate(), bilateral_filter(), calc_undistorted_coords(), RotateEngine::create_matrix(), CWindowCanvas::do_mask(), and parse_tiff().
| #define TEST_BOX | ( | cursor_x, | |||
| cursor_y, | |||||
| target_x, | |||||
| target_y | ) |
Value:
(cursor_x >= target_x - CONTROL_W / 2 && \ cursor_x < target_x + CONTROL_W / 2 && \ cursor_y >= target_y - CONTROL_H / 2 && \ cursor_y < target_y + CONTROL_H / 2)
Referenced by CWindowCanvas::do_mask().
| #define U_TO_B 1.77200 |
Referenced by cmodel_init_yuv(), YUV::YUV(), and YUV::yuv_to_rgb_f().
| #define U_TO_G -0.34414 |
Referenced by cmodel_init_yuv(), YUV::YUV(), and YUV::yuv_to_rgb_f().
| #define V_TO_G -0.71414 |
Referenced by cmodel_init_yuv(), YUV::YUV(), and YUV::yuv_to_rgb_f().
| #define V_TO_R 1.40200 |
Referenced by cmodel_init_yuv(), YUV::YUV(), and YUV::yuv_to_rgb_f().
double my_zoom_table[] [static] |
Initial value:
{
0.25,
0.33,
0.50,
0.75,
1.0,
1.5,
2.0,
3.0,
4.0
}
Definition at line 41 of file cwindowgui.C.
Referenced by CWindowCanvas::test_zoom().
int total_zooms = sizeof(my_zoom_table) / sizeof(double) [static] |
1.5.5