|
Blender
V2.93
|
#include <fcntl.h>#include <math.h>#include <stdio.h>#include <string.h>#include <unistd.h>#include <time.h>#include "CLG_log.h"#include "MEM_guardedalloc.h"#include "IMB_colormanagement.h"#include "IMB_imbuf.h"#include "IMB_imbuf_types.h"#include "IMB_metadata.h"#include "IMB_moviecache.h"#include "DNA_brush_types.h"#include "DNA_camera_types.h"#include "DNA_defaults.h"#include "DNA_light_types.h"#include "DNA_material_types.h"#include "DNA_mesh_types.h"#include "DNA_meshdata_types.h"#include "DNA_object_types.h"#include "DNA_packedFile_types.h"#include "DNA_scene_types.h"#include "DNA_sequence_types.h"#include "DNA_simulation_types.h"#include "DNA_world_types.h"#include "BLI_blenlib.h"#include "BLI_math_vector.h"#include "BLI_mempool.h"#include "BLI_system.h"#include "BLI_threads.h"#include "BLI_timecode.h"#include "BLI_utildefines.h"#include "BLT_translation.h"#include "BKE_colortools.h"#include "BKE_global.h"#include "BKE_icons.h"#include "BKE_idtype.h"#include "BKE_image.h"#include "BKE_lib_id.h"#include "BKE_main.h"#include "BKE_node.h"#include "BKE_packedFile.h"#include "BKE_report.h"#include "BKE_scene.h"#include "BKE_workspace.h"#include "BLF_api.h"#include "PIL_time.h"#include "RE_pipeline.h"#include "SEQ_utils.h"#include "GPU_texture.h"#include "BLI_sys_types.h"#include "DEG_depsgraph.h"#include "DEG_depsgraph_query.h"#include "BLO_read_write.h"#include "DNA_node_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "DNA_view3d_types.h"Go to the source code of this file.
Classes | |
| struct | ImageCacheKey |
| struct | StampDataCustomField |
| struct | StampData |
| struct | ImagePoolItem |
| struct | ImagePool |
Macros | |
| #define | DNA_DEPRECATED_ALLOW |
| #define | IMA_NO_INDEX 0x7FEFEFEF |
| #define | IMA_MAKE_INDEX(entry, index) (((entry) << 10) + (index)) |
| #define | IMA_INDEX_ENTRY(index) ((index) >> 10) |
| #define | STAMP_NAME_SIZE ((MAX_ID_NAME - 2) + 16) |
| #define | TEXT_SIZE_CHECK(str, w, h) ((str[0]) && ((void)(h = h_fixed), (w = BLF_width(mono, str, sizeof(str))))) |
| #define | TEXT_SIZE_CHECK_WORD_WRAP(str, w, h) |
| #define | BUFF_MARGIN_X 2 |
| #define | BUFF_MARGIN_Y 1 |
| #define | CALL(member, value_str) |
Typedefs | |
| typedef struct ImageCacheKey | ImageCacheKey |
| typedef struct StampDataCustomField | StampDataCustomField |
| typedef struct StampData | StampData |
| typedef struct ImagePoolItem | ImagePoolItem |
| typedef struct ImagePool | ImagePool |
Functions | |
| static void | image_init (Image *ima, short source, short type) |
| static void | image_free_packedfiles (Image *ima) |
| static void | copy_image_packedfiles (ListBase *lb_dst, const ListBase *lb_src) |
| static void | image_init_data (ID *id) |
| static void | image_copy_data (Main *UNUSED(bmain), ID *id_dst, const ID *id_src, const int flag) |
| static void | image_free_data (ID *id) |
| static void | image_foreach_cache (ID *id, IDTypeForeachCacheFunctionCallback function_callback, void *user_data) |
| static void | image_blend_write (BlendWriter *writer, ID *id, const void *id_address) |
| static void | image_blend_read_data (BlendDataReader *reader, ID *id) |
| static void | image_blend_read_lib (BlendLibReader *UNUSED(reader), ID *id) |
| static int | image_num_files (struct Image *ima) |
| static ImBuf * | image_acquire_ibuf (Image *ima, ImageUser *iuser, void **r_lock) |
| static void | image_update_views_format (Image *ima, ImageUser *iuser) |
| static void | image_add_view (Image *ima, const char *viewname, const char *filepath) |
| static unsigned int | imagecache_hashhash (const void *key_v) |
| static bool | imagecache_hashcmp (const void *a_v, const void *b_v) |
| static void | imagecache_keydata (void *userkey, int *framenr, int *proxy, int *render_flags) |
| static void | imagecache_put (Image *image, int index, ImBuf *ibuf) |
| static void | imagecache_remove (Image *image, int index) |
| static struct ImBuf * | imagecache_get (Image *image, int index) |
| void | BKE_images_init (void) |
| void | BKE_images_exit (void) |
| static void | image_free_cached_frames (Image *image) |
| void | BKE_image_free_packedfiles (Image *ima) |
| void | BKE_image_free_views (Image *image) |
| static void | image_free_anims (Image *ima) |
| void | BKE_image_free_buffers_ex (Image *ima, bool do_lock) |
| void | BKE_image_free_buffers (Image *ima) |
| void | BKE_image_free (Image *ima) |
| static Image * | image_alloc (Main *bmain, const char *name, short source, short type) |
| static ImBuf * | image_get_cached_ibuf_for_index_entry (Image *ima, int index, int entry) |
| static void | image_assign_ibuf (Image *ima, ImBuf *ibuf, int index, int entry) |
| static void | image_remove_ibuf (Image *ima, int index, int entry) |
| void | BKE_image_merge (Main *bmain, Image *dest, Image *source) |
| bool | BKE_image_scale (Image *image, int width, int height) |
| bool | BKE_image_has_opengl_texture (Image *ima) |
| ImageTile * | BKE_image_get_tile (Image *ima, int tile_number) |
| ImageTile * | BKE_image_get_tile_from_iuser (Image *ima, const ImageUser *iuser) |
| int | BKE_image_get_tile_from_pos (struct Image *ima, const float uv[2], float r_uv[2], float r_ofs[2]) |
| int | BKE_image_find_nearest_tile (const Image *image, const float co[2]) |
| static void | image_init_color_management (Image *ima) |
| char | BKE_image_alpha_mode_from_extension_ex (const char *filepath) |
| void | BKE_image_alpha_mode_from_extension (Image *image) |
| Image * | BKE_image_load (Main *bmain, const char *filepath) |
| Image * | BKE_image_load_exists_ex (Main *bmain, const char *filepath, bool *r_exists) |
| Image * | BKE_image_load_exists (Main *bmain, const char *filepath) |
| static ImBuf * | add_ibuf_size (unsigned int width, unsigned int height, const char *name, int depth, int floatbuf, short gen_type, const float color[4], ColorManagedColorspaceSettings *colorspace_settings) |
| Image * | BKE_image_add_generated (Main *bmain, unsigned int width, unsigned int height, const char *name, int depth, int floatbuf, short gen_type, const float color[4], const bool stereo3d, const bool is_data, const bool tiled) |
| Image * | BKE_image_add_from_imbuf (Main *bmain, ImBuf *ibuf, const char *name) |
| static bool | image_memorypack_imbuf (Image *ima, ImBuf *ibuf, const char *filepath) |
| bool | BKE_image_memorypack (Image *ima) |
| void | BKE_image_packfiles (ReportList *reports, Image *ima, const char *basepath) |
| void | BKE_image_packfiles_from_mem (ReportList *reports, Image *ima, char *data, const size_t data_len) |
| void | BKE_image_tag_time (Image *ima) |
| static uintptr_t | image_mem_size (Image *image) |
| void | BKE_image_print_memlist (Main *bmain) |
| static bool | imagecache_check_dirty (ImBuf *ibuf, void *UNUSED(userkey), void *UNUSED(userdata)) |
| void | BKE_image_free_all_textures (Main *bmain) |
| static bool | imagecache_check_free_anim (ImBuf *ibuf, void *UNUSED(userkey), void *userdata) |
| void | BKE_image_free_anim_ibufs (Image *ima, int except_frame) |
| void | BKE_image_all_free_anim_ibufs (Main *bmain, int cfra) |
| int | BKE_image_imtype_to_ftype (const char imtype, ImbFormatOptions *r_options) |
| char | BKE_image_ftype_to_imtype (const int ftype, const ImbFormatOptions *options) |
| bool | BKE_imtype_is_movie (const char imtype) |
| bool | BKE_imtype_supports_zbuf (const char imtype) |
| bool | BKE_imtype_supports_compress (const char imtype) |
| bool | BKE_imtype_supports_quality (const char imtype) |
| bool | BKE_imtype_requires_linear_float (const char imtype) |
| char | BKE_imtype_valid_channels (const char imtype, bool write_file) |
| char | BKE_imtype_valid_depths (const char imtype) |
| char | BKE_imtype_from_arg (const char *imtype_arg) |
| static bool | do_add_image_extension (char *string, const char imtype, const ImageFormatData *im_format) |
| int | BKE_image_path_ensure_ext_from_imformat (char *string, const ImageFormatData *im_format) |
| int | BKE_image_path_ensure_ext_from_imtype (char *string, const char imtype) |
| void | BKE_imformat_defaults (ImageFormatData *im_format) |
| void | BKE_imbuf_to_image_format (struct ImageFormatData *im_format, const ImBuf *imbuf) |
| static void | stampdata (const Scene *scene, Object *camera, StampData *stamp_data, int do_prefix, bool use_dynamic) |
| static void | stampdata_from_template (StampData *stamp_data, const Scene *scene, const StampData *stamp_data_template, bool do_prefix) |
| void | BKE_image_stamp_buf (Scene *scene, Object *camera, const StampData *stamp_data_template, unsigned char *rect, float *rectf, int width, int height, int channels) |
| void | BKE_render_result_stamp_info (Scene *scene, Object *camera, struct RenderResult *rr, bool allocate_only) |
| struct StampData * | BKE_stamp_info_from_scene_static (const Scene *scene) |
| bool | BKE_stamp_is_known_field (const char *field_name) |
| void | BKE_stamp_info_callback (void *data, struct StampData *stamp_data, StampCallback callback, bool noskip) |
| void | BKE_render_result_stamp_data (RenderResult *rr, const char *key, const char *value) |
| StampData * | BKE_stamp_data_copy (const StampData *stamp_data) |
| void | BKE_stamp_data_free (StampData *stamp_data) |
| static void | metadata_set_field (void *data, const char *propname, char *propvalue, int UNUSED(len)) |
| static void | metadata_get_field (void *data, const char *propname, char *propvalue, int len) |
| void | BKE_imbuf_stamp_info (RenderResult *rr, struct ImBuf *ibuf) |
| static void | metadata_copy_custom_fields (const char *field, const char *value, void *rr_v) |
| void | BKE_stamp_info_from_imbuf (RenderResult *rr, struct ImBuf *ibuf) |
| bool | BKE_imbuf_alpha_test (ImBuf *ibuf) |
| void | BKE_imbuf_write_prepare (ImBuf *ibuf, const ImageFormatData *imf) |
| int | BKE_imbuf_write (ImBuf *ibuf, const char *name, const ImageFormatData *imf) |
| int | BKE_imbuf_write_as (ImBuf *ibuf, const char *name, ImageFormatData *imf, const bool save_copy) |
| int | BKE_imbuf_write_stamp (Scene *scene, struct RenderResult *rr, ImBuf *ibuf, const char *name, const struct ImageFormatData *imf) |
| static void | do_makepicstring (char *string, const char *base, const char *relbase, int frame, const char imtype, const ImageFormatData *im_format, const bool use_ext, const bool use_frames, const char *suffix) |
| void | BKE_image_path_from_imformat (char *string, const char *base, const char *relbase, int frame, const ImageFormatData *im_format, const bool use_ext, const bool use_frames, const char *suffix) |
| void | BKE_image_path_from_imtype (char *string, const char *base, const char *relbase, int frame, const char imtype, const bool use_ext, const bool use_frames, const char *suffix) |
| struct anim * | openanim_noload (const char *name, int flags, int streamindex, char colorspace[IMA_MAX_SPACE]) |
| struct anim * | openanim (const char *name, int flags, int streamindex, char colorspace[IMA_MAX_SPACE]) |
| Image * | BKE_image_ensure_viewer (Main *bmain, int type, const char *name) |
| static void | image_viewer_create_views (const RenderData *rd, Image *ima) |
| void | BKE_image_ensure_viewer_views (const RenderData *rd, Image *ima, ImageUser *iuser) |
| static void | image_walk_ntree_all_users (bNodeTree *ntree, ID *id, void *customdata, void callback(Image *ima, ID *iuser_id, ImageUser *iuser, void *customdata)) |
| static void | image_walk_id_all_users (ID *id, bool skip_nested_nodes, void *customdata, void callback(Image *ima, ID *iuser_id, ImageUser *iuser, void *customdata)) |
| void | BKE_image_walk_all_users (const Main *mainp, void *customdata, void callback(Image *ima, ID *iuser_id, ImageUser *iuser, void *customdata)) |
| static void | image_tag_frame_recalc (Image *ima, ID *iuser_id, ImageUser *iuser, void *customdata) |
| static void | image_tag_reload (Image *ima, ID *iuser_id, ImageUser *iuser, void *customdata) |
| void | BKE_imageuser_default (ImageUser *iuser) |
| void | BKE_image_init_imageuser (Image *ima, ImageUser *iuser) |
| static void | image_free_tile (Image *ima, ImageTile *tile) |
| void | BKE_image_signal (Main *bmain, Image *ima, ImageUser *iuser, int signal) |
| static RenderPass * | image_render_pass_get (RenderLayer *rl, const int pass, const int view, int *r_passindex) |
| void | BKE_image_get_tile_label (Image *ima, ImageTile *tile, char *label, int len_label) |
| ImageTile * | BKE_image_add_tile (struct Image *ima, int tile_number, const char *label) |
| bool | BKE_image_remove_tile (struct Image *ima, ImageTile *tile) |
| bool | BKE_image_fill_tile (struct Image *ima, ImageTile *tile, int width, int height, const float color[4], int gen_type, int planes, bool is_float) |
| RenderPass * | BKE_image_multilayer_index (RenderResult *rr, ImageUser *iuser) |
| void | BKE_image_multiview_index (Image *ima, ImageUser *iuser) |
| bool | BKE_image_is_multilayer (Image *ima) |
| bool | BKE_image_is_multiview (Image *ima) |
| bool | BKE_image_is_stereo (Image *ima) |
| static void | image_init_multilayer_multiview (Image *ima, RenderResult *rr) |
| RenderResult * | BKE_image_acquire_renderresult (Scene *scene, Image *ima) |
| void | BKE_image_release_renderresult (Scene *scene, Image *ima) |
| bool | BKE_image_is_openexr (struct Image *ima) |
| void | BKE_image_backup_render (Scene *scene, Image *ima, bool free_current_slot) |
| static void | image_init_after_load (Image *ima, ImageUser *iuser, ImBuf *UNUSED(ibuf)) |
| static int | imbuf_alpha_flags_for_image (Image *ima) |
| static ImBuf * | load_sequence_single (Image *ima, ImageUser *iuser, int frame, const int view_id, bool *r_assign) |
| static ImBuf * | image_load_sequence_file (Image *ima, ImageUser *iuser, int entry, int frame) |
| static ImBuf * | image_load_sequence_multilayer (Image *ima, ImageUser *iuser, int entry, int frame) |
| static ImBuf * | load_movie_single (Image *ima, ImageUser *iuser, int frame, const int view_id) |
| static ImBuf * | image_load_movie_file (Image *ima, ImageUser *iuser, int frame) |
| static ImBuf * | load_image_single (Image *ima, ImageUser *iuser, int cfra, const int view_id, const bool has_packed, bool *r_assign) |
| static ImBuf * | image_load_image_file (Image *ima, ImageUser *iuser, int cfra) |
| static ImBuf * | image_get_ibuf_multilayer (Image *ima, ImageUser *iuser) |
| static ImBuf * | image_get_render_result (Image *ima, ImageUser *iuser, void **r_lock) |
| static int | image_get_multiview_index (Image *ima, ImageUser *iuser) |
| static void | image_get_entry_and_index (Image *ima, ImageUser *iuser, int *r_entry, int *r_index) |
| static ImBuf * | image_get_cached_ibuf (Image *ima, ImageUser *iuser, int *r_entry, int *r_index) |
| BLI_INLINE bool | image_quick_test (Image *ima, const ImageUser *iuser) |
| ImBuf * | BKE_image_acquire_ibuf (Image *ima, ImageUser *iuser, void **r_lock) |
| void | BKE_image_release_ibuf (Image *ima, ImBuf *ibuf, void *lock) |
| bool | BKE_image_has_ibuf (Image *ima, ImageUser *iuser) |
| ImagePool * | BKE_image_pool_new (void) |
| void | BKE_image_pool_free (ImagePool *pool) |
| BLI_INLINE ImBuf * | image_pool_find_item (ImagePool *pool, Image *image, int entry, int index, bool *found) |
| ImBuf * | BKE_image_pool_acquire_ibuf (Image *ima, ImageUser *iuser, ImagePool *pool) |
| void | BKE_image_pool_release_ibuf (Image *ima, ImBuf *ibuf, ImagePool *pool) |
| int | BKE_image_user_frame_get (const ImageUser *iuser, int cfra, bool *r_is_in_range) |
| void | BKE_image_user_frame_calc (Image *ima, ImageUser *iuser, int cfra) |
| static void | image_editors_update_frame (Image *ima, ID *UNUSED(iuser_id), ImageUser *iuser, void *customdata) |
| void | BKE_image_editors_update_frame (const Main *bmain, int cfra) |
| static void | image_user_id_has_animation (Image *ima, ID *UNUSED(iuser_id), ImageUser *UNUSED(iuser), void *customdata) |
| bool | BKE_image_user_id_has_animation (ID *id) |
| static void | image_user_id_eval_animation (Image *ima, ID *UNUSED(iduser_id), ImageUser *iuser, void *customdata) |
| void | BKE_image_user_id_eval_animation (Depsgraph *depsgraph, ID *id) |
| void | BKE_image_user_file_path (ImageUser *iuser, Image *ima, char *filepath) |
| bool | BKE_image_has_alpha (struct Image *image) |
| void | BKE_image_get_size (Image *image, ImageUser *iuser, int *r_width, int *r_height) |
| void | BKE_image_get_size_fl (Image *image, ImageUser *iuser, float r_size[2]) |
| void | BKE_image_get_aspect (Image *image, float *r_aspx, float *r_aspy) |
| unsigned char * | BKE_image_get_pixels_for_frame (struct Image *image, int frame, int tile) |
| float * | BKE_image_get_float_pixels_for_frame (struct Image *image, int frame, int tile) |
| int | BKE_image_sequence_guess_offset (Image *image) |
| bool | BKE_image_has_anim (Image *ima) |
| bool | BKE_image_has_packedfile (Image *ima) |
| bool | BKE_image_has_filepath (Image *ima) |
| bool | BKE_image_is_animated (Image *image) |
| bool | BKE_image_has_multiple_ibufs (Image *image) |
| bool | BKE_image_is_dirty_writable (Image *image, bool *r_is_writable) |
| bool | BKE_image_is_dirty (Image *image) |
| void | BKE_image_mark_dirty (Image *UNUSED(image), ImBuf *ibuf) |
| bool | BKE_image_buffer_format_writable (ImBuf *ibuf) |
| void | BKE_image_file_format_set (Image *image, int ftype, const ImbFormatOptions *options) |
| bool | BKE_image_has_loaded_ibuf (Image *image) |
| ImBuf * | BKE_image_get_ibuf_with_name (Image *image, const char *name) |
| ImBuf * | BKE_image_get_first_ibuf (Image *image) |
| RenderSlot * | BKE_image_add_renderslot (Image *ima, const char *name) |
| bool | BKE_image_remove_renderslot (Image *ima, ImageUser *iuser, int index) |
| bool | BKE_image_clear_renderslot (Image *ima, ImageUser *iuser, int index) |
| RenderSlot * | BKE_image_get_renderslot (Image *ima, int index) |
Variables | |
| static CLG_LogRef | LOG = {"bke.image"} |
| static ThreadMutex * | image_mutex |
| IDTypeInfo | IDType_ID_IM |
| static const char * | stamp_metadata_fields [] |
| #define BUFF_MARGIN_X 2 |
| #define BUFF_MARGIN_Y 1 |
| #define CALL | ( | member, | |
| value_str | |||
| ) |
| #define IMA_MAKE_INDEX | ( | entry, | |
| index | |||
| ) | (((entry) << 10) + (index)) |
| #define STAMP_NAME_SIZE ((MAX_ID_NAME - 2) + 16) |
| #define TEXT_SIZE_CHECK | ( | str, | |
| w, | |||
| h | |||
| ) | ((str[0]) && ((void)(h = h_fixed), (w = BLF_width(mono, str, sizeof(str))))) |
| typedef struct ImageCacheKey ImageCacheKey |
| typedef struct ImagePoolItem ImagePoolItem |
| typedef struct StampDataCustomField StampDataCustomField |
|
static |
Definition at line 885 of file image.c.
References BKE_image_buf_fill_checker(), BKE_image_buf_fill_checker_color(), BKE_image_buf_fill_color(), COLOR_ROLE_DEFAULT_BYTE, COLOR_ROLE_DEFAULT_FLOAT, copy_v4_v4(), height, IB_rect, IB_rectfloat, IMA_GENTYPE_GRID, IMA_GENTYPE_GRID_COLOR, IMB_allocImBuf(), IMB_colormanagement_assign_rect_colorspace(), IMB_colormanagement_check_is_data(), IMB_colormanagement_role_colorspace_name_get(), IMB_colormanagement_space_name_is_data(), ColorManagedColorspaceSettings::name, ImBuf::name, NULL, ImBuf::rect, ImBuf::rect_float, srgb_to_linearrgb_v4(), STRNCPY, and width.
Referenced by BKE_image_add_generated(), BKE_image_fill_tile(), and image_acquire_ibuf().
Definition at line 5100 of file image.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), image_acquire_ibuf(), and image_mutex.
Referenced by backimage_fit_exec(), bake_images(), bake_object_check(), bake_targets_init_internal(), BKE_gpencil_from_image(), BKE_image_get_float_pixels_for_frame(), BKE_image_get_pixels_for_frame(), BKE_image_get_size(), BKE_image_has_alpha(), BKE_image_pool_acquire_ibuf(), BKE_image_scale(), BKE_image_update_gputexture(), clear_single_image(), cmp_node_image_create_outputs(), colorfn(), blender::compositor::ImageNode::convertToOperations(), cryptomatte_init_from_node_image(), do_multires_bake(), draw_nodespace_back_pix(), draw_plane_marker_image(), ED_space_image_acquire_buffer(), ED_space_node_color_sample(), ED_space_node_get_position(), eyedropper_cryptomatte_sample_image_fl(), finish_images(), blender::compositor::BaseImageOperation::getImBuf(), gpencil_boundaryfill_area(), gpencil_erase_processed_area(), gpencil_get_outline_points(), gpencil_image_texture_get(), gpencil_invert_image(), gpencil_set_borders(), gpu_texture_create_tile_array(), icon_preview_startjob(), IMAGE_cache_init(), image_camera_background_texture_get(), image_file_format_writable(), image_flip_exec(), image_from_context_has_data_poll(), image_get_gpu_texture(), image_has_alpha(), image_invert_exec(), image_rect_update(), image_save_options_init(), image_save_single(), image_scale_exec(), image_scale_invoke(), image_undosys_step_encode(), init_heights_data(), metadata_panel_context_draw(), multiresbake_check(), OVERLAY_edit_uv_cache_init(), paint_2d_bucket_fill(), paint_2d_canvas_set(), paint_2d_ensure_tile_canvas(), paint_2d_gradient_fill(), paint_2d_new_stroke(), paint_2d_redraw(), paint_sample_color(), palette_extract_img_exec(), project_paint_build_proj_ima(), project_paint_PickColor(), project_paint_uvpixel_init(), project_paint_uvpixel_mask(), ptile_restore_runtime_list(), RE_bake_ibuf_clear(), render_endjob(), sample_apply(), screen_opengl_render_apply(), snode_bg_viewmove_invoke(), texture_paint_camera_project_exec(), tile_fill_init(), trace_start_job(), uhandle_restore_list(), uiTemplateImage(), uiTemplateImageInfo(), viewer_border_exec(), WIDGETGROUP_node_corner_pin_refresh(), WIDGETGROUP_node_crop_refresh(), WIDGETGROUP_node_sbeam_refresh(), WIDGETGROUP_node_transform_refresh(), and write_internal_bake_pixels().
| RenderResult* BKE_image_acquire_renderresult | ( | Scene * | scene, |
| Image * | ima | ||
| ) |
Definition at line 3925 of file image.c.
References BKE_image_get_renderslot(), Image::gpuflag, IMA_GPU_REFRESH, IMA_TYPE_R_RESULT, image_init_multilayer_multiview(), Image::last_render_slot, NULL, RE_AcquireResultRead(), RE_GetSceneRender(), RenderSlot::render, Image::render_slot, Image::rr, scene, and Image::type.
Referenced by draw_render_info(), image_save_single(), ui_imageuser_layer_menu(), ui_imageuser_layer_menu_step(), ui_imageuser_pass_menu(), ui_imageuser_pass_menu_step(), ui_imageuser_view_menu_rr(), uiTemplateImage(), and uiTemplateImageLayers().
Definition at line 1029 of file image.c.
References BKE_image_get_tile(), BLI_path_basename(), Image::filepath, IMA_NO_INDEX, IMA_OK_LOADED, IMA_SRC_FILE, IMA_TYPE_IMAGE, image_alloc(), image_assign_ibuf(), ImBuf::name, NULL, ImageTile::ok, and STRNCPY.
Referenced by gpencil_render_offscreen(), and texture_paint_image_from_view_exec().
| Image* BKE_image_add_generated | ( | Main * | bmain, |
| unsigned int | width, | ||
| unsigned int | height, | ||
| const char * | name, | ||
| int | depth, | ||
| int | floatbuf, | ||
| short | gen_type, | ||
| const float | color[4], | ||
| const bool | stereo3d, | ||
| const bool | is_data, | ||
| const bool | tiled | ||
| ) |
Definition at line 963 of file image.c.
References add_ibuf_size(), BKE_image_get_tile(), COLOR_ROLE_DATA, Image::colorspace_settings, copy_v4_v4(), Image::filepath, Image::gen_color, Image::gen_depth, Image::gen_flag, Image::gen_type, Image::gen_x, Image::gen_y, height, IMA_GEN_FLOAT, IMA_NO_INDEX, IMA_OK_LOADED, IMA_SRC_GENERATED, IMA_SRC_TILED, IMA_TYPE_IMAGE, IMA_TYPE_UV_TEST, image_add_view(), image_alloc(), image_assign_ibuf(), IMB_colormanagement_role_colorspace_name_get(), IMB_freeImBuf(), ColorManagedColorspaceSettings::name, names, NULL, ImageTile::ok, STEREO_LEFT_NAME, STEREO_RIGHT_NAME, STRNCPY, and width.
Referenced by image_new_exec(), and proj_paint_image_create().
| RenderSlot* BKE_image_add_renderslot | ( | Image * | ima, |
| const char * | name | ||
| ) |
Definition at line 5868 of file image.c.
References BLI_addtail(), BLI_listbase_count(), BLI_snprintf(), BLI_strncpy(), MEM_callocN, RenderSlot::name, and Image::renderslots.
Referenced by BKE_image_backup_render(), image_add_render_slot_exec(), and image_init().
Definition at line 3712 of file image.c.
References BLI_addtail(), BLI_insertlinkbefore(), BLI_strncpy(), ListBase::first, GPU_texture_free(), Image::gputexture, IMA_OK, IMA_SRC_TILED, IMA_UDIM_MAX, label, ImageTile::label, MEM_callocN, ImageTile::next, NULL, ImageTile::ok, Image::source, TEXTARGET_2D_ARRAY, TEXTARGET_TILE_MAPPING, ImageTile::tile_number, and Image::tiles.
Referenced by image_open_single(), and tile_add_exec().
| void BKE_image_all_free_anim_ibufs | ( | Main * | bmain, |
| int | cfra | ||
| ) |
Definition at line 1315 of file image.c.
References BKE_image_free_anim_ibufs(), BKE_image_is_animated(), ListBase::first, Image::id, Main::images, and ID::next.
Referenced by do_render_full_pipeline().
| void BKE_image_alpha_mode_from_extension | ( | Image * | image | ) |
Definition at line 806 of file image.c.
References Image::alpha_mode, BKE_image_alpha_mode_from_extension_ex(), and Image::filepath.
Referenced by blo_do_versions_260().
| char BKE_image_alpha_mode_from_extension_ex | ( | const char * | filepath | ) |
Definition at line 797 of file image.c.
References BLI_path_extension_check_n(), IMA_ALPHA_PREMUL, IMA_ALPHA_STRAIGHT, and NULL.
Referenced by BKE_image_alpha_mode_from_extension(), and SEQ_alpha_mode_from_file_extension().
Definition at line 3971 of file image.c.
References BKE_image_add_renderslot(), BKE_image_clear_renderslot(), BKE_image_get_renderslot(), BLI_listbase_count(), ListBase::first, Image::last_render_slot, NULL, RE_GetSceneRender(), RE_SwapResult(), RenderSlot::render, Image::render_slot, Image::renderslots, and scene.
Referenced by ED_node_composite_job(), screen_opengl_render_init(), screen_render_exec(), and screen_render_invoke().
| bool BKE_image_buffer_format_writable | ( | ImBuf * | ibuf | ) |
Definition at line 5691 of file image.c.
References BKE_image_imtype_to_ftype(), BKE_imbuf_to_image_format(), ImBuf::ftype, and ImageFormatData::imtype.
Referenced by BKE_image_is_dirty_writable(), and image_file_format_writable().
Definition at line 5948 of file image.c.
References BLI_findlink(), G, Image::last_render_slot, NULL, RE_ClearResult(), RE_FreeRenderResult(), RE_GetSceneRender(), RenderSlot::render, Image::renderslots, and ImageUser::scene.
Referenced by BKE_image_backup_render(), and image_clear_render_slot_exec().
| void BKE_image_editors_update_frame | ( | const Main * | bmain, |
| int | cfra | ||
| ) |
Definition at line 5395 of file image.c.
References ListBase::first, wmWindowManager::id, image_editors_update_frame(), image_walk_id_all_users(), and Main::wm.
Definition at line 3162 of file image.c.
References ListBase::first, Image::id, id_us_ensure_real(), IMA_SRC_VIEWER, image_alloc(), Main::images, ImBuf::name, ID::next, NULL, Image::source, type, Image::type, and ID::us.
Referenced by backimage_fit_exec(), blender::compositor::CompositorOperation::deinitExecution(), draw_nodespace_back_pix(), ED_node_composite_job(), ED_node_set_active(), ED_space_node_color_sample(), ED_space_node_get_position(), IMAGE_cache_init(), image_read_viewlayers_exec(), node_composit_init_splitviewer(), node_composit_init_viewer(), render_view_open(), sample_apply(), screen_opengl_render_init(), screen_render_exec(), screen_render_invoke(), snode_bg_viewmove_invoke(), viewer_border_exec(), WIDGETGROUP_node_corner_pin_refresh(), WIDGETGROUP_node_crop_refresh(), WIDGETGROUP_node_sbeam_refresh(), WIDGETGROUP_node_transform_refresh(), and wm_draw_region_stereo_set().
| void BKE_image_ensure_viewer_views | ( | const RenderData * | rd, |
| Image * | ima, | ||
| ImageUser * | iuser | ||
| ) |
Definition at line 3203 of file image.c.
References BKE_image_free_views(), BKE_scene_multiview_is_render_view_active(), BKE_scene_multiview_is_stereo3d(), BKE_scene_multiview_num_views_get(), BLI_findstring(), BLI_listbase_count(), BLI_mutex_lock(), BLI_mutex_unlock(), BLI_thread_lock(), BLI_thread_unlock(), ListBase::first, ImageUser::flag, IMA_SHOW_STEREO, image_free_cached_frames(), image_mutex, image_viewer_create_views(), LOCK_DRAW_IMAGE, ImageView::name, ImBuf::name, ImageView::next, NULL, R_MULTIVIEW, RenderData::scemode, Image::views, and RenderData::views.
| void BKE_image_file_format_set | ( | Image * | image, |
| int | ftype, | ||
| const ImbFormatOptions * | options | ||
| ) |
Definition at line 5699 of file image.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), Image::cache, ImBuf::foptions, ImBuf::ftype, image_mutex, IMB_moviecacheIter_done(), IMB_moviecacheIter_free(), IMB_moviecacheIter_getImBuf(), IMB_moviecacheIter_new(), IMB_moviecacheIter_step(), NULL, and options.
| bool BKE_image_fill_tile | ( | struct Image * | ima, |
| ImageTile * | tile, | ||
| int | width, | ||
| int | height, | ||
| const float | color[4], | ||
| int | gen_type, | ||
| int | planes, | ||
| bool | is_float | ||
| ) |
Definition at line 3783 of file image.c.
References add_ibuf_size(), BKE_image_release_ibuf(), Image::colorspace_settings, Image::filepath, height, IMA_OK, IMA_SRC_TILED, image_assign_ibuf(), image_free_tile(), NULL, ImageTile::ok, ImBuf::planes, Image::source, ImageTile::tile_number, and width.
Referenced by do_fill_tile().
Return the tile_number for the closest UDIM tile.
Definition at line 741 of file image.c.
References equals_v2v2(), floorf, len_squared_v2v2(), LISTBASE_FOREACH, and Image::tiles.
| void BKE_image_free | ( | Image * | ima | ) |
Free (or release) any data used by this image (does not free the image itself).
Definition at line 521 of file image.c.
References Image::id, and image_free_data().
| void BKE_image_free_all_textures | ( | Main * | bmain | ) |
Definition at line 1260 of file image.c.
References Image::cache, ListBase::first, Image::id, Tex::id, Tex::ima, image_mem_size(), imagecache_check_dirty(), Main::images, IMB_moviecache_cleanup(), LIB_TAG_DOIT, ID::next, NULL, ID::tag, tex, and Main::textures.
| void BKE_image_free_anim_ibufs | ( | Image * | ima, |
| int | except_frame | ||
| ) |
Definition at line 1306 of file image.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), Image::cache, image_mutex, imagecache_check_free_anim(), IMB_moviecache_cleanup(), and NULL.
Referenced by BKE_image_all_free_anim_ibufs().
| void BKE_image_free_buffers | ( | Image * | ima | ) |
Definition at line 515 of file image.c.
References BKE_image_free_buffers_ex().
Referenced by BKE_image_signal(), image_blend_read_lib(), image_free_data(), and image_load_image_file().
| void BKE_image_free_buffers_ex | ( | Image * | ima, |
| bool | do_lock | ||
| ) |
Simply free the image data from memory, on display the image can load again (except for render buffers).
Definition at line 490 of file image.c.
References BKE_image_free_gputextures(), BLI_mutex_lock(), BLI_mutex_unlock(), IMA_OK, image_free_anims(), image_free_cached_frames(), image_mutex, LISTBASE_FOREACH, NULL, RE_FreeRenderResult(), Image::rr, and Image::tiles.
Referenced by BKE_image_free_buffers().
| void BKE_image_free_packedfiles | ( | Image * | ima | ) |
Definition at line 463 of file image.c.
References image_free_packedfiles().
Referenced by image_save_as_exec().
| void BKE_image_free_views | ( | Image * | image | ) |
Definition at line 468 of file image.c.
References BLI_freelistN(), and Image::views.
Referenced by BKE_image_ensure_viewer_views(), image_free_data(), image_init_multilayer_multiview(), image_open_single(), and image_update_views_format().
| char BKE_image_ftype_to_imtype | ( | const int | ftype, |
| const ImbFormatOptions * | options | ||
| ) |
Definition at line 1387 of file image.c.
References IMB_FTYPE_BMP, IMB_FTYPE_IMAGIC, IMB_FTYPE_NONE, IMB_FTYPE_OPENEXR, IMB_FTYPE_PNG, IMB_FTYPE_TGA, options, R_IMF_IMTYPE_BMP, R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DDS, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_IRIS, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_JPEG90, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_PNG, R_IMF_IMTYPE_RADHDR, R_IMF_IMTYPE_RAWTGA, R_IMF_IMTYPE_TARGA, R_IMF_IMTYPE_TIFF, and RAWTGA.
Definition at line 5544 of file image.c.
References Image::aspx, and Image::aspy.
Referenced by BKE_mask_coord_from_image(), BKE_mask_coord_to_image(), ED_image_get_uv_aspect(), and ED_space_image_get_aspect().
References the result, BKE_image_release_ibuf is to be called to de-reference. Use lock=NULL when calling BKE_image_release_ibuf().
TODO(sergey): This is actually "get first item from the cache", which is not so much predictable. But using first loaded image buffer was also malicious logic and all the areas which uses this function are to be re-considered.
Definition at line 5772 of file image.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), Image::cache, image_mutex, IMB_moviecacheIter_done(), IMB_moviecacheIter_free(), IMB_moviecacheIter_getImBuf(), IMB_moviecacheIter_new(), IMB_refImBuf(), and NULL.
Definition at line 5587 of file image.c.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BKE_imageuser_default(), ImageUser::framenr, MEM_dupallocN, NULL, ImBuf::rect_float, and ImageUser::tile.
References the result, BKE_image_release_ibuf is to be called to de-reference. Use lock=NULL when calling BKE_image_release_ibuf().
Definition at line 5739 of file image.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), Image::cache, image_mutex, IMB_moviecacheIter_done(), IMB_moviecacheIter_free(), IMB_moviecacheIter_getImBuf(), IMB_moviecacheIter_new(), IMB_moviecacheIter_step(), IMB_refImBuf(), ImBuf::name, NULL, and STREQ.
| unsigned char* BKE_image_get_pixels_for_frame | ( | struct Image * | image, |
| int | frame, | ||
| int | tile | ||
| ) |
Definition at line 5557 of file image.c.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BKE_imageuser_default(), ImageUser::framenr, if(), MEM_dupallocN, NULL, ImBuf::rect, and ImageUser::tile.
| RenderSlot* BKE_image_get_renderslot | ( | Image * | ima, |
| int | index | ||
| ) |
Definition at line 5976 of file image.c.
References BLI_findlink(), and Image::renderslots.
Referenced by BKE_image_acquire_renderresult(), BKE_image_backup_render(), ED_image_slot_cycle(), image_cycle_render_slot_exec(), image_get_render_result(), and uiblock_layer_pass_buttons().
Definition at line 5502 of file image.c.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BLI_rctf_size_x(), BLI_rctf_size_y(), RenderData::border, IMA_TYPE_R_RESULT, IMG_SIZE_FALLBACK, RenderData::mode, NULL, Scene::r, R_BORDER, R_CROP, scene, ImageUser::scene, RenderData::size, Image::type, ImBuf::x, RenderData::xsch, ImBuf::y, and RenderData::ysch.
Referenced by BKE_image_get_size_fl(), and ED_image_get_uv_aspect().
Definition at line 5535 of file image.c.
References BKE_image_get_size(), float(), height, and width.
Referenced by BKE_mask_coord_from_image(), BKE_mask_coord_to_image(), OVERLAY_edit_uv_cache_init(), and WIDGETGROUP_empty_image_refresh().
Definition at line 672 of file image.c.
References ELEM, ListBase::first, IMA_SRC_TILED, IMA_UDIM_MAX, LISTBASE_FOREACH, NULL, Image::source, and Image::tiles.
Referenced by BKE_image_add_from_imbuf(), BKE_image_add_generated(), BKE_image_get_tile_from_iuser(), BKE_image_get_tile_from_pos(), BKE_image_signal(), image_acquire_ibuf(), image_get_cached_ibuf(), image_get_ibuf_multilayer(), image_get_render_result(), image_load_image_file(), image_load_movie_file(), and load_movie_single().
Definition at line 702 of file image.c.
References BKE_image_get_tile(), and ImageUser::tile.
Referenced by image_init_after_load(), image_load_sequence_multilayer(), image_quick_test(), load_image_single(), and load_sequence_single().
| int BKE_image_get_tile_from_pos | ( | struct Image * | ima, |
| const float | uv[2], | ||
| float | r_uv[2], | ||
| float | r_ofs[2] | ||
| ) |
Definition at line 707 of file image.c.
References BKE_image_get_tile(), copy_v2_v2(), IMA_SRC_TILED, NULL, Image::source, sub_v2_v2(), and zero_v2().
Referenced by ED_space_image_color_sample(), image_sample_apply(), image_sample_line_exec(), imagewrap(), paint_2d_bucket_fill(), paint_2d_gradient_fill(), and paint_sample_color().
Definition at line 3697 of file image.c.
References BLI_snprintf(), BLI_strncpy(), label, ImageTile::label, NULL, and ImageTile::tile_number.
Referenced by draw_image_main().
| bool BKE_image_has_alpha | ( | struct Image * | image | ) |
Definition at line 5485 of file image.c.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), NULL, and ImBuf::planes.
| bool BKE_image_has_anim | ( | Image * | ima | ) |
Definition at line 5622 of file image.c.
References Image::anims, and BLI_listbase_is_empty().
Referenced by BKE_image_load_exists_ex(), image_match_len_exec(), and uiTemplateImageInfo().
| bool BKE_image_has_filepath | ( | Image * | ima | ) |
Definition at line 5632 of file image.c.
References Image::filepath.
Referenced by image_save_invoke(), and uiTemplateImage().
Definition at line 5134 of file image.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), image_acquire_ibuf(), image_get_cached_ibuf(), image_mutex, image_quick_test(), IMB_freeImBuf(), and NULL.
Referenced by draw_plane_marker_ex(), image_from_context_has_data_poll_no_image_user(), image_to_gpencil_poll(), palette_extract_img_poll(), project_paint_prepare_all_faces(), tile_add_poll(), and tile_fill_poll().
| bool BKE_image_has_loaded_ibuf | ( | Image * | image | ) |
Definition at line 5716 of file image.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), Image::cache, image_mutex, IMB_moviecacheIter_done(), IMB_moviecacheIter_free(), IMB_moviecacheIter_new(), and NULL.
Referenced by imagewrap(), imagewraposa(), and imagewraposa_aniso().
| bool BKE_image_has_multiple_ibufs | ( | Image * | image | ) |
Definition at line 5646 of file image.c.
References ELEM, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, IMA_SRC_TILED, and Image::source.
Referenced by BKE_packedfile_pack_all(), and image_get_multiview_index().
| bool BKE_image_has_opengl_texture | ( | Image * | ima | ) |
Definition at line 660 of file image.c.
References Image::gputexture, NULL, and TEXTARGET_COUNT.
Referenced by BKE_image_free_old_gputextures(), and BKE_image_paint_set_mipmap().
| bool BKE_image_has_packedfile | ( | Image * | ima | ) |
Definition at line 5627 of file image.c.
References BLI_listbase_is_empty(), and Image::packedfiles.
Referenced by BKE_bpath_traverse_id(), BKE_image_signal(), BKE_packedfile_count_all(), BKE_packedfile_id_check(), BKE_packedfile_id_unpack(), BKE_packedfile_pack_all(), BKE_packedfile_unpack_all(), ED_image_save_all_modified(), ED_image_save_all_modified_info(), image_load_image_file(), image_save_exec(), image_save_invoke(), image_unpack_exec(), image_unpack_invoke(), paint_2d_new_stroke(), and uiTemplateImage().
| int BKE_image_imtype_to_ftype | ( | const char | imtype, |
| ImbFormatOptions * | r_options | ||
| ) |
Definition at line 1328 of file image.c.
References ELEM, ImbFormatOptions::flag, IMB_FTYPE_BMP, IMB_FTYPE_IMAGIC, IMB_FTYPE_JPG, IMB_FTYPE_OPENEXR, IMB_FTYPE_PNG, IMB_FTYPE_TGA, ImbFormatOptions::quality, R_IMF_IMTYPE_BMP, R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DDS, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_IRIS, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_PNG, R_IMF_IMTYPE_RADHDR, R_IMF_IMTYPE_RAWTGA, R_IMF_IMTYPE_TARGA, R_IMF_IMTYPE_TIFF, and RAWTGA.
Referenced by BKE_image_buffer_format_writable(), and IMB_colormanagement_imbuf_for_write().
Definition at line 3459 of file image.c.
References BKE_image_multilayer_index(), ImageUser::layer, ImageUser::multi_index, ImageUser::pass, Image::rr, and ImageUser::view.
Referenced by BKE_image_signal(), and image_open_exec().
| bool BKE_image_is_animated | ( | Image * | image | ) |
Definition at line 5640 of file image.c.
References ELEM, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, and Image::source.
Referenced by BKE_image_all_free_anim_ibufs(), BKE_image_free_anim_gputextures(), BKE_image_user_frame_calc(), BKE_texture_dependsOnTime(), image_tag_frame_recalc(), image_user_id_eval_animation(), image_user_id_has_animation(), MOD_init_texture(), and uiTemplateImage().
| bool BKE_image_is_dirty | ( | Image * | image | ) |
Definition at line 5681 of file image.c.
References BKE_image_is_dirty_writable(), and NULL.
Referenced by BKE_bpath_traverse_id(), image_pack_exec(), node_buts_image_user(), pack_all_invoke(), and uiTemplateImage().
| bool BKE_image_is_dirty_writable | ( | Image * | image, |
| bool * | r_is_writable | ||
| ) |
Definition at line 5652 of file image.c.
References BKE_image_buffer_format_writable(), BLI_mutex_lock(), BLI_mutex_unlock(), Image::cache, IB_BITMAPDIRTY, image_mutex, IMB_moviecacheIter_done(), IMB_moviecacheIter_free(), IMB_moviecacheIter_getImBuf(), IMB_moviecacheIter_new(), IMB_moviecacheIter_step(), NULL, and ImBuf::userflags.
Referenced by BKE_image_is_dirty(), and image_should_be_saved().
| bool BKE_image_is_multilayer | ( | Image * | ima | ) |
Definition at line 3868 of file image.c.
References ELEM, IMA_SRC_FILE, IMA_SRC_SEQUENCE, IMA_SRC_TILED, IMA_SRC_VIEWER, IMA_TYPE_MULTILAYER, IMA_TYPE_R_RESULT, Image::source, and Image::type.
Referenced by draw_image_main(), blender::compositor::BaseImageOperation::getImBuf(), and image_get_multiview_index().
| bool BKE_image_is_multiview | ( | Image * | ima | ) |
Definition at line 3883 of file image.c.
References ListBase::first, view, and Image::views.
Referenced by BKE_image_is_stereo(), BKE_image_memorypack(), BKE_image_user_file_path(), image_free_tile(), image_get_multiview_index(), image_load_image_file(), image_load_movie_file(), image_load_sequence_file(), image_num_files(), image_save_as_invoke(), image_save_options_init(), image_update_views_format(), and uiblock_layer_pass_buttons().
| bool BKE_image_is_openexr | ( | struct Image * | ima | ) |
Definition at line 3959 of file image.c.
References BLI_path_extension_check(), ELEM, Image::filepath, IMA_SRC_FILE, IMA_SRC_SEQUENCE, IMA_SRC_TILED, Image::source, and UNUSED_VARS.
| bool BKE_image_is_stereo | ( | Image * | ima | ) |
Definition at line 3889 of file image.c.
References BKE_image_is_multiview(), BLI_findstring(), ImBuf::name, STEREO_LEFT_NAME, STEREO_RIGHT_NAME, and Image::views.
Referenced by BKE_image_multiview_index(), camera_background_images_stereo_setup(), draw_image_main(), ED_screen_stereo3d_required(), image_get_multiview_index(), image_get_render_result(), image_load_image_file(), image_load_movie_file(), image_load_sequence_file(), image_save_single(), and uiblock_layer_pass_buttons().
Definition at line 811 of file image.c.
References BKE_main_blendfile_path(), BLI_open(), BLI_path_abs(), BLI_path_basename(), BLI_path_extension_check_array(), file, FILE_MAX, Image::filepath, IMA_SRC_FILE, IMA_SRC_MOVIE, IMA_TYPE_IMAGE, image_alloc(), image_init_color_management(), imb_ext_movie, NULL, O_BINARY, Image::source, str, and STRNCPY.
Referenced by BKE_image_load_exists_ex().
Definition at line 880 of file image.c.
References BKE_image_load_exists_ex(), and NULL.
Referenced by DocumentImporter::writeImage().
Definition at line 843 of file image.c.
References BKE_image_has_anim(), BKE_image_load(), BLI_path_abs(), BLI_path_cmp, ELEM, FILE_MAX, Image::filepath, ListBase::first, Image::id, ID_BLEND_PATH, id_us_plus(), IMA_OK, IMA_SRC_GENERATED, IMA_SRC_VIEWER, Main::images, LISTBASE_FOREACH, Main::name, ID::next, Image::source, str, STRNCPY, Image::tiles, and ID::us.
Referenced by BKE_image_load_exists(), image_open_single(), and WM_operator_drop_load_path().
Definition at line 5686 of file image.c.
References IB_BITMAPDIRTY, and ImBuf::userflags.
Referenced by BKE_image_scale().
| bool BKE_image_memorypack | ( | Image * | ima | ) |
Definition at line 1083 of file image.c.
References BKE_image_is_multiview(), BLI_path_suffix(), FILE_MAX, ImageView::filepath, ListBase::first, IMA_NO_INDEX, IMA_SRC_FILE, IMA_SRC_GENERATED, IMA_TYPE_IMAGE, image_free_packedfiles(), image_get_cached_ibuf_for_index_entry(), image_memorypack_imbuf(), IMB_freeImBuf(), ImBuf::name, ImageView::next, R_IMF_VIEWS_INDIVIDUAL, R_IMF_VIEWS_STEREO_3D, Image::source, STEREO_LEFT_SUFFIX, STEREO_RIGHT_SUFFIX, Image::type, Image::views, and Image::views_format.
Referenced by ED_image_save_all_modified(), image_pack_exec(), and image_save_exec().
Definition at line 620 of file image.c.
References BKE_id_free(), BLI_mutex_lock(), BLI_mutex_unlock(), Image::cache, image_mutex, imagecache_put(), IMB_moviecacheIter_done(), IMB_moviecacheIter_free(), IMB_moviecacheIter_getImBuf(), IMB_moviecacheIter_getUserKey(), IMB_moviecacheIter_new(), IMB_moviecacheIter_step(), ImageCacheKey::index, and NULL.
Referenced by local_merge().
| RenderPass* BKE_image_multilayer_index | ( | RenderResult * | rr, |
| ImageUser * | iuser | ||
| ) |
Definition at line 3813 of file image.c.
References BLI_listbase_count(), ListBase::first, ImageUser::flag, IMA_SHOW_STEREO, image_render_pass_get(), ImBuf::index, ImageUser::layer, RenderResult::layers, ImageUser::multi_index, ImageUser::multiview_eye, RenderLayer::next, NULL, ImageUser::pass, RenderLayer::passes, RE_HasCombinedLayer(), RE_RenderResult_is_stereo(), and ImageUser::view.
Referenced by BKE_image_init_imageuser(), draw_image_main(), blender::compositor::MultilayerBaseOperation::getImBuf(), image_get_ibuf_multilayer(), image_load_sequence_multilayer(), image_multi_cb(), image_save_single(), space_image_gpu_texture_get(), ui_imageuser_layer_menu_step(), and ui_imageuser_pass_menu_step().
Definition at line 3846 of file image.c.
References BKE_image_is_stereo(), BLI_listbase_count_at_most(), ImageUser::flag, IMA_SHOW_STEREO, ImageUser::multi_index, ImageUser::multiview_eye, ImageUser::view, and Image::views.
Referenced by camera_background_images_stereo_setup(), draw_image_main(), image_multiview_cb(), image_save_single(), and space_image_gpu_texture_get().
| void BKE_image_packfiles | ( | ReportList * | reports, |
| Image * | ima, | ||
| const char * | basepath | ||
| ) |
Definition at line 1134 of file image.c.
References BKE_packedfile_new(), BLI_addtail(), BLI_freelinkN(), ImageView::filepath, ImagePackedFile::filepath, Image::filepath, ListBase::first, image_num_files(), MEM_mallocN, ImageView::next, ImagePackedFile::packedfile, Image::packedfiles, STRNCPY, and Image::views.
Referenced by BKE_image_signal(), BKE_packedfile_pack_all(), and image_pack_exec().
| void BKE_image_packfiles_from_mem | ( | ReportList * | reports, |
| Image * | ima, | ||
| char * | data, | ||
| const size_t | data_len | ||
| ) |
Definition at line 1166 of file image.c.
References BKE_packedfile_new_from_memory(), BKE_report(), BLI_addtail(), data, ImagePackedFile::filepath, Image::filepath, image_num_files(), MEM_mallocN, ImagePackedFile::packedfile, Image::packedfiles, RPT_ERROR, and STRNCPY.
| int BKE_image_path_ensure_ext_from_imformat | ( | char * | string, |
| const ImageFormatData * | im_format | ||
| ) |
Definition at line 1775 of file image.c.
References do_add_image_extension(), and ImageFormatData::imtype.
| int BKE_image_path_ensure_ext_from_imtype | ( | char * | string, |
| const char | imtype | ||
| ) |
Definition at line 1780 of file image.c.
References do_add_image_extension(), and NULL.
Referenced by dynamicPaint_outputSurfaceImage(), and unpack_generate_paths().
| void BKE_image_path_from_imformat | ( | char * | string, |
| const char * | base, | ||
| const char * | relbase, | ||
| int | frame, | ||
| const ImageFormatData * | im_format, | ||
| const bool | use_ext, | ||
| const bool | use_frames, | ||
| const char * | suffix | ||
| ) |
Definition at line 3078 of file image.c.
References do_makepicstring(), StampData::frame, and ImageFormatData::imtype.
| void BKE_image_path_from_imtype | ( | char * | string, |
| const char * | base, | ||
| const char * | relbase, | ||
| int | frame, | ||
| const char | imtype, | ||
| const bool | use_ext, | ||
| const bool | use_frames, | ||
| const char * | suffix | ||
| ) |
Definition at line 3091 of file image.c.
References do_makepicstring(), StampData::frame, and NULL.
Referenced by bake_targets_output_external(), blender::compositor::OutputOpenExrSingleLayerMultiViewOperation::deinitExecution(), blender::compositor::OutputOpenExrMultiLayerMultiViewOperation::deinitExecution(), and blender::compositor::OutputOpenExrMultiLayerOperation::deinitExecution().
Definition at line 5213 of file image.c.
References BKE_image_acquire_ibuf(), BLI_addtail(), BLI_mempool_alloc(), BLI_mutex_lock(), BLI_mutex_unlock(), ImagePoolItem::entry, ImagePoolItem::ibuf, ImagePoolItem::image, image_acquire_ibuf(), image_get_entry_and_index(), image_mutex, image_pool_find_item(), image_quick_test(), ImagePoolItem::index, NULL, and blender::compositor::pool.
Referenced by BKE_texture_fetch_images_for_pool(), image_sample(), imagewrap(), imagewraposa(), imagewraposa_aniso(), load_tex_task_cb_ex(), multitex_nodes_intern(), paint_brush_update(), and texture_nodes_fetch_images_for_pool().
| void BKE_image_pool_free | ( | ImagePool * | pool | ) |
Definition at line 5181 of file image.c.
References BLI_mempool_destroy(), BLI_mutex_lock(), BLI_mutex_unlock(), image_mutex, IMB_freeImBuf(), MEM_freeN, NULL, and blender::compositor::pool.
Referenced by BKE_sculptsession_free(), brush_painter_2d_refresh_cache(), blender::compositor::TextureBaseOperation::deinitExecution(), displaceModifier_do(), dynamicPaint_setInitialColor(), load_tex(), project_paint_op(), sculpt_update_tex(), and shader_preview_texture().
| ImagePool* BKE_image_pool_new | ( | void | ) |
Definition at line 5173 of file image.c.
References BLI_mempool_create(), BLI_MEMPOOL_NOP, MEM_callocN, and blender::compositor::pool.
Referenced by brush_painter_2d_refresh_cache(), displaceModifier_do(), dynamicPaint_setInitialColor(), blender::compositor::TextureBaseOperation::initExecution(), load_tex(), project_paint_op(), sculpt_expand_ensure_sculptsession_data(), sculpt_update_tex(), and shader_preview_texture().
Definition at line 5261 of file image.c.
References BKE_image_release_ibuf(), NULL, and blender::compositor::pool.
Referenced by image_sample(), imagewrap(), imagewraposa(), imagewraposa_aniso(), load_tex_task_cb_ex(), multitex_nodes_intern(), and paint_brush_update().
| void BKE_image_print_memlist | ( | Main * | bmain | ) |
Definition at line 1235 of file image.c.
References ListBase::first, Image::id, image_mem_size(), Main::images, ID::name, ID::next, and size().
Definition at line 5113 of file image.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), BLI_thread_unlock(), image_mutex, IMB_freeImBuf(), LOCK_VIEWER, NULL, and RE_ReleaseResultImage().
Referenced by backimage_fit_exec(), bake_images(), bake_object_check(), bake_targets_init_internal(), BKE_gpencil_from_image(), BKE_image_fill_tile(), BKE_image_get_float_pixels_for_frame(), BKE_image_get_pixels_for_frame(), BKE_image_get_size(), BKE_image_has_alpha(), BKE_image_pool_release_ibuf(), BKE_image_scale(), BKE_image_update_gputexture(), clear_single_image(), cmp_node_image_create_outputs(), colorfn(), blender::compositor::ImageNode::convertToOperations(), cryptomatte_init_from_node_image(), blender::compositor::BaseImageOperation::deinitExecution(), blender::compositor::BaseImageOperation::determineResolution(), do_multires_bake(), draw_nodespace_back_pix(), draw_plane_marker_image(), ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), ED_space_node_color_sample(), ED_space_node_get_position(), eyedropper_cryptomatte_sample_image_fl(), finish_images(), blender::compositor::BaseImageOperation::getImBuf(), gpencil_boundaryfill_area(), gpencil_erase_processed_area(), gpencil_get_outline_points(), gpencil_image_texture_get(), gpencil_invert_image(), gpencil_render_offscreen(), gpencil_set_borders(), gpu_texture_create_tile_array(), icon_preview_startjob(), image_camera_background_texture_get(), image_draw_finish(), image_file_format_writable(), image_flip_exec(), image_from_context_has_data_poll(), image_get_gpu_texture(), image_has_alpha(), image_invert_exec(), image_rect_update(), image_save_options_init(), image_save_single(), image_scale_exec(), image_scale_invoke(), image_undosys_step_encode(), init_heights_data(), metadata_panel_context_draw(), multiresbake_check(), OVERLAY_edit_uv_draw_finish(), paint_2d_bucket_fill(), paint_2d_canvas_free(), paint_2d_canvas_set(), paint_2d_ensure_tile_canvas(), paint_2d_gradient_fill(), paint_2d_new_stroke(), paint_2d_redraw(), paint_sample_color(), palette_extract_img_exec(), project_paint_end(), project_paint_PickColor(), project_paint_uvpixel_init(), project_paint_uvpixel_mask(), ptile_restore_runtime_list(), RE_bake_ibuf_clear(), render_endjob(), sample_apply(), screen_opengl_render_apply(), snode_bg_viewmove_invoke(), tile_fill_init(), trace_start_job(), uhandle_restore_list(), uiTemplateImage(), uiTemplateImageInfo(), viewer_border_exec(), WIDGETGROUP_node_corner_pin_refresh(), WIDGETGROUP_node_crop_refresh(), WIDGETGROUP_node_sbeam_refresh(), WIDGETGROUP_node_transform_refresh(), and write_internal_bake_pixels().
Definition at line 3947 of file image.c.
References IMA_TYPE_R_RESULT, Image::last_render_slot, RE_GetSceneRender(), RE_ReleaseResult(), Image::render_slot, Image::rr, scene, and Image::type.
Referenced by draw_render_info(), image_save_single(), ui_imageuser_layer_menu(), ui_imageuser_layer_menu_step(), ui_imageuser_pass_menu(), ui_imageuser_pass_menu_step(), ui_imageuser_view_menu_rr(), uiTemplateImage(), and uiTemplateImageLayers().
Definition at line 5882 of file image.c.
References BLI_findindex(), BLI_findlink(), BLI_listbase_count(), BLI_remlink(), G, Image::last_render_slot, MEM_freeN, RE_FreeRenderResult(), RE_GetSceneRender(), RE_SwapResult(), RenderSlot::render, Image::render_slot, Image::renderslots, and ImageUser::scene.
Referenced by image_remove_render_slot_exec().
Definition at line 3765 of file image.c.
References BLI_remlink(), ListBase::first, IMA_SRC_TILED, image_free_tile(), MEM_freeN, NULL, Image::source, and Image::tiles.
Referenced by tile_remove_exec().
| bool BKE_image_scale | ( | Image * | image, |
| int | width, | ||
| int | height | ||
| ) |
Definition at line 643 of file image.c.
References BKE_image_acquire_ibuf(), BKE_image_mark_dirty(), BKE_image_release_ibuf(), height, IMB_scaleImBuf(), NULL, and width.
| int BKE_image_sequence_guess_offset | ( | Image * | image | ) |
Definition at line 5617 of file image.c.
References BLI_path_sequence_decode(), Image::filepath, and NULL.
Referenced by cmp_node_image_create_outputs().
Definition at line 3499 of file image.c.
References BKE_image_free_buffers(), BKE_image_get_tile(), BKE_image_has_packedfile(), BKE_image_init_imageuser(), BKE_image_packfiles(), BKE_image_walk_all_users(), BKE_packedfile_free(), BKE_packedfile_new(), BLI_assert, BLI_listbase_count_at_most(), BLI_mutex_lock(), BLI_mutex_unlock(), ELEM, ImagePackedFile::filepath, Image::filepath, ListBase::first, Image::gen_x, Image::gen_y, Image::id, Scene::id, ID_BLEND_PATH, IMA_NO_INDEX, IMA_SIGNAL_COLORMANAGE, IMA_SIGNAL_FREE, IMA_SIGNAL_RELOAD, IMA_SIGNAL_SRC_CHANGE, IMA_SIGNAL_USER_NEW_IMAGE, IMA_SRC_FILE, IMA_SRC_GENERATED, IMA_SRC_SEQUENCE, IMA_SRC_TILED, IMA_TYPE_IMAGE, IMA_TYPE_MULTILAYER, IMA_TYPE_UV_TEST, image_free_packedfiles(), image_free_tile(), image_get_cached_ibuf_for_index_entry(), image_mutex, image_num_files(), image_tag_frame_recalc(), image_tag_reload(), image_update_views_format(), IMB_freeImBuf(), ListBase::last, LISTBASE_FOREACH, MEM_freeN, ID::next, ImagePackedFile::next, ImageTile::next, Scene::nodetree, nodeUpdateID(), NULL, ImageUser::ok, ImagePackedFile::packedfile, Image::packedfiles, pf, scene, ImageUser::scene, Main::scenes, Image::source, Image::tiles, Image::type, ImBuf::x, and ImBuf::y.
Referenced by BKE_bpath_traverse_id(), BKE_image_save(), BKE_packedfile_unpack_image(), blender::compositor::CompositorOperation::deinitExecution(), ED_space_image_auto_set(), ED_space_image_set(), image_new_exec(), image_open_exec(), image_reload_exec(), image_replace_exec(), node_add_file_exec(), proj_paint_add_slot(), screen_opengl_render_init(), screen_render_exec(), and screen_render_invoke().
| void BKE_image_stamp_buf | ( | Scene * | scene, |
| Object * | camera, | ||
| const StampData * | stamp_data_template, | ||
| unsigned char * | rect, | ||
| float * | rectf, | ||
| int | width, | ||
| int | height, | ||
| int | channels | ||
| ) |
Definition at line 2238 of file image.c.
References RenderData::bg_stamp, BLF_buffer(), BLF_buffer_col(), BLF_descender(), BLF_disable(), BLF_draw_buffer(), BLF_DRAW_STR_DUMMY_MAX, BLF_enable(), BLF_height_max(), blf_mono_font_render, BLF_position(), BLF_size(), BLF_width_max(), BLF_WORD_WRAP, BLF_wordwrap(), buf_rectfill_area(), BUFF_MARGIN_X, BUFF_MARGIN_Y, StampData::camera, StampData::cameralens, StampData::date, ColorManagedDisplaySettings::display_device, Scene::display_settings, RenderData::fg_stamp, StampData::file, StampData::frame, height, StampData::hostname, IMB_colormanagement_display_get_named(), StampData::marker, StampData::memory, StampData::note, NULL, Scene::r, R_STAMP_HIDE_LABELS, StampData::rendertime, StampData::scene, scene, RenderData::stamp, RenderData::stamp_font_id, stampdata(), stampdata_from_template(), StampData::strip, TEXT_SIZE_CHECK, TEXT_SIZE_CHECK_WORD_WRAP, StampData::time, w(), width, blender::gpu::wrap(), x, and y.
| void BKE_image_tag_time | ( | Image * | ima | ) |
Definition at line 1184 of file image.c.
References Image::lastused, and PIL_check_seconds_timer_i().
Referenced by draw_image_main(), image_acquire_ibuf(), image_get_gpu_texture(), image_init_after_load(), and multitex().
Definition at line 5451 of file image.c.
References BKE_image_is_multiview(), BLI_findlink(), BLI_path_abs(), BLI_path_sequence_decode(), BLI_path_sequence_encode(), BLI_strncpy(), ELEM, FILE_MAX, ImageView::filepath, Image::filepath, ImageUser::framenr, Image::id, ID_BLEND_PATH_FROM_GLOBAL, IMA_SRC_SEQUENCE, IMA_SRC_TILED, Image::lastframe, Image::source, ImageUser::tile, ImageUser::view, and Image::views.
Referenced by image_init_color_management(), load_image_single(), load_movie_single(), and load_sequence_single().
Definition at line 5335 of file image.c.
References BKE_image_is_animated(), BKE_image_user_frame_get(), ImageUser::flag, ImageUser::framenr, Image::gpuflag, Image::gpuframenr, IMA_GPU_REFRESH, IMA_NEED_FRAME_RECALC, IMA_OK, IMA_USER_FRAME_IN_RANGE, LISTBASE_FOREACH, ImageUser::ok, and Image::tiles.
Referenced by blender::compositor::ImageNode::convertToOperations(), cryptomatte_init_from_node_image(), image_camera_background_texture_get(), image_editors_update_frame(), image_match_len_exec(), image_refresh(), image_user_id_eval_animation(), load_image_single(), MOD_init_texture(), and uiTemplateImage().
| int BKE_image_user_frame_get | ( | const ImageUser * | iuser, |
| int | cfra, | ||
| bool * | r_is_in_range | ||
| ) |
Definition at line 5271 of file image.c.
References ImageUser::cycl, ImageUser::frames, len, ImageUser::offset, and ImageUser::sfra.
Referenced by BKE_image_user_frame_calc().
Definition at line 5440 of file image.c.
References depsgraph, image_user_id_eval_animation(), and image_walk_id_all_users().
Referenced by blender::deg::DepsgraphNodeBuilder::build_animation_images().
| bool BKE_image_user_id_has_animation | ( | ID * | id | ) |
Definition at line 5413 of file image.c.
References image_user_id_has_animation(), and image_walk_id_all_users().
Referenced by blender::deg::DepsgraphNodeBuilder::build_animation_images(), blender::deg::DepsgraphRelationBuilder::build_animation_images(), and blender::deg::DepsgraphRelationBuilder::build_texture().
| void BKE_image_walk_all_users | ( | const Main * | mainp, |
| void * | customdata, | ||
| void | callbackImage *ima, ID *iuser_id, ImageUser *iuser, void *customdata | ||
| ) |
Definition at line 3378 of file image.c.
References callback, Main::cameras, ListBase::first, bNodeTree::id, Scene::id, Tex::id, World::id, image_walk_id_all_users(), Main::materials, ID::next, Main::nodetrees, ntree, Main::objects, scene, Main::scenes, tex, Main::textures, Main::wm, and world.
Referenced by BKE_image_signal().
| void BKE_images_exit | ( | void | ) |
Definition at line 436 of file image.c.
References BLI_mutex_free(), and image_mutex.
Referenced by BKE_blender_free(), and wm_main_playanim_intern().
| void BKE_images_init | ( | void | ) |
Definition at line 431 of file image.c.
References BLI_mutex_alloc(), and image_mutex.
Referenced by main(), and BlendfileLoadingBaseTest::SetUpTestCase().
| void BKE_imageuser_default | ( | ImageUser * | iuser | ) |
Definition at line 3451 of file image.c.
References ImageUser::frames, ImageUser::ok, and ImageUser::sfra.
Referenced by BKE_image_get_float_pixels_for_frame(), BKE_image_get_pixels_for_frame(), BKE_image_save(), gpu_texture_create_tile_array(), icon_preview_startjob(), image_create(), image_save_single(), node_shader_init_tex_environment(), node_shader_init_tex_image(), paint_2d_bucket_fill(), paint_sample_color(), project_paint_PickColor(), project_paint_prepare_all_faces(), texture_init_data(), and tile_fill_init().
| bool BKE_imbuf_alpha_test | ( | ImBuf * | ibuf | ) |
Definition at line 2812 of file image.c.
References ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by bake_ibuf_filter(), and image_save_single().
| void BKE_imbuf_stamp_info | ( | RenderResult * | rr, |
| struct ImBuf * | ibuf | ||
| ) |
Definition at line 2784 of file image.c.
References BKE_stamp_info_callback(), IMB_metadata_ensure(), ImBuf::metadata, metadata_set_field(), and RenderResult::stamp_data.
Referenced by BKE_imbuf_write_stamp(), image_get_ibuf_multilayer(), image_get_render_result(), image_load_sequence_multilayer(), and image_save_single().
| void BKE_imbuf_to_image_format | ( | struct ImageFormatData * | im_format, |
| const ImBuf * | imbuf | ||
| ) |
Definition at line 1799 of file image.c.
References BKE_imformat_defaults(), BLI_assert, ImageFormatData::compress, ImageFormatData::depth, ImageFormatData::exr_codec, ImbFormatOptions::flag, ImageFormatData::flag, ImBuf::foptions, ImBuf::ftype, IMB_FTYPE_BMP, IMB_FTYPE_IMAGIC, IMB_FTYPE_OPENEXR, IMB_FTYPE_PNG, IMB_FTYPE_TGA, ImageFormatData::imtype, ImageFormatData::jp2_codec, ImageFormatData::jp2_flag, OPENEXR_COMPRESS, OPENEXR_HALF, ImBuf::planes, ImageFormatData::planes, PNG_16BIT, ImbFormatOptions::quality, ImageFormatData::quality, R_IMF_CHAN_DEPTH_12, R_IMF_CHAN_DEPTH_16, R_IMF_EXR_CODEC_ZIP, R_IMF_FLAG_ZBUF, R_IMF_IMTYPE_BMP, R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DDS, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_IRIS, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_JPEG90, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_PNG, R_IMF_IMTYPE_RADHDR, R_IMF_IMTYPE_RAWTGA, R_IMF_IMTYPE_TARGA, R_IMF_IMTYPE_TIFF, R_IMF_JP2_CODEC_J2K, R_IMF_JP2_CODEC_JP2, R_IMF_JP2_FLAG_CINE_48, R_IMF_JP2_FLAG_CINE_PRESET, R_IMF_JP2_FLAG_YCC, R_IMF_TIFF_CODEC_DEFLATE, R_IMF_TIFF_CODEC_LZW, R_IMF_TIFF_CODEC_NONE, R_IMF_TIFF_CODEC_PACKBITS, RAWTGA, ImageFormatData::tiff_codec, and ImBuf::zbuf_float.
Referenced by BKE_image_buffer_format_writable().
| int BKE_imbuf_write | ( | ImBuf * | ibuf, |
| const char * | name, | ||
| const ImageFormatData * | imf | ||
| ) |
Definition at line 2999 of file image.c.
References BKE_imbuf_write_prepare(), BLI_make_existing_file(), IB_rect, IB_zbuf, IB_zbuffloat, and IMB_saveiff().
Referenced by BKE_imbuf_write_as(), and BKE_imbuf_write_stamp().
| int BKE_imbuf_write_as | ( | ImBuf * | ibuf, |
| const char * | name, | ||
| ImageFormatData * | imf, | ||
| const bool | save_copy | ||
| ) |
Definition at line 3015 of file image.c.
References BKE_imbuf_write(), ImBuf::foptions, ImBuf::ftype, ImBuf::planes, and ImageFormatData::planes.
Referenced by image_save_single().
| void BKE_imbuf_write_prepare | ( | ImBuf * | ibuf, |
| const ImageFormatData * | imf | ||
| ) |
Definition at line 2837 of file image.c.
References BLI_assert, ImageFormatData::cineon_flag, ImageFormatData::compress, ImageFormatData::depth, ELEM, ImageFormatData::exr_codec, ImbFormatOptions::flag, ImageFormatData::flag, ImBuf::foptions, ImBuf::ftype, IMB_freezbuffloatImBuf(), IMB_FTYPE_BMP, IMB_FTYPE_IMAGIC, IMB_FTYPE_JPG, IMB_FTYPE_OPENEXR, IMB_FTYPE_PNG, IMB_FTYPE_TGA, ImageFormatData::imtype, ImageFormatData::jp2_codec, ImageFormatData::jp2_flag, OPENEXR_COMPRESS, OPENEXR_HALF, PNG_16BIT, ImbFormatOptions::quality, ImageFormatData::quality, R_IMF_CHAN_DEPTH_10, R_IMF_CHAN_DEPTH_12, R_IMF_CHAN_DEPTH_16, R_IMF_CINEON_FLAG_LOG, R_IMF_FLAG_ZBUF, R_IMF_IMTYPE_BMP, R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DDS, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_FFMPEG, R_IMF_IMTYPE_H264, R_IMF_IMTYPE_IRIS, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_PNG, R_IMF_IMTYPE_RADHDR, R_IMF_IMTYPE_RAWTGA, R_IMF_IMTYPE_TARGA, R_IMF_IMTYPE_THEORA, R_IMF_IMTYPE_TIFF, R_IMF_IMTYPE_XVID, R_IMF_JP2_CODEC_J2K, R_IMF_JP2_CODEC_JP2, R_IMF_JP2_FLAG_CINE_48, R_IMF_JP2_FLAG_CINE_PRESET, R_IMF_JP2_FLAG_YCC, R_IMF_TIFF_CODEC_DEFLATE, R_IMF_TIFF_CODEC_LZW, R_IMF_TIFF_CODEC_NONE, R_IMF_TIFF_CODEC_PACKBITS, RAWTGA, and ImageFormatData::tiff_codec.
Referenced by BKE_imbuf_write().
| int BKE_imbuf_write_stamp | ( | Scene * | scene, |
| struct RenderResult * | rr, | ||
| ImBuf * | ibuf, | ||
| const char * | name, | ||
| const struct ImageFormatData * | imf | ||
| ) |
Definition at line 3036 of file image.c.
References BKE_imbuf_stamp_info(), BKE_imbuf_write(), Scene::r, R_STAMP_ALL, scene, and RenderData::stamp.
Referenced by render_imbuf_write_stamp_test().
| void BKE_imformat_defaults | ( | ImageFormatData * | im_format | ) |
Definition at line 1785 of file image.c.
References BKE_color_managed_display_settings_init(), BKE_color_managed_view_settings_init_default(), ImageFormatData::compress, ImageFormatData::depth, ImageFormatData::display_settings, ImageFormatData::imtype, ImageFormatData::planes, ImageFormatData::quality, R_IMF_CHAN_DEPTH_8, R_IMF_IMTYPE_PNG, R_IMF_PLANES_RGBA, and ImageFormatData::view_settings.
Referenced by BKE_image_save_options_init(), BKE_imbuf_to_image_format(), init_output_file(), ntreeCompositOutputFileAddSocket(), and screenshot_data_create().
| char BKE_imtype_from_arg | ( | const char * | imtype_arg | ) |
Definition at line 1569 of file image.c.
References R_IMF_IMTYPE_AVIJPEG, R_IMF_IMTYPE_AVIRAW, R_IMF_IMTYPE_BMP, R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DDS, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_FFMPEG, R_IMF_IMTYPE_INVALID, R_IMF_IMTYPE_IRIS, R_IMF_IMTYPE_IRIZ, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_JPEG90, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_PNG, R_IMF_IMTYPE_RADHDR, R_IMF_IMTYPE_RAWTGA, R_IMF_IMTYPE_TARGA, R_IMF_IMTYPE_TIFF, and STREQ.
Referenced by arg_handle_image_type_set().
| bool BKE_imtype_is_movie | ( | const char | imtype | ) |
Definition at line 1443 of file image.c.
References R_IMF_IMTYPE_AVIJPEG, R_IMF_IMTYPE_AVIRAW, R_IMF_IMTYPE_FFMPEG, R_IMF_IMTYPE_H264, R_IMF_IMTYPE_THEORA, and R_IMF_IMTYPE_XVID.
Referenced by BKE_scene_multiview_num_videos_get(), do_write_image_or_movie(), IMB_colormanagement_imbuf_for_write(), init_output_file(), ntreeCompositOutputFileAddSocket(), RE_InitState(), RE_RenderAnim(), RE_RenderFrame(), screen_opengl_render_anim_init(), screen_opengl_render_anim_step(), screen_opengl_render_end(), screen_opengl_render_init(), screen_render_exec(), screen_render_invoke(), and write_result_func().
| bool BKE_imtype_requires_linear_float | ( | const char | imtype | ) |
Definition at line 1487 of file image.c.
References R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, and R_IMF_IMTYPE_RADHDR.
Referenced by IMB_colormanagement_imbuf_for_write(), and uiTemplateImageSettings().
| bool BKE_imtype_supports_compress | ( | const char | imtype | ) |
Definition at line 1467 of file image.c.
References R_IMF_IMTYPE_PNG.
Referenced by uiTemplateImageSettings().
| bool BKE_imtype_supports_quality | ( | const char | imtype | ) |
Definition at line 1476 of file image.c.
References R_IMF_IMTYPE_AVIJPEG, R_IMF_IMTYPE_JP2, and R_IMF_IMTYPE_JPEG90.
Referenced by uiTemplateImageSettings().
| bool BKE_imtype_supports_zbuf | ( | const char | imtype | ) |
Definition at line 1457 of file image.c.
References R_IMF_IMTYPE_IRIZ, and R_IMF_IMTYPE_OPENEXR.
Referenced by uiTemplateImageSettings().
| char BKE_imtype_valid_channels | ( | const char | imtype, |
| bool | write_file | ||
| ) |
Definition at line 1500 of file image.c.
References ATTR_FALLTHROUGH, IMA_CHAN_FLAG_ALPHA, IMA_CHAN_FLAG_BW, IMA_CHAN_FLAG_RGB, R_IMF_IMTYPE_BMP, R_IMF_IMTYPE_DDS, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_IRIS, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_JPEG90, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_PNG, R_IMF_IMTYPE_RAWTGA, R_IMF_IMTYPE_TARGA, and R_IMF_IMTYPE_TIFF.
Referenced by image_has_alpha().
| char BKE_imtype_valid_depths | ( | const char | imtype | ) |
Definition at line 1541 of file image.c.
References R_IMF_CHAN_DEPTH_10, R_IMF_CHAN_DEPTH_12, R_IMF_CHAN_DEPTH_16, R_IMF_CHAN_DEPTH_32, R_IMF_CHAN_DEPTH_8, R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_PNG, R_IMF_IMTYPE_RADHDR, and R_IMF_IMTYPE_TIFF.
Referenced by imtype_best_depth(), render_result_rect_to_ibuf(), and uiTemplateImageSettings().
| void BKE_render_result_stamp_data | ( | RenderResult * | rr, |
| const char * | key, | ||
| const char * | value | ||
| ) |
Definition at line 2727 of file image.c.
References BLI_addtail(), BLI_strdup(), StampData::custom_fields, StampDataCustomField::key, MEM_callocN, MEM_mallocN, NULL, RenderResult::stamp_data, STRNCPY, and StampDataCustomField::value.
Referenced by add_render_result_meta_data(), blender::compositor::MetaData::addToRenderResult(), metadata_copy_custom_fields(), and blender::bke::cryptomatte::tests::TEST().
| void BKE_render_result_stamp_info | ( | Scene * | scene, |
| Object * | camera, | ||
| struct RenderResult * | rr, | ||
| bool | allocate_only | ||
| ) |
Definition at line 2611 of file image.c.
References StampData::camera, MEM_callocN, Scene::r, R_STAMP_ALL, scene, RenderData::stamp, RenderResult::stamp_data, and stampdata().
Referenced by do_render_full_pipeline(), do_render_sequencer(), screen_opengl_render_write(), screen_opengl_views_setup(), and write_result_func().
Definition at line 2741 of file image.c.
References BLI_duplicatelist(), StampData::custom_fields, LISTBASE_FOREACH, MEM_dupallocN, and NULL.
| void BKE_stamp_data_free | ( | StampData * | stamp_data | ) |
Definition at line 2757 of file image.c.
References BLI_freelistN(), StampData::custom_fields, LISTBASE_FOREACH, MEM_freeN, and NULL.
Referenced by blender::compositor::OutputOpenExrMultiLayerOperation::deinitExecution(), blender::compositor::OutputOpenExrMultiLayerMultiViewOperation::get_handle(), and render_result_free().
| void BKE_stamp_info_callback | ( | void * | data, |
| struct StampData * | stamp_data, | ||
| StampCallback | callback, | ||
| bool | noskip | ||
| ) |
Definition at line 2686 of file image.c.
References CALL, callback, StampData::camera, StampData::cameralens, StampData::custom_fields, data, StampData::date, file, StampData::frame, StampData::frame_range, StampData::hostname, LISTBASE_FOREACH, StampData::marker, StampData::memory, StampData::note, NULL, StampData::rendertime, scene, StampData::strip, and time.
Referenced by BKE_imbuf_stamp_info(), BKE_stamp_info_from_imbuf(), CryptomatteSession::CryptomatteSession(), blender::compositor::MultilayerColorOperation::getMetaData(), blender::compositor::RenderLayersProg::getMetaData(), IMB_exr_begin_write(), and blender::bke::cryptomatte::tests::TEST().
| void BKE_stamp_info_from_imbuf | ( | RenderResult * | rr, |
| struct ImBuf * | ibuf | ||
| ) |
Definition at line 2800 of file image.c.
References BKE_stamp_info_callback(), IMB_metadata_ensure(), IMB_metadata_foreach(), MEM_callocN, ImBuf::metadata, metadata_copy_custom_fields(), metadata_get_field(), NULL, and RenderResult::stamp_data.
Referenced by do_render_sequencer().
Definition at line 2638 of file image.c.
References MEM_callocN, NULL, Scene::r, R_STAMP_ALL, scene, RenderData::stamp, and stampdata().
| bool BKE_stamp_is_known_field | ( | const char * | field_name | ) |
Definition at line 2674 of file image.c.
References NULL, stamp_metadata_fields, and STREQ.
Referenced by metadata_copy_custom_fields(), and metadata_is_custom_drawable().
Definition at line 603 of file image.c.
References BKE_packedfile_duplicate(), BLI_addtail(), BLI_listbase_clear(), ImagePackedFile::filepath, ListBase::first, MEM_mallocN, ImagePackedFile::next, ImagePackedFile::packedfile, and STRNCPY.
Referenced by image_copy_data().
|
static |
Definition at line 1647 of file image.c.
References BLI_assert, BLI_path_extension_check(), BLI_path_extension_check_array(), BLI_path_extension_check_n(), BLI_path_extension_ensure(), BLI_path_extension_replace(), ELEM, FILE_MAX, imb_ext_image, ImageFormatData::jp2_codec, NULL, R_IMF_IMTYPE_BMP, R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DDS, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_FFMPEG, R_IMF_IMTYPE_H264, R_IMF_IMTYPE_IRIS, R_IMF_IMTYPE_IRIZ, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_PNG, R_IMF_IMTYPE_PSD, R_IMF_IMTYPE_RADHDR, R_IMF_IMTYPE_RAWTGA, R_IMF_IMTYPE_TARGA, R_IMF_IMTYPE_THEORA, R_IMF_IMTYPE_TIFF, R_IMF_IMTYPE_XVID, R_IMF_JP2_CODEC_J2K, and R_IMF_JP2_CODEC_JP2.
Referenced by BKE_image_path_ensure_ext_from_imformat(), BKE_image_path_ensure_ext_from_imtype(), and do_makepicstring().
|
static |
Definition at line 3049 of file image.c.
References BLI_path_abs(), BLI_path_frame(), BLI_path_suffix(), BLI_strncpy(), do_add_image_extension(), FILE_MAX, StampData::frame, and NULL.
Referenced by BKE_image_path_from_imformat(), and BKE_image_path_from_imtype().
Definition at line 4976 of file image.c.
References add_ibuf_size(), BKE_image_get_tile(), BKE_image_tag_time(), BLI_thread_lock(), Image::colorspace_settings, ELEM, Image::filepath, Image::gen_color, Image::gen_depth, Image::gen_flag, Image::gen_type, Image::gen_x, Image::gen_y, IB_PERSISTENT, IB_rect, IB_rectfloat, IMA_GEN_FLOAT, IMA_OK_LOADED, IMA_SRC_FILE, IMA_SRC_GENERATED, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, IMA_SRC_TILED, IMA_SRC_VIEWER, IMA_TYPE_COMPOSITE, IMA_TYPE_IMAGE, IMA_TYPE_MULTILAYER, IMA_TYPE_R_RESULT, image_assign_ibuf(), image_get_cached_ibuf(), image_get_cached_ibuf_for_index_entry(), image_get_ibuf_multilayer(), image_get_render_result(), image_load_image_file(), image_load_movie_file(), image_load_sequence_file(), image_load_sequence_multilayer(), image_quick_test(), IMB_allocImBuf(), ImBuf::index, LOCK_VIEWER, NULL, ImageTile::ok, Image::source, Image::type, and ImBuf::userflags.
Referenced by BKE_image_acquire_ibuf(), BKE_image_has_ibuf(), and BKE_image_pool_acquire_ibuf().
|
static |
Definition at line 4010 of file image.c.
References BLI_addhead(), BLI_addtail(), BLI_findstring(), BLI_insertlinkafter(), ImageView::filepath, MEM_mallocN, ImageView::name, ImBuf::name, NULL, STEREO_LEFT_NAME, STEREO_RIGHT_NAME, STREQ, STRNCPY, and Image::views.
Referenced by BKE_image_add_generated(), image_update_views_format(), and image_viewer_create_views().
Definition at line 555 of file image.c.
References BKE_libblock_alloc(), ID_IM, image_init(), ImBuf::name, and type.
Referenced by BKE_image_add_from_imbuf(), BKE_image_add_generated(), BKE_image_ensure_viewer(), and BKE_image_load().
Definition at line 584 of file image.c.
References IMA_MAKE_INDEX, IMA_NO_INDEX, imagecache_put(), and ImBuf::index.
Referenced by BKE_image_add_from_imbuf(), BKE_image_add_generated(), BKE_image_fill_tile(), image_acquire_ibuf(), image_get_ibuf_multilayer(), image_get_render_result(), image_load_image_file(), image_load_movie_file(), image_load_sequence_file(), and image_load_sequence_multilayer().
|
static |
Definition at line 271 of file image.c.
References Image::anims, BKE_packedfile_blend_read(), BKE_previewimg_blend_read(), BLI_listbase_clear(), BLO_read_data_address, BLO_read_data_is_undo(), BLO_read_list(), ListBase::first, Image::gpu_refresh_areas, Image::gpuflag, IMA_OK, Image::last_render_slot, LISTBASE_FOREACH, NULL, Image::packedfiles, Image::preview, Image::render_slot, Image::renderslots, Image::stereo3d_format, Image::tiles, and Image::views.
|
static |
Definition at line 306 of file image.c.
References BKE_image_free_buffers(), Image::cache, and NULL.
|
static |
Definition at line 227 of file image.c.
References BKE_id_blend_write(), BKE_packedfile_blend_write(), BKE_previewimg_blend_write(), BLI_assert, BLI_listbase_clear(), BLO_write_id_struct, BLO_write_is_undo(), BLO_write_struct, BLO_write_struct_list, ListBase::first, Image::id, ID_IS_OVERRIDE_LIBRARY, LISTBASE_FOREACH, ImagePackedFile::next, NULL, ImagePackedFile::packedfile, Image::packedfiles, Image::preview, Image::renderslots, Image::stereo3d_format, Image::tiles, ID::us, and Image::views.
|
static |
Definition at line 129 of file image.c.
References Image::anims, BKE_color_managed_colorspace_settings_copy(), BKE_previewimg_id_copy(), BLI_duplicatelist(), BLI_listbase_clear(), Image::cache, Image::colorspace_settings, copy_image_packedfiles(), Image::gputexture, Image::id, LIB_ID_COPY_NO_PREVIEW, LISTBASE_FOREACH, MEM_dupallocN, NULL, Image::packedfiles, Image::preview, Image::renderslots, Image::rr, Image::stereo3d_format, TEXTARGET_COUNT, Image::tiles, and Image::views.
|
static |
Definition at line 5383 of file image.c.
References BKE_image_user_frame_calc(), ImageUser::flag, IMA_ANIM_ALWAYS, and IMA_NEED_FRAME_RECALC.
Referenced by BKE_image_editors_update_frame().
|
static |
Definition at line 196 of file image.c.
References Freestyle::a, BLI_ghashutil_strhash_p(), Image::cache, IDCacheKey::cache_v, Image::gputexture, IDCacheKey::id_session_uuid, LISTBASE_FOREACH, IDCacheKey::offset_in_ID, Image::renderslots, Image::rr, TEXTARGET_COUNT, and user_data.
|
static |
Definition at line 473 of file image.c.
References ImageAnim::anim, Image::anims, BLI_remlink(), IMB_free_anim(), ListBase::last, MEM_freeN, and NULL.
Referenced by BKE_image_free_buffers_ex(), and image_load_movie_file().
|
static |
Definition at line 443 of file image.c.
References Image::cache, IMB_moviecache_free(), and NULL.
Referenced by BKE_image_ensure_viewer_views(), BKE_image_free_buffers_ex(), and image_load_sequence_multilayer().
|
static |
Definition at line 169 of file image.c.
References BKE_icon_id_delete(), BKE_image_free_buffers(), BKE_image_free_views(), BKE_previewimg_free(), BLI_freelistN(), Image::gpu_refresh_areas, Image::id, image_free_packedfiles(), LISTBASE_FOREACH, MEM_SAFE_FREE, NULL, Image::preview, RE_FreeRenderResult(), Image::renderslots, Image::stereo3d_format, and Image::tiles.
Referenced by BKE_image_free().
|
static |
Definition at line 451 of file image.c.
References BKE_packedfile_free(), BLI_remlink(), ListBase::last, MEM_freeN, ImagePackedFile::packedfile, and Image::packedfiles.
Referenced by BKE_image_free_packedfiles(), BKE_image_memorypack(), BKE_image_signal(), image_free_data(), image_load_image_file(), and image_memorypack_imbuf().
Definition at line 3471 of file image.c.
References BKE_image_is_multiview(), BLI_listbase_count(), ELEM, ListBase::first, GPU_texture_free(), Image::gputexture, image_remove_ibuf(), NULL, TEXTARGET_2D_ARRAY, TEXTARGET_COUNT, TEXTARGET_TILE_MAPPING, ImageTile::tile_number, Image::tiles, and Image::views.
Referenced by BKE_image_fill_tile(), BKE_image_remove_tile(), and BKE_image_signal().
|
static |
Definition at line 4871 of file image.c.
References BKE_image_get_tile(), ELEM, ImageUser::framenr, IMA_OK_LOADED, IMA_SRC_FILE, IMA_SRC_GENERATED, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, IMA_SRC_TILED, IMA_SRC_VIEWER, IMA_TYPE_IMAGE, IMA_TYPE_MULTILAYER, image_get_cached_ibuf_for_index_entry(), image_get_multiview_index(), ImBuf::index, Image::lastframe, NULL, ImageUser::ok, ImageTile::ok, Image::source, ImageUser::tile, and Image::type.
Referenced by BKE_image_has_ibuf(), and image_acquire_ibuf().
Definition at line 574 of file image.c.
References IMA_MAKE_INDEX, IMA_NO_INDEX, imagecache_get(), and ImBuf::index.
Referenced by BKE_image_memorypack(), BKE_image_signal(), image_acquire_ibuf(), image_get_cached_ibuf(), and image_get_render_result().
|
static |
Definition at line 4841 of file image.c.
References ImageUser::framenr, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, IMA_SRC_TILED, IMA_TYPE_IMAGE, IMA_TYPE_MULTILAYER, image_get_multiview_index(), ImBuf::index, Image::lastframe, Image::source, ImageUser::tile, and Image::type.
Referenced by BKE_image_pool_acquire_ibuf().
Definition at line 4581 of file image.c.
References BKE_image_get_tile(), BKE_image_multilayer_index(), BKE_imbuf_stamp_info(), ImBuf::channels, RenderPass::channels, ImBuf::flags, IB_rectfloat, IMA_NO_INDEX, IMA_TYPE_IMAGE, image_assign_ibuf(), image_init_after_load(), image_load_image_file(), IMB_allocImBuf(), ImageUser::multi_index, NULL, ImageUser::ok, ImageTile::ok, RenderPass::rect, ImBuf::rect_float, RenderResult::rectx, RenderResult::recty, Image::rr, and Image::type.
Referenced by image_acquire_ibuf().
Definition at line 4818 of file image.c.
References BKE_image_has_multiple_ibufs(), BKE_image_is_multilayer(), BKE_image_is_multiview(), BKE_image_is_stereo(), Image::eye, IMA_NO_INDEX, IMA_SRC_VIEWER, IMA_TYPE_COMPOSITE, ImBuf::index, ImageUser::multi_index, NULL, Image::source, and Image::type.
Referenced by image_get_cached_ibuf(), and image_get_entry_and_index().
Definition at line 4624 of file image.c.
References BKE_image_get_renderslot(), BKE_image_get_tile(), BKE_image_is_stereo(), BKE_imbuf_stamp_info(), BLI_findlink(), BLI_thread_lock(), BLI_thread_unlock(), ImBuf::channels, RenderPass::channels, COLOR_ROLE_DEFAULT_BYTE, ImBuf::dither, RenderData::dither_intensity, ListBase::first, ImageUser::flag, ImBuf::flags, RenderResult::have_combined, IB_DISPLAY_BUFFER_INVALID, IB_rect, IB_rectfloat, IB_zbuffloat, IMA_NO_INDEX, IMA_OK_LOADED, IMA_SHOW_STEREO, image_assign_ibuf(), image_get_cached_ibuf_for_index_entry(), image_render_pass_get(), IMB_allocImBuf(), IMB_colormanagement_assign_rect_colorspace(), IMB_colormanagement_role_colorspace_name_get(), imb_freerectImBuf(), IMB_metadata_free(), Image::last_render_slot, ImageUser::layer, RenderResult::layers, LOCK_COLORMANAGE, LOCK_VIEWER, ImBuf::mall, ImBuf::metadata, ImageUser::multiview_eye, RenderPass::name, RenderPass::next, NULL, ImageTile::ok, ImageUser::pass, RenderLayer::passes, Scene::r, RE_AcquireResultImage(), RE_GetSceneRender(), RE_PASSNAME_Z, RE_ReleaseResultImage(), ImBuf::rect, RenderPass::rect, RenderView::rect32, RenderResult::rect32, ImBuf::rect_float, RenderView::rectf, RenderResult::rectf, RenderResult::rectx, RenderResult::recty, RenderView::rectz, RenderResult::rectz, RenderSlot::render, Image::render_slot, ImageUser::scene, STREQ, ImBuf::userflags, ImageUser::view, RenderPass::view_id, RenderResult::views, ImBuf::x, ImBuf::y, and ImBuf::zbuf_float.
Referenced by image_acquire_ibuf().
|
static |
Definition at line 527 of file image.c.
References BKE_color_managed_colorspace_settings_init(), BKE_image_add_renderslot(), BLI_addtail(), BLI_assert, Image::colorspace_settings, DNA_struct_default_get, Image::flag, IMA_OK, IMA_SRC_VIEWER, IMA_TYPE_R_RESULT, IMA_VIEW_AS_RENDER, MEM_callocN, MEMCMP_STRUCT_AFTER_IS_ZERO, MEMCPY_STRUCT_AFTER, NULL, ImageTile::ok, Image::source, Image::stereo3d_format, ImageTile::tile_number, Image::tiles, type, and Image::type.
Referenced by image_alloc(), image_init_data(), paint_2d_bucket_fill(), and paint_2d_gradient_fill().
Definition at line 4067 of file image.c.
References BKE_icon_changed(), BKE_icon_id_ensure(), BKE_image_get_tile_from_iuser(), BKE_image_tag_time(), BLI_assert, BLI_thread_is_main(), G, Image::id, IMA_OK_LOADED, NULL, ImageTile::ok, and Image::preview.
Referenced by image_get_ibuf_multilayer(), image_load_sequence_multilayer(), load_image_single(), load_movie_single(), and load_sequence_single().
|
static |
Definition at line 769 of file image.c.
References Image::alpha_mode, BKE_image_user_file_path(), Image::colorspace_settings, FILE_MAX, ImBuf::flags, IB_alphamode_channel_packed, IB_alphamode_detect, IB_alphamode_ignore, IB_alphamode_premul, IB_test, IMA_ALPHA_CHANNEL_PACKED, IMA_ALPHA_IGNORE, IMA_ALPHA_PREMUL, IMA_ALPHA_STRAIGHT, IMB_freeImBuf(), IMB_loadiffname(), ColorManagedColorspaceSettings::name, and NULL.
Referenced by BKE_image_load().
|
static |
Definition at line 120 of file image.c.
References IMA_SRC_GENERATED, IMA_TYPE_UV_TEST, image_init(), and NULL.
|
static |
Definition at line 3896 of file image.c.
References BKE_image_free_views(), BLI_addtail(), BLI_listbase_count(), ListBase::first, LISTBASE_FOREACH, MEM_callocN, ImageView::name, RenderView::name, ImageView::next, RenderView::next, STREQ, STRNCPY, Image::views, and RenderResult::views.
Referenced by BKE_image_acquire_renderresult().
Definition at line 4510 of file image.c.
References BKE_image_free_buffers(), BKE_image_get_tile(), BKE_image_has_packedfile(), BKE_image_is_multiview(), BKE_image_is_stereo(), BLI_assert, BLI_listbase_count(), BLI_listbase_count_at_most(), if(), IMA_NO_INDEX, image_assign_ibuf(), image_free_packedfiles(), image_num_files(), IMB_freeImBuf(), IMB_ImBufFromStereo3d(), load_image_single(), MEM_callocN, MEM_freeN, ImageUser::multi_index, NULL, ImageUser::ok, ImageTile::ok, Image::packedfiles, R_IMF_VIEWS_STEREO_3D, Image::stereo3d_format, Image::views, and Image::views_format.
Referenced by image_acquire_ibuf(), and image_get_ibuf_multilayer().
Definition at line 4354 of file image.c.
References Image::anims, BKE_image_get_tile(), BKE_image_is_multiview(), BKE_image_is_stereo(), BLI_addtail(), BLI_listbase_count(), BLI_listbase_count_at_most(), image_assign_ibuf(), image_free_anims(), image_num_files(), IMB_freeImBuf(), IMB_ImBufFromStereo3d(), load_movie_single(), MEM_callocN, MEM_freeN, MEM_mallocN, ImageUser::multi_index, NULL, ImageUser::ok, ImageTile::ok, R_IMF_VIEWS_STEREO_3D, Image::stereo3d_format, Image::views, and Image::views_format.
Referenced by image_acquire_ibuf().
|
static |
Definition at line 4187 of file image.c.
References BKE_image_is_multiview(), BKE_image_is_stereo(), BLI_listbase_count(), image_assign_ibuf(), image_num_files(), IMB_freeImBuf(), IMB_ImBufFromStereo3d(), load_sequence_single(), MEM_freeN, MEM_mallocN, ImageUser::multi_index, NULL, R_IMF_VIEWS_STEREO_3D, Image::stereo3d_format, Image::views, and Image::views_format.
Referenced by image_acquire_ibuf(), and image_load_sequence_multilayer().
|
static |
Definition at line 4237 of file image.c.
References BKE_image_get_tile_from_iuser(), BKE_image_multilayer_index(), BKE_imbuf_stamp_info(), ImBuf::channels, RenderPass::channels, ImBuf::flags, RenderResult::framenr, IB_rectfloat, IMA_TYPE_IMAGE, image_assign_ibuf(), image_free_cached_frames(), image_init_after_load(), image_load_sequence_file(), IMB_allocImBuf(), ImBuf::mall, MEM_dupallocN, ImageUser::multi_index, NULL, ImageUser::ok, ImageTile::ok, RE_FreeRenderResult(), RenderPass::rect, ImBuf::rect_float, RenderResult::rectx, RenderResult::recty, Image::rr, and Image::type.
Referenced by image_acquire_ibuf().
Definition at line 1189 of file image.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), Image::cache, IMA_SRC_VIEWER, image_mutex, IMB_MIPMAP_LEVELS, IMB_moviecacheIter_done(), IMB_moviecacheIter_free(), IMB_moviecacheIter_getImBuf(), IMB_moviecacheIter_new(), IMB_moviecacheIter_step(), MEM_allocN_len, ImBuf::mipmap, NULL, ImBuf::rect, ImBuf::rect_float, size(), and Image::source.
Referenced by BKE_image_free_all_textures(), and BKE_image_print_memlist().
Definition at line 1051 of file image.c.
References BLI_addtail(), CLOG_STR_ERROR, ImBuf::encodedbuffer, ImBuf::encodedsize, ImagePackedFile::filepath, ImBuf::ftype, IB_BITMAPDIRTY, IB_mem, IB_rect, image_free_packedfiles(), IMB_freeImBuf(), IMB_FTYPE_OPENEXR, IMB_FTYPE_PNG, IMB_saveiff(), LOG, MEM_callocN, MEM_mallocN, NULL, ImagePackedFile::packedfile, Image::packedfiles, pf, ImBuf::rect_float, STRNCPY, and ImBuf::userflags.
Referenced by BKE_image_memorypack().
|
static |
Definition at line 4104 of file image.c.
References BKE_image_is_multiview(), BLI_listbase_count(), R_IMF_VIEWS_STEREO_3D, Image::views, and Image::views_format.
Referenced by BKE_image_packfiles(), BKE_image_packfiles_from_mem(), BKE_image_signal(), image_load_image_file(), image_load_movie_file(), and image_load_sequence_file().
| BLI_INLINE ImBuf* image_pool_find_item | ( | ImagePool * | pool, |
| Image * | image, | ||
| int | entry, | ||
| int | index, | ||
| bool * | found | ||
| ) |
Definition at line 5196 of file image.c.
References ImagePoolItem::entry, ImagePoolItem::ibuf, ImagePoolItem::image, ImagePoolItem::index, ImagePoolItem::next, NULL, and blender::compositor::pool.
Referenced by BKE_image_pool_acquire_ibuf().
| BLI_INLINE bool image_quick_test | ( | Image * | ima, |
| const ImageUser * | iuser | ||
| ) |
Definition at line 4949 of file image.c.
References BKE_image_get_tile_from_iuser(), NULL, ImageUser::ok, and ImageTile::ok.
Referenced by BKE_image_has_ibuf(), BKE_image_pool_acquire_ibuf(), and image_acquire_ibuf().
|
static |
Definition at line 595 of file image.c.
References IMA_MAKE_INDEX, IMA_NO_INDEX, imagecache_remove(), and ImBuf::index.
Referenced by image_free_tile().
|
static |
Definition at line 3656 of file image.c.
References ListBase::first, RenderPass::name, RenderPass::next, NULL, RenderLayer::passes, STREQ, view, and RenderPass::view_id.
Referenced by BKE_image_multilayer_index(), and image_get_render_result().
|
static |
Definition at line 3420 of file image.c.
References BKE_image_is_animated(), DEG_id_tag_update(), ImageUser::flag, ID_RECALC_COPY_ON_WRITE, IMA_NEED_FRAME_RECALC, and ImageUser::ok.
Referenced by BKE_image_signal().
|
static |
Definition at line 3435 of file image.c.
References DEG_id_tag_update(), ID_RECALC_COPY_ON_WRITE, image_update_views_format(), ImageUser::ok, and ImageUser::scene.
Referenced by BKE_image_signal().
Definition at line 5792 of file image.c.
References BKE_image_free_views(), BKE_image_is_multiview(), BKE_scene_multiview_is_render_view_active(), BKE_scene_multiview_view_prefix_get(), BLI_open(), BLI_path_abs(), BLI_remlink(), file, FILE_MAX, ImageView::filepath, Image::filepath, ListBase::first, Image::flag, Image::id, ID_BLEND_PATH_FROM_GLOBAL, IMA_USE_VIEWS, image_add_view(), ListBase::last, MEM_freeN, SceneRenderView::name, names, SceneRenderView::next, NULL, O_BINARY, ImageView::prev, Scene::r, R_IMF_VIEWS_STEREO_3D, R_MULTIVIEW, RenderData::scemode, scene, ImageUser::scene, SNPRINTF, STEREO_LEFT_NAME, STEREO_RIGHT_NAME, str, STRNCPY, SceneRenderView::suffix, Image::views, RenderData::views, and Image::views_format.
Referenced by BKE_image_signal(), and image_tag_reload().
|
static |
Definition at line 5423 of file image.c.
References BKE_image_is_animated(), BKE_image_user_frame_calc(), DAG_EVAL_RENDER, DEG_get_ctime(), DEG_get_mode(), depsgraph, ImageUser::flag, IMA_ANIM_ALWAYS, and IMA_NEED_FRAME_RECALC.
Referenced by BKE_image_user_id_eval_animation().
|
static |
Definition at line 5403 of file image.c.
References BKE_image_is_animated().
Referenced by BKE_image_user_id_has_animation().
|
static |
Definition at line 3186 of file image.c.
References BKE_scene_multiview_is_render_view_active(), ListBase::first, image_add_view(), SceneRenderView::name, SceneRenderView::next, R_MULTIVIEW, RenderData::scemode, and RenderData::views.
Referenced by BKE_image_ensure_viewer_views().
|
static |
Definition at line 3290 of file image.c.
References blender::compositor::area(), bScreen::areabase, Camera::bg_images, BKE_workspace_active_screen_get(), callback, Object::data, Object::empty_drawtype, GS, id, Light::id, Material::id, bNodeTree::id, Object::id, Scene::id, Simulation::id, Tex::id, World::id, ID_CA, ID_LA, ID_MA, ID_NT, ID_OB, ID_SCE, ID_SIM, ID_TE, ID_WM, ID_WO, Tex::ima, SpaceImage::image, image_walk_ntree_all_users(), Object::iuser, SpaceImage::iuser, Tex::iuser, LISTBASE_FOREACH, ID::name, Light::nodetree, Material::nodetree, Scene::nodetree, Simulation::nodetree, Tex::nodetree, World::nodetree, ntree, NULL, OB_EMPTY_IMAGE, scene, simulation, SPACE_IMAGE, tex, TEX_IMAGE, Tex::type, Light::use_nodes, Material::use_nodes, Scene::use_nodes, Tex::use_nodes, World::use_nodes, wmWindowManager::windows, and world.
Referenced by BKE_image_editors_update_frame(), BKE_image_user_id_eval_animation(), BKE_image_user_id_has_animation(), and BKE_image_walk_all_users().
|
static |
Definition at line 3246 of file image.c.
References callback, CMP_NODE_IMAGE, Tex::iuser, LISTBASE_FOREACH, node, bNodeTree::nodes, ntree, NTREE_COMPOSIT, NTREE_SHADER, NTREE_TEXTURE, SH_NODE_TEX_ENVIRONMENT, SH_NODE_TEX_IMAGE, tex, TEX_NODE_IMAGE, and bNodeTree::type.
Referenced by image_walk_id_all_users().
|
static |
Definition at line 1255 of file image.c.
References IB_BITMAPDIRTY, and ImBuf::userflags.
Referenced by BKE_image_free_all_textures().
|
static |
Definition at line 1298 of file image.c.
References IB_BITMAPDIRTY, IMA_INDEX_ENTRY, IMA_NO_INDEX, ImBuf::index, and ImBuf::userflags.
Referenced by BKE_image_free_anim_ibufs().
Definition at line 420 of file image.c.
References Image::cache, IMB_moviecache_get(), ImageCacheKey::index, ImBuf::index, and NULL.
Referenced by image_get_cached_ibuf_for_index_entry().
|
static |
Definition at line 374 of file image.c.
References Freestyle::a, and ImageCacheKey::index.
Referenced by imagecache_put().
|
static |
Definition at line 368 of file image.c.
References ImageCacheKey::index.
Referenced by imagecache_put().
|
static |
Definition at line 382 of file image.c.
References IMA_INDEX_ENTRY, IMB_PROXY_NONE, and ImageCacheKey::index.
Referenced by imagecache_put().
Definition at line 391 of file image.c.
References Image::cache, imagecache_hashcmp(), imagecache_hashhash(), imagecache_keydata(), IMB_moviecache_create(), IMB_moviecache_put(), IMB_moviecache_set_getdata_callback(), ImageCacheKey::index, and NULL.
Referenced by BKE_image_merge(), and image_assign_ibuf().
|
static |
Definition at line 409 of file image.c.
References Image::cache, IMB_moviecache_remove(), ImageCacheKey::index, and NULL.
Referenced by image_remove_ibuf().
|
static |
Definition at line 4087 of file image.c.
References Image::alpha_mode, IB_alphamode_channel_packed, IB_alphamode_ignore, IB_alphamode_premul, IMA_ALPHA_CHANNEL_PACKED, IMA_ALPHA_IGNORE, IMA_ALPHA_PREMUL, and IMA_ALPHA_STRAIGHT.
Referenced by load_image_single(), and load_sequence_single().
|
static |
Definition at line 4419 of file image.c.
References BKE_image_get_tile_from_iuser(), BKE_image_user_file_path(), BKE_image_user_frame_calc(), BKE_packedfile_new(), BLI_addtail(), BLI_findlink(), Image::colorspace_settings, PackedFile::data, FILE_MAX, ImagePackedFile::filepath, ImageUser::framenr, ImBuf::ftype, G, G_FILE_AUTOPACK, IB_metadata, IB_multilayer, IB_rect, Image::id, ID_BLEND_PATH_FROM_GLOBAL, IMA_TYPE_MULTILAYER, image_init_after_load(), IMB_exr_has_multilayer(), IMB_freeImBuf(), IMB_FTYPE_OPENEXR, IMB_ibImageFromMemory(), IMB_loadiffname(), imbuf_alpha_flags_for_image(), Image::lastframe, MEM_mallocN, ColorManagedColorspaceSettings::name, NULL, ImageTile::ok, ImagePackedFile::packedfile, Image::packedfiles, PackedFile::size, STRNCPY, Image::type, ImBuf::userdata, and ImageUser::view.
Referenced by image_load_image_file().
|
static |
Definition at line 4293 of file image.c.
References ImageAnim::anim, Image::anims, BKE_image_get_tile(), BKE_image_user_file_path(), BLI_findlink(), Image::colorspace_settings, FILE_MAX, Image::flag, ImBuf::flags, ImageUser::frames, IB_animdeinterlace, IB_rect, IMA_DEINTERLACE, image_init_after_load(), IMB_anim_absolute(), IMB_anim_get_duration(), IMB_makeSingleUser(), IMB_PROXY_NONE, IMB_TC_RECORD_RUN, ColorManagedColorspaceSettings::name, NULL, ImageTile::ok, openanim(), str, and ImageUser::view.
Referenced by image_load_movie_file().
|
static |
Definition at line 4119 of file image.c.
References AT, BKE_image_get_tile_from_iuser(), BKE_image_user_file_path(), Image::colorspace_settings, FILE_MAX, ImageUser::framenr, ImBuf::ftype, IB_metadata, IB_multilayer, IB_rect, IMA_TYPE_MULTILAYER, image_init_after_load(), IMB_exr_has_multilayer(), IMB_freeImBuf(), IMB_FTYPE_OPENEXR, IMB_loadiffname(), imbuf_alpha_flags_for_image(), Image::lastframe, ColorManagedColorspaceSettings::name, ImBuf::name, NULL, ImageTile::ok, Image::type, ImBuf::userdata, and ImageUser::view.
Referenced by image_load_sequence_file().
|
static |
Definition at line 2791 of file image.c.
References BKE_render_result_stamp_data(), and BKE_stamp_is_known_field().
Referenced by BKE_stamp_info_from_imbuf().
|
static |
Definition at line 2777 of file image.c.
References data, IMB_metadata_get_field(), len, and ImBuf::metadata.
Referenced by BKE_stamp_info_from_imbuf().
|
static |
Definition at line 2770 of file image.c.
References data, IMB_metadata_set_field(), and ImBuf::metadata.
Referenced by BKE_imbuf_stamp_info().
| struct anim* openanim | ( | const char * | name, |
| int | flags, | ||
| int | streamindex, | ||
| char | colorspace[IMA_MAX_SPACE] | ||
| ) |
Definition at line 3115 of file image.c.
References BLI_exists(), ImBuf::flags, IMB_anim_absolute(), IMB_free_anim(), IMB_freeImBuf(), IMB_open_anim(), IMB_PROXY_NONE, IMB_TC_NONE, ImBuf::name, and NULL.
Referenced by load_movie_single(), movieclip_open_anim_file(), SEQ_add_movie_strip(), SEQ_add_reload_new_file(), seq_open_anim_file(), seq_proxy_fetch(), and seq_render_movie_strip_custom_file_proxy().
| struct anim* openanim_noload | ( | const char * | name, |
| int | flags, | ||
| int | streamindex, | ||
| char | colorspace[IMA_MAX_SPACE] | ||
| ) |
Definition at line 3103 of file image.c.
References anim::colorspace, IMB_open_anim(), anim::name, and anim::streamindex.
Referenced by seq_open_anim_file().
|
static |
| do_prefix | Include a label like "File ", "Date ", etc. in the stamp data strings. |
| use_dynamic | Also include data that can change on a per-frame basis. |
Definition at line 1971 of file image.c.
References BKE_main_blendfile_path_from_global(), BKE_scene_find_last_marker_name(), BLI_hostname_get(), BLI_timecode_string_from_time(), BLI_timecode_string_from_time_simple(), StampData::camera, StampData::cameralens, RenderData::cfra, CFRA, Object::data, StampData::date, RenderData::efra, StampData::file, FPS, FRA2TIME, StampData::frame, StampData::frame_range, G, StampData::hostname, Object::id, Scene::id, integer_digits_i(), RenderStats::lastframetime, StampData::marker, RenderStats::mem_peak, StampData::memory, Sequence::name, ID::name, StampData::note, NULL, OB_CAMERA, Scene::r, R_STAMP_CAMERA, R_STAMP_CAMERALENS, R_STAMP_DATE, R_STAMP_FILENAME, R_STAMP_FRAME, R_STAMP_FRAME_RANGE, R_STAMP_HOSTNAME, R_STAMP_MARKER, R_STAMP_MEMORY, R_STAMP_NOTE, R_STAMP_RENDERTIME, R_STAMP_SCENE, R_STAMP_SEQSTRIP, R_STAMP_TIME, RE_GetSceneRender(), RE_GetStats(), StampData::rendertime, StampData::scene, scene, SEQ_get_topmost_sequence(), RenderData::sfra, SNPRINTF, RenderData::stamp, RenderData::stamp_udata, StampData::strip, STRNCPY, t, StampData::time, time, Object::type, and USER_TIMECODE_SMPTE_FULL.
Referenced by BKE_image_stamp_buf(), BKE_render_result_stamp_info(), and BKE_stamp_info_from_scene_static().
|
static |
Definition at line 2149 of file image.c.
References StampData::camera, StampData::cameralens, StampData::date, StampData::file, StampData::frame, StampData::hostname, StampData::marker, StampData::memory, StampData::note, Scene::r, R_STAMP_CAMERA, R_STAMP_CAMERALENS, R_STAMP_DATE, R_STAMP_FILENAME, R_STAMP_FRAME, R_STAMP_HOSTNAME, R_STAMP_MARKER, R_STAMP_MEMORY, R_STAMP_NOTE, R_STAMP_RENDERTIME, R_STAMP_SCENE, R_STAMP_SEQSTRIP, R_STAMP_TIME, StampData::rendertime, StampData::scene, scene, SNPRINTF, RenderData::stamp, StampData::strip, and StampData::time.
Referenced by BKE_image_stamp_buf().
| IDTypeInfo IDType_ID_IM |
|
static |
Definition at line 114 of file image.c.
Referenced by BKE_image_acquire_ibuf(), BKE_image_ensure_viewer_views(), BKE_image_file_format_set(), BKE_image_free_anim_ibufs(), BKE_image_free_buffers_ex(), BKE_image_get_first_ibuf(), BKE_image_get_ibuf_with_name(), BKE_image_has_ibuf(), BKE_image_has_loaded_ibuf(), BKE_image_is_dirty_writable(), BKE_image_merge(), BKE_image_pool_acquire_ibuf(), BKE_image_pool_free(), BKE_image_release_ibuf(), BKE_image_signal(), BKE_images_exit(), BKE_images_init(), and image_mem_size().
|
static |
Definition at line 113 of file image.c.
Referenced by image_memorypack_imbuf().
|
static |
Definition at line 2654 of file image.c.
Referenced by BKE_stamp_is_known_field().