|
Blender V4.3
|
#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.
Functions | |
| void | IMB_colormanagement_get_luminance_coefficients (float r_rgb[3]) |
| float | IMB_colormanagement_get_luminance (const float rgb[3]) |
| uchar | IMB_colormanagement_get_luminance_byte (const uchar rgb[3]) |
| void | IMB_colormanagement_xyz_to_scene_linear (float scene_linear[3], const float xyz[3]) |
| void | IMB_colormanagement_scene_linear_to_xyz (float xyz[3], const float scene_linear[3]) |
| void | IMB_colormanagement_rec709_to_scene_linear (float scene_linear[3], const float rec709[3]) |
| void | IMB_colormanagement_scene_linear_to_rec709 (float rec709[3], const float scene_linear[3]) |
| void | IMB_colormanagement_scene_linear_to_srgb_v3 (float srgb[3], const float scene_linear[3]) |
| void | IMB_colormanagement_srgb_to_scene_linear_v3 (float scene_linear[3], const float srgb[3]) |
| void | IMB_colormanagement_aces_to_scene_linear (float scene_linear[3], const float aces[3]) |
| void | IMB_colormanagement_scene_linear_to_aces (float aces[3], const float scene_linear[3]) |
Definition at line 70 of file colormanagement_inline.h.
References imbuf_aces_to_scene_linear, and mul_v3_m3v3().
Referenced by Color_from_aces_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 22 of file colormanagement_inline.h.
References dot_v3v3(), and imbuf_luma_coefficients.
Referenced by BKE_histogram_update_sample_line(), blender::compositor::calc_area_luminance(), do_projectpaint_soften(), do_projectpaint_soften_f(), blender::color::get_luminance(), image_exr_from_rgb_to_bw(), IMB_color_to_bw(), paint_2d_lift_soften(), RE_texture_evaluate(), rgbtobw_valuefn(), scopes_update_cb(), blender::compositor::CalculateMeanOperation::set_setting(), tonemap_calc_chunk_luminance(), tonemap_rd_photoreceptor(), ui_draw_but_CURVE(), blender::compositor::ConvertColorToBWOperation::update_memory_buffer_partial(), blender::compositor::LuminanceMatteOperation::update_memory_buffer_partial(), blender::compositor::PhotoreceptorTonemapOperation::update_memory_buffer_partial(), and blender::compositor::ColorCorrectionOperation::update_memory_buffer_row().
| uchar IMB_colormanagement_get_luminance_byte | ( | const unsigned char | rgb[3] | ) |
Byte equivalent of IMB_colormanagement_get_luminance().
Definition at line 27 of file colormanagement_inline.h.
References dot_v3v3(), imbuf_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 17 of file colormanagement_inline.h.
References copy_v3_v3(), and imbuf_luma_coefficients.
Referenced by blender::nodes::node_composite_colorcorrection_cc::ColorCorrectionShaderNode::compile(), blender::nodes::node_composite_luma_matte_cc::LuminanceMatteShaderNode::compile(), blender::nodes::node_composite_rgb_to_bw_cc::RGBToBWShaderNode::compile(), 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::nodes::node_composite_tonemap_cc::ToneMapOperation::execute_photoreceptor(), blender::nodes::node_composite_levels_cc::LevelsOperation::execute_single_value(), blender::imbuf::imb_oiio_write(), blender::ed::seq::make_waveform_view_from_ibuf(), blender::realtime_compositor::set_shader_luminance_coefficients(), and blender::compositor::SMAAOperation::update_memory_buffer().
Definition at line 48 of file colormanagement_inline.h.
References imbuf_rec709_to_scene_linear, and mul_v3_m3v3().
Referenced by Color_from_rec709_linear_to_scene_linear(), and IMB_colormanagement_blackbody_temperature_to_rgb().
Definition at line 75 of file colormanagement_inline.h.
References imbuf_scene_linear_to_aces, and mul_v3_m3v3().
Referenced by Color_from_scene_linear_to_aces().
Definition at line 53 of file colormanagement_inline.h.
References imbuf_scene_linear_to_rec709, and mul_v3_m3v3().
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 58 of file colormanagement_inline.h.
References imbuf_scene_linear_to_rec709, linearrgb_to_srgb_v3_v3(), and mul_v3_m3v3().
Referenced by Color_from_scene_linear_to_srgb(), drop_color_invoke(), paint_brush_color_get(), blender::ed::sculpt_paint::sample_color_invoke(), ui_block_colorpicker(), ui_do_but_COLOR(), and ui_update_color_picker_buts_rgba().
Definition at line 43 of file colormanagement_inline.h.
References imbuf_scene_linear_to_xyz, and mul_v3_m3v3().
Referenced by Color_from_scene_linear_to_xyz_d65(), and IMB_colormanagement_set_whitepoint().
Definition at line 64 of file colormanagement_inline.h.
References imbuf_rec709_to_scene_linear, mul_m3_v3(), and srgb_to_linearrgb_v3_v3().
Referenced by blender::ed::sculpt_paint::expand::cache_initial_config_set(), Color_from_srgb_to_scene_linear(), blender::ed::sculpt_paint::color::do_paint_brush_task(), drop_color_invoke(), eyedropper_color_sample_fl(), blender::ed::sculpt_paint::color::sculpt_color_filter_apply(), ui_colorpicker_hex_rna_cb(), ui_do_but_COLOR(), and vpaint_get_current_col().
Conversion between scene linear and other color spaces.
Definition at line 38 of file colormanagement_inline.h.
References imbuf_xyz_to_scene_linear, and mul_v3_m3v3().
Referenced by Color_from_xyz_d65_to_scene_linear(), IMB_colormanagement_get_whitepoint(), and IMB_colormanagement_wavelength_to_rgb().