|
Blender
V2.59
|
#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_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_colortools.h"#include "BKE_global.h"#include "BKE_image.h"#include "BKE_main.h"#include "BKE_material.h"#include "BKE_node.h"#include "BKE_texture.h"#include "BKE_library.h"#include "BKE_object.h"#include "../CMP_node.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"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) |
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 (struct bNode *node, struct bNodeStack **nsin, struct bNodeStack **nsout) |
| 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) |
| 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) |
Definition in file CMP_util.h.
| #define CB_RGBA 4 |
Definition at line 102 of file CMP_util.h.
Referenced by alloc_compbuf(), compbuf_from_pass(), do_filter_edge(), 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_texture(), node_composit_exec_tonemap(), node_composit_exec_valtorgb(), node_composit_exec_vecblur(), node_composit_exec_view_levels(), node_composit_exec_viewer(), node_composit_exec_zcombine(), premul_compbuf(), qd_getPixel(), qd_setPixel(), texture_procedural(), typecheck_compbuf(), and typecheck_compbuf_color().
| #define CB_VAL 1 |
Definition at line 106 of file CMP_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_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 105 of file CMP_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 104 of file CMP_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 103 of file CMP_util.h.
Referenced by compbuf_from_pass(), and node_composit_exec_vecblur().
| #define CHAN_A 3 |
Definition at line 112 of file CMP_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 111 of file CMP_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 110 of file CMP_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 109 of file CMP_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 fRGB_add | ( | c1, | |
| c2 | |||
| ) | { c1[0]+=c2[0]; c1[1]+=c2[1]; c1[2]+=c2[2]; } |
Definition at line 181 of file CMP_util.h.
Referenced by avgLogLum(), convolve(), and qd_downScaledCopy().
| #define fRGB_clear | ( | c | ) | { c[0]=c[1]=c[2]=0.f; } |
Definition at line 177 of file CMP_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 191 of file CMP_util.h.
| #define fRGB_colormult | ( | c, | |
| cs | |||
| ) | { c[0]*=cs[0]; c[1]*=cs[1]; c[2]*=cs[2]; } |
Definition at line 189 of file CMP_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 179 of file CMP_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 187 of file CMP_util.h.
| #define fRGB_mult | ( | c, | |
| s | |||
| ) | { c[0]*=s; c[1]*=s; c[2]*=s; } |
Definition at line 185 of file CMP_util.h.
Referenced by avgLogLum(), fglow(), ghosts(), mixImages(), qd_downScaledCopy(), star4(), and tonemap().
Definition at line 193 of file CMP_util.h.
| #define fRGB_sub | ( | c1, | |
| c2 | |||
| ) | { c1[0]-=c2[0]; c1[1]-=c2[1]; c1[2]-=c2[2]; } |
Definition at line 183 of file CMP_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 195 of file CMP_util.h.
| typedef float fRGB[4] |
Definition at line 175 of file CMP_util.h.
| CompBuf* alloc_compbuf | ( | int | sizex, |
| int | sizey, | ||
| int | type, | ||
| int | alloc | ||
| ) |
Definition at line 37 of file CMP_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(), 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_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_zimage(), pass_on_compbuf(), qd_downScaledCopy(), scalefast_compbuf(), streaks(), typecheck_compbuf(), and valbuf_from_rgbabuf().
Definition at line 130 of file CMP_util.c.
References CompBuf::node.
Referenced by ntreeLocalize(), and ntreeLocalMerge().
| 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 448 of file CMP_util.c.
References MakeCursor::color, compbuf_get_pixel(), free_compbuf(), CompBuf::rect, CompBuf::type, typecheck_compbuf(), 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 474 of file CMP_util.c.
References MakeCursor::color, compbuf_get_pixel(), free_compbuf(), CompBuf::rect, CompBuf::type, typecheck_compbuf(), 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 504 of file CMP_util.c.
References MakeCursor::color, compbuf_get_pixel(), free_compbuf(), CompBuf::rect, CompBuf::type, typecheck_compbuf(), 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 539 of file CMP_util.c.
References MakeCursor::color, compbuf_get_pixel(), free_compbuf(), CompBuf::rect, CompBuf::type, typecheck_compbuf(), 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 1011 of file CMP_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 66 of file CMP_util.c.
References alloc_compbuf(), CompBuf::rect, CompBuf::type, CompBuf::x, CompBuf::xof, CompBuf::y, and CompBuf::yof.
Referenced by 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 101 of file CMP_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(), composit_free_node_cache(), convolve(), dblur(), defocus_blur(), fglow(), freeExecutableNode(), generate_preview(), 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_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_texture(), node_composit_exec_tonemap(), node_composit_exec_vecblur(), node_composit_exec_view_levels(), node_composit_exec_viewer(), node_composit_exec_zcombine(), node_group_execute(), ntreeEndExecTree(), setExecutableNodes(), star4(), and streaks().
| void gamma_correct_compbuf | ( | CompBuf * | img, |
| int | inversed | ||
| ) |
Definition at line 733 of file CMP_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 621 of file CMP_util.c.
References BLI_lock_thread(), BLI_unlock_thread(), CB_RGBA, RenderData::color_mgt_flag, floatbuf_to_byte(), floatbuf_to_srgb_byte(), free_compbuf(), generate_procedural_preview(), LOCK_PREVIEW, MEM_callocN(), MEM_freeN(), NULL, bNode::preview, R_COLOR_MANAGEMENT, CompBuf::rect, bNodePreview::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_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 177 of file CMP_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(), and node_composit_get_zimage().
| void IIR_gauss | ( | CompBuf * | src, |
| float | sigma, | ||
| int | chan, | ||
| int | xy | ||
| ) |
Definition at line 1312 of file CMP_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 | ( | struct bNode * | node, |
| struct bNodeStack ** | nsin, | ||
| struct bNodeStack ** | nsout | ||
| ) |
Definition at line 136 of file CMP_util.c.
References bNodeStack::data, ListBase::first, bNode::inputs, bNodeSocket::next, NULL, bNode::outputs, pass_on_compbuf(), SOCK_RGBA, SOCK_VALUE, SOCK_VECTOR, bNodeSocket::type, and CompBuf::type.
Referenced by exec_composite_node().
| void node_ID_title_cb | ( | void * | node_v, |
| void * | unused_v | ||
| ) |
Definition at line 79 of file CMP_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 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 757 of file CMP_util.c.
References CB_RGBA, fabs(), 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 124 of file CMP_util.c.
References CompBuf::rect, CompBuf::x, and CompBuf::y.
| void qd_addPixel | ( | CompBuf * | src, |
| int | x, | ||
| int | y, | ||
| float * | col | ||
| ) |
Definition at line 1186 of file CMP_util.c.
References CompBuf::rect, CompBuf::type, and CompBuf::x.
Definition at line 1272 of file CMP_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 1135 of file CMP_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 1226 of file CMP_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 1251 of file CMP_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 1204 of file CMP_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 1195 of file CMP_util.c.
References CompBuf::rect, CompBuf::type, and CompBuf::x.
| void qd_setPixel | ( | CompBuf * | src, |
| int | x, | ||
| int | y, | ||
| float * | col | ||
| ) |
Definition at line 1171 of file CMP_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 199 of file CMP_util.c.
References alloc_compbuf(), dupalloc_compbuf(), CompBuf::rect, CompBuf::type, CompBuf::x, and CompBuf::y.
Referenced by generate_preview().
Definition at line 307 of file CMP_util.c.
References alloc_compbuf(), CB_RGBA, CB_VAL, CB_VEC2, CB_VEC3, CompBuf::node, CompBuf::procedural_offset, CompBuf::procedural_size, CompBuf::procedural_type, CompBuf::rect, CompBuf::rect_procedural, CompBuf::type, VECCOPY, CompBuf::x, CompBuf::xof, CompBuf::y, and CompBuf::yof.
Referenced by blur_with_reference(), composit1_pixel_processor(), composit2_pixel_processor(), composit3_pixel_processor(), composit4_pixel_processor(), 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_tonemap(), 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 238 of file CMP_util.c.
References CB_RGBA, CB_VAL, CB_VEC2, and CB_VEC3.
Referenced by texture_procedural().
Definition at line 579 of file CMP_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().