Blender V4.3
BKE_image_save.hh File Reference
#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)
 

Function Documentation

◆ BKE_image_render_write()

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 )

◆ BKE_image_render_write_exr()

◆ BKE_image_save()

◆ BKE_image_save_options_free()

◆ BKE_image_save_options_init()

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().

◆ BKE_image_save_options_update()