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

Go to the source code of this file.

Functions

static void rgb_tobw (float r, float g, float b, float *out)
static void fill_bins (bNode *node, CompBuf *in, int *bins, int colorcor)
static float brightness_mean (bNode *node, CompBuf *in)
static float brightness_standard_deviation (bNode *node, CompBuf *in, float mean)
static void draw_histogram (bNode *node, CompBuf *out, int *bins)
static void node_composit_exec_view_levels (void *data, bNode *node, bNodeStack **in, bNodeStack **out)
static void node_composit_init_view_levels (bNode *node)
void register_node_type_cmp_view_levels (ListBase *lb)

Variables

static bNodeSocketType cmp_node_view_levels_in []
static bNodeSocketType cmp_node_view_levels_out []

Detailed Description

Definition in file CMP_levels.c.


Function Documentation

static float brightness_mean ( bNode node,
CompBuf in 
) [static]
static float brightness_standard_deviation ( bNode node,
CompBuf in,
float  mean 
) [static]
static void draw_histogram ( bNode node,
CompBuf out,
int *  bins 
) [static]
static void fill_bins ( bNode node,
CompBuf in,
int *  bins,
int  colorcor 
) [static]
static void node_composit_exec_view_levels ( void *  data,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]
static void node_composit_init_view_levels ( bNode node) [static]

Definition at line 331 of file CMP_levels.c.

References bNode::custom1.

Referenced by register_node_type_cmp_view_levels().

void register_node_type_cmp_view_levels ( ListBase lb)
static void rgb_tobw ( float  r,
float  g,
float  b,
float *  out 
) [static]

Definition at line 50 of file CMP_levels.c.

Referenced by brightness_mean(), brightness_standard_deviation(), and fill_bins().


Variable Documentation

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

Definition at line 39 of file CMP_levels.c.

Initial value:
{
        {SOCK_VALUE, 0,"Mean",0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {SOCK_VALUE, 0,"Std Dev",0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {-1,0,""}
}

Definition at line 44 of file CMP_levels.c.