|
Blender
V2.93
|
Go to the source code of this file.
Enumerations | |
| enum | { CURVEMAP_SLOPE_NEGATIVE = 0 , CURVEMAP_SLOPE_POSITIVE = 1 , CURVEMAP_SLOPE_POS_NEG = 2 } |
| anonymous enum |
| Enumerator | |
|---|---|
| CURVEMAP_SLOPE_NEGATIVE | |
| CURVEMAP_SLOPE_POSITIVE | |
| CURVEMAP_SLOPE_POS_NEG | |
Definition at line 56 of file BKE_colortools.h.
| void BKE_color_managed_colorspace_settings_copy | ( | struct ColorManagedColorspaceSettings * | colorspace_settings, |
| const struct ColorManagedColorspaceSettings * | settings | ||
| ) |
Referenced by BKE_scene_duplicate(), image_copy_data(), image_save_post(), movie_clip_copy_data(), and scene_copy_data().
| bool BKE_color_managed_colorspace_settings_equals | ( | const struct ColorManagedColorspaceSettings * | settings1, |
| const struct ColorManagedColorspaceSettings * | settings2 | ||
| ) |
Referenced by image_save_post().
| void BKE_color_managed_colorspace_settings_init | ( | struct ColorManagedColorspaceSettings * | colorspace_settings | ) |
Definition at line 1846 of file colortools.c.
References BLI_strncpy(), and ColorManagedColorspaceSettings::name.
Referenced by image_init(), and movie_clip_init_data().
| void BKE_color_managed_display_settings_copy | ( | struct ColorManagedDisplaySettings * | new_settings, |
| const struct ColorManagedDisplaySettings * | settings | ||
| ) |
| void BKE_color_managed_display_settings_init | ( | struct ColorManagedDisplaySettings * | settings | ) |
Definition at line 1753 of file colortools.c.
References BLI_strncpy(), ColorManagedDisplaySettings::display_device, and IMB_colormanagement_display_get_default_name().
Referenced by BKE_imformat_defaults(), blo_do_versions_280(), and scene_init_data().
| void BKE_color_managed_view_settings_blend_read_data | ( | struct BlendDataReader * | reader, |
| struct ColorManagedViewSettings * | settings | ||
| ) |
Definition at line 1836 of file colortools.c.
References BKE_curvemapping_blend_read(), BLO_read_data_address, and ColorManagedViewSettings::curve_mapping.
Referenced by scene_blend_read_data().
| void BKE_color_managed_view_settings_blend_write | ( | struct BlendWriter * | writer, |
| struct ColorManagedViewSettings * | settings | ||
| ) |
Definition at line 1828 of file colortools.c.
References BKE_curvemapping_blend_write(), and ColorManagedViewSettings::curve_mapping.
Referenced by scene_blend_write().
| void BKE_color_managed_view_settings_copy | ( | struct ColorManagedViewSettings * | new_settings, |
| const struct ColorManagedViewSettings * | settings | ||
| ) |
| void BKE_color_managed_view_settings_free | ( | struct ColorManagedViewSettings * | settings | ) |
Definition at line 1820 of file colortools.c.
References BKE_curvemapping_free(), ColorManagedViewSettings::curve_mapping, and NULL.
Referenced by GPU_viewport_colorspace_set(), GPU_viewport_free(), image_save_as_free(), image_save_exec(), image_save_options_from_op(), image_save_options_init(), image_save_options_to_op(), preview_prepare_scene(), render_freejob(), and scene_free_data().
| void BKE_color_managed_view_settings_init_default | ( | struct ColorManagedViewSettings * | settings, |
| const struct ColorManagedDisplaySettings * | display_settings | ||
| ) |
Definition at line 1793 of file colortools.c.
References IMB_colormanagement_init_default_view_settings().
Referenced by BKE_imformat_defaults().
| void BKE_color_managed_view_settings_init_render | ( | struct ColorManagedViewSettings * | settings, |
| const struct ColorManagedDisplaySettings * | display_settings, | ||
| const char * | view_transform | ||
| ) |
Referenced by blo_do_versions_280(), drw_viewport_colormanagement_set(), and scene_init_data().
| float BKE_curvemap_evaluateF | ( | const struct CurveMapping * | cumap, |
| const struct CurveMap * | cuma, | ||
| float | value | ||
| ) |
Referenced by curve_mapping_apply_pixel().
| void BKE_curvemap_handle_set | ( | CurveMap * | cuma, |
| int | type | ||
| ) |
| type | eBezTriple_Handle |
Definition at line 445 of file colortools.c.
References Freestyle::a, CUMA_HANDLE_AUTO_ANIM, CUMA_HANDLE_VECTOR, CUMA_SELECT, CurveMap::curve, CurveMapPoint::flag, HD_AUTO_ANIM, HD_VECT, CurveMap::totpoint, and type.
Referenced by curvemap_tools_dofunc().
| struct CurveMapPoint* BKE_curvemap_insert | ( | struct CurveMap * | cuma, |
| float | x, | ||
| float | y | ||
| ) |
Definition at line 240 of file colortools.c.
References Freestyle::a, CUMA_SELECT, curve, CurveMap::curve, CurveMapPoint::flag, MEM_callocN, MEM_freeN, NULL, CurveMapPoint::shorty, CurveMap::totpoint, x, CurveMapPoint::x, y, and CurveMapPoint::y.
Referenced by ui_do_but_CURVE().
| void BKE_curvemap_remove | ( | struct CurveMap * | cuma, |
| const short | flag | ||
| ) |
Definition at line 217 of file colortools.c.
References Freestyle::a, CurveMap::curve, CurveMapPoint::flag, MEM_freeN, MEM_mallocN, and CurveMap::totpoint.
Referenced by BKE_curvemapping_changed(), and curvemap_buttons_delete().
| bool BKE_curvemap_remove_point | ( | struct CurveMap * | cuma, |
| struct CurveMapPoint * | cmp | ||
| ) |
Definition at line 187 of file colortools.c.
References Freestyle::a, CurveMap::curve, MEM_freeN, MEM_mallocN, and CurveMap::totpoint.
| void BKE_curvemap_reset | ( | struct CurveMap * | cuma, |
| const struct rctf * | clipr, | ||
| int | preset, | ||
| int | slope | ||
| ) |
Referenced by BKE_brush_curve_preset(), BKE_paint_cavity_curve_preset(), BKE_texture_pointdensity_init_data(), blo_do_versions_270(), blo_do_versions_280(), blo_update_defaults_scene(), curvemap_buttons_reset(), curvemap_tools_dofunc(), ED_gpencil_add_defaults(), hue_correct_init_data(), initData(), node_composit_init_huecorrect(), render_shutter_curve_preset_exec(), and scene_init_data().
| struct CurveMapping* BKE_curvemapping_add | ( | int | tot, |
| float | minx, | ||
| float | miny, | ||
| float | maxx, | ||
| float | maxy | ||
| ) |
Definition at line 88 of file colortools.c.
References BKE_curvemapping_set_defaults(), and MEM_callocN.
Referenced by BKE_brush_curve_preset(), BKE_brush_init_gpencil_settings(), BKE_linestyle_alpha_modifier_add(), BKE_linestyle_thickness_modifier_add(), BKE_paint_cavity_curve_preset(), BKE_particlesettings_clump_curve_init(), BKE_particlesettings_rough_curve_init(), BKE_particlesettings_twist_curve_init(), BKE_texture_pointdensity_init_data(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_pre250(), blo_update_defaults_scene(), deformVerts_do(), ED_gpencil_add_defaults(), gpencil_interpolate_seq_exec(), initData(), light_init_data(), node_composit_init_curve_rgb(), node_composit_init_curve_vec(), node_composit_init_curves_time(), node_composit_init_huecorrect(), node_shader_init_curve_rgb(), node_shader_init_curve_vec(), rgb_init(), scene_init_data(), time_init(), and warpModifier_do().
| void BKE_curvemapping_blend_read | ( | struct BlendDataReader * | reader, |
| struct CurveMapping * | cumap | ||
| ) |
Definition at line 1252 of file colortools.c.
References Freestyle::a, BLO_read_data_address, CurveMapping::cm, CM_TOT, CUMA_PREMULLED, CurveMap::curve, CurveMapping::flag, NULL, CurveMap::premultable, and CurveMap::table.
Referenced by BKE_color_managed_view_settings_blend_read_data(), BKE_gpencil_modifier_blend_read_data(), BKE_paint_blend_read_data(), blendRead(), brush_blend_read_data(), direct_link_linestyle_alpha_modifier(), direct_link_linestyle_thickness_modifier(), light_blend_read_data(), ntreeBlendReadData(), particle_settings_blend_read_data(), scene_blend_read_data(), and SEQ_modifier_blend_read_data().
| void BKE_curvemapping_blend_write | ( | struct BlendWriter * | writer, |
| const struct CurveMapping * | cumap | ||
| ) |
Referenced by BKE_gpencil_modifier_blend_write(), BKE_paint_blend_write(), blendWrite(), brush_blend_write(), light_blend_write(), ntreeBlendWrite(), particle_settings_blend_write(), scene_blend_write(), SEQ_modifier_blend_write(), write_linestyle_alpha_modifiers(), and write_linestyle_thickness_modifiers().
| void BKE_curvemapping_changed | ( | struct CurveMapping * | cumap, |
| const bool | rem_doubles | ||
| ) |
Definition at line 877 of file colortools.c.
References Freestyle::a, BKE_curvemap_remove(), BLI_rctf_size_x(), BLI_rctf_size_y(), CurveMapping::changed_timestamp, CurveMapping::clipr, CurveMapping::cm, CUMA_DO_CLIP, CUMA_HANDLE_VECTOR, CUMA_SELECT, CurveMapping::cur, CurveMapping::curr, CurveMap::curve, curvemap_make_table(), CurveMapPoint::flag, CurveMapping::flag, max_ff(), min_ff(), sort_curvepoints(), sqrtf, CurveMap::totpoint, x, CurveMapPoint::x, rctf::xmax, rctf::xmin, y, CurveMapPoint::y, rctf::ymax, and rctf::ymin.
Referenced by BKE_brush_curve_preset(), BKE_curvemapping_changed_all(), BKE_paint_cavity_curve_preset(), BKE_texture_pointdensity_init_data(), curvemap_buttons_delete(), curvemap_buttons_reset(), curvemap_buttons_setclip(), curvemap_buttons_update(), curvemap_tools_dofunc(), Freestyle_evaluateCurveMappingF(), render_shutter_curve_preset_exec(), ui_do_but_CURVE(), ui_draw_but_CURVE(), and ui_numedit_but_CURVE().
| void BKE_curvemapping_changed_all | ( | struct CurveMapping * | cumap | ) |
Definition at line 954 of file colortools.c.
References Freestyle::a, BKE_curvemapping_changed(), CurveMapping::cm, CM_TOT, CurveMapping::cur, and CurveMap::curve.
Referenced by do_guides(), psys_thread_context_init_path(), and vector_curve_node_remap().
| struct CurveMapping* BKE_curvemapping_copy | ( | const struct CurveMapping * | cumap | ) |
Referenced by BKE_linestyle_alpha_modifier_copy(), BKE_linestyle_thickness_modifier_copy(), BKE_paint_copy(), BKE_texture_pointdensity_copy(), BKE_toolsettings_copy(), brush_copy_data(), copyData(), GPU_viewport_colorspace_set(), IMB_colormanagement_display_processor_new(), light_copy_data(), node_copy_curves(), particle_settings_copy_data(), psys_thread_context_init_path(), blender::compositor::CurveBaseOperation::setCurveMapping(), and update_glsl_curve_mapping().
| void BKE_curvemapping_copy_data | ( | struct CurveMapping * | target, |
| const struct CurveMapping * | cumap | ||
| ) |
| void BKE_curvemapping_curves_blend_write | ( | struct BlendWriter * | writer, |
| const struct CurveMapping * | cumap | ||
| ) |
Referenced by scene_blend_write().
| void BKE_curvemapping_evaluate3F | ( | const struct CurveMapping * | cumap, |
| float | vecout[3], | ||
| const float | vecin[3] | ||
| ) |
Referenced by node_shader_exec_curve_vec().
| void BKE_curvemapping_evaluate_premulRGB | ( | const struct CurveMapping * | cumap, |
| unsigned char | vecout_byte[3], | ||
| const unsigned char | vecin_byte[3] | ||
| ) |
| void BKE_curvemapping_evaluate_premulRGBF | ( | const struct CurveMapping * | cumap, |
| float | vecout[3], | ||
| const float | vecin[3] | ||
| ) |
Referenced by curve_mapping_apply_pixel(), curves_apply_threaded(), blender::compositor::ConstantLevelColorCurveOperation::executePixelSampled(), blender::compositor::VectorCurveOperation::executePixelSampled(), IMB_colormanagement_processor_apply_v3(), IMB_colormanagement_processor_apply_v4(), and IMB_colormanagement_processor_apply_v4_predivide().
| void BKE_curvemapping_evaluate_premulRGBF_ex | ( | const struct CurveMapping * | cumap, |
| float | vecout[3], | ||
| const float | vecin[3], | ||
| const float | black[3], | ||
| const float | bwmul[3] | ||
| ) |
| float BKE_curvemapping_evaluateF | ( | const struct CurveMapping * | cumap, |
| int | cur, | ||
| float | value | ||
| ) |
Referenced by BKE_brush_curve_strength(), BKE_curvemapping_integrate_clamped(), BKE_gpencil_multiframe_falloff_calc(), blender::compositor::TimeNode::convertToOperations(), deformStroke(), density_falloff(), do_clump_level(), do_rough_curve(), blender::compositor::HueSaturationValueCorrectOperation::executePixelSampled(), Freestyle_evaluateCurveMappingF(), gpencil_apply_randomness(), gpencil_hook_falloff(), gpencil_interpolate_seq_exec(), gpencil_primitive_update_strokes(), gpencil_sbuffer_vertex_color_random(), gpencil_stroke_addpoint(), hook_falloff(), hue_correct_apply_threaded(), project_paint_uvpixel_mask(), time_colorfn(), warpModifier_do(), and weightvg_do_map().
| void BKE_curvemapping_evaluateRGBF | ( | const struct CurveMapping * | cumap, |
| float | vecout[3], | ||
| const float | vecin[3] | ||
| ) |
Referenced by node_shader_exec_curve_rgb(), and rgb_colorfn().
| void BKE_curvemapping_free | ( | struct CurveMapping * | cumap | ) |
Definition at line 119 of file colortools.c.
References BKE_curvemapping_free_data(), and MEM_freeN.
Referenced by BKE_color_managed_view_settings_free(), BKE_linestyle_alpha_modifier_remove(), BKE_linestyle_thickness_modifier_remove(), BKE_paint_free(), BKE_texture_pointdensity_free_data(), BKE_toolsettings_free(), brush_free_data(), colormanagement_exit(), copyData(), blender::compositor::CurveBaseOperation::deinitExecution(), freeData(), IMB_colormanagement_processor_free(), light_free_data(), node_free_curves(), particle_settings_free_data(), psys_thread_context_free(), blender::compositor::CurveBaseOperation::setCurveMapping(), update_glsl_curve_mapping(), and blender::compositor::CurveBaseOperation::~CurveBaseOperation().
| void BKE_curvemapping_free_data | ( | struct CurveMapping * | cumap | ) |
Definition at line 99 of file colortools.c.
References Freestyle::a, CurveMapping::cm, CM_TOT, CurveMap::curve, MEM_freeN, NULL, CurveMap::premultable, and CurveMap::table.
Referenced by BKE_curvemapping_free(), BKE_scene_duplicate(), curves_free_data(), hue_correct_free_data(), RE_FreeRender(), render_copy_renderdata(), scene_free_data(), ui_but_clipboard_free(), ui_but_copy_curvemapping(), and ui_but_paste_curvemapping().
| void BKE_curvemapping_init | ( | struct CurveMapping * | cumap | ) |
Definition at line 1200 of file colortools.c.
References Freestyle::a, CurveMapping::cm, CM_TOT, curvemap_make_table(), NULL, and CurveMap::table.
Referenced by BKE_brush_gen_radial_control_imbuf(), BKE_gpencil_brush_preset_set(), BKE_gpencil_modifier_blend_read_data(), BKE_particlesettings_clump_curve_init(), BKE_particlesettings_rough_curve_init(), BKE_particlesettings_twist_curve_init(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_pre250(), blo_update_defaults_scene(), cloth_brush_apply_brush_foces(), blender::compositor::TimeNode::convertToOperations(), createTransGPencil(), curve_mapping_to_ocio_settings(), curves_apply(), deformVerts_do(), density_falloff(), do_displacement_eraser_brush(), do_displacement_smear_brush(), do_draw_brush(), do_draw_sharp_brush(), do_slide_relax_brush(), ED_gpencil_add_defaults(), Freestyle_evaluateCurveMappingF(), gpencil_init_drawing_brush(), gpencil_interpolate_seq_exec(), gpencil_primitive_update_strokes(), gpencil_sculpt_brush_init(), gpencil_vertexpaint_brush_init(), gpencil_weightpaint_brush_init(), gpu_shader_curve_rgb(), hue_correct_apply(), initData(), blender::compositor::CurveBaseOperation::initExecution(), light_init_data(), load_tex_cursor(), node_initexec_curves(), paint_stroke_new(), paint_weight_gradient_exec(), radial_control_paint_curve(), scene_init_data(), sculpt_boundary_falloff_factor_init(), SCULPT_do_draw_face_sets_brush(), SCULPT_do_paint_brush(), SCULPT_do_smear_brush(), sculpt_expand_cache_initial_config_set(), sculpt_pose_do_translate_deform(), sculpt_pose_do_twist_deform(), sculpt_update_cache_invariants(), time_colorfn(), uv_sculpt_stroke_init(), warpModifier_do(), and weightvg_do_map().
| void BKE_curvemapping_premultiply | ( | struct CurveMapping * | cumap, |
| int | restore | ||
| ) |
Definition at line 805 of file colortools.c.
References Freestyle::a, BKE_curvemap_evaluateF(), CurveMapping::cm, CM_TABLE, copy_v2_v2(), CUMA_PREMULLED, curvemap_make_table(), CurveMap::ext_in, CurveMap::ext_out, CurveMapping::flag, MEM_freeN, MEM_mallocN, mul_v2_v2(), NULL, CurveMap::premul_ext_in, CurveMap::premul_ext_out, CurveMap::premultable, CurveMap::table, CurveMapPoint::y, and zero_v2().
Referenced by curve_mapping_to_ocio_settings(), curves_apply(), IMB_colormanagement_display_processor_new(), blender::compositor::ColorCurveOperation::initExecution(), and blender::compositor::ConstantLevelColorCurveOperation::initExecution().
| void BKE_curvemapping_reset_view | ( | struct CurveMapping * | cumap | ) |
Definition at line 969 of file colortools.c.
References CurveMapping::clipr, and CurveMapping::curr.
Referenced by curvemap_tools_dofunc().
| bool BKE_curvemapping_RGBA_does_something | ( | const struct CurveMapping * | cumap | ) |
| void BKE_curvemapping_set_black_white | ( | struct CurveMapping * | cumap, |
| const float | black[3], | ||
| const float | white[3] | ||
| ) |
Definition at line 168 of file colortools.c.
References BKE_curvemapping_set_black_white_ex(), CurveMapping::black, CurveMapping::bwmul, CurveMapping::changed_timestamp, copy_v3_v3(), and CurveMapping::white.
Referenced by curvemap_buttons_reset(), curves_apply(), image_sample_apply(), and blender::compositor::ConstantLevelColorCurveOperation::initExecution().
| void BKE_curvemapping_set_black_white_ex | ( | const float | black[3], |
| const float | white[3], | ||
| float | r_bwmul[3] | ||
| ) |
Definition at line 156 of file colortools.c.
References Freestyle::a, and max_ff().
Referenced by BKE_curvemapping_set_black_white(), and blender::compositor::ColorCurveOperation::executePixelSampled().
| void BKE_curvemapping_set_defaults | ( | struct CurveMapping * | cumap, |
| int | tot, | ||
| float | minx, | ||
| float | miny, | ||
| float | maxx, | ||
| float | maxy | ||
| ) |
Definition at line 53 of file colortools.c.
References Freestyle::a, BLI_rctf_init(), CurveMapping::bwmul, CurveMapping::changed_timestamp, CurveMapping::clipr, CurveMapping::cm, CUMA_DO_CLIP, CUMA_EXTEND_EXTRAPOLATE, CurveMapping::cur, CurveMapping::curr, CurveMap::curve, CurveMapping::flag, max_ff(), MEM_callocN, min_ff(), CurveMap::totpoint, CurveMapping::white, CurveMapPoint::x, and CurveMapPoint::y.
Referenced by BKE_curvemapping_add(), BKE_gpencil_brush_preset_set(), blo_do_versions_270(), curves_init_data(), hue_correct_init_data(), and scene_init_data().
| void BKE_curvemapping_table_RGBA | ( | const struct CurveMapping * | cumap, |
| float ** | array, | ||
| int * | size | ||
| ) |
Referenced by curve_mapping_to_ocio_settings(), gpu_shader_curve_rgb(), and gpu_shader_curve_vec().
| void BKE_histogram_update_sample_line | ( | struct Histogram * | hist, |
| struct ImBuf * | ibuf, | ||
| const struct ColorManagedViewSettings * | view_settings, | ||
| const struct ColorManagedDisplaySettings * | display_settings | ||
| ) |
Referenced by image_buttons_region_draw(), and image_sample_line_exec().
| void BKE_scopes_free | ( | struct Scopes * | scopes | ) |
Definition at line 1717 of file colortools.c.
References MEM_freeN, NULL, Scopes::vecscope, Scopes::waveform_1, Scopes::waveform_2, and Scopes::waveform_3.
Referenced by image_free().
| void BKE_scopes_new | ( | struct Scopes * | scopes | ) |
Definition at line 1737 of file colortools.c.
References Scopes::accuracy, Histogram::height, Scopes::hist, HISTO_MODE_RGB, Histogram::mode, NULL, Scopes::ok, Scopes::vecscope, Scopes::vecscope_alpha, Scopes::vecscope_height, Scopes::waveform_1, Scopes::waveform_2, Scopes::waveform_3, Scopes::wavefrm_alpha, and Scopes::wavefrm_height.
Referenced by blo_do_versions_250(), image_create(), and image_duplicate().
| void BKE_scopes_update | ( | struct Scopes * | scopes, |
| struct ImBuf * | ibuf, | ||
| const struct ColorManagedViewSettings * | view_settings, | ||
| const struct ColorManagedDisplaySettings * | display_settings | ||
| ) |
Referenced by ED_space_image_scopes_update().