Blender V5.0
IMB_colormanagement.hh File Reference

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::ocio

Macros

#define BCM_CONFIG_FILE   "config.ocio"

Enumerations

enum  ColorManagedDisplaySpace { DISPLAY_SPACE_DRAW , DISPLAY_SPACE_IMAGE_OUTPUT , DISPLAY_SPACE_VIDEO_OUTPUT , DISPLAY_SPACE_COLOR_INSPECTION }
enum class  ColorManagedFileOutput { Image , Video }

Functions

Generic Functions
void IMB_colormanagement_check_file_config (Main *bmain)
void IMB_colormanagement_validate_settings (const ColorManagedDisplaySettings *display_settings, ColorManagedViewSettings *view_settings)
const char * IMB_colormanagement_role_colorspace_name_get (int role)
const char * IMB_colormanagement_srgb_colorspace_name_get ()
void IMB_colormanagement_check_is_data (ImBuf *ibuf, const char *name)
void IMB_colormanagegent_copy_settings (ImBuf *ibuf_src, ImBuf *ibuf_dst)
void IMB_colormanagement_assign_float_colorspace (ImBuf *ibuf, const char *name)
void IMB_colormanagement_assign_byte_colorspace (ImBuf *ibuf, const char *name)
const char * IMB_colormanagement_get_float_colorspace (const ImBuf *ibuf)
const char * IMB_colormanagement_get_rect_colorspace (const ImBuf *ibuf)
const char * IMB_colormanagement_space_from_filepath_rules (const char *filepath)
const ColorSpaceIMB_colormanagement_space_get_named (const char *name)
bool IMB_colormanagement_space_is_data (const ColorSpace *colorspace)
bool IMB_colormanagement_space_is_scene_linear (const ColorSpace *colorspace)
bool IMB_colormanagement_space_is_srgb (const ColorSpace *colorspace)
bool IMB_colormanagement_space_name_is_data (const char *name)
bool IMB_colormanagement_space_name_is_scene_linear (const char *name)
bool IMB_colormanagement_space_name_is_srgb (const char *name)
blender::Vector< char > IMB_colormanagement_space_to_icc_profile (const ColorSpace *colorspace)
bool IMB_colormanagement_space_to_cicp (const ColorSpace *colorspace, const ColorManagedFileOutput output, const bool rgb_matrix, int cicp[4])
const ColorSpaceIMB_colormanagement_space_from_cicp (const int cicp[4], const ColorManagedFileOutput output)
blender::StringRefNull IMB_colormanagement_space_get_interop_id (const ColorSpace *colorspace)
const ColorSpaceIMB_colormanagement_space_from_interop_id (blender::StringRefNull interop_id)
BLI_INLINE void IMB_colormanagement_get_luminance_coefficients (float r_rgb[3])
BLI_INLINE float IMB_colormanagement_get_luminance (const float rgb[3])
BLI_INLINE unsigned char IMB_colormanagement_get_luminance_byte (const unsigned char rgb[3])
BLI_INLINE void IMB_colormanagement_xyz_to_scene_linear (float scene_linear[3], const float xyz[3])
BLI_INLINE void IMB_colormanagement_scene_linear_to_xyz (float xyz[3], const float scene_linear[3])
BLI_INLINE void IMB_colormanagement_rec709_to_scene_linear (float scene_linear[3], const float rec709[3])
BLI_INLINE void IMB_colormanagement_scene_linear_to_rec709 (float rec709[3], const float scene_linear[3])
BLI_INLINE void IMB_colormanagement_aces_to_scene_linear (float scene_linear[3], const float aces[3])
BLI_INLINE void IMB_colormanagement_scene_linear_to_aces (float aces[3], const float scene_linear[3])
BLI_INLINE void IMB_colormanagement_acescg_to_scene_linear (float scene_linear[3], const float acescg[3])
BLI_INLINE void IMB_colormanagement_scene_linear_to_acescg (float acescg[3], const float scene_linear[3])
BLI_INLINE void IMB_colormanagement_rec2020_to_scene_linear (float scene_linear[3], const float rec2020[3])
BLI_INLINE void IMB_colormanagement_scene_linear_to_rec2020 (float rec2020[3], const float scene_linear[3])
blender::float3x3 IMB_colormanagement_get_xyz_to_scene_linear ()
blender::float3x3 IMB_colormanagement_get_scene_linear_to_xyz ()
void IMB_colormanagement_get_whitepoint (const float temperature, const float tint, float whitepoint[3])
bool IMB_colormanagement_set_whitepoint (const float whitepoint[3], float &temperature, float &tint)
Color Space Transformation Functions
void IMB_colormanagement_transform_float (float *buffer, int width, int height, int channels, const char *from_colorspace, const char *to_colorspace, bool predivide)
void IMB_colormanagement_transform_byte (unsigned char *buffer, int width, int height, int channels, const char *from_colorspace, const char *to_colorspace)
void IMB_colormanagement_transform_byte_to_float (float *float_buffer, unsigned char *byte_buffer, int width, int height, int channels, const char *from_colorspace, const char *to_colorspace)
void IMB_colormanagement_transform_v4 (float pixel[4], const char *from_colorspace, const char *to_colorspace)
void IMB_colormanagement_colorspace_to_scene_linear_v3 (float pixel[3], const ColorSpace *colorspace)
void IMB_colormanagement_colorspace_to_scene_linear_v4 (float pixel[4], bool predivide, const ColorSpace *colorspace)
void IMB_colormanagement_scene_linear_to_colorspace_v3 (float pixel[3], const ColorSpace *colorspace)
void IMB_colormanagement_colorspace_to_scene_linear (float *buffer, int width, int height, int channels, const ColorSpace *colorspace, bool predivide)
void IMB_colormanagement_scene_linear_to_colorspace (float *buffer, int width, int height, int channels, const ColorSpace *colorspace)
void IMB_colormanagement_imbuf_to_byte_texture (unsigned char *out_buffer, int offset_x, int offset_y, int width, int height, const ImBuf *ibuf, bool store_premultiplied)
void IMB_colormanagement_imbuf_to_float_texture (float *out_buffer, int offset_x, int offset_y, int width, int height, const ImBuf *ibuf, bool store_premultiplied)
void IMB_colormanagement_scene_linear_to_color_picking_v3 (float color_picking[3], const float scene_linear[3])
void IMB_colormanagement_color_picking_to_scene_linear_v3 (float scene_linear[3], const float color_picking[3])
BLI_INLINE void IMB_colormanagement_scene_linear_to_srgb_v3 (float srgb[3], const float scene_linear[3])
BLI_INLINE void IMB_colormanagement_srgb_to_scene_linear_v3 (float scene_linear[3], const float srgb[3])
void IMB_colormanagement_scene_linear_to_display_v3 (float pixel[3], const ColorManagedDisplay *display, const ColorManagedDisplaySpace display_space=DISPLAY_SPACE_DRAW)
void IMB_colormanagement_display_to_scene_linear_v3 (float pixel[3], const ColorManagedDisplay *display, const ColorManagedDisplaySpace display_space=DISPLAY_SPACE_DRAW)
void IMB_colormanagement_pixel_to_display_space_v4 (float result[4], const float pixel[4], const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, const ColorManagedDisplaySpace display_space=DISPLAY_SPACE_DRAW)
void IMB_colormanagement_imbuf_make_display_space (ImBuf *ibuf, const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, const ColorManagedDisplaySpace display_space=DISPLAY_SPACE_DRAW)
ImBufIMB_colormanagement_imbuf_for_write (ImBuf *ibuf, bool save_as_render, bool allocate_result, const ImageFormatData *image_format)
Public Display Buffers Interfaces
void IMB_colormanagement_display_settings_from_ctx (const bContext *C, ColorManagedViewSettings **r_view_settings, ColorManagedDisplaySettings **r_display_settings)
unsigned char * IMB_display_buffer_acquire (ImBuf *ibuf, const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, void **cache_handle)
unsigned char * IMB_display_buffer_acquire_ctx (const bContext *C, ImBuf *ibuf, void **cache_handle)
void IMB_display_buffer_transform_apply (unsigned char *display_buffer, float *linear_buffer, int width, int height, int channels, const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, bool predivide)
void IMB_display_buffer_release (void *cache_handle)
Display Functions
int IMB_colormanagement_display_get_named_index (const char *name)
const char * IMB_colormanagement_display_get_indexed_name (int index)
const char * IMB_colormanagement_display_get_default_name ()
const ColorManagedDisplayIMB_colormanagement_display_get_named (const char *name)
const char * IMB_colormanagement_display_get_none_name ()
const char * IMB_colormanagement_display_get_default_view_transform_name (const ColorManagedDisplay *display)
const ColorSpaceIMB_colormangement_display_get_color_space (const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings)
bool IMB_colormanagement_display_is_hdr (const ColorManagedDisplaySettings *display_settings, const char *view_name)
bool IMB_colormanagement_display_is_wide_gamut (const ColorManagedDisplaySettings *display_settings, const char *view_name)
bool IMB_colormanagement_display_support_emulation (const ColorManagedDisplaySettings *display_settings, const char *view_name)
View Functions
int IMB_colormanagement_view_get_id_by_name (const char *name)
const char * IMB_colormanagement_view_get_name_by_id (int index)
Look Functions
int IMB_colormanagement_look_get_named_index (const char *name)
const char * IMB_colormanagement_look_get_indexed_name (int index)
const char * IMB_colormanagement_look_get_default_name ()
const char * IMB_colormanagement_look_validate_for_view (const char *view_name, const char *look_name)
Color Space Functions
int IMB_colormanagement_colorspace_get_named_index (const char *name)
const char * IMB_colormanagement_colorspace_get_indexed_name (int index)
const char * IMB_colormanagement_colorspace_get_name (const ColorSpace *colorspace)
const char * IMB_colormanagement_view_get_default_name (const char *display_name)
const char * IMB_colormanagement_view_get_raw_or_default_name (const char *display_name)
void IMB_colormanagement_colorspace_from_ibuf_ftype (ColorManagedColorspaceSettings *colorspace_settings, ImBuf *ibuf)
Working Space Functions
const char * IMB_colormanagement_working_space_get_default ()
const char * IMB_colormanagement_working_space_get ()
bool IMB_colormanagement_working_space_set_from_name (const char *name)
void IMB_colormanagement_working_space_check (Main *bmain, const bool for_undo, const bool have_editable_assets)
void IMB_colormanagement_working_space_init_default (Main *bmain)
void IMB_colormanagement_working_space_init_startup (Main *bmain)
void IMB_colormanagement_working_space_convert (Main *bmain, const blender::float3x3 &current_scene_linear_to_xyz, const blender::float3x3 &new_xyz_to_scene_linear, const bool depsgraph_tag=false, const bool linked_only=false, const bool editable_assets_only=false)
void IMB_colormanagement_working_space_convert (Main *bmain, const Main *reference_bmain)
int IMB_colormanagement_working_space_get_named_index (const char *name)
const char * IMB_colormanagement_working_space_get_indexed_name (int index)
void IMB_colormanagement_working_space_items_add (EnumPropertyItem **items, int *totitem)
RNA Helper Functions
void IMB_colormanagement_display_items_add (EnumPropertyItem **items, int *totitem)
void IMB_colormanagement_view_items_add (EnumPropertyItem **items, int *totitem, const char *display_name)
void IMB_colormanagement_look_items_add (EnumPropertyItem **items, int *totitem, const char *view_name)
void IMB_colormanagement_colorspace_items_add (EnumPropertyItem **items, int *totitem)
Tile-based Buffer Management
void IMB_partial_display_buffer_update (ImBuf *ibuf, const float *linear_buffer, const unsigned char *byte_buffer, int stride, int offset_x, int offset_y, const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, int xmin, int ymin, int xmax, int ymax)
void IMB_partial_display_buffer_update_threaded (ImBuf *ibuf, const float *linear_buffer, const unsigned char *byte_buffer, int stride, int offset_x, int offset_y, const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, int xmin, int ymin, int xmax, int ymax)
void IMB_partial_display_buffer_update_delayed (ImBuf *ibuf, int xmin, int ymin, int xmax, int ymax)
Pixel Processor Functions
ColormanageProcessorIMB_colormanagement_display_processor_new (const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, const ColorManagedDisplaySpace display_space=DISPLAY_SPACE_DRAW, const bool inverse=false)
ColormanageProcessorIMB_colormanagement_display_processor_for_imbuf (const ImBuf *ibuf, const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, const ColorManagedDisplaySpace display_space=DISPLAY_SPACE_DRAW)
bool IMB_colormanagement_display_processor_needed (const ImBuf *ibuf, const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings)
ColormanageProcessorIMB_colormanagement_colorspace_processor_new (const char *from_colorspace, const char *to_colorspace)
bool IMB_colormanagement_processor_is_noop (ColormanageProcessor *cm_processor)
void IMB_colormanagement_processor_apply_v4 (ColormanageProcessor *cm_processor, float pixel[4])
void IMB_colormanagement_processor_apply_v4_predivide (ColormanageProcessor *cm_processor, float pixel[4])
void IMB_colormanagement_processor_apply_v3 (ColormanageProcessor *cm_processor, float pixel[3])
void IMB_colormanagement_processor_apply_pixel (ColormanageProcessor *cm_processor, float *pixel, int channels)
void IMB_colormanagement_processor_apply (ColormanageProcessor *cm_processor, float *buffer, int width, int height, int channels, bool predivide)
void IMB_colormanagement_processor_apply_byte (ColormanageProcessor *cm_processor, unsigned char *buffer, int width, int height, int channels)
void IMB_colormanagement_processor_free (ColormanageProcessor *cm_processor)
OpenGL Drawing Routines Using GLSL for Color Space Transform
bool IMB_colormanagement_setup_glsl_draw (const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, float dither, bool predivide)
bool IMB_colormanagement_setup_glsl_draw_from_space (const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, const ColorSpace *from_colorspace, float dither, bool predivide, bool do_overlay_merge)
bool IMB_colormanagement_setup_glsl_draw_ctx (const bContext *C, float dither, bool predivide)
bool IMB_colormanagement_setup_glsl_draw_from_space_ctx (const bContext *C, const ColorSpace *from_colorspace, float dither, bool predivide)
bool IMB_colormanagement_setup_glsl_draw_to_scene_linear (const char *from_colorspace_name, bool predivide)
void IMB_colormanagement_finish_glsl_draw ()
Rendering Tables
void IMB_colormanagement_blackbody_temperature_to_rgb (float r_dest[4], float value)
void IMB_colormanagement_blackbody_temperature_to_rgb_table (float *r_table, int width, float min, float max)
void IMB_colormanagement_wavelength_to_rgb (float r_dest[4], float value)
void IMB_colormanagement_wavelength_to_rgb_table (float *r_table, int width)

View Transform

enum  {
  COLOR_ROLE_SCENE_LINEAR = 0 , COLOR_ROLE_COLOR_PICKING , COLOR_ROLE_TEXTURE_PAINTING , COLOR_ROLE_DEFAULT_SEQUENCER ,
  COLOR_ROLE_DEFAULT_BYTE , COLOR_ROLE_DEFAULT_FLOAT , COLOR_ROLE_ACES_INTERCHANGE , COLOR_ROLE_DATA
}
void IMB_colormanagement_init_untonemapped_view_settings (ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings)

Macro Definition Documentation

◆ BCM_CONFIG_FILE

#define BCM_CONFIG_FILE   "config.ocio"

Definition at line 16 of file IMB_colormanagement.hh.

Referenced by colormanagement_init().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
COLOR_ROLE_SCENE_LINEAR 
COLOR_ROLE_COLOR_PICKING 
COLOR_ROLE_TEXTURE_PAINTING 
COLOR_ROLE_DEFAULT_SEQUENCER 
COLOR_ROLE_DEFAULT_BYTE 
COLOR_ROLE_DEFAULT_FLOAT 
COLOR_ROLE_ACES_INTERCHANGE 
COLOR_ROLE_DATA 

Definition at line 609 of file IMB_colormanagement.hh.

◆ ColorManagedDisplaySpace

Enumerator
DISPLAY_SPACE_DRAW 
DISPLAY_SPACE_IMAGE_OUTPUT 
DISPLAY_SPACE_VIDEO_OUTPUT 
DISPLAY_SPACE_COLOR_INSPECTION 

Definition at line 36 of file IMB_colormanagement.hh.

◆ ColorManagedFileOutput

enum class ColorManagedFileOutput
strong
Enumerator
Image 
Video 

Definition at line 48 of file IMB_colormanagement.hh.

Function Documentation

◆ IMB_colormanagegent_copy_settings()

◆ IMB_colormanagement_aces_to_scene_linear()

BLI_INLINE void IMB_colormanagement_aces_to_scene_linear ( float scene_linear[3],
const float aces[3] )

◆ IMB_colormanagement_acescg_to_scene_linear()

BLI_INLINE void IMB_colormanagement_acescg_to_scene_linear ( float scene_linear[3],
const float acescg[3] )

◆ IMB_colormanagement_assign_byte_colorspace()

◆ IMB_colormanagement_assign_float_colorspace()

◆ IMB_colormanagement_blackbody_temperature_to_rgb()

◆ IMB_colormanagement_blackbody_temperature_to_rgb_table()

void IMB_colormanagement_blackbody_temperature_to_rgb_table ( float * r_table,
int width,
float min,
float max )

◆ IMB_colormanagement_check_file_config()

◆ IMB_colormanagement_check_is_data()

void IMB_colormanagement_check_is_data ( ImBuf * ibuf,
const char * name )

◆ IMB_colormanagement_color_picking_to_scene_linear_v3()

void IMB_colormanagement_color_picking_to_scene_linear_v3 ( float scene_linear[3],
const float color_picking[3] )

◆ IMB_colormanagement_colorspace_from_ibuf_ftype()

◆ IMB_colormanagement_colorspace_get_indexed_name()

const char * IMB_colormanagement_colorspace_get_indexed_name ( int index)

◆ IMB_colormanagement_colorspace_get_name()

◆ IMB_colormanagement_colorspace_get_named_index()

int IMB_colormanagement_colorspace_get_named_index ( const char * name)

◆ IMB_colormanagement_colorspace_items_add()

◆ IMB_colormanagement_colorspace_processor_new()

◆ IMB_colormanagement_colorspace_to_scene_linear()

void IMB_colormanagement_colorspace_to_scene_linear ( float * buffer,
int width,
int height,
int channels,
const ColorSpace * colorspace,
bool predivide )

Converts a (width)x(height) block of float pixels from given color space to scene linear space. This is much higher performance than converting pixels one by one.

Definition at line 2341 of file colormanagement.cc.

References blender::ocio::CPUProcessor::apply(), blender::ocio::CPUProcessor::apply_predivide(), blender::ocio::BIT_DEPTH_F32, and printf.

Referenced by blender::seq::pixels_to_scene_linear_byte(), blender::seq::pixels_to_scene_linear_float(), and blender::ed::vse::rgba_float_to_display_space().

◆ IMB_colormanagement_colorspace_to_scene_linear_v3()

void IMB_colormanagement_colorspace_to_scene_linear_v3 ( float pixel[3],
const ColorSpace * colorspace )

◆ IMB_colormanagement_colorspace_to_scene_linear_v4()

void IMB_colormanagement_colorspace_to_scene_linear_v4 ( float pixel[4],
bool predivide,
const ColorSpace * colorspace )

◆ IMB_colormanagement_display_get_default_name()

const char * IMB_colormanagement_display_get_default_name ( )

◆ IMB_colormanagement_display_get_default_view_transform_name()

const char * IMB_colormanagement_display_get_default_view_transform_name ( const ColorManagedDisplay * display)

◆ IMB_colormanagement_display_get_indexed_name()

const char * IMB_colormanagement_display_get_indexed_name ( int index)

◆ IMB_colormanagement_display_get_named()

const ColorManagedDisplay * IMB_colormanagement_display_get_named ( const char * name)

◆ IMB_colormanagement_display_get_named_index()

int IMB_colormanagement_display_get_named_index ( const char * name)

Definition at line 3008 of file colormanagement.cc.

References g_config, blender::ocio::Display::index, and name.

Referenced by colormanage_display_settings_to_cache().

◆ IMB_colormanagement_display_get_none_name()

const char * IMB_colormanagement_display_get_none_name ( )

◆ IMB_colormanagement_display_is_hdr()

◆ IMB_colormanagement_display_is_wide_gamut()

bool IMB_colormanagement_display_is_wide_gamut ( const ColorManagedDisplaySettings * display_settings,
const char * view_name )

◆ IMB_colormanagement_display_items_add()

◆ IMB_colormanagement_display_processor_for_imbuf()

ColormanageProcessor * IMB_colormanagement_display_processor_for_imbuf ( const ImBuf * ibuf,
const ColorManagedViewSettings * view_settings,
const ColorManagedDisplaySettings * display_settings,
const ColorManagedDisplaySpace display_space = DISPLAY_SPACE_DRAW )

◆ IMB_colormanagement_display_processor_needed()

◆ IMB_colormanagement_display_processor_new()

ColormanageProcessor * IMB_colormanagement_display_processor_new ( const ColorManagedViewSettings * view_settings,
const ColorManagedDisplaySettings * display_settings,
const ColorManagedDisplaySpace display_space = DISPLAY_SPACE_DRAW,
const bool inverse = false )

◆ IMB_colormanagement_display_settings_from_ctx()

◆ IMB_colormanagement_display_support_emulation()

bool IMB_colormanagement_display_support_emulation ( const ColorManagedDisplaySettings * display_settings,
const char * view_name )

◆ IMB_colormanagement_display_to_scene_linear_v3()

void IMB_colormanagement_display_to_scene_linear_v3 ( float pixel[3],
const ColorManagedDisplay * display,
const ColorManagedDisplaySpace display_space = DISPLAY_SPACE_DRAW )

◆ IMB_colormanagement_finish_glsl_draw()

void IMB_colormanagement_finish_glsl_draw ( )

◆ IMB_colormanagement_get_float_colorspace()

◆ IMB_colormanagement_get_luminance()

BLI_INLINE float IMB_colormanagement_get_luminance ( const float rgb[3])

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

◆ IMB_colormanagement_get_luminance_byte()

◆ IMB_colormanagement_get_luminance_coefficients()

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

◆ IMB_colormanagement_get_rect_colorspace()

◆ IMB_colormanagement_get_scene_linear_to_xyz()

◆ IMB_colormanagement_get_whitepoint()

void IMB_colormanagement_get_whitepoint ( const float temperature,
const float tint,
float whitepoint[3] )

Functions for converting between color temperature/tint and RGB white points.

Definition at line 1602 of file colormanagement.cc.

References IMB_colormanagement_xyz_to_scene_linear(), and blender::math::whitepoint_from_temp_tint().

◆ IMB_colormanagement_get_xyz_to_scene_linear()

◆ IMB_colormanagement_imbuf_for_write()

ImBuf * IMB_colormanagement_imbuf_for_write ( ImBuf * ibuf,
bool save_as_render,
bool allocate_result,
const ImageFormatData * image_format )

Prepare image buffer to be saved on disk, applying color management if needed color management would be applied if image is saving as render result and if file format is not expecting float buffer to be in linear space (currently JPEG2000 and TIFF are such formats – they're storing image as float but file itself stores applied color space).

Both byte and float buffers would contain applied color space, and result's float_colorspace would be set to display color space. This should be checked in image format write callback and if float_colorspace is not NULL, no color space transformation should be applied on this buffer.

Definition at line 2684 of file colormanagement.cc.

References BKE_image_format_is_byte(), BKE_imtype_requires_linear_float(), ImBuf::byte_buffer, blender::StringRefNull::c_str(), ImBuf::channels, colormanage_colorspace_get_named(), colormanagement_imbuf_make_display_space(), ImBufByteBuffer::colorspace, ImBufFloatBuffer::colorspace, ImBufByteBuffer::data, ImBufFloatBuffer::data, ImageFormatData::display_settings, DISPLAY_SPACE_IMAGE_OUTPUT, DISPLAY_SPACE_VIDEO_OUTPUT, ImBuf::float_buffer, g_config, global_role_default_byte, global_role_scene_linear, IB_DISPLAY_BUFFER_INVALID, IB_RECT_INVALID, IMB_alpha_under_color_byte(), IMB_alpha_under_color_float(), IMB_byte_from_float(), IMB_colormanagement_transform_byte(), IMB_colormanagement_transform_float(), IMB_colormangement_display_get_color_space(), IMB_float_from_byte(), IMB_free_byte_pixels(), imbuf_ensure_editable(), ImageFormatData::imtype, ImageFormatData::linear_colorspace_settings, ImageFormatData::media_type, MEDIA_TYPE_VIDEO, blender::ocio::ColorSpace::name(), ColorManagedColorspaceSettings::name, ImageFormatData::planes, R_IMF_PLANES_RGBA, STREQ, ImBuf::userflags, ImageFormatData::view_settings, ImBuf::x, and ImBuf::y.

Referenced by BKE_image_render_write(), image_clipboard_copy_exec(), image_save_single(), and RE_WriteRenderViewsMovie().

◆ IMB_colormanagement_imbuf_make_display_space()

void IMB_colormanagement_imbuf_make_display_space ( ImBuf * ibuf,
const ColorManagedViewSettings * view_settings,
const ColorManagedDisplaySettings * display_settings,
const ColorManagedDisplaySpace display_space = DISPLAY_SPACE_DRAW )

Definition at line 2651 of file colormanagement.cc.

References colormanagement_imbuf_make_display_space().

◆ IMB_colormanagement_imbuf_to_byte_texture()

void IMB_colormanagement_imbuf_to_byte_texture ( unsigned char * out_buffer,
int offset_x,
int offset_y,
int width,
int height,
const ImBuf * ibuf,
bool store_premultiplied )

◆ IMB_colormanagement_imbuf_to_float_texture()

◆ IMB_colormanagement_init_untonemapped_view_settings()

◆ IMB_colormanagement_look_get_default_name()

const char * IMB_colormanagement_look_get_default_name ( )

◆ IMB_colormanagement_look_get_indexed_name()

const char * IMB_colormanagement_look_get_indexed_name ( int index)

◆ IMB_colormanagement_look_get_named_index()

int IMB_colormanagement_look_get_named_index ( const char * name)

Definition at line 3255 of file colormanagement.cc.

References g_config, blender::ocio::Look::index, and name.

Referenced by colormanage_view_settings_to_cache().

◆ IMB_colormanagement_look_items_add()

◆ IMB_colormanagement_look_validate_for_view()

const char * IMB_colormanagement_look_validate_for_view ( const char * view_name,
const char * look_name )

◆ IMB_colormanagement_pixel_to_display_space_v4()

void IMB_colormanagement_pixel_to_display_space_v4 ( float result[4],
const float pixel[4],
const ColorManagedViewSettings * view_settings,
const ColorManagedDisplaySettings * display_settings,
const ColorManagedDisplaySpace display_space = DISPLAY_SPACE_DRAW )

◆ IMB_colormanagement_processor_apply()

◆ IMB_colormanagement_processor_apply_byte()

void IMB_colormanagement_processor_apply_byte ( ColormanageProcessor * cm_processor,
unsigned char * buffer,
int width,
int height,
int channels )

◆ IMB_colormanagement_processor_apply_pixel()

◆ IMB_colormanagement_processor_apply_v3()

◆ IMB_colormanagement_processor_apply_v4()

◆ IMB_colormanagement_processor_apply_v4_predivide()

void IMB_colormanagement_processor_apply_v4_predivide ( ColormanageProcessor * cm_processor,
float pixel[4] )

◆ IMB_colormanagement_processor_free()

◆ IMB_colormanagement_processor_is_noop()

bool IMB_colormanagement_processor_is_noop ( ColormanageProcessor * cm_processor)

◆ IMB_colormanagement_rec2020_to_scene_linear()

BLI_INLINE void IMB_colormanagement_rec2020_to_scene_linear ( float scene_linear[3],
const float rec2020[3] )

◆ IMB_colormanagement_rec709_to_scene_linear()

◆ IMB_colormanagement_role_colorspace_name_get()

const char * IMB_colormanagement_role_colorspace_name_get ( int role)

Definition at line 1208 of file colormanagement.cc.

References BLI_assert, CLOG_WARN, COLOR_ROLE_ACES_INTERCHANGE, COLOR_ROLE_COLOR_PICKING, COLOR_ROLE_DATA, COLOR_ROLE_DEFAULT_BYTE, COLOR_ROLE_DEFAULT_FLOAT, COLOR_ROLE_DEFAULT_SEQUENCER, COLOR_ROLE_SCENE_LINEAR, COLOR_ROLE_TEXTURE_PAINTING, global_role_aces_interchange, global_role_color_picking, global_role_data, global_role_default_byte, global_role_default_float, global_role_default_sequencer, global_role_scene_linear, global_role_texture_painting, and LOG.

Referenced by add_exr_compositing_result(), add_ibuf_for_tile(), blender::io::fbx::add_image_texture(), assign_render_pass_ibuf_colorspace(), BKE_image_add_generated(), BKE_image_format_color_management_copy_from_scene(), BKE_image_format_init_for_write(), BKE_image_format_update_color_space_for_type(), BKE_image_render_write_exr(), BKE_image_save_options_init(), colormanage_colorspace_get_roled(), blender::seq::ensure_linear_float_buffer(), blender::ed::vse::get_texture_colorspace_name(), image_colorspace_from_imbuf(), image_exr_from_scene_linear_to_output(), image_node_colorspace(), IMB_byte_from_float(), IMB_colormanagement_colorspace_from_ibuf_ftype(), IMB_colormanagement_get_float_colorspace(), IMB_colormanagement_get_rect_colorspace(), imb_exr_set_known_colorspace(), imb_handle_colorspace_and_alpha(), blender::ed::sculpt_paint::paint::image::PaintingKernel< ImageBuffer >::init_brush_color(), blender::io::usd::USDMaterialReader::load_tex_image(), openexr_header_metadata_colorspace(), openexr_header_metadata_colorspace(), probe_video_colorspace(), RE_render_result_rect_to_ibuf(), blender::seq::render_imbuf_from_sequencer_space(), blender::seq::render_pixel_from_sequencer_space_v4(), render_result_exr_file_cache_read(), render_result_new_from_exr(), scene_init_data(), seq_process_render_image(), blender::seq::strip_add_set_view_transform(), ui_block_colorpicker(), wm_main_playanim_intern(), blender::ed::object::write_external_bake_pixels(), and blender::ed::object::write_internal_bake_pixels().

◆ IMB_colormanagement_scene_linear_to_aces()

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

◆ IMB_colormanagement_scene_linear_to_acescg()

BLI_INLINE void IMB_colormanagement_scene_linear_to_acescg ( float acescg[3],
const float scene_linear[3] )

◆ IMB_colormanagement_scene_linear_to_color_picking_v3()

void IMB_colormanagement_scene_linear_to_color_picking_v3 ( float color_picking[3],
const float scene_linear[3] )

Conversion between color picking role. Typically we would expect such a requirements:

  • It is approximately perceptually linear, so that the HSV numbers and the HSV cube/circle have an intuitive distribution.
  • It has the same gamut as the scene linear color space.
  • Color picking values 0..1 map to scene linear values in the 0..1 range, so that picked albedo values are energy conserving.

Definition at line 2535 of file colormanagement.cc.

References BLI_mutex_lock(), BLI_mutex_unlock(), copy_v3_v3(), g_config, global_color_picking_state, global_role_color_picking, global_role_scene_linear, and processor_lock.

Referenced by ui_scene_linear_to_perceptual_space().

◆ IMB_colormanagement_scene_linear_to_colorspace()

void IMB_colormanagement_scene_linear_to_colorspace ( float * buffer,
int width,
int height,
int channels,
const ColorSpace * colorspace )

Converts a (width)x(height) block of float pixels from scene linear space to given color space. This is much higher performance than converting pixels one by one.

Definition at line 2373 of file colormanagement.cc.

References blender::ocio::CPUProcessor::apply(), blender::ocio::BIT_DEPTH_F32, and printf.

Referenced by blender::seq::scene_linear_to_image_chunk_byte(), and blender::seq::scene_linear_to_image_chunk_float().

◆ IMB_colormanagement_scene_linear_to_colorspace_v3()

void IMB_colormanagement_scene_linear_to_colorspace_v3 ( float pixel[3],
const ColorSpace * colorspace )

◆ IMB_colormanagement_scene_linear_to_display_v3()

void IMB_colormanagement_scene_linear_to_display_v3 ( float pixel[3],
const ColorManagedDisplay * display,
const ColorManagedDisplaySpace display_space = DISPLAY_SPACE_DRAW )

Convert pixel from scene linear to display space using default view used by performance-critical areas such as color-related widgets where we want to reduce amount of per-widget allocations.

Definition at line 2593 of file colormanagement.cc.

References blender::ocio::CPUProcessor::apply_rgb(), DISPLAY_SPACE_DRAW, and blender::ocio::Display::get_from_scene_linear_cpu_processor().

Referenced by eyedropper_color_set(), ui_block_cm_to_display_space_v3(), ui_draw_but_COLORBAND(), ui_draw_colorband_handle(), ui_draw_gradient_hsv_to_rgb(), and UI_tooltip_color_field_add().

◆ IMB_colormanagement_scene_linear_to_rec2020()

BLI_INLINE void IMB_colormanagement_scene_linear_to_rec2020 ( float rec2020[3],
const float scene_linear[3] )

◆ IMB_colormanagement_scene_linear_to_rec709()

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

◆ IMB_colormanagement_scene_linear_to_srgb_v3()

◆ IMB_colormanagement_scene_linear_to_xyz()

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

◆ IMB_colormanagement_set_whitepoint()

bool IMB_colormanagement_set_whitepoint ( const float whitepoint[3],
float & temperature,
float & tint )

◆ IMB_colormanagement_setup_glsl_draw()

bool IMB_colormanagement_setup_glsl_draw ( const ColorManagedViewSettings * view_settings,
const ColorManagedDisplaySettings * display_settings,
float dither,
bool predivide )

Configures GLSL shader for conversion from scene linear to display space.

Definition at line 4497 of file colormanagement.cc.

References IMB_colormanagement_setup_glsl_draw_from_space().

Referenced by ED_draw_imbuf_clipping(), and ocio_transform_ibuf().

◆ IMB_colormanagement_setup_glsl_draw_ctx()

bool IMB_colormanagement_setup_glsl_draw_ctx ( const bContext * C,
float dither,
bool predivide )

Same as setup_glsl_draw, but color management settings are guessing from a given context.

Definition at line 4520 of file colormanagement.cc.

References C, and IMB_colormanagement_setup_glsl_draw_from_space_ctx().

◆ IMB_colormanagement_setup_glsl_draw_from_space()

bool IMB_colormanagement_setup_glsl_draw_from_space ( const ColorManagedViewSettings * view_settings,
const ColorManagedDisplaySettings * display_settings,
const ColorSpace * from_colorspace,
float dither,
bool predivide,
bool do_overlay_merge )
Note
Same as IMB_colormanagement_setup_glsl_draw, but display space conversion happens from a specified space.

Configures GLSL shader for conversion from specified to display color space

Will create appropriate OCIO processor and setup GLSL shader, so further 2D texture usage will use this conversion.

When there's no need to apply transform on 2D textures, use IMB_colormanagement_finish_glsl_draw().

This is low-level function, use ED_draw_imbuf_ctx if you only need to display given image buffer

Definition at line 4437 of file colormanagement.cc.

References blender::StringRefNull::c_str(), colormanage_use_look(), COLORMANAGE_VIEW_USE_WHITE_BALANCE, blender::ocio::GPUDisplayParameters::curve_mapping, blender::ocio::GPUDisplayParameters::display, ColorManagedDisplaySettings::display_device, blender::ocio::GPUDisplayParameters::dither, blender::ocio::GPUDisplayParameters::do_overlay_merge, blender::ocio::GPUDisplayParameters::exponent, ColorManagedViewSettings::exposure, ColorManagedViewSettings::flag, blender::ocio::GPUDisplayParameters::from_colorspace, g_config, ColorManagedViewSettings::gamma, get_display_emulation(), global_gpu_state, global_role_scene_linear, GPU_hdr_support(), IMB_colormanagement_display_is_hdr(), IMB_colormanagement_init_untonemapped_view_settings(), blender::ocio::GPUDisplayParameters::look, ColorManagedViewSettings::look, max_ff(), blender::ocio::ColorSpace::name(), powf, blender::ocio::GPUDisplayParameters::scale, blender::ocio::GPUDisplayParameters::temperature, ColorManagedViewSettings::temperature, blender::ocio::GPUDisplayParameters::tint, ColorManagedViewSettings::tint, update_glsl_curve_mapping(), blender::ocio::GPUDisplayParameters::use_display_emulation, blender::ocio::GPUDisplayParameters::use_hdr_buffer, blender::ocio::GPUDisplayParameters::use_hdr_display, blender::ocio::GPUDisplayParameters::use_predivide, blender::ocio::GPUDisplayParameters::use_white_balance, blender::ocio::GPUDisplayParameters::view, and ColorManagedViewSettings::view_transform.

Referenced by ED_draw_imbuf_clipping(), gpu_viewport_draw_colormanaged(), IMB_colormanagement_setup_glsl_draw(), IMB_colormanagement_setup_glsl_draw_from_space_ctx(), ocio_transform_ibuf(), and blender::ed::vse::update_gpu_scopes().

◆ IMB_colormanagement_setup_glsl_draw_from_space_ctx()

bool IMB_colormanagement_setup_glsl_draw_from_space_ctx ( const bContext * C,
const ColorSpace * from_colorspace,
float dither,
bool predivide )

Same as setup_glsl_draw_from_space, but color management settings are guessing from a given context.

Definition at line 4506 of file colormanagement.cc.

References C, IMB_colormanagement_display_settings_from_ctx(), and IMB_colormanagement_setup_glsl_draw_from_space().

Referenced by IMB_colormanagement_setup_glsl_draw_ctx().

◆ IMB_colormanagement_setup_glsl_draw_to_scene_linear()

bool IMB_colormanagement_setup_glsl_draw_to_scene_linear ( const char * from_colorspace_name,
bool predivide )

Configures GPU shader for conversion from the given space to scene linear. Drawing happens in the same immediate mode as when GPU_SHADER_3D_IMAGE_COLOR shader is used.

Returns true if the GPU shader was successfully bound.

Definition at line 4525 of file colormanagement.cc.

References g_config, and global_gpu_state.

Referenced by blender::ed::vse::preview_draw_texture_to_linear().

◆ IMB_colormanagement_space_from_cicp()

◆ IMB_colormanagement_space_from_filepath_rules()

const char * IMB_colormanagement_space_from_filepath_rules ( const char * filepath)

Definition at line 1311 of file colormanagement.cc.

References g_config.

Referenced by imb_handle_colorspace_and_alpha().

◆ IMB_colormanagement_space_from_interop_id()

const ColorSpace * IMB_colormanagement_space_from_interop_id ( blender::StringRefNull interop_id)

◆ IMB_colormanagement_space_get_interop_id()

blender::StringRefNull IMB_colormanagement_space_get_interop_id ( const ColorSpace * colorspace)

◆ IMB_colormanagement_space_get_named()

const ColorSpace * IMB_colormanagement_space_get_named ( const char * name)

◆ IMB_colormanagement_space_is_data()

◆ IMB_colormanagement_space_is_scene_linear()

◆ IMB_colormanagement_space_is_srgb()

◆ IMB_colormanagement_space_name_is_data()

◆ IMB_colormanagement_space_name_is_scene_linear()

◆ IMB_colormanagement_space_name_is_srgb()

bool IMB_colormanagement_space_name_is_srgb ( const char * name)

◆ IMB_colormanagement_space_to_cicp()

◆ IMB_colormanagement_space_to_icc_profile()

◆ IMB_colormanagement_srgb_colorspace_name_get()

const char * IMB_colormanagement_srgb_colorspace_name_get ( )

◆ IMB_colormanagement_srgb_to_scene_linear_v3()

◆ IMB_colormanagement_transform_byte()

void IMB_colormanagement_transform_byte ( unsigned char * buffer,
int width,
int height,
int channels,
const char * from_colorspace,
const char * to_colorspace )

Convert a byte image buffer from one color space to another.

Definition at line 2217 of file colormanagement.cc.

References colormanagement_transform_ex().

Referenced by IMB_colormanagement_imbuf_for_write().

◆ IMB_colormanagement_transform_byte_to_float()

void IMB_colormanagement_transform_byte_to_float ( float * float_buffer,
unsigned char * byte_buffer,
int width,
int height,
int channels,
const char * from_colorspace,
const char * to_colorspace )

◆ IMB_colormanagement_transform_float()

void IMB_colormanagement_transform_float ( float * buffer,
int width,
int height,
int channels,
const char * from_colorspace,
const char * to_colorspace,
bool predivide )

◆ IMB_colormanagement_transform_v4()

void IMB_colormanagement_transform_v4 ( float pixel[4],
const char * from_colorspace,
const char * to_colorspace )

◆ IMB_colormanagement_validate_settings()

◆ IMB_colormanagement_view_get_default_name()

const char * IMB_colormanagement_view_get_default_name ( const char * display_name)

Definition at line 3136 of file colormanagement.cc.

References g_config, blender::ocio::Display::get_default_view(), and view.

◆ IMB_colormanagement_view_get_id_by_name()

int IMB_colormanagement_view_get_id_by_name ( const char * name)

◆ IMB_colormanagement_view_get_name_by_id()

const char * IMB_colormanagement_view_get_name_by_id ( int index)

Definition at line 3123 of file colormanagement.cc.

References BLI_assert, and g_all_view_names.

◆ IMB_colormanagement_view_get_raw_or_default_name()

const char * IMB_colormanagement_view_get_raw_or_default_name ( const char * display_name)

◆ IMB_colormanagement_view_items_add()

◆ IMB_colormanagement_wavelength_to_rgb()

void IMB_colormanagement_wavelength_to_rgb ( float r_dest[4],
float value )

◆ IMB_colormanagement_wavelength_to_rgb_table()

void IMB_colormanagement_wavelength_to_rgb_table ( float * r_table,
int width )

◆ IMB_colormanagement_working_space_check()

◆ IMB_colormanagement_working_space_convert() [1/2]

void IMB_colormanagement_working_space_convert ( Main * bmain,
const blender::float3x3 & current_scene_linear_to_xyz,
const blender::float3x3 & new_xyz_to_scene_linear,
const bool depsgraph_tag = false,
const bool linked_only = false,
const bool editable_assets_only = false )

◆ IMB_colormanagement_working_space_convert() [2/2]

◆ IMB_colormanagement_working_space_get()

const char * IMB_colormanagement_working_space_get ( )

Definition at line 3366 of file colormanagement.cc.

References global_role_scene_linear.

◆ IMB_colormanagement_working_space_get_default()

const char * IMB_colormanagement_working_space_get_default ( )

Definition at line 3319 of file colormanagement.cc.

References global_role_scene_linear_default.

Referenced by wm_set_working_color_space_invoke().

◆ IMB_colormanagement_working_space_get_indexed_name()

const char * IMB_colormanagement_working_space_get_indexed_name ( int index)

◆ IMB_colormanagement_working_space_get_named_index()

int IMB_colormanagement_working_space_get_named_index ( const char * name)

◆ IMB_colormanagement_working_space_init_default()

◆ IMB_colormanagement_working_space_init_startup()

void IMB_colormanagement_working_space_init_startup ( Main * bmain)

◆ IMB_colormanagement_working_space_items_add()

◆ IMB_colormanagement_working_space_set_from_name()

◆ IMB_colormanagement_xyz_to_scene_linear()

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

◆ IMB_colormangement_display_get_color_space()

◆ IMB_display_buffer_acquire()

◆ IMB_display_buffer_acquire_ctx()

unsigned char * IMB_display_buffer_acquire_ctx ( const bContext * C,
ImBuf * ibuf,
void ** cache_handle )

Same as IMB_display_buffer_acquire but gets view and display settings from context.

Definition at line 2945 of file colormanagement.cc.

References C, IMB_colormanagement_display_settings_from_ctx(), and IMB_display_buffer_acquire().

◆ IMB_display_buffer_release()

◆ IMB_display_buffer_transform_apply()

void IMB_display_buffer_transform_apply ( unsigned char * display_buffer,
float * linear_buffer,
int width,
int height,
int channels,
const ColorManagedViewSettings * view_settings,
const ColorManagedDisplaySettings * display_settings,
bool predivide )

◆ IMB_partial_display_buffer_update()

void IMB_partial_display_buffer_update ( ImBuf * ibuf,
const float * linear_buffer,
const unsigned char * byte_buffer,
int stride,
int offset_x,
int offset_y,
const ColorManagedViewSettings * view_settings,
const ColorManagedDisplaySettings * display_settings,
int xmin,
int ymin,
int xmax,
int ymax )

Definition at line 4112 of file colormanagement.cc.

References imb_partial_display_buffer_update_ex().

Referenced by image_buffer_rect_update().

◆ IMB_partial_display_buffer_update_delayed()

void IMB_partial_display_buffer_update_delayed ( ImBuf * ibuf,
int xmin,
int ymin,
int xmax,
int ymax )

◆ IMB_partial_display_buffer_update_threaded()

void IMB_partial_display_buffer_update_threaded ( ImBuf * ibuf,
const float * linear_buffer,
const unsigned char * byte_buffer,
int stride,
int offset_x,
int offset_y,
const ColorManagedViewSettings * view_settings,
const ColorManagedDisplaySettings * display_settings,
int xmin,
int ymin,
int xmax,
int ymax )

Definition at line 4140 of file colormanagement.cc.

References imb_partial_display_buffer_update_ex().

Referenced by IMB_display_buffer_acquire().