Blender V2.61 - r43446
|
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_camera_types.h"
#include "DNA_color_types.h"
#include "DNA_ID.h"
#include "DNA_image_types.h"
#include "DNA_material_types.h"
#include "DNA_movieclip_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_texture_types.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_rand.h"
#include "BLI_threads.h"
#include "BLI_utildefines.h"
#include "BKE_blender.h"
#include "BKE_camera.h"
#include "BKE_colortools.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_movieclip.h"
#include "BKE_node.h"
#include "BKE_texture.h"
#include "BKE_tracking.h"
#include "BKE_library.h"
#include "BKE_object.h"
#include "node_util.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "RE_pipeline.h"
#include "RE_shader_ext.h"
#include "RE_render_ext.h"
#include "NOD_composite.h"
Go to the source code of this file.
Classes | |
struct | CompBuf |
Defines | |
#define | CB_RGBA 4 |
#define | CB_VEC4 4 |
#define | CB_VEC3 3 |
#define | CB_VEC2 2 |
#define | CB_VAL 1 |
#define | CHAN_R 0 |
#define | CHAN_G 1 |
#define | CHAN_B 2 |
#define | CHAN_A 3 |
#define | fRGB_clear(c) { c[0]=c[1]=c[2]=0.f; } |
#define | fRGB_copy(c1, c2) { c1[0]=c2[0]; c1[1]=c2[1]; c1[2]=c2[2]; c1[3]=c2[3]; } |
#define | fRGB_add(c1, c2) { c1[0]+=c2[0]; c1[1]+=c2[1]; c1[2]+=c2[2]; } |
#define | fRGB_sub(c1, c2) { c1[0]-=c2[0]; c1[1]-=c2[1]; c1[2]-=c2[2]; } |
#define | fRGB_mult(c, s) { c[0]*=s; c[1]*=s; c[2]*=s; } |
#define | fRGB_madd(c1, c2, s) { c1[0]+=c2[0]*s; c1[1]+=c2[1]*s; c1[2]+=c2[2]*s; } |
#define | fRGB_colormult(c, cs) { c[0]*=cs[0]; c[1]*=cs[1]; c[2]*=cs[2]; } |
#define | fRGB_colormadd(c1, c2, c3) { c1[0]+=c2[0]*c3[0]; c1[1]+=c2[1]*c3[1]; c1[2]+=c2[2]*c3[2]; } |
#define | fRGB_rgbmult(c, r, g, b) { c[0]*=(r); c[1]*=(g); c[2]*=(b); } |
#define | fRGB_swap(c1, c2) |
#define | CMP_SCALE_MAX 12000 |
Typedefs | |
typedef struct CompBuf | CompBuf |
typedef float | fRGB [4] |
Functions | |
CompBuf * | alloc_compbuf (int sizex, int sizey, int type, int alloc) |
CompBuf * | dupalloc_compbuf (CompBuf *cbuf) |
CompBuf * | pass_on_compbuf (CompBuf *cbuf) |
void | free_compbuf (CompBuf *cbuf) |
void | print_compbuf (char *str, CompBuf *cbuf) |
void | compbuf_set_node (struct CompBuf *cbuf, struct bNode *node) |
void | node_compo_pass_on (void *data, int thread, struct bNode *node, void *nodedata, struct bNodeStack **in, struct bNodeStack **out) |
CompBuf * | get_cropped_compbuf (rcti *drect, float *rectf, int rectx, int recty, int type) |
CompBuf * | scalefast_compbuf (CompBuf *inbuf, int newx, int newy) |
CompBuf * | typecheck_compbuf (CompBuf *inbuf, int type) |
void | typecheck_compbuf_color (float *out, float *in, int outtype, int intype) |
float * | compbuf_get_pixel (CompBuf *cbuf, float *defcol, float *use, int x, int y, int xrad, int yrad) |
void | composit1_pixel_processor (bNode *node, CompBuf *out, CompBuf *src_buf, float *src_col, void(*func)(bNode *, float *, float *), int src_type) |
void | composit2_pixel_processor (bNode *node, CompBuf *out, CompBuf *src_buf, float *src_col, CompBuf *fac_buf, float *fac, void(*func)(bNode *, float *, float *, float *), int src_type, int fac_type) |
void | composit3_pixel_processor (bNode *node, CompBuf *out, CompBuf *src1_buf, float *src1_col, CompBuf *src2_buf, float *src2_col, CompBuf *fac_buf, float *fac, void(*func)(bNode *, float *, float *, float *, float *), int src1_type, int src2_type, int fac_type) |
void | composit4_pixel_processor (bNode *node, CompBuf *out, CompBuf *src1_buf, float *src1_col, CompBuf *fac1_buf, float *fac1, CompBuf *src2_buf, float *src2_col, CompBuf *fac2_buf, float *fac2, void(*func)(bNode *, float *, float *, float *, float *, float *), int src1_type, int fac1_type, int src2_type, int fac2_type) |
CompBuf * | valbuf_from_rgbabuf (CompBuf *cbuf, int channel) |
void | generate_preview (void *data, bNode *node, CompBuf *stackbuf) |
void | do_copy_rgba (bNode *node, float *out, float *in) |
void | do_copy_rgb (bNode *node, float *out, float *in) |
void | do_copy_value (bNode *node, float *out, float *in) |
void | do_copy_a_rgba (bNode *node, float *out, float *in, float *fac) |
void | do_rgba_to_yuva (bNode *node, float *out, float *in) |
void | do_rgba_to_hsva (bNode *node, float *out, float *in) |
void | do_rgba_to_ycca (bNode *node, float *out, float *in) |
void | do_yuva_to_rgba (bNode *node, float *out, float *in) |
void | do_hsva_to_rgba (bNode *node, float *out, float *in) |
void | do_ycca_to_rgba (bNode *node, float *out, float *in) |
void | gamma_correct_compbuf (CompBuf *img, int inversed) |
void | premul_compbuf (CompBuf *img, int inversed) |
void | convolve (CompBuf *dst, CompBuf *in1, CompBuf *in2) |
void | node_ID_title_cb (void *node_v, void *unused_v) |
void | qd_getPixel (CompBuf *src, int x, int y, float *col) |
void | qd_setPixel (CompBuf *src, int x, int y, float *col) |
void | qd_addPixel (CompBuf *src, int x, int y, float *col) |
void | qd_multPixel (CompBuf *src, int x, int y, float f) |
void | qd_getPixelLerpWrap (CompBuf *src, float u, float v, float *col) |
void | qd_getPixelLerp (CompBuf *src, float u, float v, float *col) |
void | qd_getPixelLerpChan (CompBuf *src, float u, float v, int chan, float *out) |
CompBuf * | qd_downScaledCopy (CompBuf *src, int scale) |
void | IIR_gauss (CompBuf *src, float sigma, int chan, int xy) |
CompBuf * | node_composit_transform (CompBuf *cbuf, float x, float y, float angle, float scale, int filter_type) |
float * | node_composit_get_float_buffer (RenderData *rd, ImBuf *ibuf, int *alloc) |
Definition in file node_composite_util.h.
#define CB_RGBA 4 |
Definition at line 107 of file node_composite_util.h.
Referenced by alloc_compbuf(), compbuf_from_pass(), do_filter_edge(), exec(), fglow(), gamma_correct_compbuf(), generate_preview(), generate_procedural_preview(), node_composit_exec_alphaover(), node_composit_exec_bilateralblur(), node_composit_exec_blur(), node_composit_exec_brightcontrast(), node_composit_exec_channel_matte(), node_composit_exec_chroma_matte(), node_composit_exec_color_matte(), node_composit_exec_color_spill(), node_composit_exec_colorbalance(), node_composit_exec_combhsva(), node_composit_exec_combrgba(), node_composit_exec_combycca(), node_composit_exec_combyuva(), node_composit_exec_composite(), node_composit_exec_curve_rgb(), node_composit_exec_dblur(), node_composit_exec_defocus(), node_composit_exec_diff_matte(), node_composit_exec_displace(), node_composit_exec_distance_matte(), node_composit_exec_gamma(), node_composit_exec_glare(), node_composit_exec_hue_sat(), node_composit_exec_huecorrect(), node_composit_exec_image(), node_composit_exec_invert(), node_composit_exec_lensdist(), node_composit_exec_luma_matte(), node_composit_exec_mapuv(), node_composit_exec_mix_rgb(), node_composit_exec_output_file(), node_composit_exec_premulkey(), node_composit_exec_rgbtobw(), node_composit_exec_rlayers(), node_composit_exec_rotate(), node_composit_exec_scale(), node_composit_exec_sephsva(), node_composit_exec_seprgba(), node_composit_exec_sepycca(), node_composit_exec_sepyuva(), node_composit_exec_setalpha(), node_composit_exec_splitviewer(), node_composit_exec_stabilize2d(), node_composit_exec_texture(), node_composit_exec_tonemap(), node_composit_exec_transform(), node_composit_exec_valtorgb(), node_composit_exec_vecblur(), node_composit_exec_view_levels(), node_composit_exec_viewer(), node_composit_exec_zcombine(), node_composit_transform(), premul_compbuf(), qd_getPixel(), qd_setPixel(), texture_procedural(), typecheck_compbuf(), and typecheck_compbuf_color().
#define CB_VAL 1 |
Definition at line 111 of file node_composite_util.h.
Referenced by bloom_with_reference(), blur_with_reference(), compbuf_from_pass(), defocus_blur(), do_filter_edge(), IIR_gauss_single(), lensDistort(), node_composit_exec_alphaover(), node_composit_exec_bilateralblur(), node_composit_exec_blur(), node_composit_exec_brightcontrast(), node_composit_exec_color_spill(), node_composit_exec_colorbalance(), node_composit_exec_combhsva(), node_composit_exec_combrgba(), node_composit_exec_combycca(), node_composit_exec_combyuva(), node_composit_exec_composite(), node_composit_exec_curve_rgb(), node_composit_exec_defocus(), node_composit_exec_dilateerode(), node_composit_exec_displace(), node_composit_exec_doubleedgemask(), node_composit_exec_gamma(), node_composit_exec_hue_sat(), node_composit_exec_huecorrect(), node_composit_exec_idmask(), node_composit_exec_invert(), node_composit_exec_map_value(), node_composit_exec_math(), node_composit_exec_mix_rgb(), node_composit_exec_normal(), node_composit_exec_normalize(), node_composit_exec_output_file(), node_composit_exec_rgbtobw(), node_composit_exec_setalpha(), node_composit_exec_splitviewer(), node_composit_exec_texture(), node_composit_exec_valtorgb(), node_composit_exec_vecblur(), node_composit_exec_viewer(), node_composit_exec_zcombine(), node_composit_get_zimage(), qd_getPixel(), qd_getPixelLerp(), qd_getPixelLerpWrap(), qd_setPixel(), texture_procedural(), typecheck_compbuf(), typecheck_compbuf_color(), and valbuf_from_rgbabuf().
#define CB_VEC2 2 |
Definition at line 110 of file node_composite_util.h.
Referenced by alloc_compbuf(), node_composit_exec_bilateralblur(), node_composit_exec_blur(), qd_getPixel(), qd_setPixel(), typecheck_compbuf(), and typecheck_compbuf_color().
#define CB_VEC3 3 |
Definition at line 109 of file node_composite_util.h.
Referenced by alloc_compbuf(), compbuf_from_pass(), node_composit_exec_bilateralblur(), node_composit_exec_blur(), node_composit_exec_displace(), node_composit_exec_mapuv(), node_composit_exec_normal(), qd_getPixel(), qd_setPixel(), typecheck_compbuf(), and typecheck_compbuf_color().
#define CB_VEC4 4 |
Definition at line 108 of file node_composite_util.h.
Referenced by compbuf_from_pass(), and node_composit_exec_vecblur().
#define CHAN_A 3 |
Definition at line 117 of file node_composite_util.h.
Referenced by node_composit_exec_channel_matte(), node_composit_exec_chroma_matte(), node_composit_exec_color_matte(), node_composit_exec_diff_matte(), node_composit_exec_distance_matte(), node_composit_exec_image(), node_composit_exec_luma_matte(), node_composit_exec_rlayers(), node_composit_exec_sephsva(), node_composit_exec_seprgba(), node_composit_exec_sepycca(), node_composit_exec_sepyuva(), node_composit_exec_valtorgb(), and valbuf_from_rgbabuf().
#define CHAN_B 2 |
Definition at line 116 of file node_composite_util.h.
Referenced by node_composit_exec_sephsva(), node_composit_exec_seprgba(), node_composit_exec_sepycca(), and node_composit_exec_sepyuva().
#define CHAN_G 1 |
Definition at line 115 of file node_composite_util.h.
Referenced by node_composit_exec_sephsva(), node_composit_exec_seprgba(), node_composit_exec_sepycca(), and node_composit_exec_sepyuva().
#define CHAN_R 0 |
Definition at line 114 of file node_composite_util.h.
Referenced by node_composit_exec_sephsva(), node_composit_exec_seprgba(), node_composit_exec_sepycca(), node_composit_exec_sepyuva(), and valbuf_from_rgbabuf().
#define CMP_SCALE_MAX 12000 |
Definition at line 220 of file node_composite_util.h.
Referenced by node_composit_exec_scale().
#define fRGB_add | ( | c1, | |
c2 | |||
) | { c1[0]+=c2[0]; c1[1]+=c2[1]; c1[2]+=c2[2]; } |
Definition at line 188 of file node_composite_util.h.
Referenced by avgLogLum(), convolve(), and qd_downScaledCopy().
#define fRGB_clear | ( | c | ) | { c[0]=c[1]=c[2]=0.f; } |
Definition at line 184 of file node_composite_util.h.
#define fRGB_colormadd | ( | c1, | |
c2, | |||
c3 | |||
) | { c1[0]+=c2[0]*c3[0]; c1[1]+=c2[1]*c3[1]; c1[2]+=c2[2]*c3[2]; } |
Definition at line 198 of file node_composite_util.h.
#define fRGB_colormult | ( | c, | |
cs | |||
) | { c[0]*=cs[0]; c[1]*=cs[1]; c[2]*=cs[2]; } |
Definition at line 196 of file node_composite_util.h.
Referenced by convolve(), and ghosts().
#define fRGB_copy | ( | c1, | |
c2 | |||
) | { c1[0]=c2[0]; c1[1]=c2[1]; c1[2]=c2[2]; c1[3]=c2[3]; } |
Definition at line 186 of file node_composite_util.h.
Referenced by mixImages(), qd_downScaledCopy(), and tonemap().
#define fRGB_madd | ( | c1, | |
c2, | |||
s | |||
) | { c1[0]+=c2[0]*s; c1[1]+=c2[1]*s; c1[2]+=c2[2]*s; } |
Definition at line 194 of file node_composite_util.h.
#define fRGB_mult | ( | c, | |
s | |||
) | { c[0]*=s; c[1]*=s; c[2]*=s; } |
Definition at line 192 of file node_composite_util.h.
Referenced by avgLogLum(), fglow(), ghosts(), mixImages(), qd_downScaledCopy(), star4(), and tonemap().
Definition at line 200 of file node_composite_util.h.
#define fRGB_sub | ( | c1, | |
c2 | |||
) | { c1[0]-=c2[0]; c1[1]-=c2[1]; c1[2]-=c2[2]; } |
Definition at line 190 of file node_composite_util.h.
#define fRGB_swap | ( | c1, | |
c2 | |||
) |
{ float _t=c1[0]; c1[0]=c2[0]; c2[0]=_t;\
_t=c1[1]; c1[1]=c2[1]; c2[1]=_t;\
_t=c1[2]; c1[2]=c2[2]; c2[2]=_t;\
_t=c1[3]; c1[3]=c2[3]; c3[3]=_t;}
Definition at line 202 of file node_composite_util.h.
typedef float fRGB[4] |
Definition at line 182 of file node_composite_util.h.
CompBuf* alloc_compbuf | ( | int | sizex, |
int | sizey, | ||
int | type, | ||
int | alloc | ||
) |
Definition at line 35 of file node_composite_util.c.
References CB_RGBA, CB_VEC2, CB_VEC3, CompBuf::disprect, CompBuf::malloc, MEM_callocN(), MEM_mapallocN(), CompBuf::rect, CompBuf::type, CompBuf::x, rcti::xmax, rcti::xmin, CompBuf::xrad, CompBuf::y, rcti::ymax, rcti::ymin, and CompBuf::yrad.
Referenced by bloom_with_reference(), blur_single_image(), blur_with_reference(), compbuf_from_pass(), convolve(), defocus_blur(), dupalloc_compbuf(), exec(), fglow(), generate_procedural_preview(), get_cropped_compbuf(), node_composit_exec_alphaover(), node_composit_exec_bilateralblur(), node_composit_exec_blur(), node_composit_exec_color_spill(), node_composit_exec_colorbalance(), node_composit_exec_combhsva(), node_composit_exec_combrgba(), node_composit_exec_combycca(), node_composit_exec_combyuva(), node_composit_exec_composite(), node_composit_exec_crop(), node_composit_exec_curve_rgb(), node_composit_exec_defocus(), node_composit_exec_displace(), node_composit_exec_doubleedgemask(), node_composit_exec_filter(), node_composit_exec_flip(), node_composit_exec_gamma(), node_composit_exec_huecorrect(), node_composit_exec_idmask(), node_composit_exec_invert(), node_composit_exec_lensdist(), node_composit_exec_map_value(), node_composit_exec_mapuv(), node_composit_exec_math(), node_composit_exec_mix_rgb(), node_composit_exec_normal(), node_composit_exec_normalize(), node_composit_exec_rgbtobw(), node_composit_exec_rlayers(), node_composit_exec_rotate(), node_composit_exec_scale(), node_composit_exec_setalpha(), node_composit_exec_splitviewer(), node_composit_exec_texture(), node_composit_exec_valtorgb(), node_composit_exec_view_levels(), node_composit_exec_viewer(), node_composit_exec_zcombine(), node_composit_get_image(), node_composit_get_movieclip(), node_composit_get_zimage(), node_composit_transform(), pass_on_compbuf(), qd_downScaledCopy(), scalefast_compbuf(), streaks(), typecheck_compbuf(), and valbuf_from_rgbabuf().
float* compbuf_get_pixel | ( | CompBuf * | cbuf, |
float * | defcol, | ||
float * | use, | ||
int | x, | ||
int | y, | ||
int | xrad, | ||
int | yrad | ||
) |
Definition at line 405 of file node_composite_util.c.
References CompBuf::rect, CompBuf::rect_procedural, CompBuf::type, CompBuf::x, CompBuf::xof, CompBuf::xrad, CompBuf::y, CompBuf::yof, and CompBuf::yrad.
Referenced by blur_with_reference(), composit1_pixel_processor(), composit2_pixel_processor(), composit3_pixel_processor(), and composit4_pixel_processor().
Definition at line 128 of file node_composite_util.c.
References CompBuf::node.
Referenced by local_merge(), and localize().
void composit1_pixel_processor | ( | bNode * | node, |
CompBuf * | out, | ||
CompBuf * | src_buf, | ||
float * | src_col, | ||
void(*)(bNode *, float *, float *) | func, | ||
int | src_type | ||
) |
Definition at line 443 of file node_composite_util.c.
References MakeCursor::color, compbuf_get_pixel(), composit_check_compbuf(), free_compbuf(), CompBuf::rect, CompBuf::type, CompBuf::x, CompBuf::xrad, CompBuf::y, and CompBuf::yrad.
Referenced by node_composit_exec_channel_matte(), node_composit_exec_chroma_matte(), node_composit_exec_color_matte(), node_composit_exec_color_spill(), node_composit_exec_colorbalance(), node_composit_exec_composite(), node_composit_exec_curve_rgb(), node_composit_exec_distance_matte(), node_composit_exec_huecorrect(), node_composit_exec_invert(), node_composit_exec_luma_matte(), node_composit_exec_map_value(), node_composit_exec_normal(), node_composit_exec_rgbtobw(), node_composit_exec_sephsva(), node_composit_exec_sepycca(), node_composit_exec_sepyuva(), node_composit_exec_setalpha(), node_composit_exec_texture(), node_composit_exec_valtorgb(), and node_composit_exec_viewer().
void composit2_pixel_processor | ( | bNode * | node, |
CompBuf * | out, | ||
CompBuf * | src_buf, | ||
float * | src_col, | ||
CompBuf * | fac_buf, | ||
float * | fac, | ||
void(*)(bNode *, float *, float *, float *) | func, | ||
int | src_type, | ||
int | fac_type | ||
) |
Definition at line 469 of file node_composite_util.c.
References MakeCursor::color, compbuf_get_pixel(), composit_check_compbuf(), free_compbuf(), CompBuf::rect, CompBuf::type, CompBuf::x, CompBuf::xrad, CompBuf::y, and CompBuf::yrad.
Referenced by node_composit_exec_color_spill(), node_composit_exec_colorbalance(), node_composit_exec_composite(), node_composit_exec_curve_rgb(), node_composit_exec_diff_matte(), node_composit_exec_gamma(), node_composit_exec_hue_sat(), node_composit_exec_huecorrect(), node_composit_exec_invert(), node_composit_exec_math(), node_composit_exec_setalpha(), node_composit_exec_viewer(), and node_composit_exec_zcombine().
void composit3_pixel_processor | ( | bNode * | node, |
CompBuf * | out, | ||
CompBuf * | src1_buf, | ||
float * | src1_col, | ||
CompBuf * | src2_buf, | ||
float * | src2_col, | ||
CompBuf * | fac_buf, | ||
float * | fac, | ||
void(*)(bNode *, float *, float *, float *, float *) | func, | ||
int | src1_type, | ||
int | src2_type, | ||
int | fac_type | ||
) |
Definition at line 499 of file node_composite_util.c.
References MakeCursor::color, compbuf_get_pixel(), composit_check_compbuf(), free_compbuf(), CompBuf::rect, CompBuf::type, CompBuf::x, CompBuf::xrad, CompBuf::y, and CompBuf::yrad.
Referenced by node_composit_exec_alphaover(), node_composit_exec_brightcontrast(), node_composit_exec_mix_rgb(), node_composit_exec_normalize(), node_composit_exec_splitviewer(), and node_composit_exec_zcombine().
void composit4_pixel_processor | ( | bNode * | node, |
CompBuf * | out, | ||
CompBuf * | src1_buf, | ||
float * | src1_col, | ||
CompBuf * | fac1_buf, | ||
float * | fac1, | ||
CompBuf * | src2_buf, | ||
float * | src2_col, | ||
CompBuf * | fac2_buf, | ||
float * | fac2, | ||
void(*)(bNode *, float *, float *, float *, float *, float *) | func, | ||
int | src1_type, | ||
int | fac1_type, | ||
int | src2_type, | ||
int | fac2_type | ||
) |
Definition at line 534 of file node_composite_util.c.
References MakeCursor::color, compbuf_get_pixel(), composit_check_compbuf(), free_compbuf(), CompBuf::rect, CompBuf::type, CompBuf::x, CompBuf::xrad, CompBuf::y, and CompBuf::yrad.
Referenced by node_composit_exec_combhsva(), node_composit_exec_combrgba(), node_composit_exec_combycca(), node_composit_exec_combyuva(), and node_composit_exec_zcombine().
Definition at line 1007 of file node_composite_util.c.
References alloc_compbuf(), FHT2D(), fht_convolve(), free_compbuf(), fRGB_add, fRGB_colormult, MEM_callocN(), MEM_freeN(), nextPow2(), CompBuf::rect, CompBuf::type, CompBuf::x, and CompBuf::y.
Referenced by fglow().
void do_copy_a_rgba | ( | bNode * | node, |
float * | out, | ||
float * | in, | ||
float * | fac | ||
) |
void do_copy_rgb | ( | bNode * | node, |
float * | out, | ||
float * | in | ||
) |
void do_copy_rgba | ( | bNode * | node, |
float * | out, | ||
float * | in | ||
) |
void do_copy_value | ( | bNode * | node, |
float * | out, | ||
float * | in | ||
) |
void do_hsva_to_rgba | ( | bNode * | node, |
float * | out, | ||
float * | in | ||
) |
void do_rgba_to_hsva | ( | bNode * | node, |
float * | out, | ||
float * | in | ||
) |
void do_rgba_to_ycca | ( | bNode * | node, |
float * | out, | ||
float * | in | ||
) |
void do_rgba_to_yuva | ( | bNode * | node, |
float * | out, | ||
float * | in | ||
) |
void do_ycca_to_rgba | ( | bNode * | node, |
float * | out, | ||
float * | in | ||
) |
void do_yuva_to_rgba | ( | bNode * | node, |
float * | out, | ||
float * | in | ||
) |
Definition at line 64 of file node_composite_util.c.
References alloc_compbuf(), CompBuf::rect, CompBuf::type, CompBuf::x, CompBuf::xof, CompBuf::y, and CompBuf::yof.
Referenced by composit_check_compbuf(), dblur(), ghosts(), lensDistort(), node_composit_exec_bilateralblur(), node_composit_exec_blur(), node_composit_exec_brightcontrast(), node_composit_exec_channel_matte(), node_composit_exec_chroma_matte(), node_composit_exec_color_matte(), node_composit_exec_color_spill(), node_composit_exec_dblur(), node_composit_exec_defocus(), node_composit_exec_diff_matte(), node_composit_exec_dilateerode(), node_composit_exec_distance_matte(), node_composit_exec_glare(), node_composit_exec_hue_sat(), node_composit_exec_luma_matte(), node_composit_exec_premulkey(), node_composit_exec_scale(), node_composit_exec_sephsva(), node_composit_exec_sepycca(), node_composit_exec_sepyuva(), node_composit_exec_tonemap(), node_composit_exec_vecblur(), node_composit_exec_zcombine(), qd_downScaledCopy(), scalefast_compbuf(), star4(), and streaks().
void free_compbuf | ( | CompBuf * | cbuf | ) |
Definition at line 99 of file node_composite_util.c.
References CompBuf::malloc, MEM_freeN(), CompBuf::next, CompBuf::prev, and CompBuf::rect.
Referenced by bloom_with_reference(), blur_single_image(), blur_with_reference(), composit1_pixel_processor(), composit2_pixel_processor(), composit3_pixel_processor(), composit4_pixel_processor(), convolve(), dblur(), defocus_blur(), exec(), fglow(), free_node_cache(), freeExecutableNode(), generate_preview(), ghosts(), group_free_internal(), lensDistort(), node_composit_exec_bilateralblur(), node_composit_exec_blur(), node_composit_exec_brightcontrast(), node_composit_exec_channel_matte(), node_composit_exec_chroma_matte(), node_composit_exec_color_matte(), node_composit_exec_color_spill(), node_composit_exec_composite(), node_composit_exec_defocus(), node_composit_exec_diff_matte(), node_composit_exec_dilateerode(), node_composit_exec_displace(), node_composit_exec_distance_matte(), node_composit_exec_glare(), node_composit_exec_hue_sat(), node_composit_exec_luma_matte(), node_composit_exec_mapuv(), node_composit_exec_output_file(), node_composit_exec_premulkey(), node_composit_exec_rotate(), node_composit_exec_scale(), node_composit_exec_sephsva(), node_composit_exec_seprgba(), node_composit_exec_sepycca(), node_composit_exec_sepyuva(), node_composit_exec_splitviewer(), node_composit_exec_stabilize2d(), node_composit_exec_texture(), node_composit_exec_tonemap(), node_composit_exec_transform(), node_composit_exec_vecblur(), node_composit_exec_view_levels(), node_composit_exec_viewer(), node_composit_exec_zcombine(), setExecutableNodes(), star4(), and streaks().
void gamma_correct_compbuf | ( | CompBuf * | img, |
int | inversed | ||
) |
Definition at line 729 of file node_composite_util.c.
References CB_RGBA, CompBuf::rect, sqrt(), CompBuf::type, CompBuf::x, and CompBuf::y.
Referenced by node_composit_exec_blur(), and node_composit_exec_defocus().
Definition at line 616 of file node_composite_util.c.
References BLI_lock_thread(), BLI_unlock_thread(), CB_RGBA, RenderData::color_mgt_flag, data, free_compbuf(), generate_procedural_preview(), IB_PROFILE_LINEAR_RGB, IB_PROFILE_SRGB, IMB_buffer_byte_from_float(), LOCK_PREVIEW, MEM_callocN(), MEM_freeN(), NULL, bNode::preview, R_COLOR_MANAGEMENT, R_COLOR_MANAGEMENT_PREDIVIDE, bNodePreview::rect, CompBuf::rect, CompBuf::rect_procedural, scalefast_compbuf(), typecheck_compbuf(), CompBuf::x, bNodePreview::xsize, CompBuf::y, and bNodePreview::ysize.
Referenced by node_composit_exec_blur(), node_composit_exec_channel_matte(), node_composit_exec_chroma_matte(), node_composit_exec_color_matte(), node_composit_exec_composite(), node_composit_exec_diff_matte(), node_composit_exec_distance_matte(), node_composit_exec_filter(), node_composit_exec_image(), node_composit_exec_luma_matte(), node_composit_exec_mix_rgb(), node_composit_exec_movieclip(), node_composit_exec_output_file(), node_composit_exec_rlayers(), node_composit_exec_splitviewer(), node_composit_exec_texture(), node_composit_exec_view_levels(), and node_composit_exec_viewer().
Definition at line 160 of file node_composite_util.c.
References alloc_compbuf(), NULL, CompBuf::rect, CompBuf::x, rcti::xmax, rcti::xmin, CompBuf::y, rcti::ymax, and rcti::ymin.
Referenced by compbuf_from_pass(), node_composit_exec_crop(), node_composit_exec_rlayers(), node_composit_get_image(), node_composit_get_movieclip(), and node_composit_get_zimage().
void IIR_gauss | ( | CompBuf * | src, |
float | sigma, | ||
int | chan, | ||
int | xy | ||
) |
Definition at line 1308 of file node_composite_util.c.
References i, MAX2, MEM_callocN(), MEM_freeN(), CompBuf::rect, CompBuf::type, CompBuf::x, X, CompBuf::y, and YVV.
Referenced by ghosts(), lensDistort(), and node_composit_exec_blur().
void node_compo_pass_on | ( | void * | data, |
int | thread, | ||
struct bNode * | node, | ||
void * | nodedata, | ||
struct bNodeStack ** | in, | ||
struct bNodeStack ** | out | ||
) |
float* node_composit_get_float_buffer | ( | RenderData * | rd, |
ImBuf * | ibuf, | ||
int * | alloc | ||
) |
Definition at line 62 of file node_composite_image.c.
References RenderData::color_mgt_flag, FALSE, ImBuf::flags, IB_cm_predivide, IB_PROFILE_LINEAR_RGB, IB_PROFILE_NONE, IB_PROFILE_SRGB, IMB_buffer_float_from_float(), MEM_mapallocN(), ImBuf::profile, R_COLOR_MANAGEMENT, ImBuf::rect_float, TRUE, ImBuf::x, and ImBuf::y.
Referenced by node_composit_get_image(), and node_composit_get_movieclip().
CompBuf* node_composit_transform | ( | CompBuf * | cbuf, |
float | x, | ||
float | y, | ||
float | angle, | ||
float | scale, | ||
int | filter_type | ||
) |
Definition at line 51 of file node_composite_transform.c.
References add_v2_v2(), alloc_compbuf(), bicubic_interpolation(), bilinear_interpolation(), CB_RGBA, i, IMB_allocImBuf(), IMB_freeImBuf(), invert_m4(), invert_m4_m4(), mul_serie_m4(), mul_v3_m4v3(), neareast_interpolation(), NULL, CompBuf::rect, ImBuf::rect_float, rotate_m4(), size_to_mat4(), unit_m4(), CompBuf::x, and CompBuf::y.
Referenced by node_composit_exec_stabilize2d(), and node_composit_exec_transform().
void node_ID_title_cb | ( | void * | node_v, |
void * | unused_v | ||
) |
Definition at line 77 of file node_composite_util.c.
References alloc_compbuf(), CompBuf::malloc, CompBuf::next, NULL, CompBuf::prev, CompBuf::rect, CompBuf::type, CompBuf::x, CompBuf::xof, CompBuf::y, and CompBuf::yof.
Referenced by exec(), node_compo_pass_on(), node_composit_exec_blur(), node_composit_exec_colorbalance(), node_composit_exec_defocus(), node_composit_exec_huecorrect(), node_composit_exec_invert(), node_composit_exec_scale(), and node_composit_exec_translate().
void premul_compbuf | ( | CompBuf * | img, |
int | inversed | ||
) |
Definition at line 753 of file node_composite_util.c.
References CB_RGBA, credits_svn_gen::e, fabsf, CompBuf::rect, CompBuf::type, CompBuf::x, and CompBuf::y.
Referenced by node_composit_exec_defocus(), and node_composit_exec_premulkey().
void print_compbuf | ( | char * | str, |
CompBuf * | cbuf | ||
) |
Definition at line 122 of file node_composite_util.c.
References CompBuf::rect, CompBuf::x, and CompBuf::y.
void qd_addPixel | ( | CompBuf * | src, |
int | x, | ||
int | y, | ||
float * | col | ||
) |
Definition at line 1182 of file node_composite_util.c.
References CompBuf::rect, CompBuf::type, and CompBuf::x.
Definition at line 1268 of file node_composite_util.c.
References alloc_compbuf(), dupalloc_compbuf(), fRGB_add, fRGB_copy, fRGB_mult, if(), CompBuf::rect, CompBuf::type, CompBuf::x, and CompBuf::y.
Referenced by BTP().
void qd_getPixel | ( | CompBuf * | src, |
int | x, | ||
int | y, | ||
float * | col | ||
) |
Definition at line 1131 of file node_composite_util.c.
References CB_RGBA, CB_VAL, CB_VEC2, CB_VEC3, CompBuf::rect, CompBuf::rect_procedural, CompBuf::type, CompBuf::x, CompBuf::xrad, and CompBuf::yrad.
Referenced by brightness_mean(), brightness_standard_deviation(), do_displace(), fill_bins(), star4(), and streaks().
void qd_getPixelLerp | ( | CompBuf * | src, |
float | u, | ||
float | v, | ||
float * | col | ||
) |
Definition at line 1222 of file node_composite_util.c.
References B, CB_VAL, CompBuf::rect, CompBuf::type, CompBuf::x, and CompBuf::y.
Referenced by dblur(), ghosts(), lensDistort(), mixImages(), star4(), and streaks().
void qd_getPixelLerpChan | ( | CompBuf * | src, |
float | u, | ||
float | v, | ||
int | chan, | ||
float * | out | ||
) |
Definition at line 1247 of file node_composite_util.c.
References B, CompBuf::rect, CompBuf::type, CompBuf::x, and CompBuf::y.
Referenced by lensDistort().
void qd_getPixelLerpWrap | ( | CompBuf * | src, |
float | u, | ||
float | v, | ||
float * | col | ||
) |
Definition at line 1200 of file node_composite_util.c.
References CB_VAL, CompBuf::rect, CompBuf::type, CompBuf::x, and CompBuf::y.
Referenced by dblur().
void qd_multPixel | ( | CompBuf * | src, |
int | x, | ||
int | y, | ||
float | f | ||
) |
Definition at line 1191 of file node_composite_util.c.
References CompBuf::rect, CompBuf::type, and CompBuf::x.
void qd_setPixel | ( | CompBuf * | src, |
int | x, | ||
int | y, | ||
float * | col | ||
) |
Definition at line 1167 of file node_composite_util.c.
References CB_RGBA, CB_VAL, CB_VEC2, CB_VEC3, CompBuf::rect, CompBuf::type, and CompBuf::x.
Referenced by do_displace(), draw_histogram(), fglow(), ghosts(), and star4().
Definition at line 182 of file node_composite_util.c.
References alloc_compbuf(), dupalloc_compbuf(), CompBuf::rect, CompBuf::type, CompBuf::x, and CompBuf::y.
Referenced by generate_preview().
Definition at line 290 of file node_composite_util.c.
References alloc_compbuf(), CB_RGBA, CB_VAL, CB_VEC2, CB_VEC3, copy_v3_v3(), CompBuf::node, CompBuf::procedural_offset, CompBuf::procedural_size, CompBuf::procedural_type, CompBuf::rect, CompBuf::rect_procedural, CompBuf::type, CompBuf::x, CompBuf::xof, CompBuf::y, and CompBuf::yof.
Referenced by blur_with_reference(), composit_check_compbuf(), exec(), generate_preview(), node_composit_exec_bilateralblur(), node_composit_exec_blur(), node_composit_exec_brightcontrast(), node_composit_exec_channel_matte(), node_composit_exec_chroma_matte(), node_composit_exec_color_matte(), node_composit_exec_color_spill(), node_composit_exec_dblur(), node_composit_exec_defocus(), node_composit_exec_diff_matte(), node_composit_exec_dilateerode(), node_composit_exec_displace(), node_composit_exec_distance_matte(), node_composit_exec_glare(), node_composit_exec_hue_sat(), node_composit_exec_luma_matte(), node_composit_exec_mapuv(), node_composit_exec_output_file(), node_composit_exec_premulkey(), node_composit_exec_rotate(), node_composit_exec_scale(), node_composit_exec_sephsva(), node_composit_exec_seprgba(), node_composit_exec_sepycca(), node_composit_exec_sepyuva(), node_composit_exec_splitviewer(), node_composit_exec_stabilize2d(), node_composit_exec_tonemap(), node_composit_exec_transform(), node_composit_exec_vecblur(), and node_composit_exec_view_levels().
void typecheck_compbuf_color | ( | float * | out, |
float * | in, | ||
int | outtype, | ||
int | intype | ||
) |
Definition at line 221 of file node_composite_util.c.
References CB_RGBA, CB_VAL, CB_VEC2, and CB_VEC3.
Referenced by texture_procedural().
Definition at line 574 of file node_composite_util.c.
References alloc_compbuf(), CB_VAL, CHAN_A, CHAN_R, CompBuf::rect, CompBuf::x, CompBuf::xof, CompBuf::y, and CompBuf::yof.
Referenced by node_composit_exec_channel_matte(), node_composit_exec_chroma_matte(), node_composit_exec_color_matte(), node_composit_exec_diff_matte(), node_composit_exec_distance_matte(), node_composit_exec_image(), node_composit_exec_luma_matte(), node_composit_exec_rlayers(), node_composit_exec_sephsva(), node_composit_exec_seprgba(), node_composit_exec_sepycca(), node_composit_exec_sepyuva(), and node_composit_exec_valtorgb().