hvirtual/cinelerra/cwindowgui.C File Reference

#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"

Include dependency graph for cwindowgui.C:

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 Documentation

#define BC_INFINITY   65536

#define CLAMP ( x,
y,
 )     ((x) = ((x) < (y) ? (y) : ((x) > (z) ? (z) : (x))))

#define CONTROL_H   10

Definition at line 973 of file cwindowgui.C.

Referenced by CWindowCanvas::do_mask().

#define CONTROL_W   10

Definition at line 972 of file cwindowgui.C.

Referenced by CWindowCanvas::do_mask().

#define CROPHANDLE_H   10

#define CROPHANDLE_W   10

#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

Definition at line 975 of file cwindowgui.C.

Referenced by CWindowCanvas::do_mask().

#define FIRST_CONTROL_W   20

Definition at line 974 of file cwindowgui.C.

Referenced by CWindowCanvas::do_mask().

#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))

#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

#define U_TO_G   -0.34414

#define V_TO_G   -0.71414

#define V_TO_R   1.40200


Variable Documentation

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]

Definition at line 54 of file cwindowgui.C.

Referenced by CWindowCanvas::test_zoom().


Generated on Mon Apr 28 13:53:33 2008 for Cinelerra by  doxygen 1.5.5