Blender  V2.59
Functions | Variables
CMP_glare.c File Reference
#include "../CMP_util.h"

Go to the source code of this file.

Functions

static void mixImages (CompBuf *dst, CompBuf *src, float mix)
static void addImage (CompBuf *dst, CompBuf *src, float scale)
static CompBufBTP (CompBuf *src, float threshold, int scaledown)
static void star4 (NodeGlare *ndg, CompBuf *dst, CompBuf *src)
static void streaks (NodeGlare *ndg, CompBuf *dst, CompBuf *src)
static float smoothMask (float x, float y)
static void ghosts (NodeGlare *ndg, CompBuf *dst, CompBuf *src)
static void fglow (NodeGlare *ndg, CompBuf *dst, CompBuf *src)
static void node_composit_exec_glare (void *UNUSED(data), bNode *node, bNodeStack **in, bNodeStack **out)
static void node_composit_init_glare (bNode *node)
void register_node_type_cmp_glare (ListBase *lb)

Variables

static bNodeSocketType cmp_node_glare_in []
static bNodeSocketType cmp_node_glare_out []

Detailed Description

Definition in file CMP_glare.c.


Function Documentation

static void addImage ( CompBuf dst,
CompBuf src,
float  scale 
) [static]

Definition at line 93 of file CMP_glare.c.

References p, CompBuf::rect, CompBuf::type, CompBuf::x, and CompBuf::y.

Referenced by streaks().

static CompBuf* BTP ( CompBuf src,
float  threshold,
int  scaledown 
) [static]

Definition at line 104 of file CMP_glare.c.

References MAX2, qd_downScaledCopy(), CompBuf::rect, CompBuf::x, and CompBuf::y.

Referenced by fglow(), ghosts(), star4(), and streaks().

static void fglow ( NodeGlare ndg,
CompBuf dst,
CompBuf src 
) [static]
static void ghosts ( NodeGlare ndg,
CompBuf dst,
CompBuf src 
) [static]
static void mixImages ( CompBuf dst,
CompBuf src,
float  mix 
) [static]

Definition at line 47 of file CMP_glare.c.

References fabsf, fRGB_copy, fRGB_mult, qd_getPixelLerp(), CompBuf::rect, CompBuf::type, CompBuf::x, and CompBuf::y.

Referenced by fglow(), ghosts(), and streaks().

static void node_composit_exec_glare ( void *  UNUSEDdata,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]
static void node_composit_init_glare ( bNode node) [static]
void register_node_type_cmp_glare ( ListBase lb)
static float smoothMask ( float  x,
float  y 
) [static]

Definition at line 297 of file CMP_glare.c.

References sqrtf.

Referenced by ghosts().

static void star4 ( NodeGlare ndg,
CompBuf dst,
CompBuf src 
) [static]
static void streaks ( NodeGlare ndg,
CompBuf dst,
CompBuf src 
) [static]

Variable Documentation

Initial value:
 {
        {       SOCK_RGBA, 1, "Image",                  0.8f, 0.8f, 0.8f, 1.0f, 0.0f, 1.0f},
        {       -1, 0, ""       }
}

Definition at line 36 of file CMP_glare.c.

Initial value:
 {
        {       SOCK_RGBA, 0, "Image",                  0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       -1, 0, ""       }
}

Definition at line 40 of file CMP_glare.c.