[Bf-blender-cvs] [9cb616d8aa4] soc-2021-vse-strip-thumbnails: VSE strip thumbnails

Aditya Y Jeppu noreply at git.blender.org
Mon Aug 30 13:54:34 CEST 2021


Commit: 9cb616d8aa490e8e6d78525a5c04188d989778b2
Author: Aditya Y Jeppu
Date:   Thu Aug 19 14:56:47 2021 +0530
Branches: soc-2021-vse-strip-thumbnails
https://developer.blender.org/rB9cb616d8aa490e8e6d78525a5c04188d989778b2

VSE strip thumbnails

The goal is to provide thumbnails in the rectangle coloured strips. Works for
movie clips and image sequences. The thumbnails are loaded from source
using separate thread and stores them in cache. The drawing is called inside the
drawing for each strip, and takes images from cache. Drawing is below the
handles from one end of strip to other, inside view only. The job for caching
is called when images are not available, or there is view change.

All strip operations are valid, and overlap of strip adds transparency to the
image. Images are shown only when strip size is wide enough for clear
visibility of images, and the thumbnails represent source footage clearly.

Cache is limited to 5000 thumbnails and performs cleanup of non visible images
when limit crossed.

Related Task : T89143

Differential Revision: https://developer.blender.org/D12266

===================================================================

M	source/blender/sequencer/intern/render.c

===================================================================

diff --git a/source/blender/sequencer/intern/render.c b/source/blender/sequencer/intern/render.c
index a3222607845..b0eac569aa1 100644
--- a/source/blender/sequencer/intern/render.c
+++ b/source/blender/sequencer/intern/render.c
@@ -2107,7 +2107,7 @@ void SEQ_render_thumbnails(SeqRenderData *context,
 
   start_frame = start_frame - 5 * frame_step;
   float upper_limit = (seq->endstill) ? (seq->start + seq->len) : seq->enddisp;
-  upper_limit = (upper_limit > view_area->xmax) ? view_area->xmax + 3 * frame_step : upper_limit;
+  upper_limit = (upper_limit > view_area->xmax) ? view_area->xmax + 5 * frame_step : upper_limit;
 
   while ((start_frame < upper_limit) & !*stop) {
     ibuf = seq_cache_get(context, seq_orig, roundf(start_frame), SEQ_CACHE_STORE_THUMBNAIL);



More information about the Bf-blender-cvs mailing list