Blender V5.3
SEQ_relations.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 <cstddef>
12
13#include "DNA_listBase.h"
14
15#include "BLI_enum_flags.hh"
16
17namespace blender {
18
19struct Main;
20struct MovieClip;
21struct ReportList;
22struct bNodeTree;
23struct Scene;
24struct Strip;
25
26namespace seq {
27
31bool relation_is_effect_of_strip(const Strip *effect, const Strip *input);
32bool relations_check_scene_recursion(Scene *scene, ReportList *reports);
36bool relations_render_loop_check(Strip *strip_main, Strip *strip);
37void relations_free_imbuf(Scene *scene, ListBaseT<Strip> *seqbase, bool for_render);
38
42void relations_refresh_all(Scene *scene);
43
54void relations_invalidate_cache(Scene *scene, Strip *strip);
55
60void relations_invalidate_cache_raw(Scene *scene, Strip *strip);
61
64
67
68void relations_invalidate_scene_strips(const Main *bmain, const Scene *scene_target);
69
80 Scene *scene,
81 const char *old_name,
82 const char *new_name);
83
87void relations_invalidate_compositor_users(const Main *bmain, const bNodeTree *node_tree);
88
93
94void relations_invalidate_movieclip_strips(Main *bmain, MovieClip *clip_target);
99void relations_check_uids_unique_and_report(const Scene *scene);
103void relations_session_uid_generate(Strip *strip);
104
105enum class CacheCleanup {
106 FinalImage = (1 << 0),
107 SourceImage = (1 << 1),
108 Thumbnails = (1 << 2),
109 IntraFrame = (1 << 3),
110
111 /* All cache types. */
113
114 /* Typical "what gets rendered" cache types: final frame
115 * cache, plus various intra-frame cached things. */
117};
119
120void cache_cleanup(Scene *scene, CacheCleanup mode);
121
122void cache_settings_changed(Scene *scene);
123bool is_cache_full(const Scene *scene);
124bool evict_caches_if_full(Scene *scene);
125
127 void *userdata,
128 void callback_iter(void *userdata,
129 const Strip *strip,
130 int timeline_frame));
132 void *userdata,
133 void callback_iter(void *userdata, int timeline_frame));
134
135size_t source_image_cache_calc_memory_size(const Scene *scene);
136size_t final_image_cache_calc_memory_size(const Scene *scene);
137
138bool exists_in_seqbase(const Strip *strip, const ListBaseT<Strip> *seqbase);
139
140} // namespace seq
141} // namespace blender
These structs are the foundation for all linked lists in the library system.
void relations_update_view_layer_scene_strips(Main *bmain, Scene *scene, const char *old_name, const char *new_name)
void relations_tag_temporary_animation_frame(Scene *scene)
size_t final_image_cache_calc_memory_size(const Scene *scene)
void relations_invalidate_cache(Scene *scene, Strip *strip)
void cache_settings_changed(Scene *scene)
bool relations_render_loop_check(Strip *strip_main, Strip *strip)
void relations_free_imbuf(Scene *scene, ListBaseT< Strip > *seqbase, bool for_render)
void source_image_cache_iterate(Scene *scene, void *userdata, void callback_iter(void *userdata, const Strip *strip, int timeline_frame))
void relations_invalidate_scene_strips(const Main *bmain, const Scene *scene_target)
void final_image_cache_iterate(Scene *scene, void *userdata, void callback_iter(void *userdata, int timeline_frame))
void relations_invalidate_compositor_users(const Main *bmain, const bNodeTree *node_tree)
void relations_invalidate_temporary_animation_frame(Scene *scene)
void relations_invalidate_cache_raw(Scene *scene, Strip *strip)
void relations_invalidate_movieclip_strips(Main *bmain, MovieClip *clip_target)
ENUM_OPERATORS(StripRelation)
void relations_refresh_all(Scene *scene)
bool exists_in_seqbase(const Strip *strip, const ListBaseT< Strip > *seqbase)
void relations_invalidate_generator_strips(Scene *scene)
bool is_cache_full(const Scene *scene)
void relations_session_uid_generate(Strip *strip)
bool relation_is_effect_of_strip(const Strip *effect, const Strip *input)
bool evict_caches_if_full(Scene *scene)
size_t source_image_cache_calc_memory_size(const Scene *scene)
void relations_check_uids_unique_and_report(const Scene *scene)
bool relations_check_scene_recursion(Scene *scene, ReportList *reports)
void cache_cleanup(Scene *scene, CacheCleanup mode)
BMesh Iterators.