|
Blender
V2.93
|
#include <stdlib.h>#include <string.h>#include "MEM_guardedalloc.h"#include "DNA_mask_types.h"#include "DNA_scene_types.h"#include "DNA_sequence_types.h"#include "BLI_listbase.h"#include "BLI_path_util.h"#include "BLI_string.h"#include "BLI_utildefines.h"#include "BKE_image.h"#include "BKE_main.h"#include "BKE_scene.h"#include "SEQ_iterator.h"#include "SEQ_relations.h"#include "SEQ_select.h"#include "SEQ_sequencer.h"#include "SEQ_utils.h"#include "IMB_imbuf.h"#include "IMB_imbuf_types.h"#include "multiview.h"#include "proxy.h"#include "utils.h"Go to the source code of this file.
Classes | |
| struct | SeqUniqueInfo |
Typedefs | |
| typedef struct SeqUniqueInfo | SeqUniqueInfo |
| typedef struct SeqUniqueInfo SeqUniqueInfo |
|
static |
Definition at line 169 of file utils.c.
References NULL, SEQ_TYPE_ADD, SEQ_TYPE_ADJUSTMENT, SEQ_TYPE_ALPHAOVER, SEQ_TYPE_ALPHAUNDER, SEQ_TYPE_COLOR, SEQ_TYPE_COLORMIX, SEQ_TYPE_CROSS, SEQ_TYPE_GAMCROSS, SEQ_TYPE_GAUSSIAN_BLUR, SEQ_TYPE_GLOW, SEQ_TYPE_IMAGE, SEQ_TYPE_MASK, SEQ_TYPE_META, SEQ_TYPE_MOVIE, SEQ_TYPE_MOVIECLIP, SEQ_TYPE_MUL, SEQ_TYPE_MULTICAM, SEQ_TYPE_OVERDROP, SEQ_TYPE_SCENE, SEQ_TYPE_SOUND_RAM, SEQ_TYPE_SPEED, SEQ_TYPE_SUB, SEQ_TYPE_TEXT, SEQ_TYPE_TRANSFORM, SEQ_TYPE_WIPE, and type.
Referenced by SEQ_sequence_give_name().
Definition at line 505 of file utils.c.
References Sequence::mask, NULL, scene, SEQ_select_active_get(), SEQ_TYPE_MASK, and Sequence::type.
Referenced by ED_space_sequencer_check_show_maskedit(), and sequencer_context().
| void SEQ_alpha_mode_from_file_extension | ( | Sequence * | seq | ) |
Definition at line 516 of file utils.c.
References Sequence::alpha_mode, BKE_image_alpha_mode_from_extension_ex(), StripElem::name, Sequence::strip, and Strip::stripdata.
Referenced by blo_do_versions_260().
Definition at line 445 of file utils.c.
References ListBase::first, Sequence::next, NULL, and Sequence::seqbase.
Referenced by do_adjustment_impl().
Definition at line 428 of file utils.c.
References ListBase::first, Sequence::next, NULL, and Sequence::seqbase.
Referenced by do_adjustment_impl(), do_multicam(), and SEQ_edit_move_strip_to_meta().
Definition at line 241 of file utils.c.
References Sequence::flag, NULL, Scene::r, Sequence::scene, SEQ_editing_get(), SEQ_SCENE_STRIPS, SEQ_TYPE_META, SEQ_TYPE_SCENE, Sequence::seqbase, Editing::seqbase, RenderData::sfra, Sequence::start, and Sequence::type.
Referenced by do_render_strip_seqbase(), and drawmeta_contents().
Definition at line 487 of file utils.c.
References ListBase::first, Sequence::name, Sequence::next, NULL, Sequence::seqbase, and STREQ.
Referenced by animchan_sync_fcurve_scene(), and skip_fcurve_selected_data().
Definition at line 395 of file utils.c.
References Scene::ed, ELEM, Sequence::enddisp, ListBase::first, Sequence::flag, Sequence::machine, Sequence::next, NULL, scene, SEQ_MUTE, SEQ_TYPE_COLOR, SEQ_TYPE_IMAGE, SEQ_TYPE_META, SEQ_TYPE_MOVIE, SEQ_TYPE_SCENE, SEQ_TYPE_TEXT, Editing::seqbasep, Sequence::startdisp, and Sequence::type.
Referenced by stampdata().
Definition at line 266 of file utils.c.
References StripAnim::anim, Sequence::anims, BKE_main_blendfile_path_from_global(), BKE_scene_multiview_view_id_suffix_get(), BKE_scene_multiview_view_prefix_get(), BLI_addtail(), BLI_join_dirfile(), BLI_path_abs(), BLI_snprintf(), BLI_strncpy(), Strip::colorspace_settings, StripProxy::dir, Strip::dir, Scene::ed, FILE_MAX, ListBase::first, Sequence::flag, IB_animdeinterlace, IB_rect, IMB_suffix_anim(), MEM_mallocN, StripElem::name, ColorManagedColorspaceSettings::name, NULL, openanim(), openanim_noload(), Strip::proxy, Editing::proxy_dir, Editing::proxy_storage, Scene::r, R_IMF_VIEWS_INDIVIDUAL, R_MULTIVIEW, RenderData::scemode, scene, SEQ_EDIT_PROXY_DIR_STORAGE, SEQ_FILTERY, seq_num_files(), seq_proxy_index_dir_set(), SEQ_relations_sequence_free_anim(), SEQ_STORAGE_PROXY_CUSTOM_DIR, SEQ_USE_VIEWS, StripProxy::storage, str, Sequence::streamindex, Sequence::strip, Strip::stripdata, and Sequence::views_format.
Referenced by seq_proxy_fetch(), SEQ_proxy_rebuild_context(), seq_render_movie_strip(), and SEQ_time_sequence_get_fps().
Definition at line 139 of file utils.c.
References BLI_strncpy(), SeqUniqueInfo::count, dot(), SeqUniqueInfo::match, Sequence::name, SeqUniqueInfo::name_dest, SeqUniqueInfo::name_src, SeqUniqueInfo::seq, SEQ_iterator_seqbase_recursive_apply(), seqbase_unique_name(), and seqbase_unique_name_recursive_fn().
Referenced by apply_unique_name_fn(), do_versions_seq_unique_name_all_strips(), seq_add_generic_update(), seq_dupli(), and sequencer_meta_make_exec().
Only use as last resort when the StripElem is available but no the Sequence. (needed for RNA)
Definition at line 468 of file utils.c.
References ARRAY_HAS_ITEM, ListBase::first, Sequence::len, Sequence::next, Sequence::seqbase, Sequence::strip, and Strip::stripdata.
| const char* SEQ_sequence_give_name | ( | Sequence * | seq | ) |
Definition at line 227 of file utils.c.
References Strip::dir, give_seqname_by_type(), SEQ_TYPE_EFFECT, Sequence::strip, and Sequence::type.
Referenced by draw_seq_text_get_name(), and seq_add_set_name().
| bool SEQ_sequence_has_source | ( | Sequence * | seq | ) |
Definition at line 526 of file utils.c.
References Sequence::clip, Sequence::mask, NULL, Sequence::scene, SEQ_TYPE_MASK, SEQ_TYPE_MOVIECLIP, SEQ_TYPE_SCENE, SEQ_TYPE_SOUND_RAM, Sequence::sound, and Sequence::type.
Referenced by draw_seq_strip().
| void SEQ_set_scale_to_fit | ( | const Sequence * | seq, |
| const int | image_width, | ||
| const int | image_height, | ||
| const int | preview_width, | ||
| const int | preview_height, | ||
| const eSeqImageFitMethod | fit_method | ||
| ) |
Definition at line 557 of file utils.c.
References float(), MAX2, MIN2, SEQ_SCALE_TO_FILL, SEQ_SCALE_TO_FIT, SEQ_STRETCH_TO_FILL, SEQ_USE_ORIGINAL_SIZE, Sequence::strip, transform(), and Strip::transform.
Referenced by SEQ_add_image_strip(), SEQ_add_movie_strip(), and sequencer_strip_transform_fit_exec().
| void SEQ_sort | ( | Scene * | scene | ) |
Definition at line 58 of file utils.c.
References BLI_addtail(), BLI_insertlinkbefore(), BLI_listbase_clear(), BLI_movelisttolist(), BLI_pophead(), ListBase::first, Sequence::machine, Sequence::next, NULL, scene, SEQ_editing_get(), SEQ_TYPE_EFFECT, Editing::seqbasep, and Sequence::type.
Referenced by freeSeqData(), seq_add_generic_update(), sequencer_meta_separate_exec(), sequencer_separate_images_exec(), sequencer_snap_exec(), sequencer_split_exec(), and sequencer_swap_exec().
|
static |
Definition at line 114 of file utils.c.
References BLI_snprintf(), SeqUniqueInfo::count, ListBase::first, SeqUniqueInfo::match, Sequence::name, SeqUniqueInfo::name_dest, SeqUniqueInfo::name_src, Sequence::next, SeqUniqueInfo::seq, SEQ_NAME_MAXSTR, and STREQ.
Referenced by SEQ_sequence_base_unique_name_recursive(), and seqbase_unique_name_recursive_fn().
|
static |
Definition at line 131 of file utils.c.
References ListBase::first, Sequence::seqbase, and seqbase_unique_name().
Referenced by SEQ_sequence_base_unique_name_recursive().
| bool sequencer_seq_generates_image | ( | Sequence * | seq | ) |
Definition at line 542 of file utils.c.
References SEQ_TYPE_COLOR, SEQ_TYPE_IMAGE, SEQ_TYPE_MASK, SEQ_TYPE_MOVIE, SEQ_TYPE_MOVIECLIP, SEQ_TYPE_SCENE, SEQ_TYPE_TEXT, and Sequence::type.
Referenced by SEQ_relations_check_scene_recursion().