|
Blender V5.0
|
#include "BLI_colorspace.hh"#include "BLI_math_color.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "IMB_colormanagement_intern.hh"Go to the source code of this file.
Definition at line 88 of file colormanagement_inline.h.
References blender::colorspace::aces_to_scene_linear, mul_v3_m3v3(), and ptr.
Referenced by Color_from_aces_to_scene_linear().
Definition at line 98 of file colormanagement_inline.h.
References blender::colorspace::acescg_to_scene_linear, mul_v3_m3v3(), and ptr.
Referenced by Color_from_acescg_to_scene_linear().
Convert a float RGB triplet to the correct luminance weighted average.
Gray-scale, or Luma is a distillation of RGB data values down to a weighted average based on the luminance positions of the red, green, and blue primaries. Given that the internal reference space may be arbitrarily set, any effort to glean the luminance coefficients must be aware of the reference space primaries.
See http://wiki.blender.org/index.php/User:Nazg-gul/ColorManagement#Luminance
Definition at line 23 of file colormanagement_inline.h.
References dot_v3v3(), and blender::colorspace::luma_coefficients.
Referenced by BKE_histogram_update_sample_line(), blender::bke::color_to_bool(), blender::bke::color_to_float(), blender::bke::color_to_int(), do_projectpaint_soften(), do_projectpaint_soften_f(), blender::color::get_luminance(), blender::nodes::node_fn_compare_cc::get_multi_function(), image_exr_from_rgb_to_bw(), IMB_color_to_bw(), paint_2d_lift_soften(), RE_texture_evaluate(), rgbtobw_valuefn(), scopes_update_cb(), blender::seq::tonemap_calc_chunk_luminance(), blender::seq::tonemap_rd_photoreceptor(), and ui_draw_but_CURVE().
Byte equivalent of IMB_colormanagement_get_luminance().
Definition at line 28 of file colormanagement_inline.h.
References dot_v3v3(), blender::colorspace::luma_coefficients, rgb_uchar_to_float(), and unit_float_to_uchar_clamp().
Referenced by BKE_histogram_update_sample_line(), blender::color::get_luminance(), and IMB_color_to_bw().
| void IMB_colormanagement_get_luminance_coefficients | ( | float | r_rgb[3] | ) |
Definition at line 18 of file colormanagement_inline.h.
References copy_v3_v3(), and blender::colorspace::luma_coefficients.
Referenced by blender::nodes::node_composite_tonemap_cc::ToneMapOperation::compute_average_log_luminance(), blender::nodes::node_composite_tonemap_cc::ToneMapOperation::compute_average_luminance(), blender::nodes::node_composite_tonemap_cc::ToneMapOperation::compute_log_maximum_luminance(), blender::nodes::node_composite_tonemap_cc::ToneMapOperation::compute_log_minimum_luminance(), blender::nodes::node_composite_levels_cc::LevelsOperation::compute_sum(), blender::nodes::node_composite_levels_cc::LevelsOperation::compute_sum_squared_difference(), blender::compositor::ConversionOperation::execute(), blender::nodes::node_composite_tonemap_cc::ToneMapOperation::execute_photoreceptor_cpu(), blender::nodes::node_composite_tonemap_cc::ToneMapOperation::execute_photoreceptor_gpu(), blender::nodes::node_composite_levels_cc::LevelsOperation::execute_single_value(), blender::compositor::get_luminance_coefficients(), blender::nodes::node_shader_rgb_to_bw_cc::gpu_shader_rgbtobw(), blender::imbuf::imb_oiio_write(), blender::nodes::node_composite_colorcorrection_cc::node_build_multi_function(), blender::nodes::node_composite_luma_matte_cc::node_build_multi_function(), blender::nodes::node_composite_rgb_to_bw_cc::node_build_multi_function(), blender::nodes::node_composite_colorcorrection_cc::node_gpu_material(), blender::nodes::node_composite_luma_matte_cc::node_gpu_material(), blender::nodes::node_composite_rgb_to_bw_cc::node_gpu_material(), and blender::ed::vse::sequencer_draw_scopes().
Definition at line 108 of file colormanagement_inline.h.
References mul_v3_m3v3(), ptr, and blender::colorspace::rec2020_to_scene_linear.
Referenced by Color_from_rec2020_linear_to_scene_linear().
Definition at line 49 of file colormanagement_inline.h.
References copy_v3_v3(), mul_v3_m3v3(), ptr, blender::colorspace::rec709_to_scene_linear, and blender::colorspace::scene_linear_is_rec709.
Referenced by checker_board_color_fill(), Color_from_rec709_linear_to_scene_linear(), blender::draw::AttributeConverter< ColorGeometry4b >::convert(), IMB_colormanagement_blackbody_temperature_to_rgb(), blender::draw::gpencil::list_sort_do(), blender::workbench::Material::Material(), blender::draw::particle_mcol_convert(), and blender::draw::particle_pack_mcol().
Definition at line 93 of file colormanagement_inline.h.
References mul_v3_m3v3(), ptr, and blender::colorspace::scene_linear_to_aces.
Referenced by Color_from_scene_linear_to_aces().
Definition at line 103 of file colormanagement_inline.h.
References mul_v3_m3v3(), ptr, and blender::colorspace::scene_linear_to_acescg.
Referenced by Color_from_scene_linear_to_acescg().
Definition at line 113 of file colormanagement_inline.h.
References mul_v3_m3v3(), ptr, and blender::colorspace::scene_linear_to_rec2020.
Referenced by Color_from_scene_linear_to_rec2020_linear().
Definition at line 59 of file colormanagement_inline.h.
References copy_v3_v3(), mul_v3_m3v3(), ptr, blender::colorspace::scene_linear_is_rec709, and blender::colorspace::scene_linear_to_rec709.
Referenced by Color_from_scene_linear_to_rec709_linear().
Conversion between sRGB, for rare cases like hex color or copy/pasting between UI theme and scene linear colors.
Definition at line 69 of file colormanagement_inline.h.
References copy_v3_v3(), linearrgb_to_srgb_v3_v3(), mul_v3_m3v3(), ptr, blender::colorspace::scene_linear_is_rec709, and blender::colorspace::scene_linear_to_rec709.
Referenced by brush_painter_imbuf_new(), brush_painter_imbuf_update(), Color_from_scene_linear_to_srgb(), do_projectpaint_draw(), do_projectpaint_thread(), drop_color_invoke(), blender::ed::sculpt_paint::grease_pencil_brush_cursor_draw(), IMB_rectfill_area(), paint_proj_stroke_ps(), palette_extract_img_exec(), ui_block_colorpicker(), UI_tooltip_color_field_add(), and ui_update_color_picker_buts_rgba().
Definition at line 44 of file colormanagement_inline.h.
References mul_v3_m3v3(), ptr, and blender::colorspace::scene_linear_to_xyz.
Referenced by Color_from_scene_linear_to_xyz_d65(), and IMB_colormanagement_set_whitepoint().
Definition at line 80 of file colormanagement_inline.h.
References mul_m3_v3(), ptr, blender::colorspace::rec709_to_scene_linear, blender::colorspace::scene_linear_is_rec709, and srgb_to_linearrgb_v3_v3().
Referenced by BKE_gpencil_palette_ensure(), BKE_image_stamp_buf(), BKE_palette_from_hash(), blf_draw_buffer__start(), Color_from_srgb_to_scene_linear(), drop_color_invoke(), eyedropper_color_sample_fl(), image_buf_fill_checker_slice(), blender::ed::space_node::node_add_color_exec(), ui_colorpicker_hex_rna_cb(), ui_do_but_COLOR(), and UI_tooltip_color_field_add().
Conversion between scene linear and other color spaces.
Definition at line 39 of file colormanagement_inline.h.
References mul_v3_m3v3(), ptr, and blender::colorspace::xyz_to_scene_linear.
Referenced by Color_from_xyz_d65_to_scene_linear(), IMB_colormanagement_get_whitepoint(), and IMB_colormanagement_wavelength_to_rgb().