40 if (input ==
nullptr) {
51 if (strip->scene ==
nullptr) {
54 VectorSet<Strip *> &strips = lookup->strips_by_scene.lookup_or_add_default(strip->scene);
63 VectorSet<Strip *> &strips = lookup->strips_by_compositor_node_group.lookup_or_add_default(
80 VectorSet<Strip *> &strips = lookup->strips_by_compositor_node_group.lookup_or_add_default(
88 if (!strip->is_effect()) {
97 const ListBaseT<Strip> *seqbase,
100 if (parent_meta !=
nullptr) {
102 lookup->owner_by_channel.add(&channel, parent_meta);
106 for (
Strip &strip : *seqbase) {
107 lookup->strip_by_name.add(strip.name + 2, &strip);
108 lookup->meta_by_strip.add(&strip, parent_meta);
122 lookup->is_valid =
true;
127 StripLookup *lookup = MEM_new<StripLookup>(__func__);
149 if (*lookup && (*lookup)->is_valid) {
169 return lookup->strip_by_name.lookup_default(key,
nullptr);
188 return lookup->strips_by_scene;
199 VectorSet<Strip *> &strips = lookup->strips_by_compositor_node_group.lookup_or_add_default(key);
209 return lookup->meta_by_strip.lookup_default(key,
nullptr);
228 return lookup->owner_by_channel.lookup_default(channel,
nullptr);
239 if (lookup !=
nullptr) {
240 lookup->is_valid =
false;
These structs are the foundation for all linked lists in the library system.
Read Blender memory allocation and freeing.
Span< Key > as_span() const
Strip * lookup_meta_by_strip(Editing *ed, const Strip *key)
Map< const Scene *, VectorSet< Strip * > > & lookup_strips_by_scene_map_get(Editing *ed)
Strip * lookup_strip_by_name(Editing *ed, const char *key)
Span< Strip * > lookup_strips_by_scene(Editing *ed, const Scene *key)
static void strip_lookup_rebuild(const Editing *ed, StripLookup **lookup)
static void strip_lookup_build_effect(Strip *strip, StripLookup *lookup)
Span< Strip * > lookup_strips_by_compositor_node_group(Editing *ed, const bNodeTree *key)
Strip * lookup_strip_by_channel_owner(Editing *ed, const SeqTimelineChannel *channel)
Span< Strip * > lookup_effects_by_strip(Editing *ed, const Strip *key)
static void strip_lookup_update_if_needed(const Editing *ed, StripLookup **lookup)
static void strip_by_scene_lookup_build(Strip *strip, StripLookup *lookup)
static void strip_lookup_build(const Editing *ed, StripLookup *lookup)
static void strip_lookup_build_from_seqbase(Strip *parent_meta, const ListBaseT< Strip > *seqbase, StripLookup *lookup)
void strip_lookup_invalidate(const Editing *ed)
static void strip_by_compositor_node_group_lookup_build(Strip *strip, StripLookup *lookup)
void strip_lookup_free(Editing *ed)
static void strip_lookup_append_effect(const Strip *input, Strip *effect, StripLookup *lookup)
static StripLookup * strip_lookup_new()
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
@ eSeqModifierType_Compositor
struct bNodeTree * node_group
struct bNodeTree * node_group
Map< const bNodeTree *, VectorSet< Strip * > > strips_by_compositor_node_group
Map< const SeqTimelineChannel *, Strip * > owner_by_channel
Map< const Strip *, VectorSet< Strip * > > effects_by_strip
Map< const Strip *, Strip * > meta_by_strip
Map< const Scene *, VectorSet< Strip * > > strips_by_scene
Map< std::string, Strip * > strip_by_name