32 if (sound ==
nullptr) {
44 if (strip ==
nullptr || strip->
data ==
nullptr) {
51 if (elem !=
nullptr) {
55 paths_count = strip->
data->stripdata_num;
59 for (
int i = 0; i < paths_count; i++, elem++) {
71 for (
Strip &strip_n : strip->seqbase) {
90 if (*presence ==
nullptr) {
91 *presence = MEM_new<MediaPresence>(__func__);
98 if (strip ==
nullptr || scene ==
nullptr || scene->
ed ==
nullptr) {
106 bool missing =
false;
112 const bSound *sound = strip->sound;
117 const bool *val = presence->
map_sound.lookup_ptr(sound);
118 if (val !=
nullptr) {
123 presence->
map_sound.add_new(sound, missing);
129 if (val !=
nullptr) {
143 if (strip ==
nullptr || scene ==
nullptr || scene->
ed ==
nullptr) {
152 const bSound *sound = strip->sound;
153 presence->
map_sound.add_overwrite(sound, missing);
File and directory operations.
#define BLI_path_join(...)
#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)
bool remove(const Key &key)
const T & data(const Action &owning_action) const
static Mutex presence_lock
bool media_presence_is_missing(Scene *scene, const Strip *strip)
void media_presence_free(Scene *scene)
static bool check_sound_media_missing(const bSound *sound)
static bool check_media_missing(const Scene *scene, const Strip *strip)
void media_presence_invalidate_sound(Scene *scene, const bSound *sound)
void media_presence_invalidate_strip(Scene *scene, const Strip *strip)
void media_presence_set_missing(Scene *scene, const Strip *strip, bool missing)
static MediaPresence * get_media_presence_cache(Scene *scene)
char * STRNCPY(char(&dst)[N], const char *src)
bool BLI_path_abs(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1
bool BLI_exists(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
seq::EditingRuntime * runtime
struct PackedFile * packedfile
MediaPresence * media_presence