|
Blender V4.3
|
#include "DNA_scene_types.h"Go to the source code of this file.
Classes | |
| struct | ImageSaveOptions |
Functions | |
| bool | BKE_image_save_options_init (ImageSaveOptions *opts, Main *bmain, Scene *scene, Image *ima, ImageUser *iuser, const bool guess_path, const bool save_as_render) |
| void | BKE_image_save_options_update (ImageSaveOptions *opts, const Image *image) |
| void | BKE_image_save_options_free (ImageSaveOptions *opts) |
| bool | BKE_image_save (ReportList *reports, Main *bmain, Image *ima, ImageUser *iuser, const ImageSaveOptions *opts) |
| bool | BKE_image_render_write_exr (ReportList *reports, const RenderResult *rr, const char *filepath, const ImageFormatData *imf, const bool save_as_render, const char *view, int layer) |
| bool | BKE_image_render_write (ReportList *reports, RenderResult *rr, const Scene *scene, const bool stamp, const char *filepath_basis, const ImageFormatData *format=nullptr, bool save_as_render=true) |
| bool BKE_image_render_write | ( | ReportList * | reports, |
| RenderResult * | rr, | ||
| const Scene * | scene, | ||
| const bool | stamp, | ||
| const char * | filepath_basis, | ||
| const ImageFormatData * | format = nullptr, | ||
| bool | save_as_render = true ) |
| filepath_basis | May be used as-is, or used as a basis for multi-view images. |
| format | The image format to use for saving, if null, the scene format will be used. |
Definition at line 1064 of file image_save.cc.
References BKE_color_managed_colorspace_settings_copy(), BKE_image_format_free(), BKE_image_format_init_for_write(), BKE_image_path_ext_from_imformat_ensure(), BKE_image_render_write_exr(), BKE_scene_multiview_view_filepath_get(), BLI_assert, BLI_findstringindex(), BLI_listbase_count_at_most(), BLI_path_extension_check(), ImageFormatData::depth, ELEM, FILE_MAX, ListBase::first, ImageFormatData::flag, image_render_print_save_message(), image_render_write_stamp_test(), IMB_colormanagement_imbuf_for_write(), IMB_freeImBuf(), IMB_stereo3d_ImBuf(), ImageFormatData::imtype, ImageFormatData::linear_colorspace_settings, offsetof, ImBuf::planes, printf, R_IMF_CHAN_DEPTH_8, R_IMF_FLAG_PREVIEW_JPG, R_IMF_IMTYPE_JPEG90, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_VIEWS_INDIVIDUAL, R_IMF_VIEWS_MULTIVIEW, R_IMF_VIEWS_STEREO_3D, RE_HasFloatPixels(), RE_render_result_rect_to_ibuf(), STEREO_LEFT_NAME, STEREO_RIGHT_NAME, STRNCPY, RenderResult::views, and ImageFormatData::views_format.
Referenced by do_write_image_or_movie(), blender::realtime_compositor::FileOutput::save(), screen_opengl_render_write(), and write_result().
| bool BKE_image_render_write_exr | ( | ReportList * | reports, |
| const RenderResult * | rr, | ||
| const char * | filepath, | ||
| const ImageFormatData * | imf, | ||
| const bool | save_as_render, | ||
| const char * | view, | ||
| int | layer ) |
Save single or multi-layer OpenEXR files from the render result. Optionally saves only a specific view or layer.
Definition at line 837 of file image_save.cc.
References add_exr_compositing_result(), BKE_reportf(), BLI_file_ensure_parent_dir_exists(), BLI_listbase_count_at_most(), ImageFormatData::depth, ImageFormatData::exr_codec, EXR_PASS_MAXNAME, ListBase::first, RenderResult::have_combined, image_exr_from_rgb_to_bw(), image_exr_from_scene_linear_to_output(), image_exr_opaque_alpha_buffer(), IMB_exr_add_channel(), IMB_exr_add_view(), IMB_exr_begin_write(), IMB_exr_close(), IMB_exr_get_handle(), IMB_exr_write_channels(), ImageFormatData::imtype, RenderResult::layers, LISTBASE_FOREACH, MEM_freeN(), RenderView::name, RenderView::next, ImageFormatData::planes, R_IMF_CHAN_DEPTH_16, R_IMF_IMTYPE_OPENEXR, RE_PASSNAME_COMBINED, RE_render_result_full_channel_name(), RE_RenderPassIsColor(), RenderResult::rectx, RenderResult::recty, RPT_ERROR, RenderResult::stamp_data, STR_ELEM, STREQ, STRNCPY, and RenderResult::views.
Referenced by BKE_image_render_write(), image_save_single(), and render_result_exr_file_cache_write().
| bool BKE_image_save | ( | ReportList * | reports, |
| Main * | bmain, | ||
| Image * | ima, | ||
| ImageUser * | iuser, | ||
| const ImageSaveOptions * | opts ) |
Definition at line 600 of file image_save.cc.
References BKE_image_get_tile_strformat(), BKE_image_set_filepath_from_tile_number(), BKE_image_signal(), BKE_imageuser_default(), BKE_reportf(), ImageSaveOptions::filepath, IMA_SIGNAL_COLORMANAGE, IMA_SRC_TILED, image_save_single(), image_save_update_filepath(), LISTBASE_FOREACH, MEM_freeN(), RPT_ERROR, ImageSaveOptions::scene, ImageUser::scene, Image::source, ImageUser::tile, tile, Image::tiles, and UDIM_TILE_FORMAT_NONE.
Referenced by blender::io::hydra::cache_image_file(), ED_image_save_all_modified(), blender::io::usd::process_usdz_textures(), and save_image_op().
| void BKE_image_save_options_free | ( | ImageSaveOptions * | opts | ) |
Definition at line 232 of file image_save.cc.
References BKE_image_format_free(), and ImageSaveOptions::im_format.
Referenced by blender::io::hydra::cache_image_file(), ED_image_save_all_modified(), image_save_as_free(), image_save_as_init(), image_save_exec(), and blender::io::usd::process_usdz_textures().
| bool BKE_image_save_options_init | ( | ImageSaveOptions * | opts, |
| Main * | bmain, | ||
| Scene * | scene, | ||
| Image * | ima, | ||
| ImageUser * | iuser, | ||
| const bool | guess_path, | ||
| const bool | save_as_render ) |
Definition at line 82 of file image_save.cc.
References BKE_image_acquire_ibuf(), BKE_image_format_color_management_copy_from_scene(), BKE_image_format_from_imbuf(), BKE_image_format_init(), BKE_image_format_init_for_write(), BKE_image_is_multiview(), BKE_image_release_ibuf(), BKE_image_user_file_path_ex(), BKE_imageuser_default(), BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_join, BLI_path_make_safe(), ImageSaveOptions::bmain, ImageFormatData::color_management, COLOR_ROLE_DEFAULT_BYTE, Image::colorspace_settings, DATA_, ImageFormatData::depth, ELEM, ImageSaveOptions::filepath, G, Image::id, ImageSaveOptions::im_format, IMA_SRC_GENERATED, IMA_SRC_TILED, IMA_SRC_VIEWER, IMB_colormanagement_role_colorspace_name_get(), IMB_colormanagement_space_name_is_data(), ImageFormatData::imtype, imtype_best_depth(), len, ImageFormatData::linear_colorspace_settings, lock, ColorManagedColorspaceSettings::name, ID::name, ImageFormatData::planes, ImageSaveOptions::prev_imtype, ImageSaveOptions::prev_save_as_render, ImageFormatData::quality, R_IMF_COLOR_MANAGEMENT_FOLLOW_SCENE, R_IMF_PLANES_BW, R_IMF_PLANES_RGB, R_IMF_PLANES_RGBA, ImageSaveOptions::save_as_render, ImageSaveOptions::scene, ImageUser::scene, scene, Image::source, Image::stereo3d_format, ImageFormatData::stereo3d_format, STR_CONCAT, STREQ, STRNCPY, Image::views_format, and ImageFormatData::views_format.
Referenced by blender::io::hydra::cache_image_file(), ED_image_save_all_modified(), image_save_as_init(), image_save_exec(), and blender::io::usd::process_usdz_textures().
| void BKE_image_save_options_update | ( | ImageSaveOptions * | opts, |
| const Image * | image ) |
Definition at line 204 of file image_save.cc.
References BKE_color_managed_colorspace_settings_copy(), BKE_image_format_color_management_copy_from_scene(), BKE_image_format_init_for_write(), BKE_image_format_update_color_space_for_type(), ELEM, ImageSaveOptions::im_format, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, ImageFormatData::imtype, ImageFormatData::linear_colorspace_settings, ImageSaveOptions::prev_imtype, ImageSaveOptions::prev_save_as_render, ImageSaveOptions::save_as_render, and ImageSaveOptions::scene.
Referenced by image_save_as_check(), and image_save_as_exec().