hvirtual/plugins/rotate/rotate.C File Reference

#include "../motion/affine.h"
#include "bcdisplayinfo.h"
#include "clip.h"
#include "bchash.h"
#include "filexml.h"
#include "guicast.h"
#include "language.h"
#include "picon_png.h"
#include "pluginvclient.h"
#include "rotateframe.h"
#include "vframe.h"
#include <string.h>

Include dependency graph for rotate.C:

Go to the source code of this file.

Data Structures

class  RotateConfig
class  RotateToggle
class  RotateDrawPivot
class  RotateInterpolate
class  RotateFine
class  RotateX
class  RotateY
class  RotateText
class  RotateWindow
class  RotateEffect

Defines

#define SQR(x)   ((x) * (x))
#define MAXANGLE   360
#define RADIUS   30
#define CENTER_H   20
#define CENTER_W   20
#define DRAW_CENTER(components, type, max)


Define Documentation

#define CENTER_H   20

#define CENTER_W   20

#define DRAW_CENTER ( components,
type,
max   ) 

Value:

{ \
        type **rows = (type**)get_output()->get_rows(); \
        if(center_x >= 0 && center_x < w || \
                center_y >= 0 && center_y < h) \
        { \
                type *hrow = rows[center_y] + components * (center_x - CENTER_W / 2); \
                for(int i = center_x - CENTER_W / 2; i <= center_x + CENTER_W / 2; i++) \
                { \
                        if(i >= 0 && i < w) \
                        { \
                                hrow[0] = max - hrow[0]; \
                                hrow[1] = max - hrow[1]; \
                                hrow[2] = max - hrow[2]; \
                                hrow += components; \
                        } \
                } \
 \
                for(int i = center_y - CENTER_W / 2; i <= center_y + CENTER_W / 2; i++) \
                { \
                        if(i >= 0 && i < h) \
                        { \
                                type *vrow = rows[i] + center_x * components; \
                                vrow[0] = max - vrow[0]; \
                                vrow[1] = max - vrow[1]; \
                                vrow[2] = max - vrow[2]; \
                        } \
                } \
        } \
}

Referenced by RotateEffect::process_buffer().

#define MAXANGLE   360

Definition at line 19 of file rotate.C.

#define RADIUS   30

Definition at line 446 of file rotate.C.

#define SQR (  )     ((x) * (x))

Definition at line 18 of file rotate.C.


Generated on Mon Apr 28 14:01:46 2008 for Cinelerra by  doxygen 1.5.5