|
Blender V5.0
|
#include "BLI_mutex.hh"#include "BLT_translation.hh"#include "BKE_node.hh"#include "BKE_node_runtime.hh"#include "COM_compositor.hh"#include "RE_compositor.hh"Go to the source code of this file.
Functions | |
| static void | compositor_init_node_previews (const RenderData *render_data, bNodeTree *node_tree) |
| static void | compositor_reset_node_tree_status (bNodeTree *node_tree) |
| void | COM_execute (Render *render, RenderData *render_data, Scene *scene, bNodeTree *node_tree, const char *view_name, blender::compositor::RenderContext *render_context, blender::compositor::Profiler *profiler, blender::compositor::OutputTypes needed_outputs) |
| The main method that is used to execute the compositor tree. It can be executed during editing (blenkernel/node.cc) or rendering (renderer/pipeline.cc). | |
| void | COM_deinitialize () |
| Deinitialize the compositor caches and allocated memory. Use COM_clear_caches to only free the caches. | |
Variables | |
| static constexpr float | COM_PREVIEW_SIZE = 140.0f |
| static blender::Mutex | g_compositor_mutex |
| void COM_deinitialize | ( | ) |
Deinitialize the compositor caches and allocated memory. Use COM_clear_caches to only free the caches.
Definition at line 78 of file COM_compositor.cc.
Referenced by WM_exit_ex().
| void COM_execute | ( | Render * | render, |
| RenderData * | render_data, | ||
| Scene * | scene, | ||
| bNodeTree * | node_tree, | ||
| const char * | view_name, | ||
| blender::compositor::RenderContext * | render_context, | ||
| blender::compositor::Profiler * | profiler, | ||
| blender::compositor::OutputTypes | needed_outputs ) |
The main method that is used to execute the compositor tree. It can be executed during editing (blenkernel/node.cc) or rendering (renderer/pipeline.cc).
| Rendering | Render instance for GPU context. |
| render_data | Render data for this composite, this won't always belong to a scene. |
| node_tree | Reference to the compositor editing tree |
| rendering | This parameter determines whether the function is called from rendering (true) or editing (false). based on this setting the system will work differently:
|
- during editing all output nodes will be calculated
- another quality setting can be used bNodeTree. The quality is determined by the bNodeTree fields. quality can be modified by the user from within the node panels. - output nodes can have different priorities in the WorkScheduler.This is implemented in the COM_execute function.
OCIO_TODO: this options only used in rare cases, namely in output file node, so probably this settings could be passed in a nicer way. should be checked further, probably it'll be also needed for preview generation in display space
Definition at line 48 of file COM_compositor.cc.
References compositor_init_node_previews(), compositor_reset_node_tree_status(), g_compositor_mutex, lock, RE_compositor_execute(), and bNodeTree::runtime.
Referenced by blender::ed::space_node::compo_startjob(), and do_render_compositor().
|
static |
Definition at line 23 of file COM_compositor.cc.
References COM_PREVIEW_SIZE, float, blender::bke::node_preview_init_tree(), RenderData::xsch, and RenderData::ysch.
Referenced by COM_execute().
|
static |
Definition at line 42 of file COM_compositor.cc.
References IFACE_, and bNodeTree::runtime.
Referenced by COM_execute().
|
staticconstexpr |
Definition at line 16 of file COM_compositor.cc.
Referenced by compositor_init_node_previews().
|
static |
Definition at line 18 of file COM_compositor.cc.
Referenced by COM_execute().