Blender
V3.3
|
#include "session/tile.h"
#include <atomic>
#include "graph/node.h"
#include "scene/background.h"
#include "scene/bake.h"
#include "scene/film.h"
#include "scene/integrator.h"
#include "scene/scene.h"
#include "session/session.h"
#include "util/algorithm.h"
#include "util/foreach.h"
#include "util/log.h"
#include "util/path.h"
#include "util/string.h"
#include "util/system.h"
#include "util/time.h"
#include "util/types.h"
Go to the source code of this file.
Functions | |
static std::vector< std::string > | exr_channel_names_for_passes (const BufferParams &buffer_params) |
string | node_socket_attribute_name (const SocketType &socket, const string &attr_name_prefix) |
template<typename ValidateValueFunc , typename GetValueFunc > | |
static bool | node_socket_generic_to_image_spec_atttributes (ImageSpec *image_spec, const Node *node, const SocketType &socket, const string &attr_name_prefix, const ValidateValueFunc &validate_value_func, const GetValueFunc &get_value_func) |
static bool | node_socket_to_image_spec_atttributes (ImageSpec *image_spec, const Node *node, const SocketType &socket, const string &attr_name_prefix) |
static bool | node_socket_from_image_spec_atttributes (Node *node, const SocketType &socket, const ImageSpec &image_spec, const string &attr_name_prefix) |
static bool | node_to_image_spec_atttributes (ImageSpec *image_spec, const Node *node, const string &attr_name_prefix) |
static bool | node_from_image_spec_atttributes (Node *node, const ImageSpec &image_spec, const string &attr_name_prefix) |
static bool | buffer_params_to_image_spec_atttributes (ImageSpec *image_spec, const BufferParams &buffer_params) |
static bool | buffer_params_from_image_spec_atttributes (BufferParams *buffer_params, const ImageSpec &image_spec) |
static bool | configure_image_spec_from_buffer (ImageSpec *image_spec, const BufferParams &buffer_params, const int2 tile_size=make_int2(0, 0)) |
Variables | |
static CCL_NAMESPACE_BEGIN const char * | ATTR_PASSES_COUNT = "cycles.passes.count" |
static const char * | ATTR_PASS_SOCKET_PREFIX_FORMAT = "cycles.passes.%d." |
static const char * | ATTR_BUFFER_SOCKET_PREFIX = "cycles.buffer." |
static const char * | ATTR_DENOISE_SOCKET_PREFIX = "cycles.denoise." |
static std::atomic< uint64_t > | g_instance_index = 0 |
|
static |
Definition at line 239 of file session/tile.cpp.
References ATTR_BUFFER_SOCKET_PREFIX, ATTR_PASS_SOCKET_PREFIX_FORMAT, ATTR_PASSES_COUNT, LOG, node_from_image_spec_atttributes(), BufferParams::passes, string_printf(), and BufferParams::update_passes().
Referenced by TileManager::read_full_buffer_from_disk().
|
static |
Definition at line 215 of file session/tile.cpp.
References ATTR_BUFFER_SOCKET_PREFIX, ATTR_PASS_SOCKET_PREFIX_FORMAT, ATTR_PASSES_COUNT, node_to_image_spec_atttributes(), BufferParams::passes, and string_printf().
Referenced by configure_image_spec_from_buffer().
|
static |
Definition at line 278 of file session/tile.cpp.
References buffer_params_to_image_spec_atttributes(), DCHECK_GT, exr_channel_names_for_passes(), FLOAT, BufferParams::height, TileManager::IMAGE_TILE_SIZE, min, and BufferParams::width.
Referenced by TileManager::update().
|
static |
Definition at line 42 of file session/tile.cpp.
References BufferPass::get_info(), BufferPass::name, PassInfo::num_components, BufferPass::offset, PASS_UNUSED, BufferParams::passes, and string_printf().
Referenced by configure_image_spec_from_buffer().
|
static |
Definition at line 202 of file session/tile.cpp.
References node, and node_socket_from_image_spec_atttributes().
Referenced by buffer_params_from_image_spec_atttributes(), and TileManager::read_full_buffer_from_disk().
|
inline |
Definition at line 73 of file session/tile.cpp.
References SocketType::name.
Referenced by node_socket_from_image_spec_atttributes(), node_socket_generic_to_image_spec_atttributes(), and node_socket_to_image_spec_atttributes().
|
static |
Definition at line 142 of file session/tile.cpp.
References SocketType::BOOLEAN, SocketType::ENUM, SocketType::enum_values, NodeEnum::exists(), SocketType::FLOAT, SocketType::INT, LOG, node, node_socket_attribute_name(), SocketType::STRING, and SocketType::type.
Referenced by node_from_image_spec_atttributes().
|
static |
Definition at line 79 of file session/tile.cpp.
References node, and node_socket_attribute_name().
|
static |
Definition at line 97 of file session/tile.cpp.
References SocketType::BOOLEAN, SocketType::ENUM, SocketType::enum_values, NodeEnum::exists(), SocketType::FLOAT, SocketType::INT, LOG, node, node_socket_attribute_name(), SocketType::STRING, and SocketType::type.
Referenced by node_to_image_spec_atttributes().
|
static |
Definition at line 189 of file session/tile.cpp.
References node, and node_socket_to_image_spec_atttributes().
Referenced by buffer_params_to_image_spec_atttributes(), and TileManager::update().
|
static |
Definition at line 32 of file session/tile.cpp.
Referenced by buffer_params_from_image_spec_atttributes(), and buffer_params_to_image_spec_atttributes().
|
static |
Definition at line 33 of file session/tile.cpp.
Referenced by TileManager::read_full_buffer_from_disk(), and TileManager::update().
|
static |
Definition at line 31 of file session/tile.cpp.
Referenced by buffer_params_from_image_spec_atttributes(), and buffer_params_to_image_spec_atttributes().
|
static |
Definition at line 30 of file session/tile.cpp.
Referenced by buffer_params_from_image_spec_atttributes(), and buffer_params_to_image_spec_atttributes().
|
static |
Definition at line 36 of file session/tile.cpp.
Referenced by TileManager::TileManager().