|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "DNA_scene_types.h"#include "DNA_sound_types.h"#include "BLI_blenlib.h"#include "BLI_string_ref.hh"#include "BLI_string_utils.hh"#include "BKE_context.hh"#include "BKE_file_handler.hh"#include "BKE_image.hh"#include "BKE_main.hh"#include "SEQ_channels.hh"#include "SEQ_iterator.hh"#include "SEQ_sequencer.hh"#include "SEQ_transform.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "GPU_matrix.hh"#include "ED_screen.hh"#include "ED_transform.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "WM_api.hh"#include "WM_types.hh"#include "sequencer_intern.hh"#include "sequencer_strips_batch.hh"Go to the source code of this file.
Classes | |
| struct | SeqDropCoords |
| struct | DropJobData |
Variables | |
| static SeqDropCoords | g_drop_coords {} |
Definition at line 621 of file sequencer_drag_drop.cc.
References is_sound(), and start_audio_video_job().
Referenced by sequencer_dropboxes_add_to_lb().
Definition at line 363 of file sequencer_drag_drop.cc.
References ARRAY_SIZE, batch, BKE_main_blendfile_path(), BLI_assert, BLI_path_rel(), BLI_path_split_file_part(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), BLI_string_join_array(), SeqDropCoords::channel, SeqDropCoords::channel_len, CTX_data_main(), CTX_wm_region(), CTX_wm_space_seq(), ED_draw_sequencer_snap_point(), FILE_MAX, SequencerTimelineOverlay::flag, SeqStripDrawData::flags, floorf, g_drop_coords, get_drag_path(), GPU_blend(), GPU_BLEND_ALPHA_PREMULT, GPU_BLEND_NONE, GPU_matrix_pop(), GPU_matrix_push(), GPU_SEQ_FLAG_ACTIVE, GPU_SEQ_FLAG_BACKGROUND, GPU_SEQ_FLAG_BORDER, GPU_SEQ_FLAG_SELECTED, SeqDropCoords::in_use, SeqDropCoords::is_intersecting, min_ff(), RGN_TYPE_WINDOW, SEQ_STRIP_OFSBOTTOM, SEQ_STRIP_OFSTOP, SEQ_TIMELINE_SHOW_STRIP_DURATION, SEQ_TIMELINE_SHOW_STRIP_NAME, SEQ_TIMELINE_SHOW_STRIP_SOURCE, SeqDropCoords::snap_point_x, SNPRINTF, SPACE_SEQ, SeqDropCoords::start_frame, TH_SEQ_ACTIVE, TH_SEQ_AUDIO, TH_SEQ_MOVIE, TH_SEQ_SELECTED, SpaceSeq::timeline_overlay, SeqDropCoords::type, UI_GetThemeColor3ubv(), UI_SCALE_FAC, UI_SetTheme(), UI_Theme_Restore(), UI_Theme_Store(), UI_view2d_text_cache_add_rectf(), UI_view2d_text_cache_draw(), update_overlay_strip_position_data(), SeqDropCoords::use_snapping, USER_SEQ_ED_SIMPLE_TWEAKING, wmOrtho2_region_pixelspace(), rctf::xmax, rctf::xmin, xy, rctf::ymax, and rctf::ymin.
Referenced by sequencer_dropboxes_add_to_lb().
|
static |
Definition at line 582 of file sequencer_drag_drop.cc.
References MEM_freeN().
Referenced by start_audio_video_job().
|
static |
Definition at line 509 of file sequencer_drag_drop.cc.
References wmDropBox::draw_data, g_drop_coords, and SeqDropCoords::in_use.
Referenced by image_drop_on_enter(), movie_drop_on_enter(), and sound_drop_on_enter().
Definition at line 72 of file sequencer_drag_drop.cc.
References g_drop_coords, KM_CTRL, SeqDropCoords::type, and SeqDropCoords::use_snapping.
Referenced by image_drop_poll(), movie_drop_poll(), and sound_drop_poll().
Definition at line 338 of file sequencer_drag_drop.cc.
References BKE_main_blendfile_path_from_global(), BLI_path_abs(), BLI_strncpy(), FILE_MAX, bSound::filepath, Image::filepath, GS, ID_IM, ID_MC, ID_SO, WM_drag_get_local_ID_or_import_from_asset(), and WM_drag_get_single_path().
Referenced by draw_seq_in_view(), and start_audio_video_job().
Definition at line 642 of file sequencer_drag_drop.cc.
References SeqDropCoords::channel_len, DEFAULT_IMG_STRIP_LENGTH, wmDropBox::draw_data, generic_drop_draw_handling(), and SeqDropCoords::strip_len.
Referenced by sequencer_dropboxes_add_to_lb().
Definition at line 94 of file sequencer_drag_drop.cc.
References FILE_TYPE_IMAGE, generic_poll_operations(), ID_IM, test_single_file_handler_poll(), TH_SEQ_IMAGE, wmDrag::type, WM_drag_get_path_file_type(), WM_drag_is_ID_type(), and WM_DRAG_PATH.
Referenced by sequencer_dropboxes_add_to_lb().
Definition at line 703 of file sequencer_drag_drop.cc.
References FILE_TYPE_IMAGE, ID_IM, wmDrag::type, WM_drag_get_path_file_type(), WM_drag_is_ID_type(), and WM_DRAG_PATH.
Referenced by sequencer_preview_dropboxes_add_to_lb().
|
static |
Definition at line 114 of file sequencer_drag_drop.cc.
References FILE_TYPE_MOVIE, ID_MC, wmDrag::type, WM_drag_get_path_file_type(), WM_drag_is_ID_type(), and WM_DRAG_PATH.
Referenced by movie_drop_poll(), RE_RenderAnim(), screen_opengl_render_anim_step(), video_prefetch(), and write_result().
|
static |
Definition at line 140 of file sequencer_drag_drop.cc.
References FILE_TYPE_SOUND, ID_SO, wmDrag::type, WM_drag_get_path_file_type(), WM_drag_is_ID_type(), and WM_DRAG_PATH.
Referenced by audio_prefetch(), select_grouped_type_basic(), and sound_drop_poll().
Definition at line 628 of file sequencer_drag_drop.cc.
References generic_drop_draw_handling().
Referenced by sequencer_dropboxes_add_to_lb().
Definition at line 128 of file sequencer_drag_drop.cc.
References generic_poll_operations(), is_movie(), test_single_file_handler_poll(), TH_SEQ_MOVIE, wmDrag::type, and WM_DRAG_PATH.
Referenced by sequencer_dropboxes_add_to_lb().
Definition at line 715 of file sequencer_drag_drop.cc.
References FILE_TYPE_MOVIE, ID_MC, wmDrag::type, WM_drag_get_path_file_type(), WM_drag_is_ID_type(), and WM_DRAG_PATH.
Referenced by sequencer_preview_dropboxes_add_to_lb().
Definition at line 663 of file sequencer_drag_drop.cc.
Referenced by sequencer_dropboxes_add_to_lb().
|
static |
Definition at line 533 of file sequencer_drag_drop.cc.
References SeqDropCoords::channel_len, float, g_drop_coords, IB_rect, IMB_anim_get_duration(), IMB_anim_get_fps(), IMB_free_anim(), IMB_TC_NONE, max_ii(), DropJobData::only_audio, openanim(), DropJobData::path, SeqDropCoords::playback_rate, DropJobData::scene_fps, SOUND_CHANNELS_INVALID, and SeqDropCoords::strip_len.
Referenced by start_audio_video_job().
Definition at line 243 of file sequencer_drag_drop.cc.
References BLI_path_split_dir_file(), SeqDropCoords::channel, SpaceSeq::chanshown, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_seq(), CTX_wm_window(), wmWindow::eventstate, FILE_MAX, bSound::filepath, Image::filepath, g_drop_coords, GS, SeqDropCoords::has_read_mouse_pos, ID_IM, ID_MC, ID_SO, SeqDropCoords::in_use, max_ii(), wmDropBox::ptr, RNA_boolean_set(), RNA_collection_add(), RNA_collection_clear(), RNA_int_set(), RNA_string_set(), RNA_struct_find_property(), RNA_struct_property_unset(), SEQ_active_seqbase_get(), SEQ_channels_displayed_get(), SEQ_editing_ensure(), SEQ_query_rendered_strips(), SeqDropCoords::start_frame, update_overlay_strip_position_data(), WM_drag_get_local_ID_or_import_from_asset(), WM_drag_get_single_path(), wmEvent::xy, and xy.
Referenced by sequencer_dropboxes_add_to_lb(), and sequencer_preview_dropboxes_add_to_lb().
Definition at line 653 of file sequencer_drag_drop.cc.
References wmDropBox::draw_data, SeqDropCoords::has_read_mouse_pos, and SeqDropCoords::in_use.
Referenced by sequencer_dropboxes_add_to_lb().
| void sequencer_dropboxes | ( | ) |
Definition at line 763 of file sequencer_drag_drop.cc.
References RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, sequencer_dropboxes_add_to_lb(), sequencer_preview_dropboxes_add_to_lb(), SPACE_SEQ, and WM_dropboxmap_find().
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 674 of file sequencer_drag_drop.cc.
References audio_prefetch(), wmDropBox::draw_droptip, wmDropBox::draw_in_view, draw_seq_in_view(), image_drop_on_enter(), image_drop_poll(), movie_drop_on_enter(), movie_drop_poll(), nop_draw_droptip_fn(), wmDropBox::on_drag_start, wmDropBox::on_enter, wmDropBox::on_exit, sequencer_drop_copy(), sequencer_drop_on_exit(), sound_drop_on_enter(), sound_drop_poll(), video_prefetch(), and WM_dropbox_add().
Referenced by sequencer_dropboxes().
|
static |
Definition at line 739 of file sequencer_drag_drop.cc.
References image_drop_preview_poll(), movie_drop_preview_poll(), sequencer_drop_copy(), sound_drop_preview_poll(), and WM_dropbox_add().
Referenced by sequencer_dropboxes().
Definition at line 635 of file sequencer_drag_drop.cc.
References generic_drop_draw_handling().
Referenced by sequencer_dropboxes_add_to_lb().
Definition at line 154 of file sequencer_drag_drop.cc.
References generic_poll_operations(), is_sound(), test_single_file_handler_poll(), TH_SEQ_AUDIO, wmDrag::type, and WM_DRAG_PATH.
Referenced by sequencer_dropboxes_add_to_lb().
Definition at line 727 of file sequencer_drag_drop.cc.
References FILE_TYPE_SOUND, ID_SO, wmDrag::type, WM_drag_get_path_file_type(), WM_drag_is_ID_type(), and WM_DRAG_PATH.
Referenced by sequencer_preview_dropboxes_add_to_lb().
Definition at line 588 of file sequencer_drag_drop.cc.
References SeqDropCoords::channel_len, CTX_data_scene(), CTX_wm_manager(), CTX_wm_window(), FPS, free_prefetch_data_fn(), g_drop_coords, get_drag_path(), MEM_mallocN, NC_WINDOW, DropJobData::only_audio, DropJobData::path, prefetch_data_fn(), DropJobData::scene_fps, SeqDropCoords::strip_len, WM_JOB_TYPE_SEQ_DRAG_DROP_PREVIEW, WM_jobs_callbacks(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_start(), and WM_jobs_timer().
Referenced by audio_prefetch(), and video_prefetch().
|
static |
Definition at line 84 of file sequencer_drag_drop.cc.
References blender::bke::file_handlers_poll_file_drop(), and WM_drag_get_paths().
Referenced by image_drop_poll(), movie_drop_poll(), and sound_drop_poll().
Definition at line 166 of file sequencer_drag_drop.cc.
References SeqDropCoords::channel, SeqDropCoords::channel_len, CTX_data_scene(), CTX_wm_region(), ED_transform_snap_sequencer_to_closest_strip_calc(), find_nearest_seq(), float, g_drop_coords, SeqDropCoords::is_intersecting, Sequence::machine, SeqDropCoords::playback_rate, SEQ_AUTO_PLAYBACK_RATE, SEQ_editing_ensure(), SEQ_transform_test_overlap(), Editing::seqbasep, SeqDropCoords::snap_point_x, SeqDropCoords::start_frame, SeqDropCoords::strip_len, UI_view2d_region_to_view(), and SeqDropCoords::use_snapping.
Referenced by draw_seq_in_view(), and sequencer_drop_copy().
Definition at line 614 of file sequencer_drag_drop.cc.
References is_movie(), and start_audio_video_job().
Referenced by sequencer_dropboxes_add_to_lb().
|
static |
Definition at line 70 of file sequencer_drag_drop.cc.
Referenced by draw_seq_in_view(), generic_drop_draw_handling(), generic_poll_operations(), prefetch_data_fn(), sequencer_drop_copy(), start_audio_video_job(), and update_overlay_strip_position_data().