|
Blender V4.3
|
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 OCIO_ConstCPUProcessorRc * | OCIO_ConstCPUProcessorRcPtr |
Variables | |
| float | imbuf_luma_coefficients [3] |
| float | imbuf_scene_linear_to_xyz [3][3] |
| float | imbuf_xyz_to_scene_linear [3][3] |
| float | imbuf_scene_linear_to_aces [3][3] |
| float | imbuf_aces_to_scene_linear [3][3] |
| float | imbuf_scene_linear_to_rec709 [3][3] |
| float | imbuf_rec709_to_scene_linear [3][3] |
| #define MAX_COLORSPACE_DESCRIPTION 512 |
Definition at line 27 of file IMB_colormanagement_intern.hh.
| #define MAX_COLORSPACE_NAME 64 |
Definition at line 26 of file IMB_colormanagement_intern.hh.
Referenced by colormanage_load_config(), and colormanage_role_color_space_name_get().
| typedef struct OCIO_ConstCPUProcessorRc* OCIO_ConstCPUProcessorRcPtr |
Definition at line 16 of file IMB_colormanagement_intern.hh.
| void colormanage_cache_free | ( | ImBuf * | ibuf | ) |
Definition at line 818 of file colormanagement.cc.
References ImBuf::colormanage_cache, colormanage_cachedata_get(), colormanage_moviecache_get(), ImBuf::display_buffer_flags, IMB_moviecache_free(), MEM_freeN(), and MEM_SAFE_FREE.
Referenced by IMB_freeImBuf().
| ColorSpace * colormanage_colorspace_add | ( | const char * | name, |
| const char * | description, | ||
| bool | is_invertible, | ||
| bool | is_data ) |
Definition at line 3296 of file colormanagement.cc.
References BLI_addtail(), BLI_insertlinkbefore(), BLI_strcasecmp(), colormanage_description_strip(), ColorSpace::description, ListBase::first, global_colorspaces, global_tot_colorspace, ColorSpace::index, ColorSpace::is_data, ColorSpace::is_invertible, ColorSpace::name, ColorSpace::next, and STRNCPY.
Referenced by colormanage_load_config().
| ColorSpace * colormanage_colorspace_get_indexed | ( | int | index | ) |
Definition at line 3368 of file colormanagement.cc.
References BLI_findlink(), and global_colorspaces.
Referenced by IMB_colormanagement_colorspace_get_indexed_name().
| ColorSpace * colormanage_colorspace_get_named | ( | const char * | name | ) |
Definition at line 3344 of file colormanagement.cc.
References global_colorspaces, LISTBASE_FOREACH, 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_byte_colorspace(), IMB_colormanagement_assign_float_colorspace(), IMB_colormanagement_check_is_data(), IMB_colormanagement_colorspace_from_ibuf_ftype(), IMB_colormanagement_colorspace_get_named_index(), IMB_colormanagement_imbuf_for_write(), IMB_colormanagement_space_name_is_data(), IMB_colormanagement_space_name_is_scene_linear(), IMB_colormanagement_space_name_is_srgb(), imb_handle_alpha(), and blender::imbuf::set_colorspace_name().
| ColorSpace * colormanage_colorspace_get_roled | ( | int | role | ) |
Definition at line 3361 of file colormanagement.cc.
References colormanage_colorspace_get_named(), and IMB_colormanagement_role_colorspace_name_get().
Referenced by IMB_saveiff().
| ColorManagedDisplay * colormanage_display_add | ( | const char * | name | ) |
Definition at line 3040 of file colormanagement.cc.
References BLI_addtail(), global_displays, ColorManagedDisplay::index, ListBase::last, and STRNCPY.
Referenced by colormanage_load_config().
| ColorManagedDisplay * colormanage_display_get_default | ( | ) |
Definition at line 3029 of file colormanagement.cc.
References colormanage_display_get_default_name(), and colormanage_display_get_named().
Referenced by IMB_colormanagement_check_file_config(), and IMB_colormanagement_display_get_default_name().
| const char * colormanage_display_get_default_name | ( | ) |
Definition at line 3017 of file colormanagement.cc.
References OCIO_configGetDefaultDisplay(), OCIO_configRelease(), and OCIO_getCurrentConfig().
Referenced by colormanage_display_get_default(), and IMB_colormanagement_display_get_none_name().
| ColorManagedDisplay * colormanage_display_get_indexed | ( | int | index | ) |
Definition at line 3073 of file colormanagement.cc.
References BLI_findlink(), and global_displays.
Referenced by IMB_colormanagement_display_get_indexed_name().
| ColorManagedDisplay * colormanage_display_get_named | ( | const char * | name | ) |
Definition at line 3062 of file colormanagement.cc.
References global_displays, LISTBASE_FOREACH, 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(), IMB_colormanagement_view_get_raw_or_default_name(), and IMB_colormanagement_view_items_add().
| void colormanage_imbuf_make_linear | ( | ImBuf * | ibuf, |
| const char * | from_colorspace ) |
Definition at line 1127 of file colormanagement.cc.
References ImBuf::byte_buffer, ImBuf::channels, colormanage_colorspace_get_named(), ImBuf::colormanage_flag, ImBufByteBuffer::data, ImBufFloatBuffer::data, ImBuf::float_buffer, global_role_scene_linear, IMB_alpha_affects_rgb(), IMB_COLORMANAGE_IS_DATA, IMB_colormanagement_transform(), imb_freerectImBuf(), ColorSpace::is_data, ImBuf::x, and ImBuf::y.
Referenced by imb_handle_alpha().
| void colormanage_imbuf_set_default_spaces | ( | ImBuf * | ibuf | ) |
Definition at line 1122 of file colormanagement.cc.
References ImBuf::byte_buffer, colormanage_colorspace_get_named(), ImBufByteBuffer::colorspace, and global_role_default_byte.
Referenced by IMB_initImBuf().
| ColorManagedLook * colormanage_look_add | ( | const char * | name, |
| const char * | process_space, | ||
| bool | is_noop ) |
Definition at line 3428 of file colormanagement.cc.
References BLI_addtail(), BLI_strncpy(), global_looks, global_tot_looks, ColorManagedLook::index, ColorManagedLook::is_noop, ColorManagedLook::name, ColorManagedLook::process_space, STRNCPY, ColorManagedLook::ui_name, and ColorManagedLook::view.
Referenced by colormanage_load_config().
| ColorManagedLook * colormanage_look_get_indexed | ( | int | index | ) |
Definition at line 3465 of file colormanagement.cc.
References BLI_findlink(), and global_looks.
Referenced by IMB_colormanagement_look_get_indexed_name().
| ColorManagedLook * colormanage_look_get_named | ( | const char * | name | ) |
Definition at line 3454 of file colormanagement.cc.
References global_looks, LISTBASE_FOREACH, and STREQ.
Referenced by colormanage_check_view_settings(), colormanage_use_look(), IMB_colormanagement_look_get_named_index(), IMB_colormanagement_look_validate_for_view(), and is_colorspace_same_as_display().
| ColorManagedView * colormanage_view_add | ( | const char * | name | ) |
Definition at line 3159 of file colormanagement.cc.
References BLI_addtail(), global_tot_view, global_views, STRNCPY, and view.
Referenced by colormanage_load_config().
| ColorManagedView * colormanage_view_get_default | ( | const ColorManagedDisplay * | display | ) |
Definition at line 3148 of file colormanagement.cc.
References colormanage_view_get_default_name(), and colormanage_view_get_named().
Referenced by colormanage_check_view_settings(), IMB_colormanagement_init_default_view_settings(), IMB_colormanagement_validate_settings(), IMB_colormanagement_view_get_default_name(), and IMB_colormanagement_view_get_raw_or_default_name().
| const char * colormanage_view_get_default_name | ( | const ColorManagedDisplay * | display | ) |
Definition at line 3138 of file colormanagement.cc.
References 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().
| ColorManagedView * colormanage_view_get_indexed | ( | int | index | ) |
Definition at line 3186 of file colormanagement.cc.
References BLI_findlink(), and global_views.
Referenced by IMB_colormanagement_view_get_indexed_name().
| ColorManagedView * colormanage_view_get_named | ( | const char * | name | ) |
Definition at line 3175 of file colormanagement.cc.
References global_views, LISTBASE_FOREACH, STREQ, and view.
Referenced by colormanage_check_view_settings(), colormanage_load_config(), colormanage_view_get_default(), and IMB_colormanagement_view_get_named_index().
| ColorManagedView * colormanage_view_get_named_for_display | ( | const char * | display_name, |
| const char * | name ) |
Definition at line 3192 of file colormanagement.cc.
References colormanage_display_get_named(), LISTBASE_FOREACH, STRCASEEQ, and view.
Referenced by IMB_colormanagement_init_default_view_settings(), and IMB_colormanagement_view_get_raw_or_default_name().
| void colormanagement_exit | ( | ) |
Definition at line 736 of file colormanagement.cc.
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(), OCIO_exit(), and OCIO_gpuCacheFree().
Referenced by IMB_exit().
| void colormanagement_init | ( | ) |
Definition at line 669 of file colormanagement.cc.
References BCM_CONFIG_FILE, BKE_appdir_folder_id(), BLENDER_DATAFILES, BLI_getenv(), BLI_init_srgb_conversion(), BLI_path_join, colormanage_free_config(), colormanage_load_config(), FILE_MAX, G, OCIO_configCreateFallback(), OCIO_configCreateFromEnv(), OCIO_configCreateFromFile(), OCIO_configRelease(), OCIO_init(), OCIO_setCurrentConfig(), and printf.
Referenced by IMB_init().
Definition at line 1111 of file colormanagement.cc.
References BLI_strncpy(), and IMB_colormanagement_role_colorspace_name_get().
Referenced by imb_load_dpx_cineon(), imb_load_filepath_thumbnail_openexr(), imb_load_filepath_thumbnail_svg(), imb_load_filepath_thumbnail_webp(), imb_load_jp2_stream(), imb_load_jpeg(), imb_load_openexr(), imb_loadiris(), imb_loadwebp(), IMB_open_anim(), imb_thumbnail_jpeg(), and blender::imbuf::set_colorspace_name().
|
extern |
Definition at line 90 of file colormanagement.cc.
Referenced by colormanage_load_config(), and IMB_colormanagement_aces_to_scene_linear().
|
extern |
Definition at line 84 of file colormanagement.cc.
Referenced by colormanage_load_config(), IMB_colormanagement_get_luminance(), IMB_colormanagement_get_luminance_byte(), and IMB_colormanagement_get_luminance_coefficients().
|
extern |
Definition at line 88 of file colormanagement.cc.
Referenced by colormanage_load_config(), IMB_colormanagement_rec709_to_scene_linear(), and IMB_colormanagement_srgb_to_scene_linear_v3().
|
extern |
Definition at line 89 of file colormanagement.cc.
Referenced by colormanage_load_config(), and IMB_colormanagement_scene_linear_to_aces().
|
extern |
Definition at line 87 of file colormanagement.cc.
Referenced by colormanage_load_config(), IMB_colormanagement_scene_linear_to_rec709(), and IMB_colormanagement_scene_linear_to_srgb_v3().
|
extern |
Definition at line 85 of file colormanagement.cc.
Referenced by colormanage_load_config(), IMB_colormanagement_get_scene_linear_to_xyz(), and IMB_colormanagement_scene_linear_to_xyz().
|
extern |
Definition at line 86 of file colormanagement.cc.
Referenced by colormanage_load_config(), IMB_colormanagement_get_xyz_to_scene_linear(), and IMB_colormanagement_xyz_to_scene_linear().