Blender V5.0
SEQ_utils.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 "DNA_scene_types.h"
12
13struct bSound;
14struct ListBase;
15struct Mask;
16struct Scene;
17struct Strip;
18struct StripElem;
19
20namespace blender::seq {
21
22void strip_unique_name_set(Scene *scene, ListBase *seqbasep, Strip *strip);
23const char *get_default_stripname_by_type(int type);
24const char *strip_give_name(const Strip *strip);
25ListBase *get_seqbase_from_strip(Strip *strip, ListBase **r_channels, int *r_offset);
26const Strip *strip_topmost_get(const Scene *scene, int frame);
30ListBase *get_seqbase_by_strip(const Scene *scene, Strip *strip);
36Strip *get_strip_by_name(ListBase *seqbase, const char *name, bool recursive);
39
45bool strip_has_valid_data(const Strip *strip);
46
47void set_scale_to_fit(const Strip *strip,
48 int image_width,
49 int image_height,
50 int preview_width,
51 int preview_height,
52 eSeqImageFitMethod fit_method);
60void ensure_unique_name(Strip *strip, Scene *scene);
61
62void fontmap_clear();
63
73bool media_presence_is_missing(Scene *scene, const Strip *strip);
74
78void media_presence_set_missing(Scene *scene, const Strip *strip, bool missing);
79
83void media_presence_invalidate_strip(Scene *scene, const Strip *strip);
84
88void media_presence_invalidate_sound(Scene *scene, const bSound *sound);
89
93void media_presence_free(Scene *scene);
94
95} // namespace blender::seq
static constexpr int image_width
static constexpr int image_height
struct ListBase ListBase
struct Mask Mask
eSeqImageFitMethod
struct Scene Scene
struct StripElem StripElem
struct Strip Strip
struct bSound bSound
const Strip * strip_topmost_get(const Scene *scene, int frame)
bool media_presence_is_missing(Scene *scene, const Strip *strip)
void media_presence_free(Scene *scene)
Strip * strip_from_strip_elem(ListBase *seqbase, StripElem *se)
ListBase * get_seqbase_by_strip(const Scene *scene, Strip *strip)
const char * strip_give_name(const Strip *strip)
bool strip_has_valid_data(const Strip *strip)
const char * get_default_stripname_by_type(int type)
Strip * get_strip_by_name(ListBase *seqbase, const char *name, bool recursive)
void media_presence_invalidate_sound(Scene *scene, const bSound *sound)
void strip_unique_name_set(Scene *scene, ListBase *seqbasep, Strip *strip)
void media_presence_invalidate_strip(Scene *scene, const Strip *strip)
void media_presence_set_missing(Scene *scene, const Strip *strip, bool missing)
void alpha_mode_from_file_extension(Strip *strip)
void ensure_unique_name(Strip *strip, Scene *scene)
Mask * active_mask_get(Scene *scene)
ListBase * get_seqbase_from_strip(Strip *strip, ListBase **r_channels, int *r_offset)
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)
const char * name