Files
test/source/blender/compositor/operations/COM_OutputFileMultiViewOperation.h
Campbell Barton 6b9a500a3a Cleanup: disambiguate terms "name", "file" & "str" / "string"
- Rename name/filename/path to filepath when it's used for full paths.
- Rename name/path to dirpath when it refers to a directory.
- Rename file to filepath or path (when it may be a file or dir).
- Rename ImBuf::name & anim::name to filepath.
2023-05-03 15:26:14 +10:00

71 lines
2.4 KiB
C++

/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2015 Blender Foundation. */
#pragma once
#include "COM_NodeOperation.h"
#include "COM_OutputFileOperation.h"
#include "BLI_path_util.h"
#include "BLI_rect.h"
#include "DNA_color_types.h"
#include "IMB_openexr.h"
namespace blender::compositor {
class OutputOpenExrSingleLayerMultiViewOperation : public OutputSingleLayerOperation {
private:
public:
OutputOpenExrSingleLayerMultiViewOperation(const Scene *scene,
const RenderData *rd,
const bNodeTree *tree,
DataType datatype,
const ImageFormatData *format,
const char *path,
const char *view_name,
bool save_as_render);
void *get_handle(const char *filepath);
void deinit_execution() override;
};
/** Writes inputs into OpenEXR multi-layer channels. */
class OutputOpenExrMultiLayerMultiViewOperation : public OutputOpenExrMultiLayerOperation {
private:
public:
OutputOpenExrMultiLayerMultiViewOperation(const Scene *scene,
const RenderData *rd,
const bNodeTree *tree,
const char *path,
char exr_codec,
bool exr_half_float,
const char *view_name);
void *get_handle(const char *filepath);
void deinit_execution() override;
};
class OutputStereoOperation : public OutputSingleLayerOperation {
private:
/* NOTE: Using FILE_MAX here is misleading, this is not a file path. */
char pass_name_[FILE_MAX];
size_t channels_;
public:
OutputStereoOperation(const Scene *scene,
const RenderData *rd,
const bNodeTree *tree,
DataType datatype,
const struct ImageFormatData *format,
const char *path,
const char *pass_name,
const char *view_name,
bool save_as_render);
void *get_handle(const char *filepath);
void deinit_execution() override;
};
} // namespace blender::compositor