|
Blender V5.0
|
#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, int channels, float *buffer) |
| void | add_pass (const char *pass_name, const char *view_name, const char *channels, float *buffer) |
| void | add_meta_data (std::string key, std::string value) |
| void | save (Scene *scene) |
Definition at line 41 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 40 of file render_context.cc.
References BLI_addtail(), MEM_callocN(), RenderLayer::name, R_IMF_FLAG_PREVIEW_JPG, and size().
| blender::compositor::FileOutput::~FileOutput | ( | ) |
Definition at line 70 of file render_context.cc.
References RE_FreeRenderResult().
| void blender::compositor::FileOutput::add_meta_data | ( | std::string | key, |
| std::string | value ) |
Definition at line 124 of file render_context.cc.
Referenced by 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, | ||
| float * | buffer ) |
Definition at line 97 of file render_context.cc.
References BLI_addtail(), BLI_assert, BLI_strnlen(), RenderPass::chan_id, ImBuf::channels, RenderPass::channels, copy_v2_v2_db(), ELEM, IB_TAKE_OWNERSHIP, RenderPass::ibuf, IMB_allocImBuf(), IMB_assign_float_buffer(), MEM_callocN(), RenderPass::name, RenderLayer::passes, ImBuf::ppm, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, RenderPass::rectx, RenderPass::recty, STRNCPY(), and RenderPass::view.
Referenced by 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 75 of file render_context.cc.
References BLI_addtail(), BLI_assert, ELEM, MEM_callocN(), RenderView::name, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, and STRNCPY_UTF8.
Referenced by 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, |
| int | channels, | ||
| float * | buffer ) |
Definition at line 85 of file render_context.cc.
References BLI_addtail(), ImBuf::channels, IB_TAKE_OWNERSHIP, RenderView::ibuf, IMB_allocImBuf(), IMB_assign_float_buffer(), MEM_callocN(), RenderView::name, and STRNCPY_UTF8.
| void blender::compositor::FileOutput::save | ( | Scene * | scene | ) |
Definition at line 129 of file render_context.cc.
References BKE_image_render_write(), BKE_render_result_stamp_data(), BKE_render_result_stamp_info(), BKE_reports_free(), BKE_reports_init(), BKE_scene_ppm_get(), Scene::r, and RPT_STORE.