55 ot->
name =
"Sample Color";
56 ot->
idname =
"SEQUENCER_OT_sample";
57 ot->
description =
"Use mouse to sample color in current frame";
100 float pad_top, pad_bottom;
134 ot->
name =
"Frame All";
135 ot->
idname =
"SEQUENCER_OT_view_all";
136 ot->
description =
"View all the strips in the sequencer";
163 ot->
name =
"Go to Current Frame";
164 ot->
idname =
"SEQUENCER_OT_view_frame";
165 ot->
description =
"Move the view to the current frame";
186 const float region_aspect = region_w / region_h;
191 const float half_w = circle_radius * std::max(region_aspect, 1.0f);
192 const float half_h = circle_radius * std::max(1.0f / region_aspect, 1.0f);
193 BLI_rctf_init(&v2d_rect, cx - half_w, cx + half_w, cy - half_h, cy + half_h);
206 v2d_rect.
xmin -= pad_x;
207 v2d_rect.
xmax += pad_x;
208 v2d_rect.
ymin -= pad_y;
209 v2d_rect.
ymax += pad_y;
220 const bool use_max_nits)
238 float max_nits_scale = 1.0f;
251 cur_new.
xmax *= max_nits_scale;
254 cur_new.
ymax *= max_nits_scale;
291 int width, height, imgwidth, imgheight;
293 width = region->
winx;
294 height = region->
winy;
296 seq_reset_imageofs(sseq);
301 imgwidth = int(imgwidth * (scene->
r.
xasp / scene->
r.
yasp));
303 if (((imgwidth >= width) || (imgheight >= height)) && ((width > 0) && (height > 0))) {
307 sseq->
zoom = (zoomX < zoomY) ? zoomX : zoomY;
325 ot->
name =
"Frame All";
326 ot->
idname =
"SEQUENCER_OT_view_all_preview";
327 ot->
description =
"Zoom preview to fit in the area";
369 ot->
name =
"Sequencer View Zoom Ratio";
370 ot->
idname =
"SEQUENCER_OT_view_zoom_ratio";
371 ot->
description =
"Change zoom ratio of sequencer preview";
384 "Zoom ratio, 1.0 is 1:1, higher is zoomed in, lower is zoomed out",
407 if (minsize < 1.0f) {
422 int xmargin = scene->frames_per_second();
424 for (
Strip *strip : strips) {
425 xmin =
min_ii(xmin, strip->left_handle());
426 xmax =
max_ii(xmax, strip->right_handle(scene));
428 ymin =
min_ii(ymin, strip->channel);
430 ymax =
max_ii(ymax, strip->channel + 1);
439 new_viewport.
xmin = xmin;
440 new_viewport.
xmax = xmax;
442 new_viewport.
ymin = ymin;
443 new_viewport.
ymax = ymax;
454 float timeline_ymin = box.
ymin;
455 float timeline_ymax = box.
ymax;
457 if (orig_height > timeline_ymax - timeline_ymin) {
467 new_viewport.
ymin = ymid - (orig_height / 2.0f);
468 new_viewport.
ymax = ymid + (orig_height / 2.0f);
470 if (new_viewport.
ymin < timeline_ymin) {
471 new_viewport.
ymin = timeline_ymin;
472 new_viewport.
ymax = new_viewport.
ymin + orig_height;
474 else if (new_viewport.
ymax > timeline_ymax) {
475 new_viewport.
ymax = timeline_ymax;
476 new_viewport.
ymin = new_viewport.
ymax - orig_height;
479 *rect = new_viewport;
518 ot->
name =
"Frame Selected";
519 ot->
idname =
"SEQUENCER_OT_view_selected";
520 ot->
description =
"Zoom the sequencer on the selected strips";
573 ot->
name =
"Border Offset View";
574 ot->
idname =
"SEQUENCER_OT_view_ghost_border";
575 ot->
description =
"Set the boundaries of the border used for offset view";
#define UI_MARKER_MARGIN_Y
#define V2D_SCROLL_HANDLE_HEIGHT
#define UI_TIME_CACHE_MARGIN_Y
#define UI_TIME_SCRUB_MARGIN_Y
static void seq_view_collection_rect_preview(Scene *scene, Span< Strip * > strips, rctf *rect)
VectorSet< Strip * > selected_strips_from_context(bContext *C)
void SEQUENCER_OT_view_all_preview(wmOperatorType *ot)
static wmOperatorStatus view_ghost_border_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_view_frame_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_view_selected(wmOperatorType *ot)
void SEQUENCER_OT_view_frame(wmOperatorType *ot)
void SEQUENCER_OT_view_ghost_border(wmOperatorType *ot)
static wmOperatorStatus sequencer_view_all_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_sample(wmOperatorType *ot)
void SEQ_get_timeline_region_padding(const bContext *C, float *r_pad_top, float *r_pad_bottom)
rctf SEQ_view_frame_fit(const SpaceSeq *sseq, const ARegion *region, rctf v2d_rect)
bool sequencer_editing_initialized_and_active(bContext *C)
static wmOperatorStatus sequencer_view_zoom_ratio_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_view_all(wmOperatorType *ot)
static wmOperatorStatus sequencer_view_all_preview_exec(bContext *C, wmOperator *op)
bool sequencer_view_preview_only_poll(const bContext *C)
void SEQUENCER_OT_view_zoom_ratio(wmOperatorType *ot)
static void seq_view_collection_rect_timeline(const bContext *C, Span< Strip * > strips, rctf *rect)
bool sequencer_view_has_preview_poll(bContext *C)
void SEQ_add_timeline_region_padding(const bContext *C, rctf *view_box)
static wmOperatorStatus sequencer_view_selected_exec(bContext *C, wmOperator *op)
static bool view_frame_preview_scope(bContext *C, wmOperator *op, ARegion *region, const bool use_max_nits)
ListBaseT< Strip > * active_seqbase_get(const Editing *ed)
Editing * editing_get(const Scene *scene)
void timeline_boundbox(const Scene *scene, const ListBaseT< Strip > *seqbase, rctf *r_rect)
MetaStack * meta_stack_active_get(const Editing *ed)
constexpr int MAX_CHANNELS
Bounds< float2 > image_transform_bounding_box_from_strips_get(Scene *scene, Span< Strip * > strips)
void timeline_init_boundbox(const Scene *scene, rctf *r_rect)
void timeline_expand_boundbox(const Scene *scene, const ListBaseT< Strip > *seqbase, rctf *rect)
void view2d_smooth_view(const bContext *C, ARegion *region, const rctf *cur, int smooth_viewtx)
void view2d_sync(bScreen *screen, ScrArea *area, View2D *v2dcur, int flag)
void view2d_curRect_changed(const bContext *C, View2D *v2d)
void view2d_region_to_view_rctf(const View2D *v2d, const rctf *rect_src, rctf *rect_dst) ATTR_NONNULL()
View2D * view2d_fromcontext(const bContext *C)
MINLINE float min_ff(float a, float b)
ScrArea * CTX_wm_area(const bContext *C)
Scene * CTX_data_sequencer_scene(const bContext *C)
wmOperatorStatus WM_gesture_box_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void BLI_rctf_resize(struct rctf *rect, float x, float y)
int WM_operator_smooth_viewtx_get(const wmOperator *op)
BLI_INLINE bool BLI_listbase_is_empty(const ListBase *lb)
MINLINE int max_ii(int a, int b)
void BLI_rctf_scale(rctf *rect, float scale)
void ED_region_tag_redraw(ARegion *region)
void BKE_render_resolution(const RenderData *r, const bool use_crop, int *r_width, int *r_height)
SpaceSeq * CTX_wm_space_seq(const bContext *C)
void WM_operator_properties_border_to_rctf(wmOperator *op, rctf *r_rect)
BLI_INLINE int BLI_rcti_size_y(const struct rcti *rct)
void ANIM_center_frame(bContext *C, int smooth_viewtx)
ocio::ScopeInfo IMB_colormanagement_get_scope_info(const ColorManagedDisplaySettings *display_settings, const ColorManagedViewSettings *view_settings)
void ED_imbuf_sample_cancel(bContext *C, wmOperator *op)
void BLI_rctf_pad_y(struct rctf *rect, float boundary_size, float pad_min, float pad_max)
BLI_INLINE float BLI_rctf_size_y(const struct rctf *rct)
@ SEQ_CACHE_SHOW_FINAL_OUT
void RNA_def_property_subtype(PropertyRNA *prop, PropertySubType subtype)
MINLINE float power_of_2(float f)
void WM_operator_properties_gesture_box(wmOperatorType *ot)
BLI_INLINE int BLI_rcti_size_x(const struct rcti *rct)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
wmOperatorStatus ED_imbuf_sample_modal(bContext *C, wmOperator *op, const wmEvent *event)
@ SEQ_DRAW_IMG_VECTORSCOPE
wmOperatorStatus WM_gesture_box_modal(bContext *C, wmOperator *op, const wmEvent *event)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
BLI_INLINE float BLI_rctf_size_x(const struct rctf *rct)
BLI_INLINE float BLI_rctf_cent_y(const struct rctf *rct)
void WM_gesture_box_cancel(bContext *C, wmOperator *op)
bool ED_imbuf_sample_poll(bContext *C)
bScreen * CTX_wm_screen(const bContext *C)
bool ED_operator_sequencer_active(bContext *C)
MINLINE int min_ii(int a, int b)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
ARegion * CTX_wm_region(const bContext *C)
ListBaseT< TimeMarker > * ED_sequencer_context_get_markers(const bContext *C)
BLI_INLINE float BLI_rctf_cent_x(const struct rctf *rct)
float RNA_float_get(PointerRNA *ptr, const char *name)
void BLI_rctf_pad(struct rctf *rect, float pad_x, float pad_y)
wmOperatorStatus ED_imbuf_sample_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void BLI_rctf_init(struct rctf *rect, float xmin, float xmax, float ymin, float ymax)
void ED_area_tag_redraw(ScrArea *area)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ColorManagedViewSettings view_settings
ColorManagedDisplaySettings display_settings
eSpaceSeq_SequencerCacheOverlay_Flag flag
DNA_DEPRECATED float zoom
eSpaceSeq_RegionType mainb
struct SequencerCacheOverlay cache_overlay
int view_transform_max_nits
float view_transform_max_nits_value
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
void(*) cancel(bContext *C, wmOperator *op)
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) modal(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT