Blender V5.3
SEQ_transform.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2004 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
11#include "DNA_listBase.h"
12#include "DNA_vec_types.h"
13
14#include "BLI_array.hh"
15#include "BLI_bounds_types.hh"
17#include "BLI_set.hh"
18#include "BLI_span.hh"
19#include "BLI_vector.hh"
20
21namespace blender {
22
23enum eSeqOverlapMode : int;
24enum eSeqRippleFlag : int;
25
26struct Scene;
27struct Strip;
29
30namespace seq {
31
32bool transform_strip_can_be_translated(const Strip *strip);
38bool transform_single_image_check(const Strip *strip);
39bool transform_test_overlap(const Scene *scene, ListBaseT<Strip> *seqbasep, Strip *test);
40bool transform_test_overlap(const Scene *scene, Strip *strip1, Strip *strip2);
41void transform_translate_strip(Scene *evil_scene, Strip *strip, int delta);
42void transform_shuffle_vertical(ListBaseT<Strip> *seqbasep,
43 Span<Strip *> strips,
44 Scene *scene,
45 int channel_delta = 1);
46
47void transform_handle_overlap(Scene *scene,
48 ListBaseT<Strip> *seqbasep,
49 Span<Strip *> source_strips,
50 bool use_sync_markers,
51 Span<Strip *> time_dependent_strips = {});
56void transform_handle_overlap(Scene *scene,
57 ListBaseT<Strip> *seqbasep,
58 Span<Strip *> source_strips,
59 bool use_sync_markers,
60 eSeqOverlapMode overlap_mode,
61 eSeqRippleFlag ripple_flag,
62 Span<Strip *> time_dependent_strips = {});
66void transform_strips_after_frame(Scene *scene,
67 ListBaseT<Strip> *seqbase,
68 int timeline_frame,
69 int delta);
70
75bool transform_is_locked(const ListBaseT<SeqTimelineChannel> *channels, const Strip *strip);
76
80rcti strip_int_bounds_get(const Scene *scene, const Strip *strip);
81
87
98 const Strip *strip,
99 bool all_channels);
100
101/* Image transformation. */
102
108
118float2 image_transform_origin_get(const Scene *scene, const Strip *strip);
119
125
130float3x3 image_transform_matrix_get(const Scene *scene, const Strip *strip);
131
142int2 image_transform_box_size_get(const Scene *scene, const Strip *strip);
143
151Array<float2> image_transform_quad_get(const Scene *scene, const Strip *strip);
152
153float2 image_preview_unit_to_px(const Scene *scene, float2 co_src);
154float2 image_preview_unit_from_px(const Scene *scene, float2 co_src);
155
160
161} // namespace seq
162} // namespace blender
These structs are the foundation for all linked lists in the library system.
float2 image_preview_unit_to_px(const Scene *scene, const float2 co_src)
Vector< RippleRange > transform_ripple_ranges_get(const Scene *scene, Span< Strip * > strips)
int2 image_transform_box_size_get(const Scene *scene, const Strip *strip)
float2 image_transform_mirror_factor_get(const Strip *strip)
void transform_translate_strip(Scene *evil_scene, Strip *strip, int delta)
void transform_handle_overlap(Scene *scene, ListBaseT< Strip > *seqbasep, Span< Strip * > source_strips, bool use_sync_markers, Span< Strip * > time_dependent_strips)
rcti strip_int_bounds_get(const Scene *scene, const Strip *strip)
Array< float2 > image_transform_quad_get(const Scene *scene, const Strip *strip)
bool transform_test_overlap(const Scene *scene, Strip *strip1, Strip *strip2)
bool transform_single_image_check(const Strip *strip)
float3x3 image_transform_matrix_get(const Scene *scene, const Strip *strip)
Bounds< float2 > image_transform_bounding_box_from_strips_get(Scene *scene, Span< Strip * > strips)
float2 image_transform_origin_preview_offset_get(const Scene *scene, const Strip *strip)
float2 image_transform_origin_get(const Scene *scene, const Strip *strip)
void transform_strips_after_frame(Scene *scene, ListBaseT< Strip > *seqbase, const int timeline_frame, const int delta)
float2 image_preview_unit_from_px(const Scene *scene, const float2 co_src)
bool transform_strip_is_on_rippled_channel(const RippleRange &range, const Strip *strip, const bool all_channels)
void transform_shuffle_vertical(ListBaseT< Strip > *seqbasep, Span< Strip * > strips, Scene *scene, const int channel_delta)
bool transform_is_locked(const ListBaseT< SeqTimelineChannel > *channels, const Strip *strip)
bool transform_strip_can_be_translated(const Strip *strip)
BMesh Iterators.
VecBase< int32_t, 2 > int2
VecBase< float, 2 > float2
MatBase< float, 3, 3 > float3x3