|
Blender V5.3
|
#include <COM_render_context.hh>
Public Member Functions | |
| FileOutput (const std::string &path, const ImageFormatData &format, int2 size, bool save_as_render) | |
| ~FileOutput () | |
| void | add_view (const char *view_name) |
| void | add_view (const char *view_name, const Result &data) |
| void | add_pass (const char *pass_name, const char *view_name, const char *channels, const Result &data) |
| void | add_meta_data (std::string key, std::string value) |
| void | save (Scene *scene) |
Definition at line 45 of file COM_render_context.hh.
| blender::compositor::FileOutput::FileOutput | ( | const std::string & | path, |
| const ImageFormatData & | format, | ||
| int2 | size, | ||
| bool | save_as_render ) |
Definition at line 41 of file render_context.cc.
References blender::BLI_addtail(), FileOutput(), blender::gpu::shader::metadata::int2, blender::RenderLayer::name, and blender::R_IMF_FLAG_PREVIEW_JPG.
Referenced by FileOutput().
| blender::compositor::FileOutput::~FileOutput | ( | ) |
Definition at line 71 of file render_context.cc.
References blender::RE_FreeRenderResult(), and ~FileOutput().
Referenced by ~FileOutput().
| void blender::compositor::FileOutput::add_meta_data | ( | std::string | key, |
| std::string | value ) |
Definition at line 158 of file render_context.cc.
References add_meta_data().
Referenced by add_meta_data(), and blender::nodes::node_composite_file_output_cc::FileOutputOperation::add_meta_data_for_result().
| void blender::compositor::FileOutput::add_pass | ( | const char * | pass_name, |
| const char * | view_name, | ||
| const char * | channels, | ||
| const Result & | data ) |
Definition at line 115 of file render_context.cc.
References add_pass(), blender::BLI_addtail(), blender::BLI_assert(), blender::BW, blender::RenderPass::chan_id, blender::ImBuf::channels, blender::RenderPass::channels, blender::ImBuf::color_mode, blender::copy_v2_v2_db(), blender::data, ELEM, blender::ImBuf::float_buffer, blender::ImBuf::float_data(), blender::ImBuf::float_data_for_write(), blender::RenderPass::ibuf, blender::IMB_alloc_float_pixels(), blender::IMB_allocImBuf(), blender::RenderPass::name, blender::RenderLayer::passes, blender::ImBuf::ppm, blender::R_IMF_IMTYPE_MULTILAYER, blender::R_IMF_IMTYPE_OPENEXR, blender::RenderPass::rectx, blender::RenderPass::recty, blender::RGB, blender::RGBA, blender::STRNCPY(), UNPACK2, blender::RenderPass::view, and blender::Zero.
Referenced by add_pass(), and blender::nodes::node_composite_file_output_cc::FileOutputOperation::add_pass_for_result().
| void blender::compositor::FileOutput::add_view | ( | const char * | view_name | ) |
Definition at line 76 of file render_context.cc.
References add_view(), blender::BLI_addtail(), blender::BLI_assert(), ELEM, blender::RenderView::name, blender::R_IMF_IMTYPE_MULTILAYER, blender::R_IMF_IMTYPE_OPENEXR, and STRNCPY_UTF8.
Referenced by add_view(), add_view(), blender::nodes::node_composite_file_output_cc::FileOutputOperation::add_view_for_result(), blender::nodes::node_composite_file_output_cc::FileOutputOperation::execute_multi_layer(), and blender::nodes::node_composite_file_output_cc::FileOutputOperation::execute_single_layer_multi_view_exr().
| void blender::compositor::FileOutput::add_view | ( | const char * | view_name, |
| const Result & | data ) |
Definition at line 86 of file render_context.cc.
References add_view(), blender::BLI_addtail(), blender::BW, blender::ImBuf::channels, blender::ImBuf::color_mode, blender::data, blender::ImBuf::float_buffer, blender::ImBuf::float_data(), blender::ImBuf::float_data_for_write(), blender::RenderView::ibuf, blender::IMB_alloc_float_pixels(), blender::IMB_allocImBuf(), blender::RenderView::name, blender::RGB, blender::RGBA, STRNCPY_UTF8, UNPACK2, and blender::Zero.
| void blender::compositor::FileOutput::save | ( | Scene * | scene | ) |
Definition at line 163 of file render_context.cc.
References blender::BKE_image_render_write(), blender::BKE_render_result_stamp_data(), blender::BKE_render_result_stamp_info(), blender::BKE_reports_free(), blender::BKE_reports_init(), blender::BKE_scene_ppm_get(), blender::Scene::r, blender::RPT_STORE, and save().
Referenced by save().