29 for (
Strip &strip : *seqbase) {
30 if (!callback(&strip, user_data)) {
46 for (
Strip &strip : *seqbase) {
47 if (!callback(&strip)) {
78 Strip *strip = strips[i];
82 strips.
add(effect_strip);
87 strips.
add(strip->input1);
90 strips.
add(strip->input2);
94 for (
Strip &meta_child : strip->seqbase) {
95 strips.
add(&meta_child);
100 strips.
add(connection);
106 strips.
add(connection);
115 for (
Strip &strip : *seqbase) {
131 const ListBaseT<Strip> *seqbase,
132 const int timeline_frame,
135 for (
Strip &strip : *seqbase) {
136 if (!strip.intersects_frame(scene, timeline_frame)) {
147 const ListBaseT<Strip> *seqbase,
148 const int timeline_frame)
158 for (
Strip &strip : *seqbase) {
167 for (
Strip &strip : *seqbase) {
176 ListBaseT<Strip> *seqbase,
177 const int timeline_frame)
181 for (
Strip &strip : *seqbase) {
182 if (strip.intersects_frame(scene, timeline_frame)) {
192 strip_stack.
remove_if([&](
Strip *strip) {
return strip->channel > channel; });
197 bool strip_have_effect_in_stack =
false;
198 for (
Strip *strip : strip_stack) {
205 if (target_strip->channel >= strip->channel) {
209 strip_have_effect_in_stack =
true;
214 if (target_strip->is_effect_with_inputs()) {
219 if (strip_have_effect_in_stack) {
228 ListBaseT<SeqTimelineChannel> *channels)
240 ListBaseT<SeqTimelineChannel> *channels,
241 ListBaseT<Strip> *seqbase,
242 const int timeline_frame,
243 const int displayed_channel)
246 if (displayed_channel != 0) {
254 ListBaseT<SeqTimelineChannel> *channels,
255 ListBaseT<Strip> *seqbase,
256 const int timeline_frame,
263 std::ranges::sort(strips_vec,
264 [](
const Strip *a,
const Strip *
b) {
return a->channel <
b->channel; });
271 for (
Strip &strip : *seqbase) {
int64_t remove_if(Predicate &&predicate)
static void collection_filter_rendered_strips(VectorSet< Strip * > &strip_stack, ListBaseT< SeqTimelineChannel > *channels)
VectorSet< Strip * > query_selected_strips(ListBaseT< Strip > *seqbase)
void foreach_strip(ListBaseT< Strip > *seqbase, ForEachFunc callback, void *user_data)
bool must_render_strip(const VectorSet< Strip * > &strip_stack, Strip *target_strip)
static void query_all_strips_recursive(const ListBaseT< Strip > *seqbase, VectorSet< Strip * > &strips)
bool render_is_muted(const ListBaseT< SeqTimelineChannel > *channels, const Strip *strip)
void expand_strips(Editing *ed, VectorSet< Strip * > &strips, const StripRelation include)
VectorSet< Strip * > query_all_strips(ListBaseT< Strip > *seqbase)
static void query_strips_recursive_at_frame(const Scene *scene, const ListBaseT< Strip > *seqbase, const int timeline_frame, VectorSet< Strip * > &strips)
Vector< Strip * > query_rendered_strips_sorted(const Scene *scene, ListBaseT< SeqTimelineChannel > *channels, ListBaseT< Strip > *seqbase, const int timeline_frame, const int chanshown)
static bool strip_for_each_recursive(ListBaseT< Strip > *seqbase, ForEachFunc callback, void *user_data)
Span< Strip * > lookup_effects_by_strip(Editing *ed, const Strip *key)
bool(*)(Strip *strip, void *user_data) ForEachFunc
static VectorSet< Strip * > query_strips_at_frame(const Scene *scene, ListBaseT< Strip > *seqbase, const int timeline_frame)
VectorSet< Strip * > connected_strips_get(const Strip *strip)
bool relation_is_effect_of_strip(const Strip *effect, const Strip *input)
VectorSet< Strip * > query_unselected_strips(ListBaseT< Strip > *seqbase)
static void collection_filter_channel_up_to_incl(VectorSet< Strip * > &strip_stack, const int channel)
VectorSet< Strip * > query_rendered_strips(const Scene *scene, ListBaseT< SeqTimelineChannel > *channels, ListBaseT< Strip > *seqbase, const int timeline_frame, const int displayed_channel)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)