Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "DNA_scene_types.h"
#include "DNA_sound_types.h"
#include "BLI_blenlib.h"
#include "BLI_string_utils.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_main.h"
#include "SEQ_channels.h"
#include "SEQ_iterator.h"
#include "SEQ_sequencer.h"
#include "SEQ_transform.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "GPU_immediate.h"
#include "GPU_matrix.h"
#include "ED_screen.h"
#include "ED_transform.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "WM_api.h"
#include "WM_types.h"
#include "sequencer_intern.h"
Go to the source code of this file.
Classes | |
struct | SeqDropCoords |
struct | DropJobData |
Typedefs | |
typedef struct SeqDropCoords | SeqDropCoords |
typedef struct DropJobData | DropJobData |
Variables | |
static SeqDropCoords | g_drop_coords = {.in_use = false, .has_read_mouse_pos = false} |
typedef struct DropJobData DropJobData |
typedef struct SeqDropCoords SeqDropCoords |
Definition at line 598 of file sequencer_drag_drop.c.
References C, is_sound(), and start_audio_video_job().
Referenced by sequencer_dropboxes_add_to_lb().
|
static |
Definition at line 335 of file sequencer_drag_drop.c.
References ARRAY_SIZE, BKE_main_blendfile_path(), BLI_assert, BLI_path_rel(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), BLI_split_file_part(), BLI_string_join_array(), C, SeqDropCoords::channel, SeqDropCoords::channel_len, CTX_data_main(), CTX_wm_region(), CTX_wm_space_seq(), View2D::cur, ED_draw_sequencer_snap_point(), FILE_MAX, SequencerTimelineOverlay::flag, floorf, g_drop_coords, get_drag_path(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_line_width(), GPU_matrix_pop(), GPU_matrix_push(), GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), if(), immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor3fvAlpha(), immVertexFormat(), SeqDropCoords::in_use, SeqDropCoords::is_intersecting, View2D::mask, min_ff(), pos, 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_GetThemeColor3fv(), UI_SetTheme(), UI_Theme_Restore(), UI_Theme_Store(), UI_view2d_text_cache_add_rectf(), UI_view2d_text_cache_draw(), UI_view2d_view_ortho(), update_overlay_strip_position_data(), SeqDropCoords::use_snapping, ARegion::v2d, ARegion::winrct, x2, rcti::xmin, rctf::xmin, xy, y1, and rcti::ymin.
Referenced by sequencer_dropboxes_add_to_lb().
Definition at line 559 of file sequencer_drag_drop.c.
References MEM_freeN.
Referenced by start_audio_video_job().
Definition at line 488 of file sequencer_drag_drop.c.
References wmDropBox::draw_data, g_drop_coords, and SeqDropCoords::in_use.
Referenced by image_drop_draw_activate(), movie_drop_draw_activate(), and sound_drop_draw_activate().
Definition at line 70 of file sequencer_drag_drop.c.
References g_drop_coords, KM_CTRL, SeqDropCoords::type, type, and SeqDropCoords::use_snapping.
Referenced by image_drop_poll(), movie_drop_poll(), and sound_drop_poll().
Definition at line 310 of file sequencer_drag_drop.c.
References BKE_main_blendfile_path_from_global(), BLI_path_abs(), BLI_strncpy(), FILE_MAX, Image::filepath, MovieClip::filepath, bSound::filepath, GS, id, ID_IM, ID_MC, ID_SO, ID::name, NULL, wmDrag::path, and WM_drag_get_local_ID_or_import_from_asset().
Referenced by draw_seq_in_view(), and start_audio_video_job().
Definition at line 619 of file sequencer_drag_drop.c.
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 78 of file sequencer_drag_drop.c.
References ELEM, generic_poll_operations(), wmDrag::icon, ID_IM, TH_SEQ_IMAGE, wmDrag::type, WM_drag_is_ID_type(), and WM_DRAG_PATH.
Referenced by sequencer_dropboxes_add_to_lb().
|
static |
Definition at line 680 of file sequencer_drag_drop.c.
References ELEM, wmDrag::icon, ID_IM, wmDrag::type, WM_drag_is_ID_type(), and WM_DRAG_PATH.
Referenced by sequencer_preview_dropboxes_add_to_lb().
Definition at line 95 of file sequencer_drag_drop.c.
References ELEM, wmDrag::icon, ID_MC, wmDrag::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().
Definition at line 118 of file sequencer_drag_drop.c.
References ELEM, wmDrag::icon, ID_SO, wmDrag::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 605 of file sequencer_drag_drop.c.
References generic_drop_draw_handling().
Referenced by sequencer_dropboxes_add_to_lb().
Definition at line 108 of file sequencer_drag_drop.c.
References generic_poll_operations(), is_movie(), and TH_SEQ_MOVIE.
Referenced by sequencer_dropboxes_add_to_lb().
|
static |
Definition at line 693 of file sequencer_drag_drop.c.
References ELEM, wmDrag::icon, ID_MC, wmDrag::type, WM_drag_is_ID_type(), and WM_DRAG_PATH.
Referenced by sequencer_preview_dropboxes_add_to_lb().
|
static |
Definition at line 640 of file sequencer_drag_drop.c.
Referenced by sequencer_dropboxes_add_to_lb().
|
static |
Definition at line 507 of file sequencer_drag_drop.c.
References SeqDropCoords::channel_len, anim::colorspace, float(), anim::frs_sec, anim::frs_sec_base, g_drop_coords, IB_rect, IMB_anim_get_duration(), IMB_anim_get_fps(), IMB_free_anim(), IMB_TC_NONE, max_ii(), NULL, 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 217 of file sequencer_drag_drop.c.
References BLI_split_dirfile(), C, RenderData::cfra, SeqDropCoords::channel, channels(), SpaceSeq::chanshown, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_seq(), CTX_wm_window(), wmWindow::eventstate, file, FILE_MAX, Image::filepath, MovieClip::filepath, bSound::filepath, g_drop_coords, GS, SeqDropCoords::has_read_mouse_pos, id, ID_IM, ID_MC, ID_SO, SeqDropCoords::in_use, Sequence::machine, max_ii(), ID::name, NULL, wmDrag::path, wmDropBox::ptr, Scene::r, RNA_boolean_set(), RNA_collection_add(), RNA_collection_clear(), RNA_int_set(), RNA_string_set(), RNA_struct_find_property(), RNA_struct_property_unset(), scene, SEQ_active_seqbase_get(), SEQ_channels_displayed_get(), SEQ_collection_free(), SEQ_editing_get(), SEQ_ITERATOR_FOREACH, SEQ_query_rendered_strips(), SeqDropCoords::start_frame, update_overlay_strip_position_data(), ARegion::winrct, WM_drag_get_local_ID_or_import_from_asset(), rcti::xmin, xy, wmEvent::xy, and rcti::ymin.
Referenced by sequencer_dropboxes_add_to_lb(), and sequencer_preview_dropboxes_add_to_lb().
Definition at line 630 of file sequencer_drag_drop.c.
References wmDropBox::draw_data, SeqDropCoords::has_read_mouse_pos, SeqDropCoords::in_use, and NULL.
Referenced by sequencer_dropboxes_add_to_lb().
Definition at line 743 of file sequencer_drag_drop.c.
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().
Definition at line 651 of file sequencer_drag_drop.c.
References audio_prefetch(), wmDropBox::draw_activate, wmDropBox::draw_deactivate, wmDropBox::draw_droptip, wmDropBox::draw_in_view, draw_seq_in_view(), image_drop_draw_activate(), image_drop_poll(), movie_drop_draw_activate(), movie_drop_poll(), nop_draw_droptip_fn(), NULL, wmDropBox::on_drag_start, sequencer_drop_copy(), sequencer_drop_draw_deactivate(), sound_drop_draw_activate(), sound_drop_poll(), video_prefetch(), and WM_dropbox_add().
Referenced by sequencer_dropboxes().
Definition at line 719 of file sequencer_drag_drop.c.
References image_drop_preview_poll(), movie_drop_preview_poll(), NULL, sequencer_drop_copy(), sound_drop_preview_poll(), and WM_dropbox_add().
Referenced by sequencer_dropboxes().
Definition at line 612 of file sequencer_drag_drop.c.
References generic_drop_draw_handling().
Referenced by sequencer_dropboxes_add_to_lb().
Definition at line 131 of file sequencer_drag_drop.c.
References generic_poll_operations(), is_sound(), and TH_SEQ_AUDIO.
Referenced by sequencer_dropboxes_add_to_lb().
|
static |
Definition at line 706 of file sequencer_drag_drop.c.
References ELEM, wmDrag::icon, ID_SO, wmDrag::type, WM_drag_is_ID_type(), and WM_DRAG_PATH.
Referenced by sequencer_preview_dropboxes_add_to_lb().
Definition at line 565 of file sequencer_drag_drop.c.
References C, 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, NULL, DropJobData::only_audio, DropJobData::path, prefetch_data_fn(), scene, 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().
Definition at line 141 of file sequencer_drag_drop.c.
References C, SeqDropCoords::channel, SeqDropCoords::channel_len, CTX_data_scene(), CTX_wm_region(), ED_transform_snap_sequencer_to_closest_strip_calc(), find_nearest_seq(), float(), RenderData::frs_sec, RenderData::frs_sec_base, g_drop_coords, SeqDropCoords::is_intersecting, Sequence::machine, SeqDropCoords::playback_rate, Scene::r, scene, 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(), SeqDropCoords::use_snapping, and ARegion::v2d.
Referenced by draw_seq_in_view(), and sequencer_drop_copy().
Definition at line 591 of file sequencer_drag_drop.c.
References C, is_movie(), and start_audio_video_job().
Referenced by sequencer_dropboxes_add_to_lb().
|
static |
Definition at line 68 of file sequencer_drag_drop.c.
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().