This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/compositor/operations/COM_OutputFileMultiViewOperation.h
Jesse Yurkovich 675f6ef089 Cleanup: Use const pointers for ImageSaveOptions and ImageFormatData
Use const pointers to ImageSaveOptions and ImageFormatData for API
parameters where appropriate.

Differential Revision: https://developer.blender.org/D15400
2022-07-14 21:27:58 -07:00

70 lines
2.3 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 *filename);
void deinit_execution() override;
};
/* Writes inputs into OpenEXR multilayer 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 *filename);
void deinit_execution() override;
};
class OutputStereoOperation : public OutputSingleLayerOperation {
private:
char 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 *name,
const char *view_name,
bool save_as_render);
void *get_handle(const char *filename);
void deinit_execution() override;
};
} // namespace blender::compositor