Blender
V3.3
|
#include "DNA_scene_types.h"
Go to the source code of this file.
Classes | |
struct | ImageSaveOptions |
Typedefs | |
typedef struct ImageSaveOptions | ImageSaveOptions |
Functions | |
bool | BKE_image_save_options_init (ImageSaveOptions *opts, struct Main *bmain, struct Scene *scene, struct Image *ima, struct ImageUser *iuser, const bool guess_path, const bool save_as_render) |
void | BKE_image_save_options_update (struct ImageSaveOptions *opts, const struct Image *ima) |
void | BKE_image_save_options_free (struct ImageSaveOptions *opts) |
bool | BKE_image_save (struct ReportList *reports, struct Main *bmain, struct Image *ima, struct ImageUser *iuser, const struct ImageSaveOptions *opts) |
bool | BKE_image_render_write_exr (struct ReportList *reports, const struct RenderResult *rr, const char *filepath, const struct ImageFormatData *imf, const bool save_as_render, const char *view, int layer) |
bool | BKE_image_render_write (struct ReportList *reports, struct RenderResult *rr, const struct Scene *scene, const bool stamp, const char *filepath_basis) |
typedef struct ImageSaveOptions ImageSaveOptions |
bool BKE_image_render_write | ( | struct ReportList * | reports, |
struct RenderResult * | rr, | ||
const struct Scene * | scene, | ||
const bool | stamp, | ||
const char * | filepath_basis | ||
) |
filepath_basis | May be used as-is, or used as a basis for multi-view images. |
Referenced by do_write_image_or_movie(), screen_opengl_render_write(), and write_result().
bool BKE_image_render_write_exr | ( | struct ReportList * | reports, |
const struct RenderResult * | rr, | ||
const char * | filepath, | ||
const struct 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.
Referenced by render_result_exr_file_cache_write().
bool BKE_image_save | ( | struct ReportList * | reports, |
struct Main * | bmain, | ||
struct Image * | ima, | ||
struct ImageUser * | iuser, | ||
const struct ImageSaveOptions * | opts | ||
) |
Referenced by ED_image_save_all_modified(), and save_image_op().
void BKE_image_save_options_free | ( | struct ImageSaveOptions * | opts | ) |
Definition at line 241 of file image_save.cc.
References BKE_image_format_free(), and ImageSaveOptions::im_format.
Referenced by ED_image_save_all_modified(), image_save_as_free(), image_save_as_init(), and image_save_exec().
bool BKE_image_save_options_init | ( | ImageSaveOptions * | opts, |
struct Main * | bmain, | ||
struct Scene * | scene, | ||
struct Image * | ima, | ||
struct ImageUser * | iuser, | ||
const bool | guess_path, | ||
const bool | save_as_render | ||
) |
Definition at line 76 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_make_safe(), BLI_snprintf(), BLI_strncpy(), ImageSaveOptions::bmain, ImageFormatData::color_management, COLOR_ROLE_DEFAULT_BYTE, Image::colorspace_settings, ImageFormatData::depth, ELEM, ImageSaveOptions::filepath, G, Image::id, ImageSaveOptions::im_format, RenderData::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, Scene::r, R_IMF_COLOR_MANAGEMENT_FOLLOW_SCENE, R_IMF_PLANES_BW, R_IMF_PLANES_RGB, R_IMF_PLANES_RGBA, ImageSaveOptions::save_as_render, ImageSaveOptions::scene, scene, ImageUser::scene, Image::source, Image::stereo3d_format, ImageFormatData::stereo3d_format, STR_CONCAT, STREQ, STRNCPY, Image::views_format, and ImageFormatData::views_format.
Referenced by ED_image_save_all_modified(), image_save_as_init(), and image_save_exec().
void BKE_image_save_options_update | ( | struct ImageSaveOptions * | opts, |
const struct Image * | ima | ||
) |
Referenced by image_save_as_check(), and image_save_as_exec().