Blender  V3.3
COM_CompositorContext.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2011 Blender Foundation. */
3 
5 
6 namespace blender::compositor {
7 
9 {
10  scene_ = nullptr;
11  rd_ = nullptr;
12  quality_ = eCompositorQuality::High;
13  hasActiveOpenCLDevices_ = false;
14  fast_calculation_ = false;
15  bnodetree_ = nullptr;
16 }
17 
19 {
20  BLI_assert(rd_);
21  return rd_->cfra;
22 }
23 
25 {
28 }
29 
31 {
32  if (U.experimental.use_full_frame_compositor) {
33  BLI_assert(bnodetree_ != nullptr);
34  switch (bnodetree_->execution_mode) {
35  case 1:
37  case 0:
39  default:
40  BLI_assert_msg(0, "Invalid execution mode");
41  }
42  }
44 }
45 
46 } // namespace blender::compositor
#define BLI_assert(a)
Definition: BLI_assert.h:46
#define BLI_assert_msg(a, msg)
Definition: BLI_assert.h:53
unsigned int U
Definition: btGjkEpa3.h:78
CompositorContext()
constructor initializes the context with default values.
const RenderData * get_render_data() const
get the scene of the context
int get_framenumber() const
get the current frame-number of the scene in this context
float get_render_percentage_as_factor() const
Get the render percentage as a factor. The compositor uses a factor i.o. a percentage.
int execution_mode