|
Blender
V2.93
|
#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_save.h"#include "BKE_layer.h"#include "BKE_lib_id.h"#include "BKE_main.h"#include "BKE_packedFile.h"#include "BKE_report.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 "intern/openexr/openexr_multi.h"#include "RE_pipeline.h"#include "RNA_access.h"#include "RNA_define.h"#include "RNA_enum_types.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 |
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 ImageNewData * | image_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 *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 Image * | image_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 *C, wmOperator *op) |
| void | IMAGE_OT_open (wmOperatorType *ot) |
| #define IMA_DEF_NAME N_("Untitled") |
Definition at line 2490 of file image_ops.c.
| typedef struct ImageNewData ImageNewData |
| typedef struct ImageOpenData ImageOpenData |
| typedef struct ImageSaveData ImageSaveData |
| typedef struct ViewPanData ViewPanData |
| typedef struct ViewZoomData ViewZoomData |
| anonymous enum |
| Enumerator | |
|---|---|
| VIEW_PASS | |
| VIEW_APPLY | |
| VIEW_CONFIRM | |
Definition at line 571 of file image_ops.c.
| anonymous enum |
| Enumerator | |
|---|---|
| GEN_CONTEXT_NONE | |
| GEN_CONTEXT_PAINT_CANVAS | |
| GEN_CONTEXT_PAINT_STENCIL | |
Definition at line 2492 of file image_ops.c.
|
static |
Definition at line 3592 of file image_ops.c.
References C, CFRA, CTX_data_scene(), DEG_id_tag_update(), FRAMENUMBER_MIN_CLAMP, Scene::id, ID_RECALC_AUDIO_SEEK, NC_SCENE, ND_FRAME, wmOperator::ptr, RNA_int_get(), scene, SUBFRA, and WM_event_add_notifier().
Referenced by change_frame_exec(), change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 3606 of file image_ops.c.
References C, change_frame_apply(), and OPERATOR_FINISHED.
Referenced by IMAGE_OT_change_frame().
|
static |
Definition at line 3635 of file image_ops.c.
References C, change_frame_apply(), CTX_wm_region(), CTX_wm_space_image(), ED_region_visible_rect(), ED_space_image_show_cache(), frame_from_event(), wmEvent::mval, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, ARegion::regiontype, RGN_TYPE_WINDOW, RNA_int_set(), UI_DPI_FAC, WM_event_add_modal_handler(), and rcti::ymin.
Referenced by IMAGE_OT_change_frame().
|
static |
Definition at line 3661 of file image_ops.c.
References C, change_frame_apply(), EVT_ESCKEY, frame_from_event(), KM_RELEASE, LEFTMOUSE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RIGHTMOUSE, RNA_int_set(), wmEvent::type, and wmEvent::val.
Referenced by IMAGE_OT_change_frame().
|
static |
Definition at line 3582 of file image_ops.c.
References C, G, and space_image_main_region_poll().
Referenced by IMAGE_OT_change_frame().
|
static |
Definition at line 3815 of file image_ops.c.
References BLI_rctf_init(), RenderData::border, C, CTX_data_scene(), RenderData::mode, NC_SCENE, ND_RENDER_OPTIONS, NULL, OPERATOR_FINISHED, Scene::r, R_BORDER, scene, and WM_event_add_notifier().
Referenced by IMAGE_OT_clear_render_border().
|
static |
Definition at line 3899 of file image_ops.c.
References IMA_GENTYPE_BLANK, NULL, PROP_COLOR_GAMMA, PROP_PIXEL, RNA_def_boolean(), RNA_def_enum(), RNA_def_float_color(), RNA_def_int(), RNA_def_property_float_array_default(), RNA_def_property_subtype(), and rna_enum_image_generated_type_items.
Referenced by IMAGE_OT_tile_add(), and IMAGE_OT_tile_fill().
|
static |
Definition at line 3845 of file image_ops.c.
References BKE_image_fill_tile(), height, ptr, RNA_boolean_get(), RNA_enum_get(), RNA_float_get_array(), RNA_int_get(), and width.
Referenced by tile_add_exec(), and tile_fill_exec().
|
static |
Definition at line 3858 of file image_ops.c.
References col, NULL, ptr, uiItemR(), uiLayoutColumn(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by tile_add_draw(), and tile_fill_draw().
| bool ED_image_save_all_modified | ( | const bContext * | C, |
| ReportList * | reports | ||
| ) |
Definition at line 2385 of file image_ops.c.
References BKE_image_has_packedfile(), BKE_image_memorypack(), BKE_image_save(), BKE_image_save_options_init(), C, CTX_data_main(), CTX_data_scene(), ED_image_save_all_modified_info(), ListBase::first, IMA_SRC_GENERATED, image_has_valid_path(), image_save_options_init(), image_should_be_saved(), Main::images, NULL, and scene.
Referenced by image_save_all_modified_exec().
| int ED_image_save_all_modified_info | ( | const Main * | bmain, |
| ReportList * | reports | ||
| ) |
Definition at line 2330 of file image_ops.c.
References BKE_image_has_packedfile(), BKE_reportf(), BLI_gset_free(), BLI_gset_haskey(), BLI_gset_insert(), BLI_gset_str_new(), BLI_strdup(), ListBase::first, IMA_SRC_GENERATED, image_has_valid_path(), image_should_be_saved(), Main::images, MEM_freeN, NULL, and RPT_WARNING.
Referenced by ED_image_save_all_modified(), ED_image_should_save_modified(), and image_save_all_modified_poll().
| bool ED_image_should_save_modified | ( | const Main * | bmain | ) |
Definition at line 2317 of file image_ops.c.
References BKE_reports_clear(), BKE_reports_init(), BLI_listbase_is_empty(), ED_image_save_all_modified_info(), ReportList::list, and RPT_STORE.
| bool ED_space_image_color_sample | ( | SpaceImage * | sima, |
| ARegion * | region, | ||
| int | mval[2], | ||
| float | r_col[3], | ||
| bool * | r_is_data | ||
| ) |
Definition at line 3220 of file image_ops.c.
References BKE_image_get_tile_from_pos(), ImBuf::channels, CLAMP, ImBuf::colormanage_flag, copy_v3_v3(), ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), SpaceImage::image, IMB_COLORMANAGE_IS_DATA, IMB_colormanagement_colorspace_to_scene_linear_v3(), Main::lock, NULL, ImBuf::rect, ImBuf::rect_colorspace, ImBuf::rect_float, ret, rgb_uchar_to_float(), UI_view2d_region_to_view(), ARegion::v2d, x, ImBuf::x, y, and ImBuf::y.
Referenced by eyedropper_color_sample_fl(), and paint_sample_color().
| bool ED_space_image_get_position | ( | SpaceImage * | sima, |
| struct ARegion * | ar, | ||
| int | mval[2], | ||
| float | fpos[2] | ||
| ) |
Definition at line 3203 of file image_ops.c.
References ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), Main::lock, NULL, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by eyedropper_cryptomatte_sample_fl().
Definition at line 3613 of file image_ops.c.
References C, CTX_data_scene(), CTX_wm_region(), EFRA, wmEvent::mval, ARegion::regiontype, RGN_TYPE_WINDOW, round_fl_to_int(), scene, SFRA, UI_view2d_region_to_view(), ARegion::v2d, and ARegion::winx.
Referenced by change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 3514 of file image_ops.c.
References BKE_image_add_renderslot(), BLI_findindex(), C, image_from_context(), NC_IMAGE, ND_DRAW, NULL, OPERATOR_FINISHED, Image::render_slot, Image::renderslots, and WM_event_add_notifier().
Referenced by IMAGE_OT_add_render_slot().
|
static |
Definition at line 3479 of file image_ops.c.
References BKE_image_clear_renderslot(), C, CTX_wm_space_image(), image_from_context(), SpaceImage::iuser, NC_IMAGE, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Image::render_slot, and WM_event_add_notifier().
Referenced by IMAGE_OT_clear_render_slot().
|
static |
Definition at line 3436 of file image_ops.c.
References BKE_image_get_renderslot(), C, ED_image_slot_cycle(), image_from_context(), Image::last_render_slot, NC_IMAGE, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RenderSlot::render, Image::render_slot, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by IMAGE_OT_cycle_render_slot().
|
static |
Definition at line 3429 of file image_ops.c.
References C, IMA_TYPE_R_RESULT, image_from_context(), and Image::type.
Referenced by IMAGE_OT_add_render_slot(), IMAGE_OT_clear_render_border(), IMAGE_OT_clear_render_slot(), IMAGE_OT_cycle_render_slot(), IMAGE_OT_remove_render_slot(), and IMAGE_OT_render_border().
| iuser | Image user or NULL when called outside the image space. |
Definition at line 2094 of file image_ops.c.
References BKE_image_acquire_ibuf(), BKE_image_buffer_format_writable(), BKE_image_release_ibuf(), and ret.
Referenced by image_save_invoke().
|
static |
Definition at line 1214 of file image_ops.c.
References C, wmOperator::ptr, RNA_string_set(), and WM_event_add_fileselect().
Referenced by image_open_invoke(), image_replace_invoke(), and image_save_as_invoke().
|
static |
Definition at line 2712 of file image_ops.c.
References BKE_image_acquire_ibuf(), BKE_image_free_gputextures(), BKE_image_mark_dirty(), BKE_image_release_ibuf(), C, copy_v4_v4(), copy_v4_v4_char(), CTX_wm_space_image(), ED_image_undo_push_begin_with_image(), ED_image_undo_push_end(), ED_imapaint_clear_partial_redraw(), IB_DISPLAY_BUFFER_INVALID, IB_MIPMAP_INVALID, image_from_context(), IMB_rect_from_float(), SpaceImage::iuser, MEM_dupallocN, MEM_freeN, ImBuf::mipmap, SpaceImage::mode, NA_EDITED, wmOperatorType::name, NC_IMAGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, ImBuf::rect, ImBuf::rect_float, RNA_boolean_get(), SI_MODE_PAINT, wmOperator::type, ImBuf::userflags, WM_event_add_notifier(), x, ImBuf::x, y, and ImBuf::y.
Referenced by IMAGE_OT_flip().
Definition at line 184 of file image_ops.c.
References C, CTX_data_pointer_get_type(), CTX_wm_space_image(), PointerRNA::data, SpaceImage::image, NULL, and RNA_Image.
Referenced by image_add_render_slot_exec(), image_clear_render_slot_exec(), image_cycle_render_slot_exec(), image_cycle_render_slot_poll(), image_flip_exec(), image_from_context_has_data_poll(), image_from_context_has_data_poll_no_image_user(), image_invert_exec(), image_match_len_exec(), image_not_packed_poll(), image_pack_exec(), image_pack_test(), image_reload_exec(), image_remove_render_slot_exec(), image_save_as_exec(), image_save_as_invoke(), image_save_as_poll(), image_save_exec(), image_save_invoke(), image_save_sequence_exec(), image_scale_exec(), image_scale_invoke(), image_unpack_exec(), and image_unpack_invoke().
|
static |
Definition at line 214 of file image_ops.c.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), C, image_from_context(), image_user_from_context(), NULL, ImBuf::rect, and ImBuf::rect_float.
Referenced by IMAGE_OT_save_sequence(), image_save_as_poll(), and image_save_poll().
|
static |
Use this when the image buffer is accessed without the image user.
Definition at line 233 of file image_ops.c.
References BKE_image_has_ibuf(), C, image_from_context(), and NULL.
Referenced by IMAGE_OT_flip(), IMAGE_OT_invert(), and IMAGE_OT_resize().
|
static |
Definition at line 2312 of file image_ops.c.
References Image::filepath.
Referenced by ED_image_save_all_modified(), and ED_image_save_all_modified_info().
|
static |
Definition at line 2832 of file image_ops.c.
References Freestyle::a, BKE_image_acquire_ibuf(), BKE_image_free_gputextures(), BKE_image_mark_dirty(), BKE_image_release_ibuf(), C, CTX_wm_space_image(), ED_image_undo_push_begin_with_image(), ED_image_undo_push_end(), ED_imapaint_clear_partial_redraw(), IB_DISPLAY_BUFFER_INVALID, IB_MIPMAP_INVALID, image_from_context(), IMB_rect_from_float(), SpaceImage::iuser, ImBuf::mipmap, SpaceImage::mode, NA_EDITED, wmOperatorType::name, NC_IMAGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, r, ImBuf::rect, ImBuf::rect_float, RNA_boolean_get(), SI_MODE_PAINT, wmOperator::type, ImBuf::userflags, WM_event_add_notifier(), ImBuf::x, and ImBuf::y.
Referenced by IMAGE_OT_invert().
|
static |
Definition at line 1550 of file image_ops.c.
References Image::anims, BKE_image_has_anim(), BKE_image_user_frame_calc(), C, RenderData::cfra, CTX_data_pointer_get_type(), CTX_data_scene(), PointerRNA::data, ListBase::first, ImageUser::frames, Tex::ima, image_from_context(), image_user_from_context(), IMB_anim_get_duration(), IMB_TC_RECORD_RUN, Tex::iuser, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, RNA_Texture, scene, tex, TEX_IMAGE, and Tex::type.
Referenced by IMAGE_OT_match_movie_length().
|
static |
Definition at line 2653 of file image_ops.c.
References image_new_free().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 2617 of file image_ops.c.
References C, col, CTX_data_scene(), CTX_wm_manager(), wmWindowManager::id, wmOperator::layout, NULL, wmOperator::properties, ptr, Scene::r, R_MULTIVIEW, RNA_pointer_create(), RenderData::scemode, scene, wmOperatorType::srna, wmOperator::type, uiItemL(), uiItemR(), uiLayoutColumn(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 2522 of file image_ops.c.
References alpha, BKE_image_add_generated(), BKE_image_signal(), C, CTX_data_edit_object(), CTX_data_main(), CTX_wm_space_image(), data, DATA_, ED_space_image_set(), height, Image::id, id_us_min(), IMA_SIGNAL_USER_NEW_IMAGE, image_new_free(), image_new_init(), SpaceImage::iuser, MAX_ID_NAME, NA_ADDED, NC_IMAGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), RNA_float_get_array(), RNA_id_pointer_create(), RNA_int_get(), RNA_property_is_set(), RNA_property_pointer_set(), RNA_property_string_get(), RNA_property_update(), RNA_struct_find_property(), width, and WM_event_add_notifier().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 2514 of file image_ops.c.
References wmOperator::customdata, MEM_freeN, and NULL.
Referenced by image_new_cancel(), and image_new_exec().
|
static |
Definition at line 2502 of file image_ops.c.
References C, wmOperator::customdata, data, MEM_callocN, and UI_context_active_but_prop_get_templateID().
Referenced by image_new_exec().
|
static |
Definition at line 2605 of file image_ops.c.
References C, wmOperator::customdata, data, DATA_, IMA_DEF_NAME, MEM_callocN, wmOperator::ptr, RNA_string_set(), UI_context_active_but_prop_get_templateID(), and WM_operator_props_dialog_popup().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 240 of file image_ops.c.
References BLI_listbase_is_empty(), C, image_from_context(), and Image::packedfiles.
Referenced by IMAGE_OT_replace().
|
static |
Definition at line 1240 of file image_ops.c.
References wmOperator::customdata, MEM_freeN, and NULL.
Referenced by IMAGE_OT_open().
|
static |
Definition at line 1482 of file image_ops.c.
References C, CTX_wm_manager(), wmOperator::customdata, wmWindowManager::id, ImageOpenData::im_format, image_open_draw_check_prop(), wmOperator::layout, NULL, wmOperator::properties, wmOperator::ptr, ptr, RNA_boolean_get(), RNA_ImageFormatSettings, RNA_pointer_create(), wmOperatorType::srna, wmOperator::type, UI_BUT_LABEL_ALIGN_NONE, uiDefAutoButsRNA(), and uiTemplateImageFormatViews().
Referenced by IMAGE_OT_open().
|
static |
Definition at line 1473 of file image_ops.c.
References RNA_property_identifier(), and STR_ELEM.
Referenced by image_open_draw().
|
static |
Definition at line 1307 of file image_ops.c.
References blender::compositor::area(), Camera::bg_images, BKE_image_init_imageuser(), BKE_image_signal(), BKE_main_blendfile_path(), BLI_freelistN(), C, CTX_data_edit_object(), CTX_data_main(), CTX_data_pointer_get_type(), CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), wmOperator::customdata, PointerRNA::data, ED_image_filesel_detect_sequences(), ED_preview_kill_jobs(), ED_space_image_set(), ImageUser::framenr, ImageUser::frames, Image::id, id_us_min(), IMA_SIGNAL_RELOAD, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, image_open_init(), image_open_single(), ImageOpenData::iuser, SpaceImage::iuser, Tex::iuser, LISTBASE_FOREACH, MEM_freeN, NA_EDITED, NC_IMAGE, NULL, ImageUser::offset, OPERATOR_CANCELLED, OPERATOR_FINISHED, ImageOpenData::pprop, PropertyPointerRNA::prop, wmOperator::ptr, PropertyPointerRNA::ptr, RNA_boolean_get(), RNA_Camera, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RNA_Texture, scene, ImageUser::scene, ImageUser::sfra, Image::source, SPACE_IMAGE, tex, TEX_IMAGE, Tex::type, and WM_event_add_notifier().
Referenced by image_open_invoke(), and IMAGE_OT_open().
|
static |
Definition at line 1232 of file image_ops.c.
References C, CTX_data_pointer_get_type(), wmOperator::customdata, PointerRNA::data, ImageOpenData::iuser, MEM_callocN, ImageOpenData::pprop, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, RNA_ImageUser, and UI_context_active_but_prop_get_templateID().
Referenced by image_open_exec(), and image_open_invoke().
|
static |
Definition at line 1415 of file image_ops.c.
References C, CTX_data_pointer_get_type(), CTX_data_scene(), CTX_wm_space_image(), PointerRNA::data, Image::filepath, GS, Image::id, ID_IM, if(), Tex::ima, SpaceImage::image, image_filesel(), image_open_exec(), image_open_init(), ID::name, NULL, OPERATOR_RUNNING_MODAL, PointerRNA::owner_id, wmOperator::ptr, ptr, Scene::r, R_MULTIVIEW, RNA_property_boolean_set(), RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_property_is_set(), RNA_Texture, RenderData::scemode, scene, tex, TEX_IMAGE, Tex::type, and UI_context_active_but_prop_get_templateID().
Referenced by IMAGE_OT_open().
|
static |
Definition at line 1246 of file image_ops.c.
References BKE_image_add_tile(), BKE_image_free_views(), BKE_image_load_exists_ex(), BKE_reportf(), BLI_path_rel(), wmOperator::customdata, Image::filepath, ImageFrameRange::filepath, ListBase::first, Image::flag, ImageOpenData::im_format, IMA_SRC_FILE, IMA_SRC_SEQUENCE, IMA_SRC_TILED, IMA_USE_VIEWS, ImageFrameRange::length, LISTBASE_FOREACH, MEM_freeN, node, NULL, ImageFrameRange::offset, POINTER_AS_INT, wmOperator::reports, RPT_ERROR, Image::source, Image::stereo3d_format, ImageFormatData::stereo3d_format, TIP_, ImageFrameRange::udim_tiles, Image::views_format, and ImageFormatData::views_format.
Referenced by image_open_exec().
| void IMAGE_OT_add_render_slot | ( | wmOperatorType * | ot | ) |
Definition at line 3526 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_add_render_slot_exec(), image_cycle_render_slot_poll(), wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
| void IMAGE_OT_change_frame | ( | wmOperatorType * | ot | ) |
Definition at line 3683 of file image_ops.c.
References change_frame_exec(), change_frame_invoke(), change_frame_modal(), change_frame_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MAXFRAME, MINAFRAME, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_clear_render_border | ( | wmOperatorType * | ot | ) |
Definition at line 3824 of file image_ops.c.
References clear_render_border_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_cycle_render_slot_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
| void IMAGE_OT_clear_render_slot | ( | wmOperatorType * | ot | ) |
Definition at line 3493 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_clear_render_slot_exec(), image_cycle_render_slot_poll(), wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
| void IMAGE_OT_curves_point_set | ( | wmOperatorType * | ot | ) |
Definition at line 3391 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_imbuf_sample_cancel(), ED_imbuf_sample_invoke(), ED_imbuf_sample_modal(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_PIXEL, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_int(), RNA_def_property_flag(), RNA_def_property_subtype(), space_image_main_area_not_uv_brush_poll(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_cycle_render_slot | ( | wmOperatorType * | ot | ) |
Definition at line 3456 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_cycle_render_slot_exec(), image_cycle_render_slot_poll(), wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_flip | ( | wmOperatorType * | ot | ) |
Definition at line 2802 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_flip_exec(), image_from_context_has_data_poll_no_image_user(), wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_invert | ( | wmOperatorType * | ot | ) |
Definition at line 2923 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_from_context_has_data_poll_no_image_user(), image_invert_exec(), wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_match_movie_length | ( | wmOperatorType * | ot | ) |
Definition at line 1580 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_match_len_exec(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 2658 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, IMA_DEF_NAME, IMA_GENTYPE_BLANK, image_new_cancel(), image_new_draw(), image_new_exec(), image_new_invoke(), wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, NULL, OPTYPE_UNDO, ot, PROP_COLOR_GAMMA, PROP_HIDDEN, PROP_PIXEL, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_float_color(), RNA_def_int(), RNA_def_property_flag(), RNA_def_property_float_array_default(), RNA_def_property_subtype(), RNA_def_string(), rna_enum_image_generated_type_items, wmOperatorType::srna, and wmOperatorType::ui.
Referenced by image_operatortypes().
| void IMAGE_OT_open | ( | wmOperatorType * | ot | ) |
Definition at line 1505 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, wmOperatorType::flag, wmOperatorType::idname, image_open_cancel(), image_open_draw(), image_open_exec(), image_open_invoke(), wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), wmOperatorType::srna, wmOperatorType::ui, WM_FILESEL_DIRECTORY, WM_FILESEL_FILEPATH, WM_FILESEL_FILES, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by image_operatortypes().
| void IMAGE_OT_pack | ( | wmOperatorType * | ot | ) |
Definition at line 3076 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_pack_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_read_viewlayers | ( | wmOperatorType * | ot | ) |
Definition at line 3723 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_read_viewlayers_exec(), wmOperatorType::name, ot, wmOperatorType::poll, and space_image_main_region_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_reload | ( | wmOperatorType * | ot | ) |
Definition at line 2470 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_reload_exec(), wmOperatorType::name, OPTYPE_REGISTER, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_remove_render_slot | ( | wmOperatorType * | ot | ) |
Definition at line 3561 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_cycle_render_slot_poll(), image_remove_render_slot_exec(), wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
| void IMAGE_OT_render_border | ( | wmOperatorType * | ot | ) |
Definition at line 3788 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_cycle_render_slot_poll(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, render_border_exec(), WM_gesture_box_cancel(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by image_operatortypes().
| void IMAGE_OT_replace | ( | wmOperatorType * | ot | ) |
Definition at line 1659 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, wmOperatorType::flag, wmOperatorType::idname, image_not_packed_poll(), image_replace_exec(), image_replace_invoke(), wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by image_operatortypes().
| void IMAGE_OT_resize | ( | wmOperatorType * | ot | ) |
Definition at line 3013 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_from_context_has_data_poll_no_image_user(), image_scale_exec(), image_scale_invoke(), wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, ot, wmOperatorType::poll, RNA_def_int_vector(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_sample | ( | wmOperatorType * | ot | ) |
Definition at line 3271 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_imbuf_sample_cancel(), ED_imbuf_sample_invoke(), ED_imbuf_sample_modal(), ED_imbuf_sample_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, ot, wmOperatorType::poll, PROP_PIXEL, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), RNA_def_property_subtype(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_sample_line | ( | wmOperatorType * | ot | ) |
Definition at line 3365 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_sample_line_exec(), image_sample_line_invoke(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::poll, space_image_main_region_poll(), WM_CURSOR_EDIT, WM_gesture_straightline_cancel(), WM_gesture_straightline_modal(), and WM_operator_properties_gesture_straightline().
Referenced by image_operatortypes().
| void IMAGE_OT_save | ( | wmOperatorType * | ot | ) |
Definition at line 2180 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_save_exec(), image_save_invoke(), image_save_poll(), wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
| void IMAGE_OT_save_all_modified | ( | wmOperatorType * | ot | ) |
Definition at line 2428 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_save_all_modified_exec(), image_save_all_modified_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
| void IMAGE_OT_save_as | ( | wmOperatorType * | ot | ) |
Definition at line 2046 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::check, wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_SAVE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, wmOperatorType::flag, wmOperatorType::idname, image_save_as_cancel(), image_save_as_check(), image_save_as_draw(), image_save_as_exec(), image_save_as_invoke(), image_save_as_poll(), wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, wmOperatorType::ui, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, WM_FILESEL_SHOW_PROPS, and WM_operator_properties_filesel().
Referenced by image_operatortypes().
| void IMAGE_OT_save_sequence | ( | wmOperatorType * | ot | ) |
Definition at line 2277 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_from_context_has_data_poll(), image_save_sequence_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
| void IMAGE_OT_tile_add | ( | wmOperatorType * | ot | ) |
Definition at line 4017 of file image_ops.c.
References def_fill_tile(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, IMA_UDIM_MAX, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_int(), RNA_def_string(), wmOperatorType::srna, tile_add_draw(), tile_add_exec(), tile_add_invoke(), tile_add_poll(), and wmOperatorType::ui.
Referenced by image_operatortypes().
| void IMAGE_OT_tile_fill | ( | wmOperatorType * | ot | ) |
Definition at line 4140 of file image_ops.c.
References def_fill_tile(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::srna, tile_fill_draw(), tile_fill_exec(), tile_fill_invoke(), tile_fill_poll(), and wmOperatorType::ui.
Referenced by image_operatortypes().
| void IMAGE_OT_tile_remove | ( | wmOperatorType * | ot | ) |
Definition at line 4078 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, tile_remove_exec(), and tile_remove_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_unpack | ( | wmOperatorType * | ot | ) |
Definition at line 3174 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_unpack_exec(), image_unpack_invoke(), wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, PF_USE_LOCAL, RNA_def_enum(), RNA_def_string(), rna_enum_unpack_method_items, and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 815 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_view_all_exec(), wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), space_image_main_region_poll(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_view_center_cursor | ( | wmOperatorType * | ot | ) |
Definition at line 897 of file image_ops.c.
References wmOperatorType::description, ED_space_image_cursor_poll(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and view_center_cursor_exec().
Referenced by image_operatortypes().
| void IMAGE_OT_view_cursor_center | ( | wmOperatorType * | ot | ) |
Definition at line 861 of file image_ops.c.
References wmOperatorType::description, ED_space_image_cursor_poll(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, and view_cursor_center_exec().
Referenced by image_operatortypes().
| void IMAGE_OT_view_pan | ( | wmOperatorType * | ot | ) |
Definition at line 452 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_view_pan_cancel(), image_view_pan_exec(), image_view_pan_invoke(), image_view_pan_modal(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, RNA_def_float_vector(), space_image_main_region_poll(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 969 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, image_view_selected_exec(), image_view_selected_poll(), wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
| void IMAGE_OT_view_zoom | ( | wmOperatorType * | ot | ) |
Definition at line 697 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_view_zoom_cancel(), image_view_zoom_exec(), image_view_zoom_invoke(), image_view_zoom_modal(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float(), RNA_def_property_flag(), space_image_main_region_poll(), wmOperatorType::srna, and WM_operator_properties_use_cursor_init().
Referenced by image_operatortypes().
| void IMAGE_OT_view_zoom_border | ( | wmOperatorType * | ot | ) |
Definition at line 1194 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, image_view_zoom_border_exec(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::poll, space_image_main_region_poll(), WM_gesture_box_cancel(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_gesture_box_zoom().
Referenced by image_operatortypes().
| void IMAGE_OT_view_zoom_in | ( | wmOperatorType * | ot | ) |
Definition at line 1015 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_view_zoom_in_exec(), image_view_zoom_in_invoke(), wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float_vector(), RNA_def_property_flag(), space_image_main_region_poll(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_view_zoom_out | ( | wmOperatorType * | ot | ) |
Definition at line 1074 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_view_zoom_out_exec(), image_view_zoom_out_invoke(), wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float_vector(), RNA_def_property_flag(), space_image_main_region_poll(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_view_zoom_ratio | ( | wmOperatorType * | ot | ) |
Definition at line 1127 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_view_zoom_ratio_exec(), wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, RNA_def_float(), space_image_main_region_poll(), and wmOperatorType::srna.
Referenced by image_operatortypes().
|
static |
Definition at line 3055 of file image_ops.c.
References BKE_image_is_dirty(), BKE_image_memorypack(), BKE_image_packfiles(), C, CTX_data_main(), Image::id, ID_BLEND_PATH, image_from_context(), image_pack_test(), NA_EDITED, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and WM_event_add_notifier().
Referenced by IMAGE_OT_pack().
|
static |
Definition at line 3038 of file image_ops.c.
References BKE_report(), C, ELEM, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, IMA_SRC_TILED, image_from_context(), wmOperator::reports, RPT_ERROR, and Image::source.
Referenced by image_pack_exec().
|
static |
Definition at line 3705 of file image_ops.c.
References BKE_image_ensure_viewer(), C, CTX_data_main(), CTX_data_scene(), CTX_wm_space_image(), ED_space_image_set(), IMA_TYPE_R_RESULT, SpaceImage::image, NA_EDITED, NC_IMAGE, NULL, OPERATOR_FINISHED, RE_ReadRenderResult(), scene, and WM_event_add_notifier().
Referenced by IMAGE_OT_read_viewlayers().
|
static |
Definition at line 2449 of file image_ops.c.
References BKE_image_signal(), C, CTX_data_main(), CTX_wm_manager(), DEG_id_tag_update(), ED_preview_kill_jobs(), Image::id, IMA_SIGNAL_RELOAD, image_from_context(), image_user_from_context(), NA_EDITED, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by IMAGE_OT_reload().
|
static |
Definition at line 3547 of file image_ops.c.
References BKE_image_remove_renderslot(), C, CTX_wm_space_image(), image_from_context(), SpaceImage::iuser, NC_IMAGE, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Image::render_slot, and WM_event_add_notifier().
Referenced by IMAGE_OT_remove_render_slot().
|
static |
Definition at line 1601 of file image_ops.c.
References BKE_icon_changed(), BKE_icon_id_ensure(), BKE_image_signal(), BLI_path_extension_check_array(), BLI_strncpy(), C, CTX_data_main(), CTX_wm_manager(), CTX_wm_space_image(), ED_preview_kill_jobs(), FILE_MAX, Image::filepath, Image::id, IMA_SIGNAL_RELOAD, IMA_SIGNAL_SRC_CHANGE, IMA_SRC_FILE, IMA_SRC_GENERATED, IMA_SRC_MOVIE, SpaceImage::image, imb_ext_movie, SpaceImage::iuser, NA_EDITED, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), Image::source, str, and WM_event_add_notifier().
Referenced by IMAGE_OT_replace(), and image_replace_invoke().
|
static |
Definition at line 1638 of file image_ops.c.
References BLI_path_is_rel(), C, CTX_wm_space_image(), Image::filepath, SpaceImage::image, image_filesel(), image_replace_exec(), OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_set(), and RNA_struct_property_is_set().
Referenced by IMAGE_OT_replace().
|
static |
Definition at line 3299 of file image_ops.c.
References BKE_histogram_update_sample_line(), BKE_image_get_tile_from_pos(), C, ImBuf::channels, Histogram::co, copy_v2_v2(), CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), CTX_wm_space_image(), Scene::display_settings, ED_area_tag_redraw(), ED_space_image(), ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), Histogram::flag, HISTO_FLAG_SAMPLELINE, Main::lock, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), SpaceImage::sample_line_hist, scene, sub_v2_v2(), UI_view2d_region_to_view(), ARegion::v2d, Scene::view_settings, and Histogram::ymax.
Referenced by IMAGE_OT_sample_line().
|
static |
Definition at line 3351 of file image_ops.c.
References C, CTX_wm_space_image(), ED_space_image_has_buffer(), Histogram::flag, HISTO_FLAG_SAMPLELINE, OPERATOR_CANCELLED, SpaceImage::sample_line_hist, and WM_gesture_straightline_invoke().
Referenced by IMAGE_OT_sample_line().
|
static |
Definition at line 2422 of file image_ops.c.
References C, ED_image_save_all_modified(), OPERATOR_FINISHED, and wmOperator::reports.
Referenced by IMAGE_OT_save_all_modified().
|
static |
Definition at line 2416 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().
|
static |
Definition at line 1987 of file image_ops.c.
References image_save_as_free().
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 1934 of file image_ops.c.
References wmOperator::customdata, ImageSaveData::im_format, and WM_operator_filesel_ensure_ext_imtype().
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 2004 of file image_ops.c.
References C, CTX_wm_manager(), wmOperator::customdata, wmWindowManager::id, ImageSaveData::im_format, image_save_as_draw_check_prop(), wmOperator::layout, NULL, wmOperator::properties, wmOperator::ptr, ptr, RNA_boolean_get(), RNA_ImageFormatSettings, RNA_pointer_create(), wmOperatorType::srna, wmOperator::type, UI_BUT_LABEL_ALIGN_NONE, uiDefAutoButsRNA(), uiTemplateImageFormatViews(), and uiTemplateImageSettings().
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 1992 of file image_ops.c.
References ptr, RNA_boolean_get(), RNA_property_identifier(), and STREQ.
Referenced by image_save_as_draw().
|
static |
Definition at line 1894 of file image_ops.c.
References BKE_image_free_packedfiles(), BKE_image_save_options_init(), C, CTX_data_main(), CTX_data_scene(), wmOperator::customdata, ImageSaveOptions::do_newpath, ImageSaveData::im_format, ImageSaveData::image, image_from_context(), image_save_as_free(), image_save_options_from_op(), image_save_options_init(), image_user_from_context(), ImageSaveData::iuser, NULL, OPERATOR_FINISHED, ImageSaveOptions::save_copy, save_image_op(), and scene.
Referenced by IMAGE_OT_save_as(), and image_save_as_invoke().
|
static |
Definition at line 1883 of file image_ops.c.
References BKE_color_managed_view_settings_free(), wmOperator::customdata, ImageSaveData::im_format, MEM_freeN, NULL, and ImageFormatData::view_settings.
Referenced by image_save_as_cancel(), and image_save_as_exec().
|
static |
Definition at line 1940 of file image_ops.c.
References BKE_image_is_multiview(), BKE_image_save_options_init(), C, CTX_data_main(), CTX_data_scene(), wmOperator::customdata, ELEM, ImageSaveOptions::filepath, ImageSaveOptions::im_format, ImageSaveData::im_format, IMA_SRC_VIEWER, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, ImageSaveData::image, image_filesel(), image_from_context(), image_save_as_exec(), image_save_options_init(), image_save_options_to_op(), image_user_from_context(), ImageSaveData::iuser, MEM_callocN, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_set(), RNA_property_boolean_set(), RNA_struct_find_property(), RNA_struct_property_is_set(), scene, Image::source, and Image::type.
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 2027 of file image_ops.c.
References C, CTX_wm_operator_poll_msg_set(), G, IMA_SRC_VIEWER, image_from_context(), image_from_context_has_data_poll(), and Image::source.
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 2123 of file image_ops.c.
References BKE_color_managed_view_settings_free(), BKE_image_has_packedfile(), BKE_image_memorypack(), BKE_image_save_options_init(), BKE_reportf(), BLI_exists(), BLI_file_is_writable(), C, CTX_data_main(), CTX_data_scene(), ImageSaveOptions::filepath, Image::filepath, ImageSaveOptions::im_format, image_from_context(), image_save_options_from_op(), image_save_options_init(), image_user_from_context(), NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_INFO, save_image_op(), scene, and ImageFormatData::view_settings.
Referenced by IMAGE_OT_save(), and image_save_invoke().
|
static |
Definition at line 2166 of file image_ops.c.
References BKE_image_has_filepath(), BKE_image_has_packedfile(), C, image_file_format_writable(), image_from_context(), image_save_exec(), image_user_from_context(), NULL, OPERATOR_CANCELLED, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
Referenced by IMAGE_OT_save().
|
static |
Definition at line 1832 of file image_ops.c.
References BKE_color_managed_view_settings_free(), BKE_main_blendfile_path(), BLI_path_abs(), ImageSaveOptions::filepath, ImageSaveOptions::im_format, wmOperator::ptr, RNA_string_get(), RNA_struct_property_is_set(), and ImageFormatData::view_settings.
Referenced by image_save_as_exec(), and image_save_exec().
|
static |
Definition at line 1734 of file image_ops.c.
References BKE_color_managed_display_settings_copy(), BKE_color_managed_view_settings_copy(), BKE_color_managed_view_settings_free(), BKE_image_acquire_ibuf(), BKE_image_is_multiview(), BKE_image_release_ibuf(), BKE_imbuf_to_image_format(), BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_make_safe(), BLI_path_sequence_decode(), BLI_snprintf(), BLI_strncpy(), ImageFormatData::compress, ImageFormatData::depth, ImageFormatData::display_settings, Scene::display_settings, ELEM, ImageSaveOptions::filepath, Image::filepath, ImBuf::foptions, G, Image::id, ImageSaveOptions::im_format, RenderData::im_format, IMA_SRC_GENERATED, IMA_SRC_TILED, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, ImageFormatData::imtype, imtype_best_depth(), len, ID::name, ImBuf::name, NULL, ImBuf::planes, ImageFormatData::planes, ImbFormatOptions::quality, ImageFormatData::quality, Scene::r, R_IMF_IMTYPE_PNG, R_IMF_PLANES_BW, R_IMF_PLANES_RGB, R_IMF_PLANES_RGBA, ImageSaveOptions::scene, scene, Image::source, Image::stereo3d_format, ImageFormatData::stereo3d_format, STR_CONCAT, STREQ, Image::type, ImageFormatData::view_settings, Scene::view_settings, Image::views_format, and ImageFormatData::views_format.
Referenced by ED_image_save_all_modified(), image_save_as_exec(), image_save_as_invoke(), and image_save_exec().
|
static |
Definition at line 1848 of file image_ops.c.
References BKE_color_managed_view_settings_free(), wmOperator::customdata, ImageSaveOptions::filepath, ImageSaveOptions::im_format, ImageSaveData::im_format, wmOperator::ptr, RNA_string_set(), and ImageFormatData::view_settings.
Referenced by image_save_as_invoke().
|
static |
Definition at line 2108 of file image_ops.c.
References C, and image_from_context_has_data_poll().
Referenced by IMAGE_OT_save().
|
static |
Definition at line 2202 of file image_ops.c.
References BKE_main_blendfile_path(), BKE_report(), BKE_reportf(), BLI_path_abs(), BLI_split_dir_part(), BLI_strncpy(), C, Image::cache, CTX_data_main(), FILE_MAX, IB_BITMAPDIRTY, IB_rect, IB_zbuf, IB_zbuffloat, IMA_SRC_SEQUENCE, IMA_TYPE_MULTILAYER, image_from_context(), IMB_moviecacheIter_done(), IMB_moviecacheIter_free(), IMB_moviecacheIter_getImBuf(), IMB_moviecacheIter_new(), IMB_moviecacheIter_step(), IMB_saveiff(), ImBuf::name, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_INFO, RPT_WARNING, Image::source, Image::type, and ImBuf::userflags.
Referenced by IMAGE_OT_save_sequence().
|
static |
Definition at line 2969 of file image_ops.c.
References BKE_image_acquire_ibuf(), BKE_image_free_gputextures(), BKE_image_release_ibuf(), C, CTX_wm_space_image(), DEG_id_tag_update(), ED_image_undo_push_begin_with_image(), ED_image_undo_push_end(), ED_imapaint_clear_partial_redraw(), IB_DISPLAY_BUFFER_INVALID, Image::id, image_from_context(), IMB_scaleImBuf(), SpaceImage::iuser, SpaceImage::mode, NA_EDITED, wmOperatorType::name, NC_IMAGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_property_int_get_array(), RNA_property_int_set_array(), RNA_property_is_set(), RNA_struct_find_property(), SI_MODE_PAINT, size(), wmOperator::type, ImBuf::userflags, WM_event_add_notifier(), ImBuf::x, and ImBuf::y.
Referenced by IMAGE_OT_resize().
|
static |
Definition at line 2956 of file image_ops.c.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), C, image_from_context(), NULL, wmOperator::ptr, RNA_property_int_set_array(), RNA_property_is_set(), RNA_struct_find_property(), size(), WM_operator_props_dialog_popup(), ImBuf::x, and ImBuf::y.
Referenced by IMAGE_OT_resize().
|
static |
Definition at line 2303 of file image_ops.c.
References BKE_image_is_dirty_writable(), ELEM, IMA_SRC_FILE, IMA_SRC_GENERATED, IMA_SRC_TILED, image_should_be_saved_when_modified(), and Image::source.
Referenced by ED_image_save_all_modified(), and ED_image_save_all_modified_info().
|
static |
Definition at line 2298 of file image_ops.c.
References ELEM, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, and Image::type.
Referenced by image_should_be_saved().
|
static |
Definition at line 3096 of file image_ops.c.
References BKE_image_has_packedfile(), BKE_packedfile_unpack_image(), BKE_report(), BLI_findstring(), C, CTX_data_main(), CTX_wm_manager(), ED_preview_kill_jobs(), ELEM, G, G_FILE_AUTOPACK, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, IMA_SRC_TILED, image_from_context(), Main::images, MAX_ID_NAME, NA_EDITED, Main::name, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_string_get(), RNA_struct_property_is_set(), RPT_ERROR, RPT_WARNING, Image::source, and WM_event_add_notifier().
Referenced by IMAGE_OT_unpack(), and image_unpack_invoke().
|
static |
Definition at line 3138 of file image_ops.c.
References BKE_image_has_packedfile(), BKE_report(), C, ELEM, Image::filepath, ListBase::first, G, G_FILE_AUTOPACK, Image::id, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, IMA_SRC_TILED, image_from_context(), image_unpack_exec(), ID::name, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Image::packedfiles, wmOperator::ptr, wmOperator::reports, RNA_struct_property_is_set(), RPT_ERROR, RPT_WARNING, Image::source, and unpack_menu().
Referenced by IMAGE_OT_unpack().
Definition at line 199 of file image_ops.c.
References C, CTX_data_pointer_get_type(), CTX_wm_space_image(), PointerRNA::data, SpaceImage::iuser, NULL, and RNA_ImageUser.
Referenced by image_from_context_has_data_poll(), image_match_len_exec(), image_reload_exec(), image_save_as_exec(), image_save_as_invoke(), image_save_exec(), and image_save_invoke().
|
static |
Definition at line 247 of file image_ops.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), ED_space_image_get_aspect(), ED_space_image_get_size(), float(), height, IMA_SRC_TILED, SpaceImage::image, LISTBASE_FOREACH, max_ii(), min_ff(), NULL, power_of_2(), wmOperator::ptr, RNA_boolean_get(), sima_zoom_set(), Image::source, SpaceImage::tile_grid_shape, Image::tiles, w(), width, ARegion::winrct, SpaceImage::xof, and SpaceImage::yof.
Referenced by image_view_all_exec(), and view_cursor_center_exec().
|
static |
Definition at line 799 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), image_view_all(), and OPERATOR_FINISHED.
Referenced by IMAGE_OT_view_all().
|
static |
Definition at line 447 of file image_ops.c.
References C, and image_view_pan_exit().
Referenced by IMAGE_OT_view_pan().
|
static |
Definition at line 389 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get_array(), SpaceImage::xof, and SpaceImage::yof.
Referenced by IMAGE_OT_view_pan(), image_view_pan_invoke(), and image_view_pan_modal().
|
static |
Definition at line 372 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN, ViewPanData::own_cursor, WM_cursor_modal_restore(), ViewPanData::xof, SpaceImage::xof, ViewPanData::yof, and SpaceImage::yof.
Referenced by image_view_pan_cancel(), and image_view_pan_modal().
|
static |
Definition at line 349 of file image_ops.c.
References C, CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, wmWindow::grabcursor, ViewPanData::launch_event, MEM_callocN, ViewPanData::own_cursor, wmEvent::type, WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_userdef_event_type_from_keymap_type(), ViewPanData::x, ViewPanData::xof, SpaceImage::xof, ViewPanData::y, ViewPanData::yof, and SpaceImage::yof.
Referenced by image_view_pan_invoke().
|
static |
Definition at line 403 of file image_ops.c.
References C, CTX_wm_space_image(), image_view_pan_exec(), image_view_pan_init(), MOUSEPAN, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmEvent::prevy, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, wmEvent::y, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_pan().
|
static |
Definition at line 421 of file image_ops.c.
References C, CTX_wm_space_image(), wmOperator::customdata, image_view_pan_exec(), image_view_pan_exit(), KM_RELEASE, ViewPanData::launch_event, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, wmEvent::val, ViewPanData::x, ViewPanData::xof, SpaceImage::xof, ViewPanData::y, wmEvent::y, ViewPanData::yof, SpaceImage::yof, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_pan().
|
static |
Definition at line 915 of file image_ops.c.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data_with_uvs, BLI_rctf_scale(), bounds(), C, CTX_data_edit_object(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_region(), CTX_wm_space_image(), ED_mask_selected_minmax(), ED_region_tag_redraw(), ED_space_image_check_show_maskedit(), ED_space_image_show_uvedit(), ED_uvedit_minmax_multi(), max, MEM_freeN, min, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, and sima_zoom_set_from_bounds().
Referenced by IMAGE_OT_view_selected().
|
static |
Definition at line 964 of file image_ops.c.
References C, ED_operator_mask(), ED_operator_uvedit(), and space_image_main_region_poll().
Referenced by IMAGE_OT_view_selected().
|
static |
Definition at line 1159 of file image_ops.c.
References bounds(), C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), sima_zoom_set_from_bounds(), UI_view2d_region_to_view_rctf(), ARegion::v2d, WM_operator_properties_border_to_rctf(), SpaceImage::xof, SpaceImage::yof, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_zoom_border().
|
static |
Definition at line 692 of file image_ops.c.
References C, and image_view_zoom_exit().
Referenced by IMAGE_OT_view_zoom().
|
static |
Definition at line 559 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and sima_zoom_set_factor().
Referenced by IMAGE_OT_view_zoom().
|
static |
Definition at line 539 of file image_ops.c.
References C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN, ViewZoomData::own_cursor, ViewZoomData::timer, wmTimer::win, WM_cursor_modal_restore(), WM_event_remove_timer(), ViewZoomData::zoom, and SpaceImage::zoom.
Referenced by image_view_zoom_cancel(), and image_view_zoom_modal().
|
static |
Definition at line 987 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), OPERATOR_FINISHED, powf, wmOperator::ptr, RNA_float_get_array(), sima_zoom_set_factor(), and USER_ZOOM_TO_MOUSEPOS.
Referenced by IMAGE_OT_view_zoom_in(), and image_view_zoom_in_invoke().
|
static |
Definition at line 1003 of file image_ops.c.
References C, CTX_wm_region(), image_view_zoom_in_exec(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by IMAGE_OT_view_zoom_in().
|
static |
Definition at line 504 of file image_ops.c.
References C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, wmWindow::grabcursor, ViewZoomData::launch_event, ViewZoomData::location, MEM_callocN, wmEvent::mval, ViewZoomData::origx, ViewZoomData::origy, ViewZoomData::own_cursor, PIL_check_seconds_timer(), ViewZoomData::region, ViewZoomData::sima, ViewZoomData::timer, TIMER, ViewZoomData::timer_lastdraw, wmEvent::type, UI_view2d_region_to_view(), USER_ZOOM_CONTINUE, ARegion::v2d, WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_event_add_timer(), WM_userdef_event_type_from_keymap_type(), ViewZoomData::zoom, and SpaceImage::zoom.
Referenced by image_view_zoom_invoke().
|
static |
Definition at line 577 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), ELEM, image_view_zoom_init(), MOUSEPAN, MOUSEZOOM, wmEvent::mval, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_get(), RNA_float_set(), sima_zoom_set(), wmEvent::type, UI_view2d_region_to_view(), USER_ZOOM_INVERT, USER_ZOOM_TO_MOUSEPOS, ARegion::v2d, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_zoom().
|
static |
Definition at line 657 of file image_ops.c.
References C, wmOperator::customdata, wmEvent::customdata, image_view_zoom_exit(), image_zoom_apply(), KM_RELEASE, ViewZoomData::launch_event, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_get(), ViewZoomData::timer, TIMER, wmEvent::type, USER_ZOOM_INVERT, USER_ZOOM_TO_MOUSEPOS, wmEvent::val, VIEW_APPLY, VIEW_CONFIRM, VIEW_PASS, wmEvent::x, and wmEvent::y.
Referenced by IMAGE_OT_view_zoom().
|
static |
Definition at line 1046 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), OPERATOR_FINISHED, powf, wmOperator::ptr, RNA_float_get_array(), sima_zoom_set_factor(), and USER_ZOOM_TO_MOUSEPOS.
Referenced by IMAGE_OT_view_zoom_out(), and image_view_zoom_out_invoke().
|
static |
Definition at line 1062 of file image_ops.c.
References C, CTX_wm_region(), image_view_zoom_out_exec(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by IMAGE_OT_view_zoom_out().
|
static |
Definition at line 1111 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), sima_zoom_set(), SpaceImage::xof, and SpaceImage::yof.
Referenced by IMAGE_OT_view_zoom_ratio().
|
static |
Definition at line 610 of file image_ops.c.
References ED_region_tag_redraw(), float(), ViewZoomData::location, ViewZoomData::origx, ViewZoomData::origy, PIL_check_seconds_timer(), wmOperator::ptr, ViewZoomData::region, RNA_float_set(), ViewZoomData::sima, sima_zoom_set(), time, ViewZoomData::timer_lastdraw, USER_ZOOM_CONTINUE, USER_ZOOM_HORIZ, USER_ZOOM_SCALE, x, y, ViewZoomData::zoom, and SpaceImage::zoom.
Referenced by image_view_zoom_modal().
|
static |
Definition at line 1696 of file image_ops.c.
References BKE_imtype_valid_depths(), R_IMF_CHAN_DEPTH_12, R_IMF_CHAN_DEPTH_16, R_IMF_CHAN_DEPTH_24, R_IMF_CHAN_DEPTH_32, R_IMF_CHAN_DEPTH_8, and ImBuf::rect_float.
Referenced by image_save_options_init().
|
static |
Definition at line 3742 of file image_ops.c.
References BKE_report(), border, RenderData::border, C, CLAMP, CTX_data_scene(), CTX_wm_region(), DEG_id_tag_update(), Scene::id, ID_RECALC_COPY_ON_WRITE, RenderData::mode, NC_SCENE, ND_RENDER_OPTIONS, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, R_BORDER, R_CROP, RE_engine_get_render_data(), RE_GetSceneRender(), wmOperator::reports, RPT_INFO, scene, UI_view2d_region_to_view_rctf(), ARegion::v2d, WM_event_add_notifier(), and WM_operator_properties_border_to_rctf().
Referenced by IMAGE_OT_render_border().
|
static |
Definition at line 1859 of file image_ops.c.
References BKE_image_save(), BLI_strncpy(), ImageSaveOptions::filepath, G, NA_EDITED, NC_IMAGE, wmOperator::ptr, ImageSaveOptions::relative, wmOperator::reports, RNA_boolean_get(), RNA_struct_find_property(), ImageSaveOptions::save_as_render, ImageSaveOptions::save_copy, WM_cursor_wait(), and WM_main_add_notifier().
Referenced by image_save_as_exec(), and image_save_exec().
|
static |
Definition at line 107 of file image_ops.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), ED_space_image_get_aspect(), ED_space_image_get_size(), height, w(), width, ARegion::winrct, SpaceImage::xof, SpaceImage::yof, and SpaceImage::zoom.
Referenced by image_view_all(), image_view_zoom_invoke(), image_view_zoom_ratio_exec(), image_zoom_apply(), sima_zoom_set_factor(), and sima_zoom_set_from_bounds().
|
static |
Definition at line 147 of file image_ops.c.
References sima_zoom_set(), and SpaceImage::zoom.
Referenced by image_view_zoom_exec(), image_view_zoom_in_exec(), and image_view_zoom_out_exec().
|
static |
Fits the view to the bounds exactly, caller should add margin if needed.
Definition at line 159 of file image_ops.c.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), bounds(), CLAMP_MAX, ED_space_image_get_aspect(), ED_space_image_get_size(), min_ff(), NULL, sima_zoom_set(), size(), ARegion::winrct, SpaceImage::xof, and SpaceImage::yof.
Referenced by image_view_selected_exec(), and image_view_zoom_border_exec().
|
static |
Definition at line 323 of file image_ops.c.
References C, CTX_data_edit_object(), CTX_data_scene(), CTX_wm_space_image(), NULL, scene, Scene::toolsettings, and ToolSettings::uvsculpt.
Referenced by IMAGE_OT_curves_point_set().
| bool space_image_main_region_poll | ( | bContext * | C | ) |
Definition at line 311 of file image_ops.c.
References C, and CTX_wm_space_image().
Referenced by change_frame_poll(), IMAGE_OT_read_viewlayers(), IMAGE_OT_sample_line(), IMAGE_OT_view_all(), IMAGE_OT_view_pan(), IMAGE_OT_view_zoom(), IMAGE_OT_view_zoom_border(), IMAGE_OT_view_zoom_in(), IMAGE_OT_view_zoom_out(), IMAGE_OT_view_zoom_ratio(), and image_view_selected_poll().
|
static |
Definition at line 3994 of file image_ops.c.
References C, col, CTX_wm_manager(), draw_fill_tile(), wmOperator::layout, NULL, wmOperator::properties, ptr, RNA_boolean_get(), RNA_pointer_create(), wmOperatorType::srna, wmOperator::type, uiItemR(), uiLayoutColumn(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), and Main::wm.
Referenced by IMAGE_OT_tile_add().
|
static |
Definition at line 3931 of file image_ops.c.
References Image::active_tile_index, BKE_image_add_tile(), BKE_report(), BLI_findindex(), C, CTX_data_edit_image(), do_fill_tile(), IMA_UDIM_MAX, label, MEM_freeN, NC_IMAGE, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_int_get(), RNA_string_get_alloc(), RPT_ERROR, Image::tiles, and WM_event_add_notifier().
Referenced by IMAGE_OT_tile_add().
|
static |
Definition at line 3970 of file image_ops.c.
References Image::active_tile_index, BLI_findlink(), C, CTX_data_edit_image(), LISTBASE_FOREACH, NULL, wmOperator::ptr, RNA_int_set(), RNA_string_set(), tile_fill_init(), Image::tiles, and WM_operator_props_dialog_popup().
Referenced by IMAGE_OT_tile_add().
|
static |
Definition at line 3924 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().
|
static |
Definition at line 4131 of file image_ops.c.
References C, CTX_wm_manager(), draw_fill_tile(), wmOperator::layout, wmOperator::properties, ptr, RNA_pointer_create(), wmOperatorType::srna, wmOperator::type, and Main::wm.
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 4110 of file image_ops.c.
References Image::active_tile_index, BLI_findlink(), C, CTX_data_edit_image(), do_fill_tile(), NC_IMAGE, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, Image::tiles, and WM_event_add_notifier().
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 3872 of file image_ops.c.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BKE_imageuser_default(), NULL, ImBuf::planes, ptr, ImBuf::rect_float, RNA_boolean_set(), RNA_int_set(), ImageUser::tile, ImageTile::tile_number, ImBuf::x, and ImBuf::y.
Referenced by tile_add_invoke(), and tile_fill_invoke().
|
static |
Definition at line 4124 of file image_ops.c.
References C, CTX_data_edit_image(), NULL, wmOperator::ptr, tile_fill_init(), and WM_operator_props_dialog_popup().
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 4099 of file image_ops.c.
References Image::active_tile_index, BKE_image_has_ibuf(), C, CTX_data_edit_image(), IMA_SRC_TILED, NULL, and Image::source.
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 4061 of file image_ops.c.
References Image::active_tile_index, BKE_image_remove_tile(), BLI_findlink(), BLI_listbase_count(), C, CTX_data_edit_image(), min_ii(), NC_IMAGE, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Image::tiles, and WM_event_add_notifier().
Referenced by IMAGE_OT_tile_remove().
|
static |
Definition at line 4054 of file image_ops.c.
References Image::active_tile_index, C, CTX_data_edit_image(), IMA_SRC_TILED, NULL, and Image::source.
Referenced by IMAGE_OT_tile_remove().
|
static |
Definition at line 885 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), SpaceImage::cursor, ED_image_view_center_to_point(), ED_region_tag_redraw(), and OPERATOR_FINISHED.
Referenced by IMAGE_OT_view_center_cursor().
|
static |
Definition at line 842 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), SpaceImage::cursor, image_view_all(), NC_SPACE, ND_SPACE_IMAGE, NULL, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by IMAGE_OT_view_cursor_center().