|
Blender V4.3
|
#include <cmath>#include <cstring>#include "BLI_array.hh"#include "BLI_blenlib.h"#include "BLI_string_utils.hh"#include "BLI_task.hh"#include "BLI_threads.h"#include "BLI_utildefines.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_sound_types.h"#include "DNA_space_types.h"#include "DNA_userdef_types.h"#include "BKE_context.hh"#include "BKE_fcurve.hh"#include "BKE_global.hh"#include "BKE_sound.h"#include "ED_anim_api.hh"#include "ED_markers.hh"#include "ED_mask.hh"#include "ED_sequencer.hh"#include "ED_space_api.hh"#include "ED_time_scrub_ui.hh"#include "GPU_matrix.hh"#include "IMB_imbuf.hh"#include "RNA_prototypes.hh"#include "SEQ_channels.hh"#include "SEQ_connect.hh"#include "SEQ_effects.hh"#include "SEQ_prefetch.hh"#include "SEQ_relations.hh"#include "SEQ_render.hh"#include "SEQ_retiming.hh"#include "SEQ_select.hh"#include "SEQ_sequencer.hh"#include "SEQ_thumbnail_cache.hh"#include "SEQ_time.hh"#include "SEQ_transform.hh"#include "SEQ_utils.hh"#include "UI_interface_icons.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "WM_api.hh"#include "WM_types.hh"#include "BLF_api.hh"#include "MEM_guardedalloc.h"#include "sequencer_intern.hh"#include "sequencer_quads_batch.hh"#include "sequencer_strips_batch.hh"Go to the source code of this file.
Classes | |
| struct | CacheDrawData |
Variables | |
| constexpr int | MUTE_ALPHA = 120 |
| constexpr float | ICON_SIZE = 12.0f |
Definition at line 461 of file sequencer_timeline_draw.cc.
References round_fl_to_int().
Referenced by draw_seq_waveform_overlay().
|
static |
Definition at line 290 of file sequencer_timeline_draw.cc.
References ThemeStripColor::color, Sequence::color_tag, copy_v3_v3_uchar(), rgb_byte_set_hue_float_offset(), RGN_TYPE_WINDOW, Sequence::scene, SEQ_TYPE_ADD, SEQ_TYPE_ADJUSTMENT, SEQ_TYPE_ALPHAOVER, SEQ_TYPE_ALPHAUNDER, SEQ_TYPE_COLOR, SEQ_TYPE_COLORMIX, SEQ_TYPE_CROSS, SEQ_TYPE_GAMCROSS, SEQ_TYPE_GAUSSIAN_BLUR, SEQ_TYPE_GLOW, SEQ_TYPE_IMAGE, SEQ_TYPE_MASK, SEQ_TYPE_META, SEQ_TYPE_MOVIE, SEQ_TYPE_MOVIECLIP, SEQ_TYPE_MUL, SEQ_TYPE_MULTICAM, SEQ_TYPE_OVERDROP, SEQ_TYPE_SCENE, SEQ_TYPE_SOUND_RAM, SEQ_TYPE_SPEED, SEQ_TYPE_SUB, SEQ_TYPE_TEXT, SEQ_TYPE_TRANSFORM, SEQ_TYPE_WIPE, SEQUENCE_COLOR_NONE, SEQUENCE_COLOR_TOT, SPACE_SEQ, bTheme::strip_color, TH_SEQ_AUDIO, TH_SEQ_COLOR, TH_SEQ_EFFECT, TH_SEQ_IMAGE, TH_SEQ_MASK, TH_SEQ_META, TH_SEQ_MOVIE, TH_SEQ_MOVIECLIP, TH_SEQ_SCENE, TH_SEQ_TEXT, TH_SEQ_TRANSITION, Sequence::type, UI_GetColorPtrBlendShade3ubv(), UI_GetColorPtrShade3ubv(), UI_GetTheme(), UI_GetThemeColor3ubv(), UI_SetTheme(), UI_Theme_Restore(), and UI_Theme_Store().
Referenced by draw_strip_offsets(), draw_strips_background(), and drawmeta_contents().
|
static |
Definition at line 1764 of file sequencer_timeline_draw.cc.
References SeqQuadsBatch::add_quad(), SpaceSeq::cache_overlay, CTX_data_scene(), CTX_wm_space_seq(), View2D::cur, draw_cache_stripe(), SequencerCacheOverlay::flag, Sequence::machine, CacheDrawData::quads, blender::Vector< T, InlineBufferCapacity, Allocator >::remove_if(), SEQ_CACHE_SHOW_COMPOSITE, SEQ_CACHE_SHOW_FINAL_OUT, SEQ_CACHE_SHOW_PREPROCESSED, SEQ_CACHE_SHOW_RAW, SEQ_STRIP_OFSBOTTOM, SEQ_STRIP_OFSTOP, SEQ_TYPE_SOUND_RAM, sequencer_visible_strips_get(), CacheDrawData::stripe_ht, CacheDrawData::stripe_ofs_y, Sequence::type, UI_TIME_CACHE_MARGIN_Y, UI_TIME_SCRUB_MARGIN_Y, UI_view2d_fromcontext(), UI_view2d_scale_get_y(), USER_DEVELOPER_UI, and rctf::ymax.
Referenced by draw_cache_view().
|
static |
Definition at line 1750 of file sequencer_timeline_draw.cc.
References SEQ_time_left_handle_frame_get(), and SEQ_time_right_handle_frame_get().
Referenced by draw_cache_background().
|
static |
Definition at line 1818 of file sequencer_timeline_draw.cc.
References CacheDrawData::cache_flag, SpaceSeq::cache_overlay, CLAMP_MAX, CLAMP_MIN, CTX_data_scene(), CTX_wm_space_seq(), View2D::cur, draw_cache_background(), draw_cache_view_init_fn(), draw_cache_view_iter_fn(), SequencerCacheOverlay::flag, SpaceSeq::flag, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, CacheDrawData::quads, SEQ_cache_iterate(), SEQ_CACHE_SHOW, SEQ_SHOW_OVERLAY, CacheDrawData::stripe_ht, CacheDrawData::stripe_ofs_y, UI_SCALE_FAC, UI_view2d_fromcontext(), UI_view2d_region_to_view_y(), CacheDrawData::v2d, and rctf::ymin.
Referenced by draw_timeline_seq_display().
|
static |
Definition at line 1682 of file sequencer_timeline_draw.cc.
Referenced by draw_cache_view().
|
static |
Definition at line 1688 of file sequencer_timeline_draw.cc.
References SeqQuadsBatch::add_quad(), CacheDrawData::cache_flag, col, View2D::cur, Sequence::machine, CacheDrawData::quads, SEQ_CACHE_SHOW_COMPOSITE, SEQ_CACHE_SHOW_FINAL_OUT, SEQ_CACHE_SHOW_PREPROCESSED, SEQ_CACHE_SHOW_RAW, SEQ_CACHE_STORE_COMPOSITE, SEQ_CACHE_STORE_FINAL_OUT, SEQ_CACHE_STORE_PREPROCESSED, SEQ_CACHE_STORE_RAW, SEQ_STRIP_OFSBOTTOM, SEQ_STRIP_OFSTOP, CacheDrawData::stripe_ht, CacheDrawData::stripe_ofs_y, UI_TIME_CACHE_MARGIN_Y, UI_TIME_SCRUB_MARGIN_Y, UI_view2d_scale_get_y(), USER_DEVELOPER_UI, CacheDrawData::v2d, and rctf::ymax.
Referenced by draw_cache_view().
|
static |
Definition at line 729 of file sequencer_timeline_draw.cc.
References BLF_default(), BLF_set_default(), BLF_width(), StripDrawContext::bottom, col, ED_sequencer_handle_is_selected(), Sequence::flag, G, G_TRANSFORM_SEQ, StripDrawContext::handle_width, StripDrawContext::left_handle, TimelineDrawContext::pixelx, StripDrawContext::right_handle, SELECT, StripDrawContext::seq, SEQ_HANDLE_LEFT, SNPRINTF_RLEN, StripDrawContext::strip_is_too_small, StripDrawContext::strip_length, UI_view2d_text_cache_add(), and TimelineDrawContext::v2d.
Referenced by draw_seq_strips().
|
static |
Definition at line 912 of file sequencer_timeline_draw.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), TimelineDrawContext::C, View2D::cur, ICON_DEFAULT_HEIGHT, ICON_SIZE, TimelineDrawContext::pixelx, TimelineDrawContext::pixely, TimelineDrawContext::region, UI_icon_draw_ex(), UI_INV_SCALE_FAC, UI_NO_ICON_OVERLAY_TEXT, UI_SCALE_FAC, UI_view2d_view_ortho(), UI_view2d_view_restore(), TimelineDrawContext::v2d, wmOrtho2_region_pixelspace(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by draw_strip_icons().
|
static |
Definition at line 1194 of file sequencer_timeline_draw.cc.
References SeqQuadsBatch::add_quad(), View2D::cur, Sequence::flag, Sequence::multicam_source, TimelineDrawContext::quads, TimelineDrawContext::scene, SELECT, StripDrawContext::seq, SEQ_select_active_get(), SEQ_TYPE_MULTICAM, Sequence::type, TimelineDrawContext::v2d, rctf::xmax, and rctf::xmin.
Referenced by draw_seq_strips().
Definition at line 1853 of file sequencer_timeline_draw.cc.
References View2D::cur, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR, GPU_vertformat_attr_add(), GPU_viewport_size_get_f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniform1f(), immUniform1i(), immUniform2f(), immUniformThemeColor(), immVertex2f(), immVertexFormat(), pos, SEQ_EDIT_OVERLAY_FRAME_ABS, TH_CFRAME, rctf::ymax, and rctf::ymin.
Referenced by draw_timeline_seq_display().
|
static |
Definition at line 1515 of file sequencer_timeline_draw.cc.
References SeqQuadsBatch::draw(), GPU_matrix_pop_projection(), GPU_matrix_push_projection(), TimelineDrawContext::quads, TimelineDrawContext::region, sequencer_retiming_draw_continuity(), and wmOrtho2_region_pixelspace().
Referenced by draw_seq_strips().
|
static |
Draw f-curves as darkened regions of the strip:
Definition at line 1124 of file sequencer_timeline_draw.cc.
References SeqQuadsBatch::add_quad(), StripDrawContext::bottom, StripDrawContext::can_draw_strip_content, CLAMP, View2D::cur, StripDrawContext::curve, evaluate_fcurve(), SequencerTimelineOverlay::flag, SpaceSeq::flag, floor(), StripDrawContext::left_handle, max_ff(), max_ii(), min_ff(), TimelineDrawContext::pixelx, TimelineDrawContext::quads, StripDrawContext::right_handle, SEQ_SHOW_OVERLAY, SEQ_TIMELINE_SHOW_FCURVES, TimelineDrawContext::sseq, SpaceSeq::timeline_overlay, StripDrawContext::top, TimelineDrawContext::v2d, rctf::xmax, and rctf::xmin.
Referenced by draw_seq_strips().
|
static |
Definition at line 1579 of file sequencer_timeline_draw.cc.
References View2D::cur, draw_seq_strips(), TimelineDrawContext::ed, TimelineDrawContext::scene, blender::seq::thumbnail_cache_discard_requests_outside(), blender::seq::thumbnail_cache_maintain_capacity(), TimelineDrawContext::v2d, visible_strips_ordered_get(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
|
static |
Definition at line 1529 of file sequencer_timeline_draw.cc.
References blender::ed::seq::calc_strip_round_radius(), SeqQuadsBatch::draw(), draw_handle_transform_text(), draw_multicam_highlight(), draw_retiming_continuity_ranges(), draw_seq_fcurve_overlay(), draw_seq_text_overlay(), draw_seq_waveform_overlay(), draw_strip_icons(), draw_strip_offsets(), draw_strip_thumbnails(), draw_strips_background(), draw_strips_foreground(), drawmeta_contents(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), TimelineDrawContext::pixely, TimelineDrawContext::quads, TimelineDrawContext::region, SEQ_HANDLE_LEFT, SEQ_HANDLE_RIGHT, sequencer_retiming_keys_draw(), sequencer_retiming_speed_draw(), UI_view2d_text_cache_draw(), UI_view2d_view_ortho(), and TimelineDrawContext::v2d.
Referenced by draw_seq_strips(), and draw_timeline_seq().
|
static |
Definition at line 786 of file sequencer_timeline_draw.cc.
References Sequence::name, and SEQ_sequence_give_name().
Referenced by draw_seq_text_get_overlay_string().
|
static |
Definition at line 852 of file sequencer_timeline_draw.cc.
References ARRAY_SIZE, BLI_assert, BLI_string_join_array(), draw_seq_text_get_name(), draw_seq_text_get_source(), FILE_MAX, SequencerTimelineOverlay::flag, StripDrawContext::seq, SEQ_TIMELINE_SHOW_STRIP_DURATION, SEQ_TIMELINE_SHOW_STRIP_NAME, SEQ_TIMELINE_SHOW_STRIP_SOURCE, SNPRINTF, TimelineDrawContext::sseq, StripDrawContext::strip_length, and SpaceSeq::timeline_overlay.
Referenced by draw_seq_text_overlay().
|
static |
Definition at line 795 of file sequencer_timeline_draw.cc.
References BLI_path_join, BLI_snprintf(), BLI_strncpy(), Sequence::clip, Strip::dirpath, Sequence::effectdata, StripElem::filename, bSound::filepath, Mask::id, MovieClip::id, Object::id, Scene::id, Sequence::mask, Sequence::multicam_source, ID::name, Sequence::scene, Sequence::scene_camera, SEQ_TYPE_IMAGE, SEQ_TYPE_MASK, SEQ_TYPE_MOVIE, SEQ_TYPE_MOVIECLIP, SEQ_TYPE_MULTICAM, SEQ_TYPE_SCENE, SEQ_TYPE_SOUND_RAM, SEQ_TYPE_TEXT, Sequence::sound, Sequence::strip, Strip::stripdata, TextVars::text, and Sequence::type.
Referenced by draw_seq_text_get_overlay_string().
|
static |
Definition at line 1011 of file sequencer_timeline_draw.cc.
References StripDrawContext::bottom, StripDrawContext::can_draw_strip_content, StripDrawContext::can_draw_text_overlay, CLAMP, col, View2D::cur, draw_seq_text_get_overlay_string(), FILE_MAX, SpaceSeq::flag, get_strip_text_color(), StripDrawContext::handle_width, ICON_SIZE, StripDrawContext::is_connected, StripDrawContext::left_handle, max_ff(), min_ff(), StripDrawContext::missing_data_block, StripDrawContext::missing_media, TimelineDrawContext::pixelx, StripDrawContext::right_handle, SEQ_SHOW_OVERLAY, TimelineDrawContext::sseq, StripDrawContext::strip_content_top, StripDrawContext::strip_is_too_small, StripDrawContext::strip_length, StripDrawContext::top, UI_SCALE_FAC, UI_view2d_text_cache_add_rectf(), TimelineDrawContext::v2d, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by draw_seq_strips().
|
static |
Definition at line 1225 of file sequencer_timeline_draw.cc.
References View2D::cur, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformThemeColor(), immVertexFormat(), max_ii(), pos, TH_ROW_ALTERNATE, UI_view2d_view_ortho(), TimelineDrawContext::v2d, rctf::xmax, rctf::xmin, and rctf::ymin.
Referenced by draw_timeline_seq().
|
static |
Definition at line 466 of file sequencer_timeline_draw.cc.
References SeqQuadsBatch::add_line(), SeqQuadsBatch::add_quad(), align_frame_with_pixel(), Sequence::anim_startofs, BLI_rctf_size_x(), StripDrawContext::bottom, TimelineDrawContext::C, clamp_f(), CLAMP_MIN, View2D::cur, StripDrawContext::curve, SoundWaveform::data, evaltime, evaluate_fcurve(), SequencerTimelineOverlay::flag, FPS, StripDrawContext::left_handle, SoundWaveform::length, max_ff(), min_ff(), bSound::offset_time, TimelineDrawContext::pixelx, TimelineDrawContext::pixely, TimelineDrawContext::quads, TimelineDrawContext::region, StripDrawContext::right_handle, round_fl_to_int(), sample, TimelineDrawContext::scene, StripDrawContext::seq, seq_draw_waveforms_poll(), SEQ_give_frame_index(), SEQ_TIMELINE_WAVEFORMS_HALF, Sequence::sound, Sequence::sound_offset, SOUND_WAVE_SAMPLES_PER_SECOND, TimelineDrawContext::sseq, StripDrawContext::strip_content_top, StripDrawContext::strip_is_too_small, SpaceSeq::timeline_overlay, top, TimelineDrawContext::v2d, Sequence::volume, bSound::waveform, waveform_job_start_if_needed(), ARegion::winx, rctf::xmax, and rctf::xmin.
Referenced by draw_seq_strips().
|
static |
Definition at line 951 of file sequencer_timeline_draw.cc.
References col, View2D::cur, draw_icon_centered(), SpaceSeq::flag, get_strip_text_color(), ICON_SIZE, max_ff(), min_ff(), TimelineDrawContext::pixelx, SEQ_SHOW_OVERLAY, SEQ_TYPE_META, TimelineDrawContext::sseq, UI_SCALE_FAC, TimelineDrawContext::v2d, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by draw_seq_strips().
|
static |
Definition at line 1066 of file sequencer_timeline_draw.cc.
References SeqQuadsBatch::add_quad(), SeqQuadsBatch::add_wire_quad(), StripDrawContext::bottom, col, color3ubv_from_seq(), StripDrawContext::content_end, StripDrawContext::content_start, ED_sequencer_special_preview_get(), Sequence::flag, SequencerTimelineOverlay::flag, SpaceSeq::flag, StripDrawContext::is_muted, StripDrawContext::is_single_image, StripDrawContext::left_handle, MUTE_ALPHA, TimelineDrawContext::pixely, TimelineDrawContext::quads, StripDrawContext::right_handle, TimelineDrawContext::scene, SELECT, StripDrawContext::seq, SEQ_SHOW_OVERLAY, SEQ_STRIP_OFSBOTTOM, SEQ_TIMELINE_SHOW_STRIP_OFFSETS, StripDrawContext::show_strip_color_tag, TimelineDrawContext::sseq, SpaceSeq::timeline_overlay, StripDrawContext::top, and UI_GetColorPtrShade3ubv().
Referenced by draw_seq_strips().
|
static |
Definition at line 1285 of file sequencer_timeline_draw.cc.
References blender::ed::seq::StripsDrawBatch::add_strip(), col, SolidColorVars::col, color3ubv_from_seq(), blender::ed::seq::color_pack(), Sequence::effectdata, ELEM, SpaceSeq::flag, SeqStripDrawData::flags, blender::ed::seq::StripsDrawBatch::flush_batch(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_ALPHA_PREMULT, GPU_matrix_pop_projection(), GPU_matrix_push_projection(), GPU_SEQ_FLAG_BACKGROUND, GPU_SEQ_FLAG_COLOR_BAND, GPU_SEQ_FLAG_TRANSITION, MUTE_ALPHA, TimelineDrawContext::region, rgb_float_to_uchar(), TimelineDrawContext::scene, Sequence::seq1, Sequence::seq2, SEQ_SHOW_OVERLAY, SEQ_TYPE_COLOR, SEQ_TYPE_CROSS, SEQ_TYPE_GAMCROSS, SEQ_TYPE_WIPE, TimelineDrawContext::sseq, Sequence::type, UI_GetColorPtrBlendShade3ubv(), UI_GetColorPtrShade3ubv(), and wmOrtho2_region_pixelspace().
Referenced by draw_seq_strips().
|
static |
Definition at line 1484 of file sequencer_timeline_draw.cc.
References blender::ed::seq::StripsDrawBatch::add_strip(), SeqStripDrawData::flags, blender::ed::seq::StripsDrawBatch::flush_batch(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_ALPHA_PREMULT, GPU_matrix_pop_projection(), GPU_matrix_push_projection(), GPU_SEQ_FLAG_BORDER, TimelineDrawContext::region, strip_data_handle_flags_set(), strip_data_highlight_flags_set(), strip_data_lock_flags_set(), strip_data_missing_media_flags_set(), strip_data_outline_params_set(), and wmOrtho2_region_pixelspace().
Referenced by draw_seq_strips().
|
static |
Definition at line 1892 of file sequencer_timeline_draw.cc.
References TimelineDrawContext::C, RenderData::cfra, SpaceSeq::draw_flag, Scene::r, TimelineDrawContext::region, TimelineDrawContext::scene, SEQ_DRAW_BACKDROP, SEQ_VIEW_SEQUENCE, sequencer_draw_get_transform_preview(), sequencer_draw_get_transform_preview_frame(), sequencer_draw_preview(), TimelineDrawContext::sseq, UI_view2d_view_ortho(), TimelineDrawContext::v2d, and SpaceSeq::view.
Referenced by draw_timeline_seq().
|
static |
Definition at line 1918 of file sequencer_timeline_draw.cc.
References TimelineDrawContext::C, SpaceSeq::gizmo_flag, ARegion::gizmo_map, TimelineDrawContext::region, SEQ_GIZMO_HIDE, TimelineDrawContext::sseq, WM_gizmomap_draw(), and WM_GIZMOMAP_DRAWSTEP_2D.
Referenced by draw_timeline_seq().
|
static |
Definition at line 1878 of file sequencer_timeline_draw.cc.
References SequencerTimelineOverlay::flag, SpaceSeq::flag, TimelineDrawContext::scene, SEQ_DRAWFRAMES, SEQ_SHOW_OVERLAY, SEQ_TIMELINE_SHOW_GRID, TimelineDrawContext::sseq, SpaceSeq::timeline_overlay, UI_view2d_draw_lines_x__discrete_frames_or_seconds(), and TimelineDrawContext::v2d.
Referenced by draw_timeline_seq().
|
static |
Definition at line 1908 of file sequencer_timeline_draw.cc.
References TimelineDrawContext::C, DRAW_MARKERS_MARGIN, ED_markers_draw(), SpaceSeq::flag, TimelineDrawContext::region, SEQ_SHOW_MARKERS, TimelineDrawContext::sseq, UI_view2d_view_orthoSpecial(), and TimelineDrawContext::v2d.
Referenced by draw_timeline_seq().
|
static |
Definition at line 1936 of file sequencer_timeline_draw.cc.
References TimelineDrawContext::C, ED_region_draw_cb_draw(), TimelineDrawContext::framebuffer_overlay, GPU_framebuffer_bind(), GPU_framebuffer_bind_no_srgb(), TimelineDrawContext::region, and REGION_DRAW_POST_VIEW.
Referenced by draw_timeline_seq().
|
static |
Definition at line 1927 of file sequencer_timeline_draw.cc.
References TimelineDrawContext::C, ED_region_draw_cb_draw(), TimelineDrawContext::framebuffer_overlay, GPU_DEPTH_NONE, GPU_depth_test(), GPU_framebuffer_bind(), GPU_framebuffer_bind_no_srgb(), TimelineDrawContext::region, and REGION_DRAW_PRE_VIEW.
Referenced by draw_timeline_seq().
Definition at line 1943 of file sequencer_timeline_draw.cc.
References ANIM_draw_previewrange(), draw_seq_strips(), draw_seq_timeline_channels(), draw_timeline_backdrop(), draw_timeline_gizmos(), draw_timeline_grid(), draw_timeline_markers(), draw_timeline_post_view_callbacks(), draw_timeline_pre_view_callbacks(), draw_timeline_sfra_efra(), ED_time_scrub_draw(), SpaceSeq::flag, TimelineDrawContext::scene, SEQ_DRAWFRAMES, seq_prefetch_wm_notify(), TimelineDrawContext::sseq, TH_BACK, timeline_draw_context_get(), UI_ThemeClearColor(), UI_view2d_view_ortho(), and TimelineDrawContext::v2d.
Referenced by sequencer_main_region_draw().
Definition at line 1966 of file sequencer_timeline_draw.cc.
References CTX_data_scene(), CTX_wm_space_seq(), draw_cache_view(), draw_overlap_frame_indicator(), ED_time_scrub_clamp_scroller_mask(), ED_time_scrub_draw_current_frame(), SpaceSeq::flag, HEADERY, View2D::mask, SEQ_active_seqbase_get(), SEQ_DRAWFRAMES, SEQ_EDIT_OVERLAY_FRAME_SHOW, SEQ_editing_get(), SEQ_timeline_boundbox(), View2D::tot, UI_SCALE_FAC, UI_view2d_scrollers_draw(), UI_view2d_view_ortho(), and UI_view2d_view_restore().
Referenced by sequencer_main_region_draw_overlay().
|
static |
Definition at line 1601 of file sequencer_timeline_draw.cc.
References BLI_listbase_is_empty(), View2D::cur, MetaStack::disp_range, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_SHADER_2D_CHECKER, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniform1i(), immUniform4f(), immUniformThemeColorShade(), immUniformThemeColorShadeAlpha(), immVertex2f(), immVertexFormat(), ListBase::last, Editing::metastack, pos, TimelineDrawContext::scene, SEQ_editing_get(), TH_BACK, TimelineDrawContext::v2d, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by draw_timeline_seq().
|
static |
Definition at line 623 of file sequencer_timeline_draw.cc.
References SeqQuadsBatch::add_quad(), BLI_listbase_is_empty(), StripDrawContext::bottom, StripDrawContext::can_draw_strip_content, col, SolidColorVars::col, color3ubv_from_seq(), Sequence::flag, SpaceSeq::flag, StripDrawContext::is_muted, StripDrawContext::left_handle, LISTBASE_FOREACH, max_ff(), max_ii(), min_ff(), min_ii(), TimelineDrawContext::pixely, TimelineDrawContext::quads, rgb_float_to_uchar(), StripDrawContext::right_handle, TimelineDrawContext::scene, StripDrawContext::seq, SEQ_get_seqbase_from_sequence(), SEQ_MAX_CHANNELS, SEQ_render_is_muted(), SEQ_SCENE_STRIPS, SEQ_sequence_has_valid_data(), SEQ_SHOW_OVERLAY, SEQ_STRIP_OFSBOTTOM, SEQ_STRIP_OFSTOP, SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), SEQ_TYPE_COLOR, SEQ_TYPE_META, SEQ_TYPE_SCENE, StripDrawContext::show_strip_color_tag, TimelineDrawContext::sseq, Sequence::start, StripDrawContext::strip_content_top, and Sequence::type.
Referenced by draw_seq_strips().
|
static |
Definition at line 892 of file sequencer_timeline_draw.cc.
References Sequence::flag, StripDrawContext::is_active_strip, StripDrawContext::is_muted, StripDrawContext::missing_data_block, StripDrawContext::missing_media, SELECT, and StripDrawContext::seq.
Referenced by draw_seq_text_overlay(), and draw_strip_icons().
Definition at line 139 of file sequencer_timeline_draw.cc.
References Sequence::flag, SequencerTimelineOverlay::flag, SpaceSeq::flag, SEQ_AUDIO_DRAW_WAVEFORM, SEQ_SHOW_OVERLAY, SEQ_TIMELINE_ALL_WAVEFORMS, SEQ_TIMELINE_NO_WAVEFORMS, SEQ_TYPE_SOUND_RAM, Sequence::sound, SpaceSeq::timeline_overlay, and Sequence::type.
Referenced by draw_seq_waveform_overlay(), strip_draw_context_curve_get(), and strip_hides_text_overlay_first().
Definition at line 1218 of file sequencer_timeline_draw.cc.
References NC_SCENE, ND_SEQUENCER, SEQ_prefetch_need_redraw(), and WM_event_add_notifier().
Referenced by draw_timeline_seq().
Definition at line 773 of file sequencer_timeline_draw.cc.
References min_ff(), SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), and USER_SEQ_ED_SIMPLE_TWEAKING.
Referenced by find_nearest_seq(), sequencer_box_select_exec(), and strip_draw_context_get().
Definition at line 81 of file sequencer_timeline_draw.cc.
References CTX_data_scene(), sequencer_visible_strips_get(), and UI_view2d_fromcontext().
Referenced by draw_cache_background(), retiming_mouseover_key_get(), sequencer_retiming_box_select_exec(), sequencer_visible_strips_get(), and visible_strips_ordered_get().
Definition at line 86 of file sequencer_timeline_draw.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), View2D::cur, LISTBASE_FOREACH, max_ii(), min_ii(), SEQ_editing_get(), SEQ_time_content_end_frame_get(), SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), SEQ_time_start_frame_get(), Editing::seqbasep, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
|
static |
Definition at line 1452 of file sequencer_timeline_draw.cc.
References TimelineDrawContext::channels, ED_sequencer_can_select_handle(), ED_sequencer_handle_is_selected(), Sequence::flag, GPU_SEQ_FLAG_DRAW_LH, GPU_SEQ_FLAG_DRAW_RH, GPU_SEQ_FLAG_SELECTED_LH, GPU_SEQ_FLAG_SELECTED_RH, TimelineDrawContext::scene, SELECT, StripDrawContext::seq, SEQ_HANDLE_LEFT, SEQ_HANDLE_RIGHT, SEQ_transform_is_locked(), USER_SEQ_ED_SIMPLE_TWEAKING, and TimelineDrawContext::v2d.
Referenced by draw_strips_foreground().
|
static |
Definition at line 1435 of file sequencer_timeline_draw.cc.
References ED_sequencer_special_preview_get(), Sequence::flag, GPU_SEQ_FLAG_HIGHLIGHT, TimelineDrawContext::scene, SELECT, StripDrawContext::seq, Sequence::seq1, Sequence::seq2, and SEQ_select_active_get().
Referenced by draw_strips_foreground().
|
static |
Definition at line 1379 of file sequencer_timeline_draw.cc.
References TimelineDrawContext::channels, GPU_SEQ_FLAG_LOCKED, StripDrawContext::seq, and SEQ_transform_is_locked().
Referenced by draw_strips_foreground().
|
static |
Definition at line 1364 of file sequencer_timeline_draw.cc.
References GPU_SEQ_FLAG_MISSING_CONTENT, GPU_SEQ_FLAG_MISSING_TITLE, StripDrawContext::is_muted, StripDrawContext::missing_data_block, StripDrawContext::missing_media, StripDrawContext::seq, SEQ_TYPE_META, and Sequence::type.
Referenced by draw_strips_foreground().
|
static |
Definition at line 1388 of file sequencer_timeline_draw.cc.
References col, blender::ed::seq::color_pack(), Sequence::flag, G, G_TRANSFORM_SEQ, GPU_SEQ_FLAG_ACTIVE, GPU_SEQ_FLAG_OVERLAP, GPU_SEQ_FLAG_SELECTED, StripDrawContext::is_active_strip, TimelineDrawContext::scene, SELECT, StripDrawContext::seq, SEQ_OVERLAP, SEQ_OVERLAP_OVERWRITE, SEQ_tool_settings_overlap_mode_get(), TH_BACK, TH_SEQ_ACTIVE, TH_SEQ_SELECTED, UI_GetColorPtrShade3ubv(), UI_GetThemeColor3ubv(), and UI_GetThemeColorShade3ubv().
Referenced by draw_strips_foreground().
|
static |
Definition at line 269 of file sequencer_timeline_draw.cc.
References BKE_fcurve_is_empty(), StripDrawContext::can_draw_strip_content, StripDrawContext::curve, SequencerTimelineOverlay::flag, SpaceSeq::flag, Scene::id, id_data_find_fcurve(), TimelineDrawContext::scene, StripDrawContext::seq, seq_draw_waveforms_poll(), SEQ_SHOW_OVERLAY, SEQ_TIMELINE_SHOW_FCURVES, SEQ_TYPE_SOUND_RAM, TimelineDrawContext::sseq, StripDrawContext::strip_is_too_small, SpaceSeq::timeline_overlay, and Sequence::type.
|
static |
Definition at line 203 of file sequencer_timeline_draw.cc.
References StripDrawContext::bottom, StripDrawContext::can_draw_strip_content, StripDrawContext::can_draw_text_overlay, TimelineDrawContext::channels, StripDrawContext::content_end, StripDrawContext::content_start, StripDrawContext::curve, SequencerTimelineOverlay::flag, FPS, StripDrawContext::handle_width, StripDrawContext::is_active_strip, StripDrawContext::is_connected, StripDrawContext::is_muted, StripDrawContext::is_single_image, StripDrawContext::left_handle, LISTBASE_FOREACH, Sequence::machine, max_ff(), min_ff(), StripDrawContext::missing_data_block, StripDrawContext::missing_media, bSound::offset_time, TimelineDrawContext::pixelx, TimelineDrawContext::pixely, StripDrawContext::right_handle, TimelineDrawContext::scene, StripDrawContext::seq, SEQ_is_strip_connected(), SEQ_render_is_muted(), SEQ_select_active_get(), SEQ_sequence_has_valid_data(), SEQ_STRIP_OFSBOTTOM, SEQ_STRIP_OFSTOP, SEQ_time_content_end_frame_get(), SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), SEQ_time_start_frame_get(), SEQ_TIMELINE_SHOW_STRIP_COLOR_TAG, SEQ_transform_single_image_check(), SEQ_TYPE_META, SEQ_TYPE_SOUND_RAM, Sequence::seqbase, sequence_handle_size_get_clamped(), StripDrawContext::show_strip_color_tag, Sequence::sound, Sequence::sound_offset, TimelineDrawContext::sseq, StripDrawContext::strip_content_top, strip_draw_context_set_retiming_overlay_visibility(), strip_draw_context_set_strip_content_visibility(), strip_draw_context_set_text_overlay_visibility(), StripDrawContext::strip_is_too_small, StripDrawContext::strip_length, SpaceSeq::timeline_overlay, StripDrawContext::top, Sequence::type, and UI_SCALE_FAC.
Referenced by visible_strips_ordered_get().
|
static |
Definition at line 193 of file sequencer_timeline_draw.cc.
References StripDrawContext::bottom, StripDrawContext::can_draw_retiming_overlay, TimelineDrawContext::pixelx, TimelineDrawContext::pixely, retiming_keys_can_be_displayed(), TimelineDrawContext::sseq, StripDrawContext::strip_length, StripDrawContext::top, and UI_SCALE_FAC.
Referenced by strip_draw_context_get().
|
static |
Definition at line 181 of file sequencer_timeline_draw.cc.
References StripDrawContext::bottom, StripDrawContext::can_draw_strip_content, TimelineDrawContext::pixely, strip_hides_text_overlay_first(), StripDrawContext::top, and UI_SCALE_FAC.
Referenced by strip_draw_context_get().
|
static |
Definition at line 164 of file sequencer_timeline_draw.cc.
References StripDrawContext::bottom, StripDrawContext::can_draw_text_overlay, SequencerTimelineOverlay::flag, TimelineDrawContext::pixely, SEQ_TIMELINE_SHOW_STRIP_DURATION, SEQ_TIMELINE_SHOW_STRIP_NAME, SEQ_TIMELINE_SHOW_STRIP_SOURCE, TimelineDrawContext::sseq, strip_hides_text_overlay_first(), SpaceSeq::timeline_overlay, StripDrawContext::top, and UI_SCALE_FAC.
Referenced by strip_draw_context_get().
|
static |
Definition at line 157 of file sequencer_timeline_draw.cc.
References StripDrawContext::seq, seq_draw_waveforms_poll(), SEQ_TYPE_COLOR, TimelineDrawContext::sseq, and Sequence::type.
Referenced by strip_draw_context_set_strip_content_visibility(), and strip_draw_context_set_text_overlay_visibility().
|
static |
Definition at line 113 of file sequencer_timeline_draw.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), C, TimelineDrawContext::C, TimelineDrawContext::channels, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_seq(), View2D::cur, TimelineDrawContext::ed, TimelineDrawContext::framebuffer_overlay, GPU_viewport_framebuffer_overlay_get(), View2D::mask, TimelineDrawContext::pixelx, TimelineDrawContext::pixely, TimelineDrawContext::quads, TimelineDrawContext::region, TimelineDrawContext::retiming_selection, TimelineDrawContext::scene, SEQ_channels_displayed_get(), SEQ_editing_get(), SEQ_retiming_selection_get(), TimelineDrawContext::sseq, UI_view2d_fromcontext(), TimelineDrawContext::v2d, TimelineDrawContext::viewport, and WM_draw_region_get_viewport().
Referenced by draw_timeline_seq().
|
static |
Definition at line 1251 of file sequencer_timeline_draw.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), TimelineDrawContext::C, blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), blender::threading::parallel_for(), blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), SEQ_OVERLAP, sequencer_visible_strips_get(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and strip_draw_context_get().
Referenced by draw_seq_strips().
Definition at line 441 of file sequencer_timeline_draw.cc.
References BLI_spin_lock(), BLI_spin_unlock(), sequencer_preview_add_sound(), Sequence::sound, SOUND_TAGS_WAVEFORM_LOADING, bSound::spinlock, bSound::tags, and bSound::waveform.
Referenced by draw_seq_waveform_overlay().
|
constexpr |
Definition at line 79 of file sequencer_timeline_draw.cc.
Referenced by draw_icon_centered(), draw_seq_text_overlay(), and draw_strip_icons().
|
constexpr |
Definition at line 77 of file sequencer_timeline_draw.cc.
Referenced by draw_strip_offsets(), and draw_strips_background().