63 for (
Strip &strip : *seqbasep) {
75 if (strip->seqbase.first_) {
93 char *suffix =
dot + 1;
96 sui.
count = atoi(suffix) + 1;
170 if (!strip->is_effect()) {
171 return strip->
data->dirpath;
174 return DATA_(
"Effect");
180 ListBaseT<SeqTimelineChannel> **r_channels,
183 ListBaseT<Strip> *seqbase =
nullptr;
185 switch (strip->
type) {
187 seqbase = &strip->seqbase;
188 *r_channels = &strip->channels;
189 *r_offset = strip->content_start();
196 seqbase = &
ed->seqbase;
197 *r_channels = &
ed->channels;
198 *r_offset = strip->scene->r.sfra;
217 if (strip.runtime->movie_metadata !=
nullptr) {
220 strip.runtime->movie_metadata =
nullptr;
221 strip.runtime->movie_metadata_is_loaded =
false;
229 strip.runtime->movie_metadata_is_loaded =
true;
234 if (!strip.runtime->movie_metadata_is_loaded) {
240 return strip.runtime->movie_metadata;
252 const Strip *best_strip =
nullptr;
253 int best_channel = -1;
255 for (
const Strip &strip : *
ed->current_strips()) {
256 if (
render_is_muted(channels, &strip) || !strip.intersects_frame(scene, frame)) {
269 if (strip.channel > best_channel) {
271 best_channel = strip.channel;
281 ListBaseT<Strip> *main_seqbase = &
ed->seqbase;
284 if (strip_meta !=
nullptr) {
285 return &strip_meta->seqbase;
297 for (istrip = seqbase->first(); istrip; istrip = istrip->next) {
299 if ((istrip->
data && istrip->
data->stripdata) &&
305 istrip = strip_found;
315 for (
Strip &istrip : *seqbase) {
316 if (
STREQ(name, istrip.name + 2)) {
319 if (recursive && !istrip.seqbase.is_empty()) {
321 if (rseq !=
nullptr) {
335 return strip_act->mask;
343 if (strip->
data && strip->
data->stripdata) {
344 const char *
filename = strip->
data->stripdata->filename;
351 switch (strip->
type) {
353 return (strip->mask !=
nullptr);
355 return (strip->clip !=
nullptr);
357 return (strip->scene !=
nullptr);
359 return (strip->sound !=
nullptr);
367 switch (strip->
type) {
382 const int image_width,
383 const int image_height,
384 const int preview_width,
385 const int preview_height,
390 switch (fit_method) {
393 float(preview_width) /
float(image_width),
float(preview_height) /
float(image_height));
399 float(preview_width) /
float(image_width),
float(preview_height) /
float(image_height));
419 "sequence_editor.strips_all",
426 for (
Strip &strip_child : strip->seqbase) {
#define SNPRINTF(dst, format,...)
#define STRNCPY_UTF8(dst, src)
#define BLT_I18NCONTEXT_ID_SEQUENCE
#define CTX_DATA_(context, msgid)
#define STRIP_NAME_MAXSTR
Read Blender memory allocation and freeing.
#define ARRAY_HAS_ITEM(arr_item, arr_start, arr_len)
const T & data(const Action &owning_action) const
float dot(VecOp< float, D >, VecOp< float, D >) RET
std::string filename(const std::string_view &str, size_t pos)
Strip * strip_from_strip_elem(ListBaseT< Strip > *seqbase, StripElem *se)
Strip * lookup_meta_by_strip(Editing *ed, const Strip *key)
bool sequencer_strip_generates_image(Strip *strip)
const Strip * strip_topmost_get(const Scene *scene, int frame)
void foreach_strip(ListBaseT< Strip > *seqbase, ForEachFunc callback, void *user_data)
void strip_unique_name_set(Scene *scene, ListBaseT< Strip > *seqbasep, Strip *strip)
bool render_is_muted(const ListBaseT< SeqTimelineChannel > *channels, const Strip *strip)
ListBaseT< Strip > * get_seqbase_by_strip(const Scene *scene, Strip *strip)
Editing * editing_get(const Scene *scene)
void edit_strip_name_set(Scene *scene, Strip *strip, const char *new_name)
MovieReaderAccessor movie_reader_cache_acquire_any(const Scene &scene, const Strip &strip)
const char * strip_give_name(const Strip *strip)
static void seqbase_unique_name(ListBaseT< Strip > *seqbasep, StripUniqueInfo *sui)
void movie_metadata_invalidate(Strip &strip)
IDProperty * movie_metadata_ensure(Scene &scene, Strip &strip)
Strip * select_active_get(const Scene *scene)
bool strip_has_valid_data(const Strip *strip)
void ensure_unique_name(Strip *strip, Scene *scene, const DriverMap &driver_map)
const char * get_default_stripname_by_type(int type)
void movie_metadata_set_from_reader(Strip &strip, MovieReader &reader)
Strip * get_strip_by_name(ListBaseT< Strip > *seqbase, const char *name, bool recursive)
ListBaseT< SeqTimelineChannel > * channels_displayed_get(const Editing *ed)
ListBaseT< Strip > * get_seqbase_from_strip(Strip *strip, ListBaseT< SeqTimelineChannel > **r_channels, int *r_offset)
static bool seqbase_unique_name_recursive_fn(Strip *strip, void *arg_pt)
void alpha_mode_from_file_extension(Strip *strip)
Mask * active_mask_get(Scene *scene)
void set_scale_to_fit(const Strip *strip, const int image_width, const int image_height, const int preview_width, const int preview_height, const eSeqImageFitMethod fit_method)
bool BLI_string_is_decimal(const char *string) ATTR_NONNULL(1)
char * STRNCPY(char(&dst)[N], const char *src)
void MOV_close(MovieReader *anim)
IDProperty * IDP_CopyProperty(const IDProperty *prop) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
std::string RNA_path_name_to_infix(const StringRefNull string)
@ STRIP_TYPE_GAUSSIAN_BLUR
void BKE_animdata_fix_paths(ID &id, StringRef prefix, StringRef old_infix, StringRef new_infix, bool verify_paths, const DriverMap &driver_map)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
char BKE_image_alpha_mode_from_extension_ex(const char *filepath)
IDProperty * MOV_load_metadata(MovieReader *anim)
void IDP_FreeProperty(IDProperty *prop)
Map< ID *, Vector< DriverTarget * > > DriverMap
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ListBaseT< Strip > seqbase
void operator()(MovieReader *reader) const
char name_dest[STRIP_NAME_MAXSTR]
char name_src[STRIP_NAME_MAXSTR]