This applies an OpenColorIO display, view and look transform on a color in the scene_linear colorspace. In general, OpenColorIO configurations do not contain a colorspace for every view + display, especially if they are modern configs using the display colorspace and shared view mechanisms. Nor do they include looks. So the Convert Colorspace node is not sufficient. Additionally, we would like to avoid making the colorspace list too long in the default config, as we are adding many new views and transforms. Exposure, gamma curves and white point functionality are not included in this node, as there are native ways of doing that in the compositor. These settings are marked non-editable in the Python API. Pull Request: https://projects.blender.org/blender/blender/pulls/145069
40 lines
958 B
C++
40 lines
958 B
C++
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#include "COM_static_cache_manager.hh"
|
|
|
|
namespace blender::compositor {
|
|
|
|
void StaticCacheManager::reset()
|
|
{
|
|
if (should_skip_next_reset_) {
|
|
should_skip_next_reset_ = false;
|
|
return;
|
|
}
|
|
|
|
symmetric_blur_weights.reset();
|
|
symmetric_separable_blur_weights.reset();
|
|
morphological_distance_feather_weights.reset();
|
|
cached_masks.reset();
|
|
smaa_precomputed_textures.reset();
|
|
ocio_color_space_conversion_shaders.reset();
|
|
ocio_to_display_shaders.reset();
|
|
distortion_grids.reset();
|
|
keying_screens.reset();
|
|
cached_shaders.reset();
|
|
bokeh_kernels.reset();
|
|
cached_images.reset();
|
|
deriche_gaussian_coefficients.reset();
|
|
van_vliet_gaussian_coefficients.reset();
|
|
fog_glow_kernels.reset();
|
|
image_coordinates.reset();
|
|
}
|
|
|
|
void StaticCacheManager::skip_next_reset()
|
|
{
|
|
should_skip_next_reset_ = true;
|
|
}
|
|
|
|
} // namespace blender::compositor
|