|
Blender
V2.93
|
#include <errno.h>#include <string.h>#include "BLI_listbase.h"#include "BLI_path_util.h"#include "BLI_string.h"#include "DNA_image_types.h"#include "IMB_colormanagement.h"#include "IMB_imbuf.h"#include "IMB_imbuf_types.h"#include "BKE_colortools.h"#include "BKE_image.h"#include "BKE_image_save.h"#include "BKE_main.h"#include "BKE_report.h"#include "BKE_scene.h"#include "RE_pipeline.h"Go to the source code of this file.
Functions | |
| void | BKE_image_save_options_init (ImageSaveOptions *opts, Main *bmain, Scene *scene) |
| static void | image_save_post (ReportList *reports, Image *ima, ImBuf *ibuf, int ok, ImageSaveOptions *opts, int save_copy, const char *filepath, bool *r_colorspace_changed) |
| static void | imbuf_save_post (ImBuf *ibuf, ImBuf *colormanaged_ibuf) |
| static bool | image_save_single (ReportList *reports, Image *ima, ImageUser *iuser, ImageSaveOptions *opts, bool *r_colorspace_changed) |
| bool | BKE_image_save (ReportList *reports, Main *bmain, Image *ima, ImageUser *iuser, ImageSaveOptions *opts) |
| bool BKE_image_save | ( | ReportList * | reports, |
| Main * | bmain, | ||
| Image * | ima, | ||
| ImageUser * | iuser, | ||
| ImageSaveOptions * | opts | ||
| ) |
Definition at line 397 of file image_save.c.
References BKE_image_signal(), BKE_imageuser_default(), BKE_reportf(), BLI_path_sequence_decode(), BLI_path_sequence_encode(), BLI_strncpy(), FILE_MAX, ImageSaveOptions::filepath, IMA_SIGNAL_COLORMANAGE, IMA_SRC_TILED, image_save_single(), LISTBASE_FOREACH, NULL, RPT_ERROR, Image::source, ImageUser::tile, and Image::tiles.
Referenced by ED_image_save_all_modified(), and save_image_op().
| void BKE_image_save_options_init | ( | ImageSaveOptions * | opts, |
| Main * | bmain, | ||
| Scene * | scene | ||
| ) |
Definition at line 46 of file image_save.c.
References BKE_imformat_defaults(), ImageSaveOptions::bmain, ImageSaveOptions::im_format, ImageSaveOptions::scene, and scene.
Referenced by ED_image_save_all_modified(), image_save_as_exec(), image_save_as_invoke(), and image_save_exec().
|
static |
Definition at line 56 of file image_save.c.
References BKE_color_managed_colorspace_settings_copy(), BKE_color_managed_colorspace_settings_equals(), BKE_reportf(), BLI_path_rel(), BLI_strncpy(), ImageSaveOptions::bmain, Image::colorspace_settings, ImageSaveOptions::do_newpath, ELEM, Image::filepath, IB_BITMAPDIRTY, IB_rect, IB_rectfloat, IB_zbuf, IB_zbuffloat, Image::id, ID_BLEND_PATH, IMA_SRC_FILE, IMA_SRC_GENERATED, IMA_SRC_VIEWER, IMA_TYPE_IMAGE, IMA_TYPE_R_RESULT, IMB_colormanagement_colorspace_from_ibuf_ftype(), imb_freerectfloatImBuf(), imb_freerectImBuf(), IMB_freezbuffloatImBuf(), IMB_freezbufImBuf(), ImBuf::mall, ImBuf::name, ImBuf::rect, ImBuf::rect_float, ImageSaveOptions::relative, RPT_ERROR, Image::source, Image::type, ImBuf::userflags, ImBuf::zbuf, and ImBuf::zbuf_float.
Referenced by image_save_single().
|
static |
ima->filepath and ibuf->name should end up the same. ibuf is important to get the settings. Definition at line 141 of file image_save.c.
References BKE_image_acquire_ibuf(), BKE_image_acquire_renderresult(), BKE_image_is_stereo(), BKE_image_multilayer_index(), BKE_image_multiview_index(), BKE_image_release_ibuf(), BKE_image_release_renderresult(), BKE_imageuser_default(), BKE_imbuf_alpha_test(), BKE_imbuf_stamp_info(), BKE_imbuf_write_as(), BKE_imbuf_write_prepare(), BKE_report(), BKE_reportf(), BKE_scene_multiview_view_filepath_get(), BLI_findlink(), BLI_findstring(), BLI_findstringindex(), BLI_listbase_count(), BLI_listbase_count_at_most(), ImageFormatData::display_settings, ELEM, FILE_MAX, ImageSaveOptions::filepath, ImageUser::flag, IB_BITMAPDIRTY, id, if(), ImageSaveOptions::im_format, IMA_SHOW_STEREO, IMA_TYPE_R_RESULT, image_save_post(), IMB_colormanagement_imbuf_for_write(), IMB_dupImBuf(), IMB_freeImBuf(), IMB_isfloat(), IMB_prepare_write_ImBuf(), IMB_stereo3d_ImBuf(), imbuf_save_post(), ImageFormatData::imtype, ImageUser::layer, names, NULL, ImBuf::planes, ImageFormatData::planes, Scene::r, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_PLANES_RGB, R_IMF_PLANES_RGBA, R_IMF_VIEWS_INDIVIDUAL, R_IMF_VIEWS_MULTIVIEW, R_IMF_VIEWS_STEREO_3D, RE_HasFloatPixels(), RE_WriteRenderResult(), ImBuf::rect, ImBuf::rect_float, RPT_ERROR, ImageSaveOptions::save_as_render, ImageSaveOptions::save_copy, ImageSaveOptions::scene, STEREO_LEFT_NAME, STEREO_RIGHT_NAME, Image::type, ImBuf::userflags, view, ImageUser::view, ImageFormatData::view_settings, Image::views, RenderResult::views, and ImageFormatData::views_format.
Referenced by BKE_image_save().
Definition at line 121 of file image_save.c.
References ImBuf::foptions, ImBuf::ftype, IMB_freeImBuf(), and ImBuf::planes.
Referenced by image_save_single().