Blender V4.3
image_ops.cc File Reference
#include <cerrno>
#include <cstddef>
#include <cstdlib>
#include <cstring>
#include <fcntl.h>
#include <unistd.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_fileops.h"
#include "BLI_ghash.h"
#include "BLI_string.h"
#include "BLI_time.h"
#include "BLI_utildefines.h"
#include "BLT_translation.hh"
#include "DNA_camera_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "BKE_colortools.hh"
#include "BKE_context.hh"
#include "BKE_global.hh"
#include "BKE_icons.h"
#include "BKE_image.hh"
#include "BKE_image_save.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_main.hh"
#include "BKE_packedFile.hh"
#include "BKE_report.hh"
#include "BKE_scene.hh"
#include "DEG_depsgraph.hh"
#include "IMB_colormanagement.hh"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"
#include "IMB_moviecache.hh"
#include "RE_pipeline.h"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "RNA_prototypes.hh"
#include "ED_image.hh"
#include "ED_mask.hh"
#include "ED_paint.hh"
#include "ED_render.hh"
#include "ED_screen.hh"
#include "ED_undo.hh"
#include "ED_util.hh"
#include "ED_util_imbuf.hh"
#include "ED_uvedit.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "UI_view2d.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "RE_engine.h"
#include "image_intern.hh"

Go to the source code of this file.

Classes

struct  ViewPanData
 
struct  ViewZoomData
 
struct  ImageOpenData
 
struct  ImageSaveData
 
struct  ImageNewData
 

Functions

View Navigation Utilities
static void sima_zoom_set (SpaceImage *sima, ARegion *region, float zoom, const float location[2], const bool zoom_to_pos)
 
static void sima_zoom_set_factor (SpaceImage *sima, ARegion *region, float zoomfac, const float location[2], const bool zoom_to_pos)
 
static void sima_zoom_set_from_bounds (SpaceImage *sima, ARegion *region, const rctf *bounds)
 
static Imageimage_from_context (const bContext *C)
 
static ImageUserimage_user_from_context (const bContext *C)
 
static ImageUser image_user_from_context_and_active_tile (const bContext *C, Image *ima)
 
static bool image_from_context_has_data_poll (bContext *C)
 
static bool image_from_context_editable_has_data_poll_active_tile (bContext *C)
 
static bool image_not_packed_poll (bContext *C)
 
static void image_view_all (SpaceImage *sima, ARegion *region, wmOperator *op)
 
bool space_image_main_region_poll (bContext *C)
 
static bool space_image_main_area_not_uv_brush_poll (bContext *C)
 
View Pan Operator
static void image_view_pan_init (bContext *C, wmOperator *op, const wmEvent *event)
 
static void image_view_pan_exit (bContext *C, wmOperator *op, bool cancel)
 
static int image_view_pan_exec (bContext *C, wmOperator *op)
 
static int image_view_pan_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
static int image_view_pan_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
static void image_view_pan_cancel (bContext *C, wmOperator *op)
 
void IMAGE_OT_view_pan (wmOperatorType *ot)
 
View All Operator
static int image_view_all_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_view_all (wmOperatorType *ot)
 
Cursor To Center View Operator
static int view_cursor_center_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_view_cursor_center (wmOperatorType *ot)
 
Center View To Cursor Operator
static int view_center_cursor_exec (bContext *C, wmOperator *)
 
void IMAGE_OT_view_center_cursor (wmOperatorType *ot)
 
Frame Selected Operator
static int image_view_selected_exec (bContext *C, wmOperator *)
 
static bool image_view_selected_poll (bContext *C)
 
void IMAGE_OT_view_selected (wmOperatorType *ot)
 
View Zoom In/Out Operator
static int image_view_zoom_in_exec (bContext *C, wmOperator *op)
 
static int image_view_zoom_in_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void IMAGE_OT_view_zoom_in (wmOperatorType *ot)
 
static int image_view_zoom_out_exec (bContext *C, wmOperator *op)
 
static int image_view_zoom_out_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void IMAGE_OT_view_zoom_out (wmOperatorType *ot)
 
View Zoom Ratio Operator
static int image_view_zoom_ratio_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_view_zoom_ratio (wmOperatorType *ot)
 
View Border-Zoom Operator
static int image_view_zoom_border_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_view_zoom_border (wmOperatorType *ot)
 
static void image_filesel (bContext *C, wmOperator *op, const char *path)
 
Open Image Operator
static void image_open_init (bContext *C, wmOperator *op)
 
static void image_open_cancel (bContext *, wmOperator *op)
 
static Imageimage_open_single (Main *bmain, Library *owner_library, wmOperator *op, const ImageFrameRange *range, const bool use_multiview)
 
static int image_open_exec (bContext *C, wmOperator *op)
 
static int image_open_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static bool image_open_draw_check_prop (PointerRNA *, PropertyRNA *prop, void *)
 
static void image_open_draw (bContext *, wmOperator *op)
 
static void image_operator_prop_allow_tokens (wmOperatorType *ot)
 
void IMAGE_OT_open (wmOperatorType *ot)
 
Browse Image Operator
static int image_file_browse_exec (bContext *C, wmOperator *op)
 
static int image_file_browse_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
static bool image_file_browse_poll (bContext *C)
 
void IMAGE_OT_file_browse (wmOperatorType *ot)
 
Match Movie Length Operator
static int image_match_len_exec (bContext *C, wmOperator *)
 
void IMAGE_OT_match_movie_length (wmOperatorType *ot)
 
Replace Image Operator
static int image_replace_exec (bContext *C, wmOperator *op)
 
static int image_replace_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
void IMAGE_OT_replace (wmOperatorType *ot)
 
Save Image As Operator
static void image_save_options_from_op (Main *bmain, ImageSaveOptions *opts, wmOperator *op)
 
static bool save_image_op (Main *bmain, Image *ima, ImageUser *iuser, wmOperator *op, const ImageSaveOptions *opts)
 
static ImageSaveDataimage_save_as_init (bContext *C, wmOperator *op)
 
static void image_save_as_free (wmOperator *op)
 
static int image_save_as_exec (bContext *C, wmOperator *op)
 
static bool image_save_as_check (bContext *C, wmOperator *op)
 
static int image_save_as_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static void image_save_as_cancel (bContext *, wmOperator *op)
 
static bool image_save_as_draw_check_prop (PointerRNA *ptr, PropertyRNA *prop, void *user_data)
 
static void image_save_as_draw (bContext *, wmOperator *op)
 
static bool image_save_as_poll (bContext *C)
 
void IMAGE_OT_save_as (wmOperatorType *ot)
 
Save Image Operator
static bool image_file_format_writable (Image *ima, ImageUser *iuser)
 
static bool image_save_poll (bContext *C)
 
static int image_save_exec (bContext *C, wmOperator *op)
 
static int image_save_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void IMAGE_OT_save (wmOperatorType *ot)
 
Save Sequence Operator
static int image_save_sequence_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_save_sequence (wmOperatorType *ot)
 
Save All Operator
static bool image_should_be_saved_when_modified (Image *ima)
 
static bool image_should_be_saved (Image *ima, bool *r_is_format_writable)
 
static bool image_has_valid_path (Image *ima)
 
static bool image_should_pack_during_save_all (const Image *ima)
 
bool ED_image_should_save_modified (const Main *bmain)
 
int ED_image_save_all_modified_info (const Main *bmain, ReportList *reports)
 
bool ED_image_save_all_modified (const bContext *C, ReportList *reports)
 
static bool image_save_all_modified_poll (bContext *C)
 
static int image_save_all_modified_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_save_all_modified (wmOperatorType *ot)
 
Reload Image Operator
static int image_reload_exec (bContext *C, wmOperator *)
 
void IMAGE_OT_reload (wmOperatorType *ot)
 
Flip Operator
static int image_flip_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_flip (wmOperatorType *ot)
 
Rotate Orthogonal Operator (90, 180, 270)
static int image_rotate_orthogonal_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_rotate_orthogonal (wmOperatorType *ot)
 
Clipboard Copy Operator
static int image_clipboard_copy_exec (bContext *C, wmOperator *op)
 
static bool image_clipboard_copy_poll (bContext *C)
 
void IMAGE_OT_clipboard_copy (wmOperatorType *ot)
 
Clipboard Paste Operator
static int image_clipboard_paste_exec (bContext *C, wmOperator *op)
 
static bool image_clipboard_paste_poll (bContext *C)
 
void IMAGE_OT_clipboard_paste (wmOperatorType *ot)
 
Invert Operators
static int image_invert_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_invert (wmOperatorType *ot)
 
Scale Operator
static int image_scale_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static int image_scale_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_resize (wmOperatorType *ot)
 
Pack Operator
static bool image_pack_test (bContext *C, wmOperator *op)
 
static int image_pack_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_pack (wmOperatorType *ot)
 
Unpack Operator
static int image_unpack_exec (bContext *C, wmOperator *op)
 
static int image_unpack_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
void IMAGE_OT_unpack (wmOperatorType *ot)
 
Sample Image Operator
bool ED_space_image_get_position (SpaceImage *sima, ARegion *region, const int mval[2], float r_fpos[2])
 
bool ED_space_image_color_sample (SpaceImage *sima, ARegion *region, const int mval[2], float r_col[3], bool *r_is_data)
 
void IMAGE_OT_sample (wmOperatorType *ot)
 
Sample Line Operator
static int image_sample_line_exec (bContext *C, wmOperator *op)
 
static int image_sample_line_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void IMAGE_OT_sample_line (wmOperatorType *ot)
 
Set Curve Point Operator
void IMAGE_OT_curves_point_set (wmOperatorType *ot)
 
Cycle Render Slot Operator
static bool image_cycle_render_slot_poll (bContext *C)
 
static int image_cycle_render_slot_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_cycle_render_slot (wmOperatorType *ot)
 
Clear Render Slot Operator
static int image_clear_render_slot_exec (bContext *C, wmOperator *)
 
void IMAGE_OT_clear_render_slot (wmOperatorType *ot)
 
Add Render Slot Operator
static int image_add_render_slot_exec (bContext *C, wmOperator *)
 
void IMAGE_OT_add_render_slot (wmOperatorType *ot)
 
Remove Render Slot Operator
static int image_remove_render_slot_exec (bContext *C, wmOperator *)
 
void IMAGE_OT_remove_render_slot (wmOperatorType *ot)
 
Change Frame Operator
static bool change_frame_poll (bContext *C)
 
static void change_frame_apply (bContext *C, wmOperator *op)
 
static int change_frame_exec (bContext *C, wmOperator *op)
 
static int frame_from_event (bContext *C, const wmEvent *event)
 
static int change_frame_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
static int change_frame_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
void IMAGE_OT_change_frame (wmOperatorType *ot)
 
static int image_read_viewlayers_exec (bContext *C, wmOperator *)
 
void IMAGE_OT_read_viewlayers (wmOperatorType *ot)
 
Render Border Operator
static int render_border_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_render_border (wmOperatorType *ot)
 
Clear Render Border Operator
static int clear_render_border_exec (bContext *C, wmOperator *)
 
void IMAGE_OT_clear_render_border (wmOperatorType *ot)
 
Add Tile Operator
static bool do_fill_tile (PointerRNA *ptr, Image *ima, ImageTile *tile)
 
static void draw_fill_tile (PointerRNA *ptr, uiLayout *layout)
 
static void tile_fill_init (PointerRNA *ptr, Image *ima, ImageTile *tile)
 
static void def_fill_tile (StructOrFunctionRNA *srna)
 
static bool tile_add_poll (bContext *C)
 
static int tile_add_exec (bContext *C, wmOperator *op)
 
static int tile_add_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static void tile_add_draw (bContext *, wmOperator *op)
 
void IMAGE_OT_tile_add (wmOperatorType *ot)
 
Remove Tile Operator
static bool tile_remove_poll (bContext *C)
 
static int tile_remove_exec (bContext *C, wmOperator *)
 
void IMAGE_OT_tile_remove (wmOperatorType *ot)
 
Fill Tile Operator
static bool tile_fill_poll (bContext *C)
 
static int tile_fill_exec (bContext *C, wmOperator *op)
 
static int tile_fill_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static void tile_fill_draw (bContext *, wmOperator *op)
 
void IMAGE_OT_tile_fill (wmOperatorType *ot)
 

New Image Operator

#define IMA_DEF_NAME   N_("Untitled")
 
enum  { GEN_CONTEXT_NONE = 0 , GEN_CONTEXT_PAINT_CANVAS = 1 , GEN_CONTEXT_PAINT_STENCIL = 2 }
 
static ImageNewDataimage_new_init (bContext *C, wmOperator *op)
 
static void image_new_free (wmOperator *op)
 
static int image_new_exec (bContext *C, wmOperator *op)
 
static int image_new_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static void image_new_draw (bContext *, wmOperator *op)
 
static void image_new_cancel (bContext *, wmOperator *op)
 
void IMAGE_OT_new (wmOperatorType *ot)
 

View Zoom Operator

enum  { VIEW_PASS = 0 , VIEW_APPLY , VIEW_CONFIRM }
 
static void image_view_zoom_init (bContext *C, wmOperator *op, const wmEvent *event)
 
static void image_view_zoom_exit (bContext *C, wmOperator *op, bool cancel)
 
static int image_view_zoom_exec (bContext *C, wmOperator *op)
 
static int image_view_zoom_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
static void image_zoom_apply (ViewZoomData *vpd, wmOperator *op, const int x, const int y, const short viewzoom, const short zoom_invert, const bool zoom_to_pos)
 
static int image_view_zoom_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
static void image_view_zoom_cancel (bContext *C, wmOperator *op)
 
void IMAGE_OT_view_zoom (wmOperatorType *ot)
 

Macro Definition Documentation

◆ IMA_DEF_NAME

#define IMA_DEF_NAME   N_("Untitled")

Definition at line 2531 of file image_ops.cc.

Referenced by image_new_invoke(), and IMAGE_OT_new().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
VIEW_PASS 
VIEW_APPLY 
VIEW_CONFIRM 

Definition at line 584 of file image_ops.cc.

◆ anonymous enum

anonymous enum
Enumerator
GEN_CONTEXT_NONE 
GEN_CONTEXT_PAINT_CANVAS 
GEN_CONTEXT_PAINT_STENCIL 

Definition at line 2533 of file image_ops.cc.

Function Documentation

◆ change_frame_apply()

◆ change_frame_exec()

static int change_frame_exec ( bContext * C,
wmOperator * op )
static

Definition at line 3869 of file image_ops.cc.

References change_frame_apply(), and OPERATOR_FINISHED.

Referenced by IMAGE_OT_change_frame().

◆ change_frame_invoke()

◆ change_frame_modal()

◆ change_frame_poll()

static bool change_frame_poll ( bContext * C)
static

Definition at line 3845 of file image_ops.cc.

References G, and space_image_main_region_poll().

Referenced by IMAGE_OT_change_frame().

◆ clear_render_border_exec()

static int clear_render_border_exec ( bContext * C,
wmOperator *  )
static

◆ def_fill_tile()

◆ do_fill_tile()

static bool do_fill_tile ( PointerRNA * ptr,
Image * ima,
ImageTile * tile )
static

◆ draw_fill_tile()

static void draw_fill_tile ( PointerRNA * ptr,
uiLayout * layout )
static

◆ ED_image_save_all_modified()

◆ ED_image_save_all_modified_info()

◆ ED_image_should_save_modified()

◆ ED_space_image_color_sample()

◆ ED_space_image_get_position()

bool ED_space_image_get_position ( SpaceImage * sima,
ARegion * region,
const int mval[2],
float r_fpos[2] )

Returns mouse position in image space.

Definition at line 3464 of file image_ops.cc.

References ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), lock, and UI_view2d_region_to_view().

Referenced by eyedropper_cryptomatte_sample_fl().

◆ frame_from_event()

static int frame_from_event ( bContext * C,
const wmEvent * event )
static

◆ image_add_render_slot_exec()

◆ image_clear_render_slot_exec()

◆ image_clipboard_copy_exec()

◆ image_clipboard_copy_poll()

static bool image_clipboard_copy_poll ( bContext * C)
static

◆ image_clipboard_paste_exec()

◆ image_clipboard_paste_poll()

static bool image_clipboard_paste_poll ( bContext * C)
static

◆ image_cycle_render_slot_exec()

◆ image_cycle_render_slot_poll()

◆ image_file_browse_exec()

◆ image_file_browse_invoke()

◆ image_file_browse_poll()

static bool image_file_browse_poll ( bContext * C)
static

Definition at line 1671 of file image_ops.cc.

References image_from_context().

Referenced by IMAGE_OT_file_browse().

◆ image_file_format_writable()

static bool image_file_format_writable ( Image * ima,
ImageUser * iuser )
static
Parameters
iuserImage user or nullptr when called outside the image space.

Definition at line 2127 of file image_ops.cc.

References BKE_image_acquire_ibuf(), BKE_image_buffer_format_writable(), BKE_image_release_ibuf(), lock, and ret.

Referenced by image_save_invoke().

◆ image_filesel()

static void image_filesel ( bContext * C,
wmOperator * op,
const char * path )
static

◆ image_flip_exec()

◆ image_from_context()

◆ image_from_context_editable_has_data_poll_active_tile()

static bool image_from_context_editable_has_data_poll_active_tile ( bContext * C)
static

Use this when the image buffer is accessing the active tile without the image user.

Definition at line 239 of file image_ops.cc.

References BKE_image_has_ibuf(), CTX_wm_operator_poll_msg_set(), Image::id, ID_IS_EDITABLE, image_from_context(), and image_user_from_context_and_active_tile().

Referenced by IMAGE_OT_flip(), IMAGE_OT_invert(), IMAGE_OT_resize(), and IMAGE_OT_rotate_orthogonal().

◆ image_from_context_has_data_poll()

◆ image_has_valid_path()

static bool image_has_valid_path ( Image * ima)
static

Definition at line 2341 of file image_ops.cc.

References Image::filepath.

Referenced by ED_image_save_all_modified(), and ED_image_save_all_modified_info().

◆ image_invert_exec()

◆ image_match_len_exec()

◆ image_new_cancel()

static void image_new_cancel ( bContext * ,
wmOperator * op )
static

Definition at line 2694 of file image_ops.cc.

References image_new_free().

Referenced by IMAGE_OT_new().

◆ image_new_draw()

◆ image_new_exec()

◆ image_new_free()

static void image_new_free ( wmOperator * op)
static

Definition at line 2555 of file image_ops.cc.

References wmOperator::customdata, and MEM_SAFE_FREE.

Referenced by image_new_cancel(), and image_new_exec().

◆ image_new_init()

static ImageNewData * image_new_init ( bContext * C,
wmOperator * op )
static

◆ image_new_invoke()

◆ image_not_packed_poll()

static bool image_not_packed_poll ( bContext * C)
static

Definition at line 253 of file image_ops.cc.

References BLI_listbase_is_empty(), image_from_context(), and Image::packedfiles.

Referenced by IMAGE_OT_replace().

◆ image_open_cancel()

static void image_open_cancel ( bContext * ,
wmOperator * op )
static

Definition at line 1262 of file image_ops.cc.

References wmOperator::customdata.

Referenced by IMAGE_OT_open().

◆ image_open_draw()

◆ image_open_draw_check_prop()

static bool image_open_draw_check_prop ( PointerRNA * ,
PropertyRNA * prop,
void *  )
static

Definition at line 1502 of file image_ops.cc.

References RNA_property_identifier(), and STR_ELEM.

Referenced by image_open_draw().

◆ image_open_exec()

◆ image_open_init()

◆ image_open_invoke()

◆ image_open_single()

◆ image_operator_prop_allow_tokens()

static void image_operator_prop_allow_tokens ( wmOperatorType * ot)
static

◆ IMAGE_OT_add_render_slot()

◆ IMAGE_OT_change_frame()

◆ IMAGE_OT_clear_render_border()

◆ IMAGE_OT_clear_render_slot()

◆ IMAGE_OT_clipboard_copy()

◆ IMAGE_OT_clipboard_paste()

◆ IMAGE_OT_curves_point_set()

◆ IMAGE_OT_cycle_render_slot()

◆ IMAGE_OT_file_browse()

◆ IMAGE_OT_flip()

◆ IMAGE_OT_invert()

◆ IMAGE_OT_match_movie_length()

void IMAGE_OT_match_movie_length ( wmOperatorType * ot)

◆ IMAGE_OT_new()

◆ IMAGE_OT_open()

◆ IMAGE_OT_pack()

◆ IMAGE_OT_read_viewlayers()

◆ IMAGE_OT_reload()

◆ IMAGE_OT_remove_render_slot()

◆ IMAGE_OT_render_border()

◆ IMAGE_OT_replace()

◆ IMAGE_OT_resize()

◆ IMAGE_OT_rotate_orthogonal()

◆ IMAGE_OT_sample()

◆ IMAGE_OT_sample_line()

◆ IMAGE_OT_save()

◆ IMAGE_OT_save_all_modified()

◆ IMAGE_OT_save_as()

◆ IMAGE_OT_save_sequence()

◆ IMAGE_OT_tile_add()

◆ IMAGE_OT_tile_fill()

◆ IMAGE_OT_tile_remove()

◆ IMAGE_OT_unpack()

◆ IMAGE_OT_view_all()

◆ IMAGE_OT_view_center_cursor()

◆ IMAGE_OT_view_cursor_center()

◆ IMAGE_OT_view_pan()

◆ IMAGE_OT_view_selected()

◆ IMAGE_OT_view_zoom()

◆ IMAGE_OT_view_zoom_border()

◆ IMAGE_OT_view_zoom_in()

◆ IMAGE_OT_view_zoom_out()

◆ IMAGE_OT_view_zoom_ratio()

◆ image_pack_exec()

◆ image_pack_test()

static bool image_pack_test ( bContext * C,
wmOperator * op )
static

◆ image_read_viewlayers_exec()

◆ image_reload_exec()

◆ image_remove_render_slot_exec()

◆ image_replace_exec()

◆ image_replace_invoke()

◆ image_rotate_orthogonal_exec()

◆ image_sample_line_exec()

◆ image_sample_line_invoke()

static int image_sample_line_invoke ( bContext * C,
wmOperator * op,
const wmEvent * event )
static

◆ image_save_all_modified_exec()

static int image_save_all_modified_exec ( bContext * C,
wmOperator * op )
static

◆ image_save_all_modified_poll()

static bool image_save_all_modified_poll ( bContext * C)
static

Definition at line 2457 of file image_ops.cc.

References CTX_data_main(), and ED_image_save_all_modified_info().

Referenced by IMAGE_OT_save_all_modified().

◆ image_save_as_cancel()

static void image_save_as_cancel ( bContext * ,
wmOperator * op )
static

Definition at line 1998 of file image_ops.cc.

References image_save_as_free().

Referenced by IMAGE_OT_save_as().

◆ image_save_as_check()

◆ image_save_as_draw()

◆ image_save_as_draw_check_prop()

static bool image_save_as_draw_check_prop ( PointerRNA * ptr,
PropertyRNA * prop,
void * user_data )
static

◆ image_save_as_exec()

◆ image_save_as_free()

static void image_save_as_free ( wmOperator * op)
static

◆ image_save_as_init()

◆ image_save_as_invoke()

◆ image_save_as_poll()

static bool image_save_as_poll ( bContext * C)
static

◆ image_save_exec()

◆ image_save_invoke()

◆ image_save_options_from_op()

◆ image_save_poll()

static bool image_save_poll ( bContext * C)
static

Definition at line 2141 of file image_ops.cc.

References image_from_context_has_data_poll().

Referenced by IMAGE_OT_save().

◆ image_save_sequence_exec()

◆ image_scale_exec()

◆ image_scale_invoke()

◆ image_should_be_saved()

static bool image_should_be_saved ( Image * ima,
bool * r_is_format_writable )
static

◆ image_should_be_saved_when_modified()

static bool image_should_be_saved_when_modified ( Image * ima)
static

Definition at line 2326 of file image_ops.cc.

References ELEM, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, and Image::type.

Referenced by image_should_be_saved().

◆ image_should_pack_during_save_all()

static bool image_should_pack_during_save_all ( const Image * ima)
static

◆ image_unpack_exec()

◆ image_unpack_invoke()

◆ image_user_from_context()

◆ image_user_from_context_and_active_tile()

◆ image_view_all()

◆ image_view_all_exec()

static int image_view_all_exec ( bContext * C,
wmOperator * op )
static

◆ image_view_pan_cancel()

static void image_view_pan_cancel ( bContext * C,
wmOperator * op )
static

Definition at line 459 of file image_ops.cc.

References image_view_pan_exit().

Referenced by IMAGE_OT_view_pan().

◆ image_view_pan_exec()

◆ image_view_pan_exit()

◆ image_view_pan_init()

◆ image_view_pan_invoke()

◆ image_view_pan_modal()

◆ image_view_selected_exec()

◆ image_view_selected_poll()

static bool image_view_selected_poll ( bContext * C)
static

◆ image_view_zoom_border_exec()

◆ image_view_zoom_cancel()

static void image_view_zoom_cancel ( bContext * C,
wmOperator * op )
static

Definition at line 717 of file image_ops.cc.

References image_view_zoom_exit().

Referenced by IMAGE_OT_view_zoom().

◆ image_view_zoom_exec()

static int image_view_zoom_exec ( bContext * C,
wmOperator * op )
static

◆ image_view_zoom_exit()

◆ image_view_zoom_in_exec()

◆ image_view_zoom_in_invoke()

static int image_view_zoom_in_invoke ( bContext * C,
wmOperator * op,
const wmEvent * event )
static

◆ image_view_zoom_init()

◆ image_view_zoom_invoke()

◆ image_view_zoom_modal()

◆ image_view_zoom_out_exec()

◆ image_view_zoom_out_invoke()

static int image_view_zoom_out_invoke ( bContext * C,
wmOperator * op,
const wmEvent * event )
static

◆ image_view_zoom_ratio_exec()

◆ image_zoom_apply()

◆ render_border_exec()

◆ save_image_op()

static bool save_image_op ( Main * bmain,
Image * ima,
ImageUser * iuser,
wmOperator * op,
const ImageSaveOptions * opts )
static

◆ sima_zoom_set()

◆ sima_zoom_set_factor()

static void sima_zoom_set_factor ( SpaceImage * sima,
ARegion * region,
float zoomfac,
const float location[2],
const bool zoom_to_pos )
static

◆ sima_zoom_set_from_bounds()

static void sima_zoom_set_from_bounds ( SpaceImage * sima,
ARegion * region,
const rctf * bounds )
static

◆ space_image_main_area_not_uv_brush_poll()

static bool space_image_main_area_not_uv_brush_poll ( bContext * C)
static

Definition at line 336 of file image_ops.cc.

References CTX_data_edit_object(), and CTX_wm_space_image().

Referenced by IMAGE_OT_curves_point_set().

◆ space_image_main_region_poll()

◆ tile_add_draw()

◆ tile_add_exec()

◆ tile_add_invoke()

◆ tile_add_poll()

static bool tile_add_poll ( bContext * C)
static

Definition at line 4198 of file image_ops.cc.

References BKE_image_has_ibuf(), CTX_data_edit_image(), IMA_SRC_TILED, and Image::source.

Referenced by IMAGE_OT_tile_add().

◆ tile_fill_draw()

static void tile_fill_draw ( bContext * ,
wmOperator * op )
static

Definition at line 4410 of file image_ops.cc.

References draw_fill_tile(), wmOperator::layout, and wmOperator::ptr.

Referenced by IMAGE_OT_tile_fill().

◆ tile_fill_exec()

◆ tile_fill_init()

◆ tile_fill_invoke()

static int tile_fill_invoke ( bContext * C,
wmOperator * op,
const wmEvent *  )
static

◆ tile_fill_poll()

static bool tile_fill_poll ( bContext * C)
static

◆ tile_remove_exec()

◆ tile_remove_poll()

static bool tile_remove_poll ( bContext * C)
static

◆ view_center_cursor_exec()

static int view_center_cursor_exec ( bContext * C,
wmOperator *  )
static

◆ view_cursor_center_exec()

static int view_cursor_center_exec ( bContext * C,
wmOperator * op )
static