Blender  V3.3
Classes
image_ops.c File Reference
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_fileops.h"
#include "BLI_ghash.h"
#include "BLI_math.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#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.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_icons.h"
#include "BKE_image.h"
#include "BKE_image_format.h"
#include "BKE_image_save.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_packedFile.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "DEG_depsgraph.h"
#include "GPU_state.h"
#include "IMB_colormanagement.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_moviecache.h"
#include "IMB_openexr.h"
#include "RE_pipeline.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "RNA_prototypes.h"
#include "ED_image.h"
#include "ED_mask.h"
#include "ED_paint.h"
#include "ED_render.h"
#include "ED_screen.h"
#include "ED_space_api.h"
#include "ED_util.h"
#include "ED_util_imbuf.h"
#include "ED_uvedit.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "WM_api.h"
#include "WM_types.h"
#include "PIL_time.h"
#include "RE_engine.h"
#include "image_intern.h"

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_has_data_poll_active_tile (bContext *C)
 
static bool image_not_packed_poll (bContext *C)
 
static void image_view_all (struct SpaceImage *sima, struct ARegion *region, struct wmOperator *op)
 
bool space_image_main_region_poll (bContext *C)
 
static bool space_image_main_area_not_uv_brush_poll (bContext *C)
 
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 *UNUSED(op))
 
void IMAGE_OT_view_center_cursor (wmOperatorType *ot)
 
Frame Selected Operator
static int image_view_selected_exec (bContext *C, wmOperator *UNUSED(op))
 
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)
 
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 *UNUSED(op))
 
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 *UNUSED(event))
 
void IMAGE_OT_replace (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 *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 *UNUSED(op))
 
void IMAGE_OT_reload (wmOperatorType *ot)
 
Flip Operator
static int image_flip_exec (bContext *C, wmOperator *op)
 
void IMAGE_OT_flip (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 *UNUSED(event))
 
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 *UNUSED(event))
 
void IMAGE_OT_unpack (wmOperatorType *ot)
 
Sample Image Operator
bool ED_space_image_get_position (SpaceImage *sima, struct ARegion *region, int mval[2], float 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 *UNUSED(op))
 
void IMAGE_OT_clear_render_slot (wmOperatorType *ot)
 
Add Render Slot Operator
static int image_add_render_slot_exec (bContext *C, wmOperator *UNUSED(op))
 
void IMAGE_OT_add_render_slot (wmOperatorType *ot)
 
Remove Render Slot Operator
static int image_remove_render_slot_exec (bContext *C, wmOperator *UNUSED(op))
 
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 *UNUSED(op))
 
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 *UNUSED(op))
 
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 *UNUSED(event))
 
static void tile_add_draw (bContext *UNUSED(C), 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 *UNUSED(op))
 
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 *UNUSED(event))
 
static void tile_fill_draw (bContext *UNUSED(C), 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 }
 
typedef struct ImageNewData ImageNewData
 
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 *UNUSED(event))
 
static void image_new_draw (bContext *UNUSED(C), wmOperator *op)
 
static void image_new_cancel (bContext *UNUSED(C), wmOperator *op)
 
void IMAGE_OT_new (wmOperatorType *ot)
 

View Zoom Operator

enum  { VIEW_PASS = 0 , VIEW_APPLY , VIEW_CONFIRM }
 
typedef struct ViewZoomData ViewZoomData
 
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)
 

View Pan Operator

typedef struct ViewPanData ViewPanData
 
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)
 

Open Image Operator

typedef struct ImageOpenData ImageOpenData
 
static void image_open_init (bContext *C, wmOperator *op)
 
static void image_open_cancel (bContext *UNUSED(C), wmOperator *op)
 
static Imageimage_open_single (Main *bmain, wmOperator *op, ImageFrameRange *range, const char *relbase, bool is_relative_path, bool use_multiview)
 
static int image_open_exec (bContext *C, wmOperator *op)
 
static int image_open_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
 
static bool image_open_draw_check_prop (PointerRNA *UNUSED(ptr), PropertyRNA *prop, void *UNUSED(user_data))
 
static void image_open_draw (bContext *UNUSED(C), wmOperator *op)
 
static void image_operator_prop_allow_tokens (wmOperatorType *ot)
 
void IMAGE_OT_open (wmOperatorType *ot)
 

Save Image As Operator

typedef struct ImageSaveData ImageSaveData
 
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 *UNUSED(event))
 
static void image_save_as_cancel (bContext *UNUSED(C), wmOperator *op)
 
static bool image_save_as_draw_check_prop (PointerRNA *ptr, PropertyRNA *prop, void *UNUSED(user_data))
 
static void image_save_as_draw (bContext *UNUSED(C), wmOperator *op)
 
static bool image_save_as_poll (bContext *C)
 
void IMAGE_OT_save_as (wmOperatorType *ot)
 

Macro Definition Documentation

◆ IMA_DEF_NAME

#define IMA_DEF_NAME   N_("Untitled")

Definition at line 2488 of file image_ops.c.

Typedef Documentation

◆ ImageNewData

typedef struct ImageNewData ImageNewData

◆ ImageOpenData

typedef struct ImageOpenData ImageOpenData

◆ ImageSaveData

typedef struct ImageSaveData ImageSaveData

◆ ViewPanData

typedef struct ViewPanData ViewPanData

◆ ViewZoomData

typedef struct ViewZoomData ViewZoomData

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
VIEW_PASS 
VIEW_APPLY 
VIEW_CONFIRM 

Definition at line 580 of file image_ops.c.

◆ anonymous enum

anonymous enum
Enumerator
GEN_CONTEXT_NONE 
GEN_CONTEXT_PAINT_CANVAS 
GEN_CONTEXT_PAINT_STENCIL 

Definition at line 2490 of file image_ops.c.

Function Documentation

◆ change_frame_apply()

static void change_frame_apply ( bContext C,
wmOperator op 
)
static

◆ change_frame_exec()

static int change_frame_exec ( bContext C,
wmOperator op 
)
static

Definition at line 3601 of file image_ops.c.

References C, change_frame_apply(), and OPERATOR_FINISHED.

Referenced by IMAGE_OT_change_frame().

◆ change_frame_invoke()

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

◆ change_frame_modal()

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

◆ change_frame_poll()

static bool change_frame_poll ( bContext C)
static

Definition at line 3577 of file image_ops.c.

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

◆ def_fill_tile()

static void def_fill_tile ( StructOrFunctionRNA srna)
static

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

bool ED_image_save_all_modified ( const bContext C,
ReportList reports 
)

◆ ED_image_save_all_modified_info()

int ED_image_save_all_modified_info ( const Main bmain,
ReportList reports 
)

◆ ED_image_should_save_modified()

bool ED_image_should_save_modified ( const Main bmain)

◆ ED_space_image_color_sample()

bool ED_space_image_color_sample ( struct SpaceImage sima,
struct ARegion region,
const int  mval[2],
float  r_col[3],
bool r_is_data 
)

◆ ED_space_image_get_position()

bool ED_space_image_get_position ( struct SpaceImage sima,
struct ARegion region,
int  mval[2],
float  fpos[2] 
)

Returns mouse position in image space.

Definition at line 3196 of file image_ops.c.

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

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

static int image_add_render_slot_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ image_clear_render_slot_exec()

static int image_clear_render_slot_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ image_cycle_render_slot_exec()

static int image_cycle_render_slot_exec ( bContext C,
wmOperator op 
)
static

◆ image_cycle_render_slot_poll()

static bool image_cycle_render_slot_poll ( bContext C)
static

◆ image_file_browse_exec()

static int image_file_browse_exec ( bContext C,
wmOperator op 
)
static

◆ image_file_browse_invoke()

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

◆ image_file_browse_poll()

static bool image_file_browse_poll ( bContext C)
static

Definition at line 1635 of file image_ops.c.

References C, image_from_context(), and NULL.

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 NULL when called outside the image space.

Definition at line 2084 of file image_ops.c.

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

static int image_flip_exec ( bContext C,
wmOperator op 
)
static

◆ image_from_context()

static Image* image_from_context ( const bContext C)
static

◆ image_from_context_has_data_poll()

static bool image_from_context_has_data_poll ( bContext C)
static

◆ image_from_context_has_data_poll_active_tile()

static bool image_from_context_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 241 of file image_ops.c.

References BKE_image_has_ibuf(), C, image_from_context(), and image_user_from_context_and_active_tile().

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

◆ image_has_valid_path()

static bool image_has_valid_path ( Image ima)
static

Definition at line 2302 of file image_ops.c.

References Image::filepath.

Referenced by ED_image_save_all_modified(), and ED_image_save_all_modified_info().

◆ image_invert_exec()

static int image_invert_exec ( bContext C,
wmOperator op 
)
static

◆ image_match_len_exec()

static int image_match_len_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ image_new_cancel()

static void image_new_cancel ( bContext UNUSEDC,
wmOperator op 
)
static

Definition at line 2647 of file image_ops.c.

References image_new_free().

Referenced by IMAGE_OT_new().

◆ image_new_draw()

static void image_new_draw ( bContext UNUSEDC,
wmOperator op 
)
static

◆ image_new_exec()

static int image_new_exec ( bContext C,
wmOperator op 
)
static

◆ image_new_free()

static void image_new_free ( wmOperator op)
static

Definition at line 2512 of file image_ops.c.

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

static int image_new_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ image_not_packed_poll()

static bool image_not_packed_poll ( bContext C)
static

Definition at line 249 of file image_ops.c.

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

Referenced by IMAGE_OT_replace().

◆ image_open_cancel()

static void image_open_cancel ( bContext UNUSEDC,
wmOperator op 
)
static

Definition at line 1249 of file image_ops.c.

References wmOperator::customdata, MEM_freeN, and NULL.

Referenced by IMAGE_OT_open().

◆ image_open_draw()

static void image_open_draw ( bContext UNUSEDC,
wmOperator op 
)
static

◆ image_open_draw_check_prop()

static bool image_open_draw_check_prop ( PointerRNA UNUSEDptr,
PropertyRNA prop,
void UNUSEDuser_data 
)
static

Definition at line 1482 of file image_ops.c.

References RNA_property_identifier(), and STR_ELEM.

Referenced by image_open_draw().

◆ image_open_exec()

static int image_open_exec ( bContext C,
wmOperator op 
)
static

◆ image_open_init()

static void image_open_init ( bContext C,
wmOperator op 
)
static

◆ image_open_invoke()

static int image_open_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ image_open_single()

static Image* image_open_single ( Main bmain,
wmOperator op,
ImageFrameRange range,
const char *  relbase,
bool  is_relative_path,
bool  use_multiview 
)
static

◆ image_operator_prop_allow_tokens()

static void image_operator_prop_allow_tokens ( wmOperatorType ot)
static

◆ IMAGE_OT_add_render_slot()

void IMAGE_OT_add_render_slot ( wmOperatorType ot)

◆ IMAGE_OT_change_frame()

void IMAGE_OT_change_frame ( wmOperatorType ot)

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

void IMAGE_OT_curves_point_set ( wmOperatorType ot)

◆ IMAGE_OT_cycle_render_slot()

void IMAGE_OT_cycle_render_slot ( wmOperatorType ot)

◆ IMAGE_OT_file_browse()

void IMAGE_OT_file_browse ( wmOperatorType ot)

◆ IMAGE_OT_flip()

void IMAGE_OT_flip ( wmOperatorType ot)

◆ IMAGE_OT_invert()

void IMAGE_OT_invert ( wmOperatorType ot)

◆ IMAGE_OT_match_movie_length()

void IMAGE_OT_match_movie_length ( struct wmOperatorType ot)

◆ IMAGE_OT_new()

void IMAGE_OT_new ( wmOperatorType ot)

◆ IMAGE_OT_open()

void IMAGE_OT_open ( struct wmOperatorType ot)

◆ IMAGE_OT_pack()

void IMAGE_OT_pack ( wmOperatorType ot)

◆ IMAGE_OT_read_viewlayers()

void IMAGE_OT_read_viewlayers ( wmOperatorType ot)

◆ IMAGE_OT_reload()

void IMAGE_OT_reload ( wmOperatorType ot)

◆ IMAGE_OT_remove_render_slot()

void IMAGE_OT_remove_render_slot ( wmOperatorType ot)

◆ IMAGE_OT_render_border()

void IMAGE_OT_render_border ( wmOperatorType ot)

◆ IMAGE_OT_replace()

void IMAGE_OT_replace ( wmOperatorType ot)

◆ IMAGE_OT_resize()

void IMAGE_OT_resize ( wmOperatorType ot)

◆ IMAGE_OT_sample()

void IMAGE_OT_sample ( wmOperatorType ot)

◆ IMAGE_OT_sample_line()

void IMAGE_OT_sample_line ( wmOperatorType ot)

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

void IMAGE_OT_save_as ( wmOperatorType ot)

◆ IMAGE_OT_save_sequence()

void IMAGE_OT_save_sequence ( wmOperatorType ot)

◆ IMAGE_OT_tile_add()

void IMAGE_OT_tile_add ( wmOperatorType ot)

◆ IMAGE_OT_tile_fill()

void IMAGE_OT_tile_fill ( wmOperatorType ot)

◆ IMAGE_OT_tile_remove()

void IMAGE_OT_tile_remove ( wmOperatorType ot)

◆ IMAGE_OT_unpack()

void IMAGE_OT_unpack ( wmOperatorType ot)

◆ IMAGE_OT_view_all()

void IMAGE_OT_view_all ( wmOperatorType ot)

◆ IMAGE_OT_view_center_cursor()

void IMAGE_OT_view_center_cursor ( wmOperatorType ot)

◆ IMAGE_OT_view_cursor_center()

void IMAGE_OT_view_cursor_center ( wmOperatorType ot)

◆ IMAGE_OT_view_pan()

void IMAGE_OT_view_pan ( wmOperatorType ot)

◆ IMAGE_OT_view_selected()

void IMAGE_OT_view_selected ( wmOperatorType ot)

◆ IMAGE_OT_view_zoom()

void IMAGE_OT_view_zoom ( wmOperatorType ot)

◆ IMAGE_OT_view_zoom_border()

void IMAGE_OT_view_zoom_border ( wmOperatorType ot)

◆ IMAGE_OT_view_zoom_in()

void IMAGE_OT_view_zoom_in ( wmOperatorType ot)

◆ IMAGE_OT_view_zoom_out()

void IMAGE_OT_view_zoom_out ( wmOperatorType ot)

◆ IMAGE_OT_view_zoom_ratio()

void IMAGE_OT_view_zoom_ratio ( wmOperatorType ot)

◆ image_pack_exec()

static int image_pack_exec ( bContext C,
wmOperator op 
)
static

◆ image_pack_test()

static bool image_pack_test ( bContext C,
wmOperator op 
)
static

◆ image_read_viewlayers_exec()

static int image_read_viewlayers_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ image_reload_exec()

static int image_reload_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ image_remove_render_slot_exec()

static int image_remove_render_slot_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ image_replace_exec()

static int image_replace_exec ( bContext C,
wmOperator op 
)
static

◆ image_replace_invoke()

static int image_replace_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ image_sample_line_exec()

static int image_sample_line_exec ( bContext C,
wmOperator op 
)
static

◆ 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 2414 of file image_ops.c.

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

Referenced by IMAGE_OT_save_all_modified().

◆ image_save_as_cancel()

static void image_save_as_cancel ( bContext UNUSEDC,
wmOperator op 
)
static

Definition at line 1962 of file image_ops.c.

References image_save_as_free().

Referenced by IMAGE_OT_save_as().

◆ image_save_as_check()

static bool image_save_as_check ( bContext C,
wmOperator op 
)
static

◆ image_save_as_draw()

static void image_save_as_draw ( bContext UNUSEDC,
wmOperator op 
)
static

◆ image_save_as_draw_check_prop()

static bool image_save_as_draw_check_prop ( PointerRNA ptr,
PropertyRNA prop,
void UNUSEDuser_data 
)
static

Definition at line 1967 of file image_ops.c.

References ptr, RNA_boolean_get(), RNA_property_identifier(), and STREQ.

Referenced by image_save_as_draw().

◆ image_save_as_exec()

static int image_save_as_exec ( bContext C,
wmOperator op 
)
static

◆ image_save_as_free()

static void image_save_as_free ( wmOperator op)
static

◆ image_save_as_init()

static ImageSaveData* image_save_as_init ( bContext C,
wmOperator op 
)
static

◆ image_save_as_invoke()

static int image_save_as_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ image_save_as_poll()

static bool image_save_as_poll ( bContext C)
static

◆ image_save_exec()

static int image_save_exec ( bContext C,
wmOperator op 
)
static

◆ image_save_invoke()

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

◆ image_save_options_from_op()

static void image_save_options_from_op ( Main bmain,
ImageSaveOptions opts,
wmOperator op 
)
static

◆ image_save_poll()

static bool image_save_poll ( bContext C)
static

Definition at line 2098 of file image_ops.c.

References C, and image_from_context_has_data_poll().

Referenced by IMAGE_OT_save().

◆ image_save_sequence_exec()

static int image_save_sequence_exec ( bContext C,
wmOperator op 
)
static

◆ image_scale_exec()

static int image_scale_exec ( bContext C,
wmOperator op 
)
static

◆ image_scale_invoke()

static int image_scale_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ image_should_be_saved()

static bool image_should_be_saved ( Image ima,
bool is_format_writable 
)
static

◆ image_should_be_saved_when_modified()

static bool image_should_be_saved_when_modified ( Image ima)
static

Definition at line 2288 of file image_ops.c.

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

static int image_unpack_exec ( bContext C,
wmOperator op 
)
static

◆ image_unpack_invoke()

static int image_unpack_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ image_user_from_context()

static ImageUser* image_user_from_context ( const bContext C)
static

◆ image_user_from_context_and_active_tile()

static ImageUser image_user_from_context_and_active_tile ( const bContext C,
Image ima 
)
static

◆ image_view_all()

static void image_view_all ( struct SpaceImage sima,
struct ARegion region,
struct wmOperator op 
)
static

◆ 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 456 of file image_ops.c.

References C, and image_view_pan_exit().

Referenced by IMAGE_OT_view_pan().

◆ image_view_pan_exec()

static int image_view_pan_exec ( bContext C,
wmOperator op 
)
static

◆ image_view_pan_exit()

static void image_view_pan_exit ( bContext C,
wmOperator op,
bool  cancel 
)
static

◆ image_view_pan_init()

static void image_view_pan_init ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ image_view_pan_invoke()

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

◆ image_view_pan_modal()

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

◆ image_view_selected_exec()

static int image_view_selected_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ image_view_selected_poll()

static bool image_view_selected_poll ( bContext C)
static

◆ image_view_zoom_border_exec()

static int image_view_zoom_border_exec ( bContext C,
wmOperator op 
)
static

◆ image_view_zoom_cancel()

static void image_view_zoom_cancel ( bContext C,
wmOperator op 
)
static

Definition at line 701 of file image_ops.c.

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

static void image_view_zoom_exit ( bContext C,
wmOperator op,
bool  cancel 
)
static

◆ image_view_zoom_in_exec()

static int image_view_zoom_in_exec ( bContext C,
wmOperator op 
)
static

◆ image_view_zoom_in_invoke()

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

◆ image_view_zoom_init()

static void image_view_zoom_init ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ image_view_zoom_invoke()

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

◆ image_view_zoom_modal()

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

◆ image_view_zoom_out_exec()

static int image_view_zoom_out_exec ( bContext C,
wmOperator op 
)
static

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

static int image_view_zoom_ratio_exec ( bContext C,
wmOperator op 
)
static

◆ image_zoom_apply()

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

◆ render_border_exec()

static int render_border_exec ( bContext C,
wmOperator op 
)
static

◆ save_image_op()

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

◆ sima_zoom_set()

static void sima_zoom_set ( SpaceImage sima,
ARegion region,
float  zoom,
const float  location[2],
const bool  zoom_to_pos 
)
static

◆ 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

◆ space_image_main_region_poll()

bool space_image_main_region_poll ( bContext C)

◆ tile_add_draw()

static void tile_add_draw ( bContext UNUSEDC,
wmOperator op 
)
static

◆ tile_add_exec()

static int tile_add_exec ( bContext C,
wmOperator op 
)
static

◆ tile_add_invoke()

static int tile_add_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ tile_add_poll()

static bool tile_add_poll ( bContext C)
static

Definition at line 3928 of file image_ops.c.

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

Referenced by IMAGE_OT_tile_add().

◆ tile_fill_draw()

static void tile_fill_draw ( bContext UNUSEDC,
wmOperator op 
)
static

Definition at line 4135 of file image_ops.c.

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

Referenced by IMAGE_OT_tile_fill().

◆ tile_fill_exec()

static int tile_fill_exec ( bContext C,
wmOperator op 
)
static

◆ tile_fill_init()

static void tile_fill_init ( PointerRNA ptr,
Image ima,
ImageTile tile 
)
static

◆ tile_fill_invoke()

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

◆ tile_fill_poll()

static bool tile_fill_poll ( bContext C)
static

◆ tile_remove_exec()

static int tile_remove_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ tile_remove_poll()

static bool tile_remove_poll ( bContext C)
static

◆ view_center_cursor_exec()

static int view_center_cursor_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ view_cursor_center_exec()

static int view_cursor_center_exec ( bContext C,
wmOperator op 
)
static