Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_thumbnails.c
| Show All 17 Lines | |||||
| #include "ED_screen.h" | #include "ED_screen.h" | ||||
| #include "BIF_glutil.h" | #include "BIF_glutil.h" | ||||
| #include "SEQ_relations.h" | #include "SEQ_relations.h" | ||||
| #include "SEQ_render.h" | #include "SEQ_render.h" | ||||
| #include "SEQ_sequencer.h" | #include "SEQ_sequencer.h" | ||||
| #include "SEQ_time.h" | |||||
| #include "WM_api.h" | #include "WM_api.h" | ||||
| #include "WM_types.h" | #include "WM_types.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| /* Own include. */ | /* Own include. */ | ||||
| #include "sequencer_intern.h" | #include "sequencer_intern.h" | ||||
| ▲ Show 20 Lines • Show All 404 Lines • ▼ Show 20 Lines | void draw_seq_strip_thumbnail(View2D *v2d, | ||||
| const float thumb_height = y2 - y1; | const float thumb_height = y2 - y1; | ||||
| seq_get_thumb_image_dimensions( | seq_get_thumb_image_dimensions( | ||||
| seq, pixelx, pixely, &thumb_width, thumb_height, &image_width, &image_height); | seq, pixelx, pixely, &thumb_width, thumb_height, &image_width, &image_height); | ||||
| float thumb_y_end = y1 + thumb_height; | float thumb_y_end = y1 + thumb_height; | ||||
| float cut_off = 0; | float cut_off = 0; | ||||
| float upper_thumb_bound = (seq->endstill) ? (seq->start + seq->len) : seq->enddisp; | float upper_thumb_bound = SEQ_time_has_right_still_frames(seq) ? (seq->start + seq->len) : | ||||
| seq->enddisp; | |||||
| if (seq->type == SEQ_TYPE_IMAGE) { | if (seq->type == SEQ_TYPE_IMAGE) { | ||||
| upper_thumb_bound = seq->enddisp; | upper_thumb_bound = seq->enddisp; | ||||
| } | } | ||||
| float timeline_frame = SEQ_render_thumbnail_first_frame_get(seq, thumb_width, &v2d->cur); | float timeline_frame = SEQ_render_thumbnail_first_frame_get(seq, thumb_width, &v2d->cur); | ||||
| float thumb_x_end; | float thumb_x_end; | ||||
| GSet *last_displayed_thumbnails = last_displayed_thumbnails_list_ensure(C, seq); | GSet *last_displayed_thumbnails = last_displayed_thumbnails_list_ensure(C, seq); | ||||
| ▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines | |||||