Blender V5.0
image_ops.cc File Reference
#include <cerrno>
#include <cstddef>
#include <cstdlib>
#include <cstring>
#include <fcntl.h>
#include <string>
#include <unistd.h>
#include "MEM_guardedalloc.h"
#include "BLI_fileops.h"
#include "BLI_listbase.h"
#include "BLI_path_utils.hh"
#include "BLI_set.hh"
#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_format.hh"
#include "BKE_image_save.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_library.hh"
#include "BKE_main.hh"
#include "BKE_mask.h"
#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 "MOV_read.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_interface_layout.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  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 wmOperatorStatus image_view_pan_exec (bContext *C, wmOperator *op)
static wmOperatorStatus image_view_pan_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus 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 wmOperatorStatus image_view_all_exec (bContext *C, wmOperator *op)
void IMAGE_OT_view_all (wmOperatorType *ot)
Cursor To Center View Operator
static wmOperatorStatus view_cursor_center_exec (bContext *C, wmOperator *op)
void IMAGE_OT_view_cursor_center (wmOperatorType *ot)
Center View To Cursor Operator
static wmOperatorStatus view_center_cursor_exec (bContext *C, wmOperator *)
void IMAGE_OT_view_center_cursor (wmOperatorType *ot)
Frame Selected Operator
static wmOperatorStatus 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 wmOperatorStatus image_view_zoom_in_exec (bContext *C, wmOperator *op)
static wmOperatorStatus image_view_zoom_in_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void IMAGE_OT_view_zoom_in (wmOperatorType *ot)
static wmOperatorStatus image_view_zoom_out_exec (bContext *C, wmOperator *op)
static wmOperatorStatus 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 wmOperatorStatus image_view_zoom_ratio_exec (bContext *C, wmOperator *op)
void IMAGE_OT_view_zoom_ratio (wmOperatorType *ot)
View Border-Zoom Operator
static wmOperatorStatus 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 wmOperatorStatus image_open_exec (bContext *C, wmOperator *op)
static wmOperatorStatus 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 wmOperatorStatus image_file_browse_exec (bContext *C, wmOperator *op)
static wmOperatorStatus 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 wmOperatorStatus image_match_len_exec (bContext *C, wmOperator *)
void IMAGE_OT_match_movie_length (wmOperatorType *ot)
Replace Image Operator
static wmOperatorStatus image_replace_exec (bContext *C, wmOperator *op)
static wmOperatorStatus 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 wmOperatorStatus image_save_as_exec (bContext *C, wmOperator *op)
static bool image_save_as_check (bContext *C, wmOperator *op)
static wmOperatorStatus 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 *C, 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 wmOperatorStatus image_save_exec (bContext *C, wmOperator *op)
static wmOperatorStatus image_save_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void IMAGE_OT_save (wmOperatorType *ot)
Save Sequence Operator
static wmOperatorStatus 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 wmOperatorStatus image_save_all_modified_exec (bContext *C, wmOperator *op)
void IMAGE_OT_save_all_modified (wmOperatorType *ot)
Reload Image Operator
static wmOperatorStatus image_reload_exec (bContext *C, wmOperator *)
void IMAGE_OT_reload (wmOperatorType *ot)
Flip Operator
static wmOperatorStatus image_flip_exec (bContext *C, wmOperator *op)
void IMAGE_OT_flip (wmOperatorType *ot)
Rotate Orthogonal Operator (90, 180, 270)
static wmOperatorStatus image_rotate_orthogonal_exec (bContext *C, wmOperator *op)
void IMAGE_OT_rotate_orthogonal (wmOperatorType *ot)
Clipboard Copy Operator
static wmOperatorStatus 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 wmOperatorStatus 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 wmOperatorStatus image_invert_exec (bContext *C, wmOperator *op)
void IMAGE_OT_invert (wmOperatorType *ot)
Scale Operator
static wmOperatorStatus image_scale_invoke (bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus image_scale_exec (bContext *C, wmOperator *op)
void IMAGE_OT_resize (wmOperatorType *ot)
Pack Operator
static bool image_pack_test (Image *ima, const char **r_error_message)
static bool image_pack_poll (bContext *C)
static wmOperatorStatus image_pack_exec (bContext *C, wmOperator *op)
void IMAGE_OT_pack (wmOperatorType *ot)
Unpack Operator
static wmOperatorStatus image_unpack_exec (bContext *C, wmOperator *op)
static wmOperatorStatus 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 wmOperatorStatus image_sample_line_exec (bContext *C, wmOperator *op)
static wmOperatorStatus 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 wmOperatorStatus image_cycle_render_slot_exec (bContext *C, wmOperator *op)
void IMAGE_OT_cycle_render_slot (wmOperatorType *ot)
Clear Render Slot Operator
static wmOperatorStatus image_clear_render_slot_exec (bContext *C, wmOperator *)
void IMAGE_OT_clear_render_slot (wmOperatorType *ot)
Add Render Slot Operator
static wmOperatorStatus image_add_render_slot_exec (bContext *C, wmOperator *)
void IMAGE_OT_add_render_slot (wmOperatorType *ot)
Remove Render Slot Operator
static wmOperatorStatus 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 wmOperatorStatus change_frame_exec (bContext *C, wmOperator *op)
static int frame_from_event (bContext *C, const wmEvent *event)
static wmOperatorStatus change_frame_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus change_frame_modal (bContext *C, wmOperator *op, const wmEvent *event)
void IMAGE_OT_change_frame (wmOperatorType *ot)
static wmOperatorStatus image_read_viewlayers_exec (bContext *C, wmOperator *)
void IMAGE_OT_read_viewlayers (wmOperatorType *ot)
Render Border Operator
static wmOperatorStatus render_border_exec (bContext *C, wmOperator *op)
void IMAGE_OT_render_border (wmOperatorType *ot)
Clear Render Border Operator
static wmOperatorStatus 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 wmOperatorStatus tile_add_exec (bContext *C, wmOperator *op)
static wmOperatorStatus 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 wmOperatorStatus tile_remove_exec (bContext *C, wmOperator *)
void IMAGE_OT_tile_remove (wmOperatorType *ot)
Fill Tile Operator
static bool tile_fill_poll (bContext *C)
static wmOperatorStatus tile_fill_exec (bContext *C, wmOperator *op)
static wmOperatorStatus 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 wmOperatorStatus image_new_exec (bContext *C, wmOperator *op)
static wmOperatorStatus 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 wmOperatorStatus image_view_zoom_exec (bContext *C, wmOperator *op)
static wmOperatorStatus 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 wmOperatorStatus 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 2561 of file image_ops.cc.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
VIEW_PASS 
VIEW_APPLY 
VIEW_CONFIRM 

Definition at line 598 of file image_ops.cc.

◆ anonymous enum

anonymous enum
Enumerator
GEN_CONTEXT_NONE 
GEN_CONTEXT_PAINT_CANVAS 
GEN_CONTEXT_PAINT_STENCIL 

Definition at line 2563 of file image_ops.cc.

Function Documentation

◆ change_frame_apply()

◆ change_frame_exec()

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

Definition at line 3974 of file image_ops.cc.

References C, change_frame_apply(), and OPERATOR_FINISHED.

◆ change_frame_invoke()

◆ change_frame_modal()

◆ change_frame_poll()

bool change_frame_poll ( bContext * C)
static

Definition at line 3950 of file image_ops.cc.

References C, G, and space_image_main_region_poll().

◆ clear_render_border_exec()

◆ def_fill_tile()

◆ do_fill_tile()

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

◆ draw_fill_tile()

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 3569 of file image_ops.cc.

References ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), lock, UI_view2d_region_to_view(), and ARegion::v2d.

Referenced by eyedropper_cryptomatte_sample_fl().

◆ frame_from_event()

◆ image_add_render_slot_exec()

◆ image_clear_render_slot_exec()

◆ image_clipboard_copy_exec()

◆ image_clipboard_copy_poll()

bool image_clipboard_copy_poll ( bContext * C)
static

◆ image_clipboard_paste_exec()

◆ image_clipboard_paste_poll()

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

bool image_file_browse_poll ( bContext * C)
static

Definition at line 1694 of file image_ops.cc.

References C, ID_IS_EDITABLE, and image_from_context().

Referenced by IMAGE_OT_file_browse().

◆ image_file_format_writable()

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

Definition at line 2156 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()

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

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 247 of file image_ops.cc.

References BKE_image_has_ibuf(), C, 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()

bool image_has_valid_path ( Image * ima)
static

Definition at line 2371 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()

void image_new_cancel ( bContext * ,
wmOperator * op )
static

Definition at line 2726 of file image_ops.cc.

References image_new_free().

Referenced by IMAGE_OT_new().

◆ image_new_draw()

◆ image_new_exec()

◆ image_new_free()

void image_new_free ( wmOperator * op)
static

Definition at line 2585 of file image_ops.cc.

References wmOperator::customdata.

Referenced by image_new_cancel(), and image_new_exec().

◆ image_new_init()

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

Definition at line 2573 of file image_ops.cc.

References C, wmOperator::customdata, data, and UI_context_active_but_prop_get_templateID().

Referenced by image_new_exec().

◆ image_new_invoke()

◆ image_not_packed_poll()

bool image_not_packed_poll ( bContext * C)
static

Definition at line 261 of file image_ops.cc.

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

Referenced by IMAGE_OT_replace().

◆ image_open_cancel()

void image_open_cancel ( bContext * ,
wmOperator * op )
static

Definition at line 1282 of file image_ops.cc.

References wmOperator::customdata.

Referenced by IMAGE_OT_open().

◆ image_open_draw()

◆ image_open_draw_check_prop()

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

Definition at line 1524 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()

void image_operator_prop_allow_tokens ( wmOperatorType * ot)
static

Definition at line 1557 of file image_ops.cc.

References ot, PROP_HIDDEN, RNA_def_boolean(), and RNA_def_property_flag().

Referenced by IMAGE_OT_open(), and IMAGE_OT_save_as().

◆ IMAGE_OT_add_render_slot()

void IMAGE_OT_add_render_slot ( wmOperatorType * ot)

◆ IMAGE_OT_change_frame()

◆ IMAGE_OT_clear_render_border()

void IMAGE_OT_clear_render_border ( wmOperatorType * ot)

◆ IMAGE_OT_clear_render_slot()

void IMAGE_OT_clear_render_slot ( wmOperatorType * ot)

◆ IMAGE_OT_clipboard_copy()

void IMAGE_OT_clipboard_copy ( wmOperatorType * ot)

◆ IMAGE_OT_clipboard_paste()

void IMAGE_OT_clipboard_paste ( wmOperatorType * ot)

◆ IMAGE_OT_curves_point_set()

◆ IMAGE_OT_cycle_render_slot()

void IMAGE_OT_cycle_render_slot ( wmOperatorType * ot)

◆ IMAGE_OT_file_browse()

◆ IMAGE_OT_flip()

◆ IMAGE_OT_invert()

◆ IMAGE_OT_match_movie_length()

void IMAGE_OT_match_movie_length ( wmOperatorType * ot)

Called by other space types too.

Definition at line 1762 of file image_ops.cc.

References image_match_len_exec(), OPTYPE_INTERNAL, OPTYPE_REGISTER, and ot.

Referenced by image_operatortypes().

◆ IMAGE_OT_new()

◆ IMAGE_OT_open()

◆ IMAGE_OT_pack()

void IMAGE_OT_pack ( wmOperatorType * ot)

Definition at line 3433 of file image_ops.cc.

References image_pack_exec(), image_pack_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.

Referenced by image_operatortypes().

◆ IMAGE_OT_read_viewlayers()

void IMAGE_OT_read_viewlayers ( wmOperatorType * ot)

Definition at line 4089 of file image_ops.cc.

References image_read_viewlayers_exec(), ot, and space_image_main_region_poll().

Referenced by image_operatortypes().

◆ IMAGE_OT_reload()

void IMAGE_OT_reload ( wmOperatorType * ot)

Definition at line 2541 of file image_ops.cc.

References image_reload_exec(), OPTYPE_REGISTER, and ot.

Referenced by image_operatortypes().

◆ IMAGE_OT_remove_render_slot()

void IMAGE_OT_remove_render_slot ( wmOperatorType * ot)

◆ IMAGE_OT_render_border()

◆ IMAGE_OT_replace()

◆ IMAGE_OT_resize()

◆ IMAGE_OT_rotate_orthogonal()

◆ IMAGE_OT_sample()

◆ IMAGE_OT_sample_line()

◆ IMAGE_OT_save()

void IMAGE_OT_save ( wmOperatorType * ot)

◆ IMAGE_OT_save_all_modified()

void IMAGE_OT_save_all_modified ( wmOperatorType * ot)

◆ IMAGE_OT_save_as()

◆ IMAGE_OT_save_sequence()

void IMAGE_OT_save_sequence ( wmOperatorType * ot)

◆ IMAGE_OT_tile_add()

◆ IMAGE_OT_tile_fill()

void IMAGE_OT_tile_fill ( wmOperatorType * ot)

◆ IMAGE_OT_tile_remove()

void IMAGE_OT_tile_remove ( wmOperatorType * ot)

Definition at line 4466 of file image_ops.cc.

References OPTYPE_REGISTER, OPTYPE_UNDO, ot, tile_remove_exec(), and tile_remove_poll().

Referenced by image_operatortypes().

◆ IMAGE_OT_unpack()

◆ IMAGE_OT_view_all()

◆ IMAGE_OT_view_center_cursor()

void IMAGE_OT_view_center_cursor ( wmOperatorType * ot)

Definition at line 936 of file image_ops.cc.

References ED_space_image_cursor_poll(), ot, and view_center_cursor_exec().

Referenced by image_operatortypes().

◆ IMAGE_OT_view_cursor_center()

void IMAGE_OT_view_cursor_center ( wmOperatorType * ot)

◆ IMAGE_OT_view_pan()

◆ IMAGE_OT_view_selected()

void IMAGE_OT_view_selected ( wmOperatorType * ot)

Definition at line 1007 of file image_ops.cc.

References image_view_selected_exec(), image_view_selected_poll(), and ot.

Referenced by image_operatortypes().

◆ IMAGE_OT_view_zoom()

◆ IMAGE_OT_view_zoom_border()

◆ IMAGE_OT_view_zoom_in()

◆ IMAGE_OT_view_zoom_out()

◆ IMAGE_OT_view_zoom_ratio()

void IMAGE_OT_view_zoom_ratio ( wmOperatorType * ot)

◆ image_pack_exec()

◆ image_pack_poll()

bool image_pack_poll ( bContext * C)
static

◆ image_pack_test()

bool image_pack_test ( Image * ima,
const char ** r_error_message )
static

Definition at line 3374 of file image_ops.cc.

References ELEM, Image::id, ID_IS_EDITABLE, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, and Image::source.

Referenced by image_pack_exec(), and image_pack_poll().

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

◆ image_save_all_modified_exec()

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

◆ image_save_all_modified_poll()

bool image_save_all_modified_poll ( bContext * C)
static

Definition at line 2486 of file image_ops.cc.

References C, CTX_data_main(), and ED_image_save_all_modified_info().

Referenced by IMAGE_OT_save_all_modified().

◆ image_save_as_cancel()

void image_save_as_cancel ( bContext * ,
wmOperator * op )
static

Definition at line 2026 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()

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

◆ image_save_as_exec()

◆ image_save_as_free()

void image_save_as_free ( wmOperator * op)
static

◆ image_save_as_init()

◆ image_save_as_invoke()

◆ image_save_as_poll()

bool image_save_as_poll ( bContext * C)
static

◆ image_save_exec()

◆ image_save_invoke()

◆ image_save_options_from_op()

◆ image_save_poll()

bool image_save_poll ( bContext * C)
static

Definition at line 2170 of file image_ops.cc.

References C, and 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()

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

◆ image_should_be_saved_when_modified()

bool image_should_be_saved_when_modified ( Image * ima)
static

Definition at line 2356 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()

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

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

◆ image_view_pan_cancel()

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

Definition at line 470 of file image_ops.cc.

References C, and 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()

bool image_view_selected_poll ( bContext * C)
static

◆ image_view_zoom_border_exec()

◆ image_view_zoom_cancel()

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

Definition at line 731 of file image_ops.cc.

References C, and image_view_zoom_exit().

Referenced by IMAGE_OT_view_zoom().

◆ image_view_zoom_exec()

◆ image_view_zoom_exit()

◆ image_view_zoom_in_exec()

◆ image_view_zoom_in_invoke()

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

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

◆ image_view_zoom_ratio_exec()

◆ image_zoom_apply()

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

◆ render_border_exec()

◆ save_image_op()

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

◆ sima_zoom_set()

◆ sima_zoom_set_factor()

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

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

◆ space_image_main_area_not_uv_brush_poll()

bool space_image_main_area_not_uv_brush_poll ( bContext * C)
static

For IMAGE_OT_curves_point_set to avoid sampling when in uv smooth mode or edit-mode.

Definition at line 344 of file image_ops.cc.

References C, 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()

bool tile_add_poll ( bContext * C)
static

Definition at line 4306 of file image_ops.cc.

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

Referenced by IMAGE_OT_tile_add().

◆ tile_fill_draw()

void tile_fill_draw ( bContext * ,
wmOperator * op )
static

Definition at line 4523 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()

◆ tile_fill_poll()

bool tile_fill_poll ( bContext * C)
static

◆ tile_remove_exec()

◆ tile_remove_poll()

bool tile_remove_poll ( bContext * C)
static

◆ view_center_cursor_exec()

◆ view_cursor_center_exec()