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

Go to the source code of this file.

Functions

static float * make_gausstab (int filtertype, int rad)
static float * make_bloomtab (int rad)
static void blur_single_image (bNode *node, CompBuf *new, CompBuf *img, float scale)
static void bloom_with_reference (CompBuf *new, CompBuf *img, CompBuf *UNUSED(ref), float UNUSED(fac), NodeBlurData *nbd)
static void bokeh_single_image (bNode *node, CompBuf *new, CompBuf *img, float fac)
static void blur_with_reference (bNode *node, CompBuf *new, CompBuf *img, CompBuf *ref)
static void node_composit_exec_blur (void *data, bNode *node, bNodeStack **in, bNodeStack **out)
static void node_composit_init_blur (bNode *node)
void register_node_type_cmp_blur (ListBase *lb)

Variables

static bNodeSocketType cmp_node_blur_in []
static bNodeSocketType cmp_node_blur_out []

Detailed Description

Definition in file CMP_blur.c.


Function Documentation

static void bloom_with_reference ( CompBuf new,
CompBuf img,
CompBuf UNUSEDref,
float   UNUSEDfac,
NodeBlurData nbd 
) [static]
static void blur_single_image ( bNode node,
CompBuf new,
CompBuf img,
float  scale 
) [static]
static void blur_with_reference ( bNode node,
CompBuf new,
CompBuf img,
CompBuf ref 
) [static]
static void bokeh_single_image ( bNode node,
CompBuf new,
CompBuf img,
float  fac 
) [static]
static float* make_bloomtab ( int  rad) [static]

Definition at line 72 of file CMP_blur.c.

References fabs(), i, MEM_mallocN(), pow(), and simple_enum_gen::val.

Referenced by bloom_with_reference().

static float* make_gausstab ( int  filtertype,
int  rad 
) [static]

Definition at line 49 of file CMP_blur.c.

References i, MEM_mallocN(), RE_filter_value(), sum(), and simple_enum_gen::val.

Referenced by blur_single_image(), and blur_with_reference().

static void node_composit_exec_blur ( void *  data,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]
static void node_composit_init_blur ( bNode node) [static]

Definition at line 716 of file CMP_blur.c.

References MEM_callocN(), and bNode::storage.

Referenced by register_node_type_cmp_blur().

void register_node_type_cmp_blur ( ListBase lb)

Variable Documentation

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

Definition at line 39 of file CMP_blur.c.

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

Definition at line 44 of file CMP_blur.c.