|
Blender
V2.59
|
Go to the source code of this file.
Functions | |
| void | hsv_to_rgb (float h, float s, float v, float *r, float *g, float *b) |
| void | rgb_to_yuv (float r, float g, float b, float *ly, float *lu, float *lv) |
| void | yuv_to_rgb (float y, float u, float v, float *lr, float *lg, float *lb) |
| void | rgb_to_ycc (float r, float g, float b, float *ly, float *lcb, float *lcr, int colorspace) |
| void | ycc_to_rgb (float y, float cb, float cr, float *lr, float *lg, float *lb, int colorspace) |
| void | hex_to_rgb (char *hexcol, float *r, float *g, float *b) |
| void | rgb_to_hsv (float r, float g, float b, float *lh, float *ls, float *lv) |
| void | rgb_to_hsv_compat (float r, float g, float b, float *lh, float *ls, float *lv) |
| void | xyz_to_rgb (float xc, float yc, float zc, float *r, float *g, float *b, int colorspace) |
| unsigned int | hsv_to_cpack (float h, float s, float v) |
| unsigned int | rgb_to_cpack (float r, float g, float b) |
| void | cpack_to_rgb (unsigned int col, float *r, float *g, float *b) |
| void | rgb_byte_to_float (const unsigned char *in, float *out) |
| void | rgb_float_to_byte (const float *in, unsigned char *out) |
| void | gamma_correct (float *c, float gamma) |
| float | rec709_to_linearrgb (float c) |
| float | linearrgb_to_rec709 (float c) |
| float | srgb_to_linearrgb (float c) |
| float | linearrgb_to_srgb (float c) |
| void | srgb_to_linearrgb_v3_v3 (float *col_to, float *col_from) |
| void | linearrgb_to_srgb_v3_v3 (float *col_to, float *col_from) |
| void | srgb_to_linearrgb_rgba_buf (float *col, int tot) |
| void | linearrgb_to_srgb_rgba_buf (float *col, int tot) |
| void | srgb_to_linearrgb_rgba_rgba_buf (float *col_to, float *col_from, int tot) |
| void | linearrgb_to_srgb_rgba_rgba_buf (float *col_to, float *col_from, int tot) |
| void | minmax_rgb (short c[]) |
| int | constrain_rgb (float *r, float *g, float *b) |
| float | rgb_to_grayscale (float rgb[3]) |
| unsigned char | rgb_to_grayscale_byte (unsigned char rgb[3]) |
| void | lift_gamma_gain_to_asc_cdl (float *lift, float *gamma, float *gain, float *offset, float *slope, float *power) |
| void | rgb_float_set_hue_float_offset (float rgb[3], float hue_offset) |
| void | rgb_byte_set_hue_float_offset (unsigned char rgb[3], float hue_offset) |
Definition in file math_color.c.
| int constrain_rgb | ( | float * | r, |
| float * | g, | ||
| float * | b | ||
| ) |
Definition at line 465 of file math_color.c.
References g, and simple_enum_gen::w.
| void cpack_to_rgb | ( | unsigned int | col, |
| float * | r, | ||
| float * | g, | ||
| float * | b | ||
| ) |
Definition at line 325 of file math_color.c.
| void gamma_correct | ( | float * | c, |
| float | gamma | ||
| ) |
Definition at line 361 of file math_color.c.
References powf.
| void hex_to_rgb | ( | char * | hexcol, |
| float * | r, | ||
| float * | g, | ||
| float * | b | ||
| ) |
| unsigned int hsv_to_cpack | ( | float | h, |
| float | s, | ||
| float | v | ||
| ) |
Definition at line 294 of file math_color.c.
References g, and hsv_to_rgb().
| void hsv_to_rgb | ( | float | h, |
| float | s, | ||
| float | v, | ||
| float * | r, | ||
| float * | g, | ||
| float * | b | ||
| ) |
Definition at line 37 of file math_color.c.
Referenced by BKE_image_buf_fill_checker(), checker_board_color_fill(), Color_setChannelHSV(), Color_setHSV(), do_comb_hsva(), do_hsv_rna_cb(), do_hsva_to_rgba(), do_hue_sat_fac(), do_huecorrect(), do_huecorrect_fac(), getcolor_fcurve_rainbow(), hsv_to_cpack(), input_preprocess(), ramp_blend(), rgb_float_set_hue_float_offset(), ui_do_but_BLOCK(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_draw_but_HSVCIRCLE(), ui_draw_gradient(), ui_numedit_but_HSVCIRCLE(), ui_numedit_but_HSVCUBE(), ui_picker_small_wheel_cb(), ui_set_but_hsv(), and ui_set_but_val().
| void lift_gamma_gain_to_asc_cdl | ( | float * | lift, |
| float * | gamma, | ||
| float * | gain, | ||
| float * | offset, | ||
| float * | slope, | ||
| float * | power | ||
| ) |
Definition at line 498 of file math_color.c.
References FLT_MAX.
| float linearrgb_to_rec709 | ( | float | c | ) |
Definition at line 374 of file math_color.c.
References powf.
| float linearrgb_to_srgb | ( | float | c | ) |
Definition at line 390 of file math_color.c.
References powf.
Referenced by bake_shade(), colorbalance_lgg(), fill_bins(), floatbuf_to_srgb_byte(), image_buffer_rect_update(), imb_cocoaSaveImage(), IMB_convert_profile(), IMB_rect_from_float(), linearrgb_to_srgb_v3_v3(), nodeAddToPreview(), RE_ResultGet32(), ui_draw_but_HSV_v(), and ui_draw_but_HSVCIRCLE().
| void linearrgb_to_srgb_rgba_buf | ( | float * | col, |
| int | tot | ||
| ) |
Definition at line 421 of file math_color.c.
References linearrgb_to_srgb_v3_v3().
| void linearrgb_to_srgb_rgba_rgba_buf | ( | float * | col_to, |
| float * | col_from, | ||
| int | tot | ||
| ) |
Definition at line 439 of file math_color.c.
References linearrgb_to_srgb_v3_v3().
Referenced by do_render_seq(), IMB_float_profile_ensure(), and node_composit_get_image().
| void linearrgb_to_srgb_v3_v3 | ( | float * | col_to, |
| float * | col_from | ||
| ) |
Definition at line 405 of file math_color.c.
References linearrgb_to_srgb().
Referenced by add_tface_color_layer(), BlenderWorldInfo::BlenderWorldInfo(), draw_image_info(), draw_nodespace_color_info(), draw_tface__set_draw_legacy(), ED_view3d_draw_offscreen(), fill_bins(), gpu_material_to_fixed(), image_new_exec(), IMB_partial_rect_from_float(), linearrgb_to_srgb_rgba_buf(), linearrgb_to_srgb_rgba_rgba_buf(), sample_line_exec(), scopes_update(), ui_draw_but_COLORBAND(), ui_update_block_buts_rgb(), uiBlockPicker(), view3d_main_area_draw(), and widget_swatch().
| void minmax_rgb | ( | short | c[] | ) |
Definition at line 449 of file math_color.c.
| float rec709_to_linearrgb | ( | float | c | ) |
Definition at line 366 of file math_color.c.
References powf.
| void rgb_byte_set_hue_float_offset | ( | unsigned char | rgb[3], |
| float | hue_offset | ||
| ) |
Definition at line 528 of file math_color.c.
References rgb_byte_to_float(), rgb_float_set_hue_float_offset(), and rgb_float_to_byte().
| void rgb_byte_to_float | ( | const unsigned char * | in, |
| float * | out | ||
| ) |
Definition at line 338 of file math_color.c.
Referenced by acf_generic_channel_color(), input_preprocess(), and rgb_byte_set_hue_float_offset().
| void rgb_float_set_hue_float_offset | ( | float | rgb[3], |
| float | hue_offset | ||
| ) |
Definition at line 514 of file math_color.c.
References hsv_to_rgb(), and rgb_to_hsv().
| void rgb_float_to_byte | ( | const float * | in, |
| unsigned char * | out | ||
| ) |
Definition at line 345 of file math_color.c.
References g.
Referenced by draw_new_particle_system(), draw_object(), draw_pose_bones(), drawRBpivot(), get_seq_color3ubv(), input_preprocess(), and rgb_byte_set_hue_float_offset().
| unsigned int rgb_to_cpack | ( | float | r, |
| float | g, | ||
| float | b | ||
| ) |
Definition at line 311 of file math_color.c.
| float rgb_to_grayscale | ( | float | rgb[3] | ) |
Definition at line 486 of file math_color.c.
Referenced by IMB_color_to_bw(), and shade_lamp_loop_only_shadow().
| unsigned char rgb_to_grayscale_byte | ( | unsigned char | rgb[3] | ) |
Definition at line 491 of file math_color.c.
Referenced by IMB_color_to_bw().
| void rgb_to_hsv | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float * | lh, | ||
| float * | ls, | ||
| float * | lv | ||
| ) |
Definition at line 203 of file math_color.c.
References g.
Referenced by Color_getChannelHSV(), Color_getHSV(), Color_setChannelHSV(), do_hue_sat_fac(), do_huecorrect(), do_huecorrect_fac(), do_rgba_to_hsva(), do_sephsva(), draw_image_info(), draw_nodespace_color_info(), input_preprocess(), node_composit_exec_sephsva(), ramp_blend(), rgb_float_set_hue_float_offset(), rgb_to_hsv_compat(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_draw_but_HSV_v(), ui_get_but_val(), ui_set_but_val(), and uiBlockPicker().
| void rgb_to_hsv_compat | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float * | lh, | ||
| float * | ls, | ||
| float * | lv | ||
| ) |
Definition at line 247 of file math_color.c.
References rgb_to_hsv().
Referenced by ui_do_but_BLOCK(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_draw_but_HSVCIRCLE(), ui_draw_but_HSVCUBE(), ui_numedit_but_HSVCIRCLE(), ui_numedit_but_HSVCUBE(), ui_picker_small_wheel_cb(), and ui_update_block_buts_rgb().
| void rgb_to_ycc | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float * | ly, | ||
| float * | lcb, | ||
| float * | lcr, | ||
| int | colorspace | ||
| ) |
Definition at line 117 of file math_color.c.
References assert, BLI_YCC_ITU_BT601, BLI_YCC_ITU_BT709, BLI_YCC_JFIF_0_255, and g.
Referenced by do_normalized_rgba_to_ycca2(), do_rgba_to_ycca(), do_rgba_to_ycca_normalized(), do_sepycca_601(), do_sepycca_709(), do_sepycca_jfif(), node_composit_exec_sepycca(), and scopes_update().
| void rgb_to_yuv | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float * | ly, | ||
| float * | lu, | ||
| float * | lv | ||
| ) |
Definition at line 91 of file math_color.c.
Referenced by brightness_mean(), brightness_standard_deviation(), do_rgba_to_yuva(), do_sepyuva(), draw_image_info(), draw_nodespace_color_info(), fill_bins(), make_vectorscope_view_from_ibuf_byte(), make_vectorscope_view_from_ibuf_float(), node_composit_exec_sepyuva(), save_sample_line(), vectorscope_draw_target(), and vectorscope_put_cross().
| float srgb_to_linearrgb | ( | float | c | ) |
Definition at line 382 of file math_color.c.
References powf.
Referenced by colorbalance_lgg(), IMB_convert_profile(), imb_float_from_rect_linear(), imb_save_openexr_half(), srgb_to_linearrgb_v3_v3(), and ui_numedit_but_HSVCUBE().
| void srgb_to_linearrgb_rgba_buf | ( | float * | col, |
| int | tot | ||
| ) |
Definition at line 413 of file math_color.c.
References srgb_to_linearrgb_v3_v3().
| void srgb_to_linearrgb_rgba_rgba_buf | ( | float * | col_to, |
| float * | col_from, | ||
| int | tot | ||
| ) |
Definition at line 429 of file math_color.c.
References srgb_to_linearrgb_v3_v3().
Referenced by do_render_seq(), IMB_float_profile_ensure(), and node_composit_get_image().
| void srgb_to_linearrgb_v3_v3 | ( | float * | col_to, |
| float * | col_from | ||
| ) |
Definition at line 398 of file math_color.c.
References srgb_to_linearrgb().
Referenced by brush_imbuf_new(), do_halo_tex(), do_hex_rna_cb(), do_lamp_tex(), do_material_tex(), do_projectpaint_draw_f(), do_sky_tex(), do_versions(), eyedropper_sample(), multitex_nodes(), shade_input_set_shade_texco(), shade_input_set_strand_texco(), srgb_to_linearrgb_rgba_buf(), and srgb_to_linearrgb_rgba_rgba_buf().
| void xyz_to_rgb | ( | float | xc, |
| float | yc, | ||
| float | zc, | ||
| float * | r, | ||
| float * | g, | ||
| float * | b, | ||
| int | colorspace | ||
| ) |
Definition at line 269 of file math_color.c.
References BLI_XYZ_CIE, BLI_XYZ_REC709_SRGB, and BLI_XYZ_SMPTE.
Referenced by shadeSunView().
| void ycc_to_rgb | ( | float | y, |
| float | cb, | ||
| float | cr, | ||
| float * | lr, | ||
| float * | lg, | ||
| float * | lb, | ||
| int | colorspace | ||
| ) |
Definition at line 155 of file math_color.c.
References assert, BLI_YCC_ITU_BT601, BLI_YCC_ITU_BT709, BLI_YCC_JFIF_0_255, and g.
Referenced by do_comb_ycca_601(), do_comb_ycca_709(), do_comb_ycca_jfif(), do_normalized_ycca_to_rgba2(), do_ycca_to_rgba(), do_ycca_to_rgba_normalized(), and node_composit_exec_combycca().
| void yuv_to_rgb | ( | float | y, |
| float | u, | ||
| float | v, | ||
| float * | lr, | ||
| float * | lg, | ||
| float * | lb | ||
| ) |
Definition at line 103 of file math_color.c.
References g.
Referenced by do_comb_yuva(), and do_yuva_to_rgba().