Blender  V2.93
COM_OutputFileMultiViewOperation.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * Copyright 2015, Blender Foundation.
17  */
18 
19 #pragma once
20 
21 #include "COM_NodeOperation.h"
23 
24 #include "BLI_path_util.h"
25 #include "BLI_rect.h"
26 
27 #include "DNA_color_types.h"
28 
30 
31 namespace blender::compositor {
32 
34  private:
35  public:
37  const bNodeTree *tree,
38  DataType datatype,
40  const char *path,
41  const ColorManagedViewSettings *viewSettings,
42  const ColorManagedDisplaySettings *displaySettings,
43  const char *viewName,
44  const bool saveAsRender);
45 
46  void *get_handle(const char *filename);
47  void deinitExecution() override;
48 };
49 
50 /* Writes inputs into OpenEXR multilayer channels. */
52  private:
53  public:
55  const RenderData *rd,
56  const bNodeTree *tree,
57  const char *path,
58  char exr_codec,
59  bool exr_half_float,
60  const char *viewName);
61 
62  void *get_handle(const char *filename);
63  void deinitExecution() override;
64 };
65 
67  private:
68  char m_name[FILE_MAX];
69  size_t m_channels;
70 
71  public:
73  const bNodeTree *tree,
74  DataType datatype,
75  struct ImageFormatData *format,
76  const char *path,
77  const char *name,
78  const ColorManagedViewSettings *viewSettings,
79  const ColorManagedDisplaySettings *displaySettings,
80  const char *viewName,
81  const bool saveAsRender);
82  void *get_handle(const char *filename);
83  void deinitExecution() override;
84 };
85 
86 } // namespace blender::compositor
#define FILE_MAX
OutputOpenExrMultiLayerMultiViewOperation(const Scene *scene, const RenderData *rd, const bNodeTree *tree, const char *path, char exr_codec, bool exr_half_float, const char *viewName)
OutputOpenExrSingleLayerMultiViewOperation(const RenderData *rd, const bNodeTree *tree, DataType datatype, ImageFormatData *format, const char *path, const ColorManagedViewSettings *viewSettings, const ColorManagedDisplaySettings *displaySettings, const char *viewName, const bool saveAsRender)
OutputStereoOperation(const RenderData *rd, const bNodeTree *tree, DataType datatype, struct ImageFormatData *format, const char *path, const char *name, const ColorManagedViewSettings *viewSettings, const ColorManagedDisplaySettings *displaySettings, const char *viewName, const bool saveAsRender)
Scene scene
void * tree
DataType
possible data types for sockets
Definition: COM_defines.h:27
format
Definition: logImageCore.h:47