|
Blender
V2.93
|
Go to the source code of this file.
Classes | |
| struct | ColorSpace |
| struct | ColorManagedDisplay |
| struct | ColorManagedView |
| struct | ColorManagedLook |
Macros | |
| #define | MAX_COLORSPACE_NAME 64 |
| #define | MAX_COLORSPACE_DESCRIPTION 512 |
Typedefs | |
| typedef struct ColorSpace | ColorSpace |
| typedef struct ColorManagedDisplay | ColorManagedDisplay |
| typedef struct ColorManagedView | ColorManagedView |
| typedef struct ColorManagedLook | ColorManagedLook |
Variables | |
| float | imbuf_luma_coefficients [3] |
| float | imbuf_xyz_to_rgb [3][3] |
| float | imbuf_rgb_to_xyz [3][3] |
| #define MAX_COLORSPACE_DESCRIPTION 512 |
Definition at line 41 of file IMB_colormanagement_intern.h.
| #define MAX_COLORSPACE_NAME 64 |
Definition at line 40 of file IMB_colormanagement_intern.h.
| typedef struct ColorManagedDisplay ColorManagedDisplay |
| typedef struct ColorManagedLook ColorManagedLook |
| typedef struct ColorManagedView ColorManagedView |
| typedef struct ColorSpace ColorSpace |
| void colormanage_cache_free | ( | struct ImBuf * | ibuf | ) |
Definition at line 760 of file colormanagement.c.
References ImBuf::colormanage_cache, colormanage_cachedata_get(), colormanage_moviecache_get(), ImBuf::display_buffer_flags, IMB_moviecache_free(), MEM_freeN, and NULL.
Referenced by IMB_freeImBuf().
| struct ColorSpace* colormanage_colorspace_add | ( | const char * | name, |
| const char * | description, | ||
| bool | is_invertible, | ||
| bool | is_data | ||
| ) |
Definition at line 3067 of file colormanagement.c.
References BLI_addtail(), BLI_insertlinkbefore(), BLI_strcasecmp(), BLI_strncpy(), colormanage_description_strip(), ColorSpace::description, ListBase::first, global_colorspaces, global_tot_colorspace, ColorSpace::index, ColorSpace::is_data, ColorSpace::is_invertible, MEM_callocN, ColorSpace::name, and ColorSpace::next.
Referenced by colormanage_load_config().
| struct ColorSpace* colormanage_colorspace_get_indexed | ( | int | index | ) |
Definition at line 3133 of file colormanagement.c.
References BLI_findlink(), and global_colorspaces.
Referenced by IMB_colormanagement_colorspace_get_indexed_name().
| struct ColorSpace* colormanage_colorspace_get_named | ( | const char * | name | ) |
Definition at line 3113 of file colormanagement.c.
References ListBase::first, global_colorspaces, ColorSpace::name, ColorSpace::next, NULL, and STREQ.
Referenced by colormanage_check_colorspace_settings(), colormanage_colorspace_get_roled(), colormanage_imbuf_make_linear(), colormanage_imbuf_set_default_spaces(), display_transform_get_colorspace(), IMB_colormanagement_assign_float_colorspace(), IMB_colormanagement_assign_rect_colorspace(), IMB_colormanagement_check_is_data(), IMB_colormanagement_colorspace_from_ibuf_ftype(), IMB_colormanagement_colorspace_get_named_index(), IMB_colormanagement_colorspace_processor_new(), IMB_colormanagement_space_name_is_data(), imb_handle_alpha(), and imb_load_photoshop().
| struct ColorSpace* colormanage_colorspace_get_roled | ( | int | role | ) |
Definition at line 3126 of file colormanagement.c.
References colormanage_colorspace_get_named(), and IMB_colormanagement_role_colorspace_name_get().
Referenced by IMB_prepare_write_ImBuf().
| struct ColorManagedDisplay* colormanage_display_add | ( | const char * | name | ) |
Definition at line 2828 of file colormanagement.c.
References BLI_addtail(), BLI_strncpy(), global_displays, ColorManagedDisplay::index, ListBase::last, MEM_callocN, and ColorManagedDisplay::name.
Referenced by colormanage_load_config().
| struct ColorManagedDisplay* colormanage_display_get_default | ( | void | ) |
Definition at line 2817 of file colormanagement.c.
References colormanage_display_get_default_name(), colormanage_display_get_named(), and NULL.
Referenced by IMB_colormanagement_check_file_config(), and IMB_colormanagement_display_get_default_name().
| const char* colormanage_display_get_default_name | ( | void | ) |
Definition at line 2805 of file colormanagement.c.
References OCIO_configGetDefaultDisplay(), OCIO_configRelease(), and OCIO_getCurrentConfig().
Referenced by colormanage_display_get_default(), and IMB_colormanagement_display_get_none_name().
| struct ColorManagedDisplay* colormanage_display_get_indexed | ( | int | index | ) |
Definition at line 2863 of file colormanagement.c.
References BLI_findlink(), and global_displays.
Referenced by IMB_colormanagement_display_get_indexed_name().
| struct ColorManagedDisplay* colormanage_display_get_named | ( | const char * | name | ) |
Definition at line 2850 of file colormanagement.c.
References ListBase::first, global_displays, ColorManagedDisplay::name, ColorManagedDisplay::next, NULL, and STREQ.
Referenced by colormanage_check_display_settings(), colormanage_check_view_settings(), colormanage_display_get_default(), colormanage_view_get_named_for_display(), IMB_colormanagement_display_get_named(), IMB_colormanagement_display_get_named_index(), IMB_colormanagement_display_get_none_name(), IMB_colormanagement_init_default_view_settings(), IMB_colormanagement_validate_settings(), IMB_colormanagement_view_get_default_name(), and IMB_colormanagement_view_items_add().
| void colormanage_imbuf_make_linear | ( | struct ImBuf * | ibuf, |
| const char * | from_colorspace | ||
| ) |
Definition at line 1046 of file colormanagement.c.
References ImBuf::channels, colormanage_colorspace_get_named(), ImBuf::colormanage_flag, global_role_scene_linear, IMB_alpha_affects_rgb(), IMB_COLORMANAGE_IS_DATA, IMB_colormanagement_transform(), imb_freerectImBuf(), ColorSpace::is_data, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by imb_handle_alpha().
| void colormanage_imbuf_set_default_spaces | ( | struct ImBuf * | ibuf | ) |
Definition at line 1041 of file colormanagement.c.
References colormanage_colorspace_get_named(), global_role_default_byte, and ImBuf::rect_colorspace.
Referenced by IMB_initImBuf().
| struct ColorManagedLook* colormanage_look_add | ( | const char * | name, |
| const char * | process_space, | ||
| bool | is_noop | ||
| ) |
Definition at line 3192 of file colormanagement.c.
References BLI_addtail(), BLI_strncpy(), global_looks, global_tot_looks, ColorManagedLook::index, ColorManagedLook::is_noop, MEM_callocN, ColorManagedLook::name, ColorManagedLook::process_space, ColorManagedLook::ui_name, and ColorManagedLook::view.
Referenced by colormanage_load_config().
| struct ColorManagedLook* colormanage_look_get_indexed | ( | int | index | ) |
Definition at line 3231 of file colormanagement.c.
References BLI_findlink(), and global_looks.
Referenced by IMB_colormanagement_look_get_indexed_name().
| struct ColorManagedLook* colormanage_look_get_named | ( | const char * | name | ) |
Definition at line 3218 of file colormanagement.c.
References ListBase::first, global_looks, ColorManagedLook::name, ColorManagedLook::next, NULL, and STREQ.
Referenced by colormanage_check_view_settings(), colormanage_use_look(), IMB_colormanagement_look_get_named_index(), and is_ibuf_rect_in_display_space().
| struct ColorManagedView* colormanage_view_add | ( | const char * | name | ) |
Definition at line 2952 of file colormanagement.c.
References BLI_addtail(), BLI_strncpy(), global_tot_view, global_views, MEM_callocN, and view.
Referenced by colormanage_load_config().
| struct ColorManagedView* colormanage_view_get_default | ( | const ColorManagedDisplay * | display | ) |
Definition at line 2941 of file colormanagement.c.
References colormanage_view_get_default_name(), colormanage_view_get_named(), and NULL.
Referenced by colormanage_check_view_settings(), IMB_colormanagement_init_default_view_settings(), IMB_colormanagement_validate_settings(), and IMB_colormanagement_view_get_default_name().
| const char* colormanage_view_get_default_name | ( | const ColorManagedDisplay * | display | ) |
Definition at line 2929 of file colormanagement.c.
References ColorManagedDisplay::name, OCIO_configGetDefaultView(), OCIO_configRelease(), and OCIO_getCurrentConfig().
Referenced by colormanage_view_get_default(), display_from_scene_linear_processor(), display_to_scene_linear_processor(), and IMB_colormanagement_display_get_default_view_transform_name().
| struct ColorManagedView* colormanage_view_get_indexed | ( | int | index | ) |
Definition at line 2981 of file colormanagement.c.
References BLI_findlink(), and global_views.
Referenced by IMB_colormanagement_view_get_indexed_name().
| struct ColorManagedView* colormanage_view_get_named | ( | const char * | name | ) |
Definition at line 2968 of file colormanagement.c.
References ListBase::first, global_views, NULL, STREQ, and view.
Referenced by colormanage_check_view_settings(), colormanage_load_config(), colormanage_view_get_default(), and IMB_colormanagement_view_get_named_index().
| struct ColorManagedView* colormanage_view_get_named_for_display | ( | const char * | display_name, |
| const char * | name | ||
| ) |
Definition at line 2987 of file colormanagement.c.
References colormanage_display_get_named(), LISTBASE_FOREACH, NULL, STRCASEEQ, view, and ColorManagedDisplay::views.
Referenced by IMB_colormanagement_init_default_view_settings().
| void colormanagement_exit | ( | void | ) |
Definition at line 712 of file colormanagement.c.
References BKE_curvemapping_free(), colormanage_free_config(), global_color_picking_state::cpu_processor_from, global_color_picking_state::cpu_processor_to, global_gpu_state::curve_mapping, global_gpu_state::curve_mapping_settings, OCIO_CurveMappingSettings::lut, MEM_freeN, OCIO_cpuProcessorRelease(), and OCIO_gpuCacheFree().
Referenced by IMB_exit().
| void colormanagement_init | ( | void | ) |
Definition at line 645 of file colormanagement.c.
References BCM_CONFIG_FILE, BKE_appdir_folder_id(), BLENDER_DATAFILES, BLI_getenv(), BLI_init_srgb_conversion(), BLI_join_dirfile(), colormanage_free_config(), colormanage_load_config(), FILE_MAX, global_tot_display, global_tot_view, NULL, OCIO_configCreateFallback(), OCIO_configCreateFromEnv(), OCIO_configCreateFromFile(), OCIO_configRelease(), OCIO_init(), and OCIO_setCurrentConfig().
Referenced by IMB_init().
| void colorspace_set_default_role | ( | char * | colorspace, |
| int | size, | ||
| int | role | ||
| ) |
Definition at line 1030 of file colormanagement.c.
References BLI_strncpy(), IMB_colormanagement_role_colorspace_name_get(), and size().
Referenced by imb_bmp_decode(), imb_load_dds(), imb_load_dpx_cineon(), imb_load_jp2_stream(), imb_load_jpeg(), imb_load_openexr(), imb_load_photoshop(), imb_loadhdr(), imb_loadiris(), imb_loadpng(), imb_loadtarga(), imb_loadtiff(), and IMB_open_anim().
|
extern |
Definition at line 90 of file colormanagement.c.
Referenced by colormanage_load_config(), IMB_colormanagement_get_luminance(), and IMB_colormanagement_get_luminance_byte().
|
extern |
Definition at line 92 of file colormanagement.c.
Referenced by colormanage_load_config(), IMB_colormanagement_scene_linear_to_srgb_v3(), and IMB_colormangement_rgb_to_xyz().
|
extern |
Definition at line 91 of file colormanagement.c.
Referenced by colormanage_load_config(), IMB_colormanagement_srgb_to_scene_linear_v3(), IMB_colormangement_get_xyz_to_rgb(), and IMB_colormangement_xyz_to_rgb().