32 if (sound ==
nullptr) {
45 if (seq ==
nullptr || seq->
strip ==
nullptr) {
52 if (elem !=
nullptr) {
60 for (
int i = 0; i < paths_count; i++, elem++) {
90 MediaPresence **presence = &scene->ed->runtime.media_presence;
91 if (*presence ==
nullptr) {
92 *presence = MEM_new<MediaPresence>(__func__);
99 if (seq ==
nullptr || scene ==
nullptr || scene->ed ==
nullptr) {
107 bool missing =
false;
115 if (val !=
nullptr) {
126 if (val !=
nullptr) {
141 if (seq ==
nullptr || scene ==
nullptr || scene->ed ==
nullptr) {
163 if (scene !=
nullptr && scene->ed !=
nullptr && scene->ed->runtime.media_presence !=
nullptr) {
164 scene->ed->runtime.media_presence->map_seq.remove(seq);
172 if (scene !=
nullptr && scene->ed !=
nullptr && scene->ed->runtime.media_presence !=
nullptr) {
173 scene->ed->runtime.media_presence->map_sound.remove(sound);
181 if (scene !=
nullptr && scene->ed !=
nullptr && scene->ed->runtime.media_presence !=
nullptr) {
182 MEM_delete(scene->ed->runtime.media_presence);
183 scene->ed->runtime.media_presence =
nullptr;
const char * BKE_main_blendfile_path_from_global()
File and directory operations.
int BLI_exists(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
#define LISTBASE_FOREACH(type, var, list)
bool BLI_path_abs(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1
#define BLI_path_join(...)
#define STRNCPY(dst, src)
#define BLI_MUTEX_INITIALIZER
void BLI_mutex_lock(ThreadMutex *mutex)
void BLI_mutex_unlock(ThreadMutex *mutex)
pthread_mutex_t ThreadMutex
#define ID_BLEND_PATH_FROM_GLOBAL(_id)
const Value * lookup_ptr(const Key &key) const
bool add_overwrite(const Key &key, const Value &value)
void add_new(const Key &key, const Value &value)
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int
size_t(* MEM_allocN_len)(const void *vmemh)
static bool check_sound_media_missing(const bSound *sound, const Sequence *seq)
static bool check_media_missing(const Sequence *seq)
void media_presence_free(Scene *scene)
void media_presence_set_missing(Scene *scene, const Sequence *seq, bool missing)
static ThreadMutex presence_lock
void media_presence_invalidate_sound(Scene *scene, const bSound *sound)
static const char * get_seq_base_path(const Sequence *seq)
void media_presence_invalidate_strip(Scene *scene, const Sequence *seq)
bool media_presence_is_missing(Scene *scene, const Sequence *seq)
static MediaPresence * get_media_presence_cache(Scene *scene)