Blender  V2.93
Macros | Enumerations | Functions
IMB_colormanagement.h File Reference
#include "BLI_compiler_compat.h"
#include "BLI_sys_types.h"
#include "intern/colormanagement_inline.c"

Go to the source code of this file.

Macros

#define BCM_CONFIG_FILE   "config.ocio"
 

Enumerations

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_DATA
}
 

Functions

void IMB_colormanagement_check_file_config (struct Main *bmain)
 
void IMB_colormanagement_validate_settings (const struct ColorManagedDisplaySettings *display_settings, struct ColorManagedViewSettings *view_settings)
 
const char * IMB_colormanagement_role_colorspace_name_get (int role)
 
void IMB_colormanagement_check_is_data (struct ImBuf *ibuf, const char *name)
 
void IMB_colormanagegent_copy_settings (struct ImBuf *ibuf_src, struct ImBuf *ibuf_dst)
 
void IMB_colormanagement_assign_float_colorspace (struct ImBuf *ibuf, const char *name)
 
void IMB_colormanagement_assign_rect_colorspace (struct ImBuf *ibuf, const char *name)
 
const char * IMB_colormanagement_get_float_colorspace (struct ImBuf *ibuf)
 
const char * IMB_colormanagement_get_rect_colorspace (struct ImBuf *ibuf)
 
bool IMB_colormanagement_space_is_data (struct ColorSpace *colorspace)
 
bool IMB_colormanagement_space_is_scene_linear (struct ColorSpace *colorspace)
 
bool IMB_colormanagement_space_is_srgb (struct ColorSpace *colorspace)
 
bool IMB_colormanagement_space_name_is_data (const char *name)
 
BLI_INLINE float IMB_colormanagement_get_luminance (const float rgb[3])
 
BLI_INLINE unsigned char IMB_colormanagement_get_luminance_byte (const unsigned char[3])
 
BLI_INLINE void IMB_colormangement_xyz_to_rgb (float rgb[3], const float xyz[3])
 
BLI_INLINE void IMB_colormangement_rgb_to_xyz (float xyz[3], const float rgb[3])
 
const floatIMB_colormangement_get_xyz_to_rgb (void)
 
void IMB_colormanagement_transform (float *buffer, int width, int height, int channels, const char *from_colorspace, const char *to_colorspace, bool predivide)
 
void IMB_colormanagement_transform_threaded (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_threaded (unsigned char *buffer, int width, int height, int channels, const char *from_colorspace, const char *to_colorspace)
 
void IMB_colormanagement_transform_from_byte (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_from_byte_threaded (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], struct ColorSpace *colorspace)
 
void IMB_colormanagement_colorspace_to_scene_linear_v4 (float pixel[4], bool predivide, struct ColorSpace *colorspace)
 
void IMB_colormanagement_scene_linear_to_colorspace_v3 (float pixel[3], struct ColorSpace *colorspace)
 
void IMB_colormanagement_colorspace_to_scene_linear (float *buffer, int width, int height, int channels, struct ColorSpace *colorspace, bool predivide)
 
void IMB_colormanagement_imbuf_to_byte_texture (unsigned char *out_buffer, const int x, const int y, const int width, const int height, const struct ImBuf *ibuf, const bool compress_as_srgb, const bool store_premultiplied)
 
void IMB_colormanagement_imbuf_to_float_texture (float *out_buffer, const int offset_x, const int offset_y, const int width, const int height, const struct ImBuf *ibuf, const bool store_premultiplied)
 
void IMB_colormanagement_scene_linear_to_color_picking_v3 (float pixel[3])
 
void IMB_colormanagement_color_picking_to_scene_linear_v3 (float pixel[3])
 
void IMB_colormanagement_scene_linear_to_srgb_v3 (float pixel[3])
 
void IMB_colormanagement_srgb_to_scene_linear_v3 (float pixel[3])
 
void IMB_colormanagement_scene_linear_to_display_v3 (float pixel[3], struct ColorManagedDisplay *display)
 
void IMB_colormanagement_display_to_scene_linear_v3 (float pixel[3], struct ColorManagedDisplay *display)
 
void IMB_colormanagement_pixel_to_display_space_v4 (float result[4], const float pixel[4], const struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings)
 
void IMB_colormanagement_pixel_to_display_space_v3 (float result[3], const float pixel[3], const struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings)
 
void IMB_colormanagement_imbuf_make_display_space (struct ImBuf *ibuf, const struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings)
 
struct ImBufIMB_colormanagement_imbuf_for_write (struct ImBuf *ibuf, bool save_as_render, bool allocate_result, const struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings, struct ImageFormatData *image_format_data)
 
void IMB_colormanagement_buffer_make_display_space (float *buffer, unsigned char *display_buffer, int width, int height, int channels, float dither, const struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings)
 
void IMB_colormanagement_display_settings_from_ctx (const struct bContext *C, struct ColorManagedViewSettings **r_view_settings, struct ColorManagedDisplaySettings **r_display_settings)
 
const char * IMB_colormanagement_get_display_colorspace_name (const struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings)
 
unsigned char * IMB_display_buffer_acquire (struct ImBuf *ibuf, const struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings, void **cache_handle)
 
unsigned char * IMB_display_buffer_acquire_ctx (const struct bContext *C, struct 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 struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings, bool predivide)
 
void IMB_display_buffer_release (void *cache_handle)
 
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 (void)
 
struct ColorManagedDisplayIMB_colormanagement_display_get_named (const char *name)
 
const char * IMB_colormanagement_display_get_none_name (void)
 
const char * IMB_colormanagement_display_get_default_view_transform_name (struct ColorManagedDisplay *display)
 
int IMB_colormanagement_view_get_named_index (const char *name)
 
const char * IMB_colormanagement_view_get_indexed_name (int index)
 
int IMB_colormanagement_look_get_named_index (const char *name)
 
const char * IMB_colormanagement_look_get_indexed_name (int index)
 
int IMB_colormanagement_colorspace_get_named_index (const char *name)
 
const char * IMB_colormanagement_colorspace_get_indexed_name (int index)
 
const char * IMB_colormanagement_view_get_default_name (const char *display_name)
 
void IMB_colormanagement_colorspace_from_ibuf_ftype (struct ColorManagedColorspaceSettings *colorspace_settings, struct ImBuf *ibuf)
 
void IMB_colormanagement_display_items_add (struct EnumPropertyItem **items, int *totitem)
 
void IMB_colormanagement_view_items_add (struct EnumPropertyItem **items, int *totitem, const char *display_name)
 
void IMB_colormanagement_look_items_add (struct EnumPropertyItem **items, int *totitem, const char *view_name)
 
void IMB_colormanagement_colorspace_items_add (struct EnumPropertyItem **items, int *totitem)
 
void IMB_partial_display_buffer_update (struct ImBuf *ibuf, const float *linear_buffer, const unsigned char *byte_buffer, int stride, int offset_x, int offset_y, const struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings, int xmin, int ymin, int xmax, int ymax)
 
void IMB_partial_display_buffer_update_threaded (struct ImBuf *ibuf, const float *linear_buffer, const unsigned char *byte_buffer, int stride, int offset_x, int offset_y, const struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings, int xmin, int ymin, int xmax, int ymax)
 
void IMB_partial_display_buffer_update_delayed (struct ImBuf *ibuf, int xmin, int ymin, int xmax, int ymax)
 
struct ColormanageProcessorIMB_colormanagement_display_processor_new (const struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings)
 
struct ColormanageProcessorIMB_colormanagement_colorspace_processor_new (const char *from_colorspace, const char *to_colorspace)
 
void IMB_colormanagement_processor_apply_v4 (struct ColormanageProcessor *cm_processor, float pixel[4])
 
void IMB_colormanagement_processor_apply_v4_predivide (struct ColormanageProcessor *cm_processor, float pixel[4])
 
void IMB_colormanagement_processor_apply_v3 (struct ColormanageProcessor *cm_processor, float pixel[3])
 
void IMB_colormanagement_processor_apply_pixel (struct ColormanageProcessor *cm_processor, float *pixel, int channels)
 
void IMB_colormanagement_processor_apply (struct ColormanageProcessor *cm_processor, float *buffer, int width, int height, int channels, bool predivide)
 
void IMB_colormanagement_processor_apply_byte (struct ColormanageProcessor *cm_processor, unsigned char *buffer, int width, int height, int channels)
 
void IMB_colormanagement_processor_free (struct ColormanageProcessor *cm_processor)
 
bool IMB_colormanagement_support_glsl_draw (const struct ColorManagedViewSettings *view_settings)
 
bool IMB_colormanagement_setup_glsl_draw (const struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings, float dither, bool predivide)
 
bool IMB_colormanagement_setup_glsl_draw_from_space (const struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings, struct ColorSpace *colorspace, float dither, bool predivide, bool do_overlay_merge)
 
bool IMB_colormanagement_setup_glsl_draw_ctx (const struct bContext *C, float dither, bool predivide)
 
bool IMB_colormanagement_setup_glsl_draw_from_space_ctx (const struct bContext *C, struct ColorSpace *colorspace, float dither, bool predivide)
 
void IMB_colormanagement_finish_glsl_draw (void)
 
void IMB_colormanagement_init_default_view_settings (struct ColorManagedViewSettings *view_settings, const struct ColorManagedDisplaySettings *display_settings)
 

Macro Definition Documentation

◆ BCM_CONFIG_FILE

#define BCM_CONFIG_FILE   "config.ocio"

Definition at line 33 of file IMB_colormanagement.h.

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_DATA 

Definition at line 361 of file IMB_colormanagement.h.

Function Documentation

◆ IMB_colormanagegent_copy_settings()

void IMB_colormanagegent_copy_settings ( struct ImBuf ibuf_src,
struct ImBuf ibuf_dst 
)

◆ IMB_colormanagement_assign_float_colorspace()

void IMB_colormanagement_assign_float_colorspace ( struct ImBuf ibuf,
const char *  name 
)

◆ IMB_colormanagement_assign_rect_colorspace()

void IMB_colormanagement_assign_rect_colorspace ( struct ImBuf ibuf,
const char *  name 
)

◆ IMB_colormanagement_buffer_make_display_space()

void IMB_colormanagement_buffer_make_display_space ( float buffer,
unsigned char *  display_buffer,
int  width,
int  height,
int  channels,
float  dither,
const struct ColorManagedViewSettings view_settings,
const struct ColorManagedDisplaySettings display_settings 
)

◆ IMB_colormanagement_check_file_config()

void IMB_colormanagement_check_file_config ( struct Main bmain)

◆ IMB_colormanagement_check_is_data()

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

◆ IMB_colormanagement_color_picking_to_scene_linear_v3()

void IMB_colormanagement_color_picking_to_scene_linear_v3 ( float  pixel[3])

◆ IMB_colormanagement_colorspace_from_ibuf_ftype()

void IMB_colormanagement_colorspace_from_ibuf_ftype ( struct ColorManagedColorspaceSettings colorspace_settings,
struct ImBuf ibuf 
)

◆ IMB_colormanagement_colorspace_get_indexed_name()

const char* IMB_colormanagement_colorspace_get_indexed_name ( int  index)

Definition at line 3152 of file colormanagement.c.

References colormanage_colorspace_get_indexed(), and ColorSpace::name.

◆ IMB_colormanagement_colorspace_get_named_index()

int IMB_colormanagement_colorspace_get_named_index ( const char *  name)

Definition at line 3139 of file colormanagement.c.

References colormanage_colorspace_get_named(), and ColorSpace::index.

◆ IMB_colormanagement_colorspace_items_add()

void IMB_colormanagement_colorspace_items_add ( struct EnumPropertyItem **  items,
int *  totitem 
)

◆ IMB_colormanagement_colorspace_processor_new()

struct ColormanageProcessor* IMB_colormanagement_colorspace_processor_new ( const char *  from_colorspace,
const char *  to_colorspace 
)

◆ IMB_colormanagement_colorspace_to_scene_linear()

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

◆ IMB_colormanagement_colorspace_to_scene_linear_v3()

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

◆ IMB_colormanagement_colorspace_to_scene_linear_v4()

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

◆ IMB_colormanagement_display_get_default_name()

const char* IMB_colormanagement_display_get_default_name ( void  )

◆ IMB_colormanagement_display_get_default_view_transform_name()

const char* IMB_colormanagement_display_get_default_view_transform_name ( struct ColorManagedDisplay display)

◆ IMB_colormanagement_display_get_indexed_name()

const char* IMB_colormanagement_display_get_indexed_name ( int  index)

◆ IMB_colormanagement_display_get_named()

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

◆ IMB_colormanagement_display_get_none_name()

const char* IMB_colormanagement_display_get_none_name ( void  )

◆ IMB_colormanagement_display_items_add()

void IMB_colormanagement_display_items_add ( struct EnumPropertyItem **  items,
int *  totitem 
)

◆ IMB_colormanagement_display_processor_new()

struct ColormanageProcessor* IMB_colormanagement_display_processor_new ( const struct ColorManagedViewSettings view_settings,
const struct ColorManagedDisplaySettings display_settings 
)

◆ IMB_colormanagement_display_settings_from_ctx()

void IMB_colormanagement_display_settings_from_ctx ( const struct bContext C,
struct ColorManagedViewSettings **  r_view_settings,
struct ColorManagedDisplaySettings **  r_display_settings 
)

◆ IMB_colormanagement_display_to_scene_linear_v3()

void IMB_colormanagement_display_to_scene_linear_v3 ( float  pixel[3],
struct ColorManagedDisplay display 
)

◆ IMB_colormanagement_finish_glsl_draw()

void IMB_colormanagement_finish_glsl_draw ( void  )

◆ IMB_colormanagement_get_display_colorspace_name()

const char* IMB_colormanagement_get_display_colorspace_name ( const struct ColorManagedViewSettings view_settings,
const struct ColorManagedDisplaySettings display_settings 
)

◆ IMB_colormanagement_get_float_colorspace()

const char* IMB_colormanagement_get_float_colorspace ( struct ImBuf ibuf)

◆ IMB_colormanagement_get_luminance()

BLI_INLINE float IMB_colormanagement_get_luminance ( const float  rgb[3])

◆ IMB_colormanagement_get_luminance_byte()

BLI_INLINE unsigned char IMB_colormanagement_get_luminance_byte ( const unsigned char  rgb[3])

◆ IMB_colormanagement_get_rect_colorspace()

const char* IMB_colormanagement_get_rect_colorspace ( struct ImBuf ibuf)

◆ IMB_colormanagement_imbuf_for_write()

struct ImBuf* IMB_colormanagement_imbuf_for_write ( struct ImBuf ibuf,
bool  save_as_render,
bool  allocate_result,
const struct ColorManagedViewSettings view_settings,
const struct ColorManagedDisplaySettings display_settings,
struct ImageFormatData image_format_data 
)

◆ IMB_colormanagement_imbuf_make_display_space()

void IMB_colormanagement_imbuf_make_display_space ( struct ImBuf ibuf,
const struct ColorManagedViewSettings view_settings,
const struct ColorManagedDisplaySettings display_settings 
)

◆ IMB_colormanagement_imbuf_to_byte_texture()

void IMB_colormanagement_imbuf_to_byte_texture ( unsigned char *  out_buffer,
const int  x,
const int  y,
const int  width,
const int  height,
const struct ImBuf ibuf,
const bool  compress_as_srgb,
const bool  store_premultiplied 
)

◆ IMB_colormanagement_imbuf_to_float_texture()

void IMB_colormanagement_imbuf_to_float_texture ( float out_buffer,
const int  offset_x,
const int  offset_y,
const int  width,
const int  height,
const struct ImBuf ibuf,
const bool  store_premultiplied 
)

◆ IMB_colormanagement_init_default_view_settings()

void IMB_colormanagement_init_default_view_settings ( struct ColorManagedViewSettings view_settings,
const struct ColorManagedDisplaySettings display_settings 
)

◆ IMB_colormanagement_look_get_indexed_name()

const char* IMB_colormanagement_look_get_indexed_name ( int  index)

Definition at line 3250 of file colormanagement.c.

References colormanage_look_get_indexed(), ColorManagedLook::name, and NULL.

◆ IMB_colormanagement_look_get_named_index()

int IMB_colormanagement_look_get_named_index ( const char *  name)

◆ IMB_colormanagement_look_items_add()

void IMB_colormanagement_look_items_add ( struct EnumPropertyItem **  items,
int *  totitem,
const char *  view_name 
)

◆ IMB_colormanagement_pixel_to_display_space_v3()

void IMB_colormanagement_pixel_to_display_space_v3 ( float  result[3],
const float  pixel[3],
const struct ColorManagedViewSettings view_settings,
const struct ColorManagedDisplaySettings display_settings 
)

◆ IMB_colormanagement_pixel_to_display_space_v4()

void IMB_colormanagement_pixel_to_display_space_v4 ( float  result[4],
const float  pixel[4],
const struct ColorManagedViewSettings view_settings,
const struct ColorManagedDisplaySettings display_settings 
)

Referenced by ED_image_draw_info().

◆ IMB_colormanagement_processor_apply()

void IMB_colormanagement_processor_apply ( struct ColormanageProcessor cm_processor,
float buffer,
int  width,
int  height,
int  channels,
bool  predivide 
)

◆ IMB_colormanagement_processor_apply_byte()

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

◆ IMB_colormanagement_processor_apply_pixel()

void IMB_colormanagement_processor_apply_pixel ( struct ColormanageProcessor cm_processor,
float pixel,
int  channels 
)

◆ IMB_colormanagement_processor_apply_v3()

void IMB_colormanagement_processor_apply_v3 ( struct ColormanageProcessor cm_processor,
float  pixel[3] 
)

◆ IMB_colormanagement_processor_apply_v4()

void IMB_colormanagement_processor_apply_v4 ( struct ColormanageProcessor cm_processor,
float  pixel[4] 
)

◆ IMB_colormanagement_processor_apply_v4_predivide()

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

◆ IMB_colormanagement_processor_free()

void IMB_colormanagement_processor_free ( struct ColormanageProcessor cm_processor)

◆ IMB_colormanagement_role_colorspace_name_get()

const char* IMB_colormanagement_role_colorspace_name_get ( int  role)

◆ IMB_colormanagement_scene_linear_to_color_picking_v3()

void IMB_colormanagement_scene_linear_to_color_picking_v3 ( float  pixel[3])

◆ IMB_colormanagement_scene_linear_to_colorspace_v3()

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

◆ IMB_colormanagement_scene_linear_to_display_v3()

void IMB_colormanagement_scene_linear_to_display_v3 ( float  pixel[3],
struct ColorManagedDisplay display 
)

◆ IMB_colormanagement_scene_linear_to_srgb_v3()

void IMB_colormanagement_scene_linear_to_srgb_v3 ( float  pixel[3])

◆ IMB_colormanagement_setup_glsl_draw()

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

◆ IMB_colormanagement_setup_glsl_draw_ctx()

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

◆ IMB_colormanagement_setup_glsl_draw_from_space()

bool IMB_colormanagement_setup_glsl_draw_from_space ( const struct ColorManagedViewSettings view_settings,
const struct ColorManagedDisplaySettings display_settings,
struct ColorSpace colorspace,
float  dither,
bool  predivide,
bool  do_overlay_merge 
)

◆ IMB_colormanagement_setup_glsl_draw_from_space_ctx()

bool IMB_colormanagement_setup_glsl_draw_from_space_ctx ( const struct bContext C,
struct ColorSpace colorspace,
float  dither,
bool  predivide 
)

◆ IMB_colormanagement_space_is_data()

bool IMB_colormanagement_space_is_data ( struct ColorSpace colorspace)

◆ IMB_colormanagement_space_is_scene_linear()

bool IMB_colormanagement_space_is_scene_linear ( struct ColorSpace colorspace)

◆ IMB_colormanagement_space_is_srgb()

bool IMB_colormanagement_space_is_srgb ( struct ColorSpace colorspace)

◆ IMB_colormanagement_space_name_is_data()

bool IMB_colormanagement_space_name_is_data ( const char *  name)

◆ IMB_colormanagement_srgb_to_scene_linear_v3()

void IMB_colormanagement_srgb_to_scene_linear_v3 ( float  pixel[3])

◆ IMB_colormanagement_support_glsl_draw()

bool IMB_colormanagement_support_glsl_draw ( const struct ColorManagedViewSettings view_settings)

Referenced by screen_render_invoke().

◆ IMB_colormanagement_transform()

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

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

Definition at line 2000 of file colormanagement.c.

References buffer, colormanagement_transform_ex(), height, NULL, and width.

◆ IMB_colormanagement_transform_byte_threaded()

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

Definition at line 2010 of file colormanagement.c.

References buffer, colormanagement_transform_ex(), height, NULL, and width.

Referenced by seq_imbuf_to_sequencer_space().

◆ IMB_colormanagement_transform_from_byte()

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

◆ IMB_colormanagement_transform_from_byte_threaded()

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

◆ IMB_colormanagement_transform_threaded()

void IMB_colormanagement_transform_threaded ( 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()

void IMB_colormanagement_validate_settings ( const struct ColorManagedDisplaySettings display_settings,
struct ColorManagedViewSettings view_settings 
)

◆ IMB_colormanagement_view_get_default_name()

const char* IMB_colormanagement_view_get_default_name ( const char *  display_name)

◆ IMB_colormanagement_view_get_indexed_name()

const char* IMB_colormanagement_view_get_indexed_name ( int  index)

Definition at line 3014 of file colormanagement.c.

References colormanage_view_get_indexed(), NULL, and view.

◆ IMB_colormanagement_view_get_named_index()

int IMB_colormanagement_view_get_named_index ( const char *  name)

Definition at line 3003 of file colormanagement.c.

References colormanage_view_get_named(), and view.

Referenced by colormanage_view_settings_to_cache().

◆ IMB_colormanagement_view_items_add()

void IMB_colormanagement_view_items_add ( struct EnumPropertyItem **  items,
int *  totitem,
const char *  display_name 
)

◆ IMB_colormangement_get_xyz_to_rgb()

const float* IMB_colormangement_get_xyz_to_rgb ( void  )

Definition at line 1412 of file colormanagement.c.

References imbuf_xyz_to_rgb.

Referenced by get_XYZ_to_RGB_for_gpu().

◆ IMB_colormangement_rgb_to_xyz()

BLI_INLINE void IMB_colormangement_rgb_to_xyz ( float  xyz[3],
const float  rgb[3] 
)

Definition at line 63 of file colormanagement_inline.c.

References imbuf_rgb_to_xyz, and mul_v3_m3v3().

◆ IMB_colormangement_xyz_to_rgb()

BLI_INLINE void IMB_colormangement_xyz_to_rgb ( float  rgb[3],
const float  xyz[3] 
)

Definition at line 58 of file colormanagement_inline.c.

References imbuf_xyz_to_rgb, and mul_v3_m3v3().

◆ IMB_display_buffer_acquire()

unsigned char* IMB_display_buffer_acquire ( struct ImBuf ibuf,
const struct ColorManagedViewSettings view_settings,
const struct ColorManagedDisplaySettings display_settings,
void **  cache_handle 
)

◆ IMB_display_buffer_acquire_ctx()

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

◆ IMB_display_buffer_release()

void IMB_display_buffer_release ( void *  cache_handle)

◆ 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 struct ColorManagedViewSettings view_settings,
const struct ColorManagedDisplaySettings display_settings,
bool  predivide 
)

◆ IMB_partial_display_buffer_update()

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

◆ IMB_partial_display_buffer_update_delayed()

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

◆ IMB_partial_display_buffer_update_threaded()

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

Definition at line 3701 of file colormanagement.c.

References height, imb_partial_display_buffer_update_ex(), stride, and width.

Referenced by IMB_display_buffer_acquire().