Blender V4.3
colormanagement_inline.h File Reference

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])
 

Function Documentation

◆ IMB_colormanagement_aces_to_scene_linear()

void IMB_colormanagement_aces_to_scene_linear ( float scene_linear[3],
const float aces[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().

◆ IMB_colormanagement_get_luminance()

◆ IMB_colormanagement_get_luminance_byte()

uchar IMB_colormanagement_get_luminance_byte ( const unsigned char rgb[3])

◆ IMB_colormanagement_get_luminance_coefficients()

◆ IMB_colormanagement_rec709_to_scene_linear()

void IMB_colormanagement_rec709_to_scene_linear ( float scene_linear[3],
const float rec709[3] )

◆ IMB_colormanagement_scene_linear_to_aces()

void IMB_colormanagement_scene_linear_to_aces ( float aces[3],
const float scene_linear[3] )

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().

◆ IMB_colormanagement_scene_linear_to_rec709()

void IMB_colormanagement_scene_linear_to_rec709 ( float rec709[3],
const float scene_linear[3] )

◆ IMB_colormanagement_scene_linear_to_srgb_v3()

void IMB_colormanagement_scene_linear_to_srgb_v3 ( float srgb[3],
const float scene_linear[3] )

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().

◆ IMB_colormanagement_scene_linear_to_xyz()

void IMB_colormanagement_scene_linear_to_xyz ( float xyz[3],
const float scene_linear[3] )

◆ IMB_colormanagement_srgb_to_scene_linear_v3()

◆ IMB_colormanagement_xyz_to_scene_linear()

void IMB_colormanagement_xyz_to_scene_linear ( float scene_linear[3],
const float xyz[3] )

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().