Blender
V3.3
|
#include "BLI_blenlib.h"
#include "BLI_ghash.h"
#include "BLI_math.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_scene.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "ED_screen.h"
#include "BIF_glutil.h"
#include "SEQ_relations.h"
#include "SEQ_render.h"
#include "SEQ_sequencer.h"
#include "SEQ_time.h"
#include "WM_api.h"
#include "WM_types.h"
#include "MEM_guardedalloc.h"
#include "sequencer_intern.h"
Go to the source code of this file.
Classes | |
struct | ThumbnailDrawJob |
struct | ThumbDataItem |
Typedefs | |
typedef struct ThumbnailDrawJob | ThumbnailDrawJob |
typedef struct ThumbDataItem | ThumbDataItem |
typedef struct ThumbDataItem ThumbDataItem |
typedef struct ThumbnailDrawJob ThumbnailDrawJob |
|
static |
Definition at line 72 of file sequencer_thumbnails.c.
References ELEM, Sequence::flag, G, G_TRANSFORM_SEQ, Sequence::len, Sequence::machine, max_ii(), min_ii(), scene, SEQ_LEFTSEL, SEQ_RIGHTSEL, SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), SEQ_TYPE_IMAGE, SEQ_TYPE_MOVIE, Sequence::start, Sequence::type, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by sequencer_thumbnail_ghash_init(), and thumbnail_start_job().
void draw_seq_strip_thumbnail | ( | View2D * | v2d, |
const bContext * | C, | ||
Scene * | scene, | ||
Sequence * | seq, | ||
float | y1, | ||
float | y2, | ||
float | pixelx, | ||
float | pixely | ||
) |
Definition at line 422 of file sequencer_thumbnails.c.
References BLI_gset_add(), BLI_rcti_init(), C, ImBuf::channels, blender::compositor::context, View2D::cur, Scene::ed, ED_draw_imbuf_ctx_clipping(), Sequence::flag, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, IMB_freeImBuf(), IN_RANGE_INCL, last_displayed_thumbnails_list_cleanup(), last_displayed_thumbnails_list_ensure(), Sequence::len, StripElem::orig_height, StripElem::orig_width, OVERLAP_ALPHA, POINTER_FROM_INT, ImBuf::rect, ImBuf::rect_float, scene, SEQ_FLAG_SKIP_THUMBNAILS, seq_get_thumb_image_dimensions(), SEQ_get_thumbnail(), SEQ_OVERLAP, SEQ_render_thumbnail_first_frame_get(), SEQ_render_thumbnail_next_frame_get(), SEQ_time_has_right_still_frames(), SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), SEQ_TYPE_IMAGE, sequencer_thumbnail_closest_from_memory(), sequencer_thumbnail_context_init(), sequencer_thumbnail_start_job_if_necessary(), sequencer_thumbnail_v2d_is_navigating(), Sequence::start, Sequence::strip, Strip::stripdata, Sequence::type, ImBuf::x, rctf::xmax, ImBuf::y, and y1.
|
static |
Definition at line 329 of file sequencer_thumbnails.c.
References BLI_gset_remove(), BLI_gsetIterator_done(), BLI_gsetIterator_getKey(), BLI_gsetIterator_init(), BLI_gsetIterator_step(), float(), NULL, POINTER_AS_INT, and POINTER_FROM_INT.
Referenced by draw_seq_strip_thumbnail().
Definition at line 313 of file sequencer_thumbnails.c.
References BLI_ghash_insert(), BLI_ghash_lookup(), BLI_ghash_ptr_new(), BLI_gset_int_new(), C, CTX_wm_space_seq(), SpaceSeqRuntime::last_displayed_thumbnails, NULL, and SpaceSeq::runtime.
Referenced by draw_seq_strip_thumbnail().
Definition at line 308 of file sequencer_thumbnails.c.
References BLI_gset_free(), and NULL.
Referenced by sequencer_free().
|
static |
Definition at line 99 of file sequencer_thumbnails.c.
References float(), StripElem::orig_height, StripElem::orig_width, round_fl_to_int(), SEQ_RENDER_THUMB_SIZE, Sequence::strip, and Strip::stripdata.
Referenced by draw_seq_strip_thumbnail(), and thumbnail_start_job().
|
static |
Definition at line 383 of file sequencer_thumbnails.c.
References blender::math::abs(), blender::compositor::context, IMB_freeImBuf(), NULL, SEQ_get_thumbnail(), sequencer_thumbnail_closest_guaranteed_frame_get(), and sequencer_thumbnail_closest_previous_frame_get().
Referenced by draw_seq_strip_thumbnail().
|
static |
Definition at line 366 of file sequencer_thumbnails.c.
References round_fl_to_int(), scene, SEQ_render_thumbnails_guaranteed_set_frame_step_get(), and SEQ_time_left_handle_frame_get().
Referenced by sequencer_thumbnail_closest_from_memory().
|
static |
Definition at line 345 of file sequencer_thumbnails.c.
References blender::math::abs(), BLI_gsetIterator_done(), BLI_gsetIterator_getKey(), BLI_gsetIterator_init(), BLI_gsetIterator_step(), KDL::diff(), and POINTER_AS_INT.
Referenced by sequencer_thumbnail_closest_from_memory().
|
static |
Definition at line 176 of file sequencer_thumbnails.c.
References BKE_scene_multiview_view_id_get(), C, blender::compositor::context, CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), CTX_wm_space_seq(), depsgraph, Scene::r, SpaceSeq::render_size, scene, SEQ_render_new_render_data(), and STEREO_LEFT_NAME.
Referenced by draw_seq_strip_thumbnail(), and sequencer_thumbnail_init_job().
|
static |
Definition at line 193 of file sequencer_thumbnails.c.
References BLI_ghash_insert(), BLI_ghash_lookup(), BLI_ghash_ptr_new(), C, check_seq_need_thumbnails(), CTX_data_scene(), View2D::cur, LISTBASE_FOREACH, MEM_callocN, NULL, scene, ThumbDataItem::scene, ThumbDataItem::seq_dupli, SEQ_sequence_dupli_recursive(), SEQ_time_left_handle_frame_get(), Editing::seqbasep, Sequence::start, and Sequence::startdisp.
Referenced by sequencer_thumbnail_init_job().
|
static |
Definition at line 219 of file sequencer_thumbnails.c.
References blender::compositor::area(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), C, ThumbnailDrawJob::context, CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_window(), View2D::cur, ED_area_tag_redraw(), G, View2D::mask, MEM_callocN, NC_SCENE, ND_SEQUENCER, NULL, ThumbnailDrawJob::pixelx, ThumbnailDrawJob::pixely, ThumbnailDrawJob::scene, sequencer_thumbnail_context_init(), sequencer_thumbnail_ghash_init(), ThumbnailDrawJob::sequences_ghash, ThumbnailDrawJob::thumb_height, thumbnail_endjob(), thumbnail_freejob(), thumbnail_start_job(), ThumbnailDrawJob::view_area, WM_event_add_notifier(), WM_JOB_TYPE_SEQ_DRAW_THUMBNAIL, WM_jobs_callbacks(), WM_jobs_customdata_get(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_is_running(), WM_jobs_start(), WM_jobs_timer(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by sequencer_thumbnail_start_job_if_necessary().
|
static |
Definition at line 276 of file sequencer_thumbnails.c.
References C, CTX_wm_manager(), CTX_wm_space_seq(), View2D::cur, G, SpaceSeqRuntime::last_thumbnail_area, NC_SCENE, ND_SEQUENCER, NULL, SpaceSeq::runtime, sequencer_thumbnail_init_job(), sequencer_thumbnail_v2d_is_navigating(), thumbnail_start_job(), WM_event_add_notifier(), WM_jobs_stop(), rctf::xmax, and rctf::ymax.
Referenced by draw_seq_strip_thumbnail().
Definition at line 269 of file sequencer_thumbnails.c.
References C, CTX_wm_region(), View2D::flag, ARegion::v2d, and V2D_IS_NAVIGATING.
Referenced by draw_seq_strip_thumbnail(), and sequencer_thumbnail_start_job_if_necessary().
Definition at line 66 of file sequencer_thumbnails.c.
References data, NC_SCENE, ND_SEQUENCER, ThumbnailDrawJob::scene, and WM_main_add_notifier().
Referenced by sequencer_thumbnail_init_job().
Definition at line 58 of file sequencer_thumbnails.c.
References BLI_ghash_free(), data, MEM_freeN, NULL, ThumbnailDrawJob::sequences_ghash, thumbnail_hash_data_free(), and ThumbnailDrawJob::view_area.
Referenced by sequencer_thumbnail_init_job().
Definition at line 51 of file sequencer_thumbnails.c.
References MEM_freeN, ThumbDataItem::scene, ThumbDataItem::seq_dupli, and SEQ_sequence_free().
Referenced by thumbnail_freejob().
|
static |
Definition at line 133 of file sequencer_thumbnails.c.
References BLI_ghash_lookup(), BLI_ghashIterator_done(), BLI_ghashIterator_getKey(), BLI_ghashIterator_init(), BLI_ghashIterator_step(), check_seq_need_thumbnails(), ThumbnailDrawJob::context, data, NULL, ThumbnailDrawJob::pixelx, ThumbnailDrawJob::pixely, scene, ThumbnailDrawJob::scene, ThumbDataItem::seq_dupli, seq_get_thumb_image_dimensions(), SEQ_relations_sequence_free_anim(), SEQ_render_thumbnails(), SEQ_render_thumbnails_base_set(), ThumbnailDrawJob::sequences_ghash, ThumbnailDrawJob::thumb_height, and ThumbnailDrawJob::view_area.
Referenced by sequencer_thumbnail_init_job(), and sequencer_thumbnail_start_job_if_necessary().