54#include "RNA_prototypes.hh"
99 "Add images as individual strips, unless their filenames match Blender's numbered sequence "
100 "pattern, in which case they are grouped into a single image sequence"},
105 "Import all selected images as a single image sequence. The sequence of images does not have "
106 "to match Blender's numbered sequence pattern, so placeholders cannot be inferred"},
111 "Add each selected image as an individual strip"},
112 {0,
nullptr, 0,
nullptr,
nullptr},
116#define SEQPROP_STARTFRAME (1 << 0)
118#define SEQPROP_LENGTH (1 << 1)
121#define SEQPROP_PATHS (1 << 2)
123#define SEQPROP_NOCHAN (1 << 3)
124#define SEQPROP_FIT_METHOD (1 << 4)
125#define SEQPROP_VIEW_TRANSFORM (1 << 5)
126#define SEQPROP_PLAYBACK_RATE (1 << 6)
127#define SEQPROP_MOVE (1 << 7)
147 op->
customdata = MEM_new<SequencerAddData>(__func__);
164 if (
STREQ(prop_id,
"use_placeholders")) {
175 "move_strips_after_add",
177 "skip_locked_or_muted_channels",
178 "use_sequence_detection");
186 bool is_redo_panel = sad ==
nullptr;
188 if (!is_redo_panel) {
196 layout.
prop(op->
ptr,
"skip_locked_or_muted_channels",
UI_ITEM_NONE, std::nullopt, ICON_NONE);
200 uiDefAutoButsRNA(&layout,
220 nullptr, RNA_ImageFormatSettings, &sad->
im_format);
236 "move_strips_after_add",
238 "Move Strips After Add",
239 "Automatically begin translating strips with the mouse after adding them to the timeline");
250 "Start frame of the strip",
263 "Length of the strip in frames, or the length of each strip if multiple are added",
274 "Channel to place this strip into",
282 "Deselect previously selected strips after add operation completes");
286 ot->
srna,
"overlap",
false,
"Allow Overlap",
"Don't correct overlap on new strips");
295 "How to resolve overlap with existing strips. If unset, fallback to the overlap mode "
296 "from the tool settings, but shuffle vertically instead of horizontally");
300 "skip_locked_or_muted_channels",
302 "Skip Locked/Muted Channels",
303 "Make strips occupy nearest unmuted and unlocked channels");
311 "Mode for fitting the image to the canvas");
316 "set_view_transform",
318 "Set View Transform",
319 "Set appropriate view transform based on media color space");
324 "adjust_playback_rate",
326 "Adjust Playback Rate",
327 "Play at normal speed regardless of scene FPS");
333 const char *identifier)
354 if (!channel->is_muted() && !channel->is_locked()) {
360 return channel_index;
365 Strip *tgt =
nullptr;
368 int timeline_frame = scene->
r.
cfra;
371 if (!
ed || !
ed->current_strips()) {
375 for (
Strip &strip : *
ed->current_strips()) {
376 const int strip_end = strip.right_handle(scene);
377 if (
ELEM(type, -1, strip.type) && (strip_end <= timeline_frame) &&
378 (timeline_frame - strip_end < proximity))
381 proximity = timeline_frame - strip_end;
385 int best_channel = 1;
387 best_channel = (type ==
STRIP_TYPE_MOVIE) ? tgt->channel - 1 : tgt->channel;
397 const int needed_channels,
398 const char **r_error_msg)
405 if (channel > max_channel) {
406 *r_error_msg =
RPT_(
"No available channel for the current frame.");
415 used_channels.
add(strip->channel);
419 int free_channels = 0;
424 if (free_channels == needed_channels) {
429 *r_error_msg =
RPT_(
"No available channel for the current frame.");
452 float frame_start, channel;
461 if (sad ==
nullptr) {
481 const int current_frame = scene->
r.
cfra;
482 if (event !=
nullptr && is_drop) {
485 "Drag and drop code must call 'sequencer_add_init' and 'sequencer_add_free'");
556 "Filename '%s' too long (max length %zu, was %zu)",
627 if (region ==
nullptr) {
651 ®ion->
v2d, mouse_region.x, mouse_region.y, &mouse_view.x, &mouse_view.y);
653 load_data->start_frame = std::trunc(mouse_view.x);
654 load_data->channel = std::trunc(mouse_view.y);
664 const char *error_msg;
714 ed->current_strips(),
726 if (strip ==
nullptr) {
739 strip_col.
add(strip);
752 if (strip ==
nullptr) {
768 if (
ed &&
ed->current_strips() &&
ed->current_strips()->first()) {
792 if (sce_seq ==
nullptr) {
835 ot->
name =
"Add Scene Strip";
836 ot->
idname =
"SEQUENCER_OT_scene_strip_add";
837 ot->
description =
"Add a strip re-using this scene as the source";
862 {
SCE_COPY_NEW,
"NEW", 0,
"New",
"Add new Strip with a new empty Scene with default settings"},
867 "Add a new Strip, with an empty scene, and copy settings from the current scene"},
872 "Add a Strip and link in the collections from the current scene (shallow copy)"},
877 "Add a Strip and make a full copy of the current scene"},
878 {0,
nullptr, 0,
nullptr,
nullptr},
894 if (scene_new ==
nullptr) {
922 ot->
name =
"Add Strip with a new Scene";
923 ot->
idname =
"SEQUENCER_OT_scene_strip_add_new";
924 ot->
description =
"Add a strip using a new scene as the source";
941 "Method for creating the new scene");
959 Scene *scene_asset =
reinterpret_cast<Scene *
>(
962 if (scene_asset &&
asset.is_local_id()) {
1036 ot->
name =
"Add Scene Asset";
1037 ot->
description =
"Add a strip using a duplicate of this scene asset as the source";
1038 ot->
idname =
"SEQUENCER_OT_add_scene_strip_from_scene_asset";
1065 if (clip ==
nullptr) {
1106 ot->
name =
"Add MovieClip Strip";
1107 ot->
idname =
"SEQUENCER_OT_movieclip_strip_add";
1108 ot->
description =
"Add a movieclip strip to the sequencer";
1140 if (
mask ==
nullptr) {
1181 ot->
name =
"Add Mask Strip";
1182 ot->
idname =
"SEQUENCER_OT_mask_strip_add";
1183 ot->
description =
"Add a mask strip to the sequencer";
1240 for (
Strip *strip : strips) {
1262 const double stream_start,
1263 const double anchor_start)
1267 const double offset_seconds = stream_start - anchor_start;
1268 const int frame_offset = int(offset_seconds * scene->frames_per_second());
1272 strip->sound->offset_time = double(frame_offset) / scene->frames_per_second() - offset_seconds;
1274 if (frame_offset != 0) {
1281 strip->content_length_set(std::max(anchor->content_length(), strip->content_length()));
1285 strip->right_handle_set(scene, anchor->right_handle(scene));
1286 strip->left_handle_set(scene, anchor->left_handle());
1299 bool &r_has_overlap)
1318 if (probe_anim !=
nullptr) {
1322 if (video_count == 0 && sound_count == 0) {
1329 const int base_channel = std::max(1,
load_data->channel);
1332 for (
const int video_index :
IndexRange(video_count)) {
1334 load_data->channel = base_channel + sound_count + video_index;
1336 if (strip ==
nullptr) {
1337 if (video_index == 0) {
1348 for (
const int sound_index :
IndexRange(sound_count)) {
1350 load_data->channel = base_channel + sound_index;
1352 if (strip ==
nullptr) {
1355 double stream_start = 0.0;
1358 stream_start = info.
start;
1360 entries.
append({strip, stream_start});
1370 if (entry.strip == anchor_entry.
strip) {
1374 scene, entry.strip, anchor_entry.
strip, entry.stream_start, anchor_entry.
stream_start);
1379 load_data->start_frame += anchor_entry.
strip->right_handle(scene) -
1380 anchor_entry.
strip->left_handle();
1384 if (handle_overlap) {
1390 r_strips_added.
add(entry.strip);
1397 group.
add(entry.strip);
1414 bool has_overlap =
false;
1433 if (handle_overlap && has_overlap) {
1437 return strips_added;
1456 const double fps_old = scene->frames_per_second();
1463 "View transform set to %s (converted from %s)",
1468 if (fps_old != scene->frames_per_second()) {
1471 "Scene frame rate set to %.4g (converted from %.4g)",
1472 scene->frames_per_second(),
1508 const char *error_msg;
1531 ot->
name =
"Add Movie Strip";
1532 ot->
idname =
"SEQUENCER_OT_movie_strip_add";
1533 ot->
description =
"Add a movie strip to the sequencer";
1561 "Set Scene Frame Rate",
1562 "Set frame rate of the current scene to the frame rate of the movie");
1581 bool has_overlap =
false;
1591 if (strip ==
nullptr) {
1596 strips_added.
add(strip);
1597 load_data->start_frame += strip->right_handle(scene) - strip->left_handle();
1602 if (handle_overlap && has_overlap) {
1614 if (strip ==
nullptr) {
1639 if (tot_files > 1) {
1668 const char *error_msg;
1687 ot->
name =
"Add Sound Strip";
1688 ot->
idname =
"SEQUENCER_OT_sound_strip_add";
1689 ot->
description =
"Add a sound strip to the sequencer";
1711 RNA_def_boolean(ot->
srna,
"mono",
false,
"Mono",
"Merge all the sound's channels into one");
1722 const char *filename_stripped,
1724 const int numdigits,
1738 int framenr, numdigits;
1750 if (use_placeholders) {
1751 for (
int i = range->
offset; i < range->max_framenr + 1; i++, se++) {
1756 size_t strip_frame = 0;
1790 char dirpath[
sizeof(strip->
data->dirpath)];
1815 blendfile_path, blendfile_path, op,
false);
1816 if (ranges.is_empty()) {
1824 bool has_overlap =
false;
1828 load_data.image.count = use_placeholders ? range.max_framenr - range.offset + 1 :
1829 range.frames.count();
1835 char dirpath[
sizeof(strip->
data->dirpath)];
1846 strips_added.
add(strip);
1849 range.frames.free_no_destruct();
1851 ranges.free_no_destruct();
1853 if (handle_overlap && has_overlap) {
1891 "View transform set to %s (converted from %s)",
1921 const char *error_msg;
1945 ot->
name =
"Add Image Strip";
1946 ot->
idname =
"SEQUENCER_OT_image_strip_add";
1947 ot->
description =
"Add an image or image sequence to the sequencer";
1972 "image_import_type",
1976 "Mode for importing selected images");
1982 "use_sequence_detection",
1985 "Automatically detect animated sequences in selected images (based on file names)");
1991 "Reserve placeholder frames for missing frames of the image sequence");
2013 if (!
text.is_empty()) {
2015 MEM_SAFE_DELETE(textvars->
text_ptr);
2020 textvars->
runtime = MEM_new<seq::TextVarsRuntime>(__func__);
2032 if (buf ==
nullptr) {
2036 buf[buf_len] =
'\0';
2071 if (strip !=
nullptr) {
2072 load_data.start_frame += strip->right_handle(scene) - strip->left_handle();
2104 if (
STR_ELEM(prop_id,
"filepath",
"directory",
"filename",
"relative_path")) {
2107 if (
STREQ(prop_id,
"text")) {
2119 ot->
name =
"Add Text Strip";
2120 ot->
idname =
"SEQUENCER_OT_text_strip_add";
2121 ot->
description =
"Add a text strip to the sequencer";
2143 ot->
srna,
"text",
nullptr, 0,
"Text",
"Initialize the strip with this text");
2179 Strip *input1 = inputs.
size() > 0 ? inputs[0] :
nullptr;
2180 Strip *input2 = inputs.
size() == 2 ? inputs[1] :
nullptr;
2186 if (input1 !=
nullptr) {
2187 int chan =
max_ii(input1 ? input1->channel : 0, input2 ? input2->channel : 0);
2208 textvars->
runtime = MEM_new<seq::TextVarsRuntime>(__func__);
2273 if (
STR_ELEM(prop_id,
"frame_start",
"length")) {
2292 return TIP_(
"Add a crossfade transition strip for two selected strips with video content");
2294 return TIP_(
"Add an add blend mode effect strip for two selected strips with video content");
2297 "Add a subtract blend mode effect strip for two selected strips with video content");
2300 "Add an alpha over blend mode effect strip for two selected strips with video content");
2303 "Add an alpha under blend mode effect strip for two selected strips with video content");
2306 "Add a gamma crossfade transition strip for two selected strips with video content");
2309 "Add a multiply blend mode effect strip for two selected strips with video content");
2311 return TIP_(
"Add a wipe transition strip for two selected strips with video content");
2313 return TIP_(
"Add a glow effect strip for a single selected strip with video content");
2315 return TIP_(
"Add a color strip to the sequencer");
2317 return TIP_(
"Add a video speed effect strip for a single selected strip with video content");
2319 return TIP_(
"Add a multicam selector effect strip to the sequencer");
2321 return TIP_(
"Add an adjustment layer effect strip to the sequencer");
2324 "Add a gaussian blur effect strip for a single selected strip with video content");
2326 return TIP_(
"Add a text strip to the sequencer");
2328 return TIP_(
"Add a color mix effect strip to the sequencer");
2330 return TIP_(
"Add a compositor based effect strip for zero, one, or two selected inputs");
2344 ot->
name =
"Add Effect Strip";
2345 ot->
idname =
"SEQUENCER_OT_effect_strip_add";
2346 ot->
description =
"Add an effect to the sequencer, most are applied on top of existing strips";
2363 "Sequencer effect type");
2369 ot->
srna,
"width", 0, 1,
INT_MAX,
"Width",
"Width of the color strip in pixels", 1,
INT_MAX);
2376 "Height of the color strip in pixels",
2386 "Initialize the strip with this color",
Main runtime representation of an asset.
File and directory operations.
#define BLI_path_join(...)
#define STRNCPY_UTF8(dst, src)
#define BLT_I18NCONTEXT_ID_SEQUENCE
#define BLT_I18NCONTEXT_ID_MOVIECLIP
#define ID_BLEND_PATH(_bmain, _id)
#define STRIP_HAS_PATH(_strip)
Read Blender memory allocation and freeing.
#define RNA_BEGIN(sptr, itemptr, propname)
#define RNA_PROP_BEGIN(sptr, itemptr, prop)
#define BLI_assert_msg(a, msg)
constexpr IndexRange()=default
bool contains(const Key &key) const
void append(const T &value)
const T & data(const Action &owning_action) const
void Detect(const FloatImage &image, const DetectOptions &options, vector< Feature > *detected_features)
float4 load_data(StoredFloat4 data)
ID * asset_local_id_ensure_imported(Main &bmain, const asset_system::AssetRepresentation &asset, int flags=0, const std::optional< eAssetImportMethod > import_method=std::nullopt, const std::optional< ImportInstantiateContext > instantiate_context=std::nullopt, ReportList *reports=nullptr)
void operator_asset_reference_props_register(StructRNA &srna)
const asset_system::AssetRepresentation * operator_asset_reference_props_get_asset_from_all_library(const bContext &C, PointerRNA &ptr, ReportList *reports)
void SEQUENCER_OT_mask_strip_add(wmOperatorType *ot)
static int find_unlocked_unmuted_channel(const Editing *ed, int channel_index)
static int sequencer_generic_invoke_xy_guess_channel(bContext *C, int type)
static void sequencer_disable_one_time_properties(bContext *C, wmOperator *op)
static void sequencer_add_free(bContext *, wmOperator *op)
static void seq_load_apply_generic_options(bContext *C, wmOperator *op, Strip *strip)
static const EnumPropertyItem rna_enum_image_import_type_items[]
static void sequencer_generic_invoke_path__internal(bContext *C, wmOperator *op, const char *identifier)
static bool is_op_for_effect_with_inputs(const Scene *scene, StripType type)
static bool sequencer_add_text_strip_poll_property(const bContext *, wmOperator *op, const PropertyRNA *prop)
static wmOperatorStatus sequencer_add_image_strip_exec(bContext *C, wmOperator *op)
static bool sequencer_add_draw_check_fn(PointerRNA *ptr, PropertyRNA *prop, void *)
static wmOperatorStatus sequencer_add_scene_asset_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus sequencer_add_movie_strip_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_movieclip_strip_add(wmOperatorType *ot)
static bool seq_load_apply_generic_options_only_test_overlap(bContext *C, wmOperator *op, Strip *strip)
static bool should_handle_overlap(const wmOperator *op)
static bool have_free_channels(bContext *C, wmOperator *op, const int needed_channels, const char **r_error_msg)
static wmOperatorStatus sequencer_add_mask_strip_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus sequencer_add_mask_strip_exec(bContext *C, wmOperator *op)
static std::string sequencer_add_scene_asset_get_description(bContext *C, wmOperatorType *, PointerRNA *ptr)
static wmOperatorStatus sequencer_add_text_strip_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_add_scene_strip_from_scene_asset(wmOperatorType *ot)
void SEQUENCER_OT_effect_strip_add(wmOperatorType *ot)
static bool sequencer_add_effect_strip_poll_property(const bContext *C, wmOperator *op, const PropertyRNA *prop)
const EnumPropertyItem sequencer_prop_effect_types[]
static void sequencer_generic_invoke_xy__internal(bContext *C, wmOperator *op, int flag, int type, const wmEvent *event)
static void sequencer_add_sound_multiple_strips(bContext *C, wmOperator *op, seq::LoadData *load_data)
static IMB_Proxy_Size seq_get_proxy_size_flags(bContext *C)
static wmOperatorStatus sequencer_add_scene_strip_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static Strip * sequencer_add_text_strip(bContext *C, wmOperator *op, seq::LoadData *load_data, const StringRef text)
static Strip * sequencer_add_text_strip_from_file(bContext *C, wmOperator *op, seq::LoadData *load_data)
static bool sequencer_add_images(bContext *C, wmOperator *op, seq::LoadData &load_data)
static void sequencer_add_image_strip_load_files(wmOperator *op, Scene *scene, Strip *strip, seq::LoadData *load_data, const ImageFrameRange *range)
static void seq_build_proxy(bContext *C, const VectorSet< Strip * > strips)
static wmOperatorStatus sequencer_add_movieclip_strip_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static Scene * sequencer_add_scene_asset(const bContext &C, const asset_system::AssetRepresentation &asset, ReportList &)
static void move_strips(bContext *C, wmOperator *op)
VectorSet< Strip * > strip_effect_get_new_inputs(const Scene *scene, StripType effect_type, bool ignore_active)
static bool sequencer_add_image_sequence_force(bContext *C, wmOperator *op, seq::LoadData &load_data)
static bool sequencer_add_generic_exec(bContext *C, wmOperator *op, seq::LoadData *load_data, Scene *scene, const int num_strips)
static wmOperatorStatus sequencer_add_scene_strip_new_invoke(bContext *C, wmOperator *op, const wmEvent *event)
bool effect_inputs_validate(int have_inputs, int num_inputs, ReportList *reports)
static std::string sequencer_add_effect_strip_get_description(bContext *, wmOperatorType *, PointerRNA *ptr)
void SEQUENCER_OT_movie_strip_add(wmOperatorType *ot)
void sequencer_select_do_updates(const bContext *C, Scene *scene)
static wmOperatorStatus sequencer_add_movie_strip_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static bool is_drag_and_drop(const wmOperator *op, const wmEvent *event)
static EnumPropertyItem strip_new_scene_items[]
void SEQUENCER_OT_scene_strip_add(wmOperatorType *ot)
static wmOperatorStatus sequencer_add_text_strip_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void frame_filename_set(char *dst, size_t dst_maxncpy, const char *filename_stripped, const int frame, const int numdigits, const char *ext)
static void sequencer_generic_props__internal(wmOperatorType *ot, int flag)
static bool op_invoked_by_drop_event(const wmOperator *op)
static bool sequencer_add_sound_single_strip(bContext *C, wmOperator *op, seq::LoadData *load_data)
bool deselect_all_strips(const Scene *scene)
static wmOperatorStatus sequencer_add_effect_strip_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void SEQUENCER_OT_sound_strip_add(wmOperatorType *ot)
static wmOperatorStatus sequencer_add_effect_strip_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_add_scene_strip_new_exec(bContext *C, wmOperator *op)
static void sequencer_add_init(bContext *, wmOperator *op)
static VectorSet< Strip * > sequencer_add_movie_strips(bContext *C, wmOperator *op, seq::LoadData *load_data)
static wmOperatorStatus sequencer_add_scene_strip_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_text_strip_add(wmOperatorType *ot)
static wmOperatorStatus sequencer_add_sound_strip_exec(bContext *C, wmOperator *op)
static void seq_load_handle_overlap(bContext *C, wmOperator *op, Span< Strip * > strips)
void SEQUENCER_OT_image_strip_add(wmOperatorType *ot)
static bool load_data_init_from_operator(seq::LoadData *load_data, bContext *C, wmOperator *op)
static void sequencer_file_drop_channel_frame_set(bContext *C, wmOperator *op, const wmEvent *event)
static bool should_move_strips_after_add(const wmOperator *op)
static void sequencer_add_movie_strips_single_file(bContext *C, wmOperator *op, seq::LoadData *load_data, VectorSet< Strip * > &r_strips_added, bool &r_has_overlap)
static wmOperatorStatus sequencer_add_image_strip_invoke(bContext *C, wmOperator *op, const wmEvent *event)
VectorSet< Strip * > all_strips_from_context(bContext *C)
static wmOperatorStatus sequencer_add_movieclip_strip_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_add_sound_strip_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static void sequencer_add_ui(bContext *, wmOperator *op)
static void sequencer_add_movie_sync_strip(Scene *scene, Strip *strip, Strip *anchor, const double stream_start, const double anchor_start)
void SEQUENCER_OT_scene_strip_add_new(wmOperatorType *ot)
std::string filename(const std::string_view &str, size_t pos)
T clamp(const T &a, const T &min, const T &max)
T min(const T &a, const T &b)
bool proxy_build_start(Main *bmain, Scene *scene, Strip *strip, Set< std::string > *processed_paths, bool build_only_on_bad_performance, Vector< ProxyBuildContext * > &r_queue)
Strip * add_effect_strip(Scene *scene, ListBaseT< Strip > *seqbase, LoadData *load_data)
eSeqImageFitMethod tool_settings_fit_method_get(Scene *scene)
Strip * add_image_strip(Main *bmain, Scene *scene, ListBaseT< Strip > *seqbase, LoadData *load_data)
void transform_translate_strip(Scene *evil_scene, Strip *strip, int delta)
void transform_handle_overlap(Scene *scene, ListBaseT< Strip > *seqbasep, Span< Strip * > source_strips, bool use_sync_markers, Span< Strip * > time_dependent_strips)
IMB_Proxy_Size rendersize_to_proxysize(eSpaceSeq_Proxy_RenderSize render_size)
bool transform_test_overlap(const Scene *scene, Strip *strip1, Strip *strip2)
Editing * editing_get(const Scene *scene)
void add_image_load_file(Scene *scene, Strip *strip, size_t strip_frame, const char *filename)
void add_image_set_directory(Strip *strip, const char *dirpath)
bool select_has_any(const Scene *scene)
void text_effect_update_runtime(const RenderData *context, TextVars &text, const int2 image_size)
void connect(Strip *strip1, Strip *strip2)
bool transform_single_image_check(const Strip *strip)
Editing * editing_ensure(Scene *scene)
void proxy_set(Strip *strip, bool value)
Strip * select_active_get(const Scene *scene)
constexpr int MAX_CHANNELS
Strip * add_sound_strip(Main *, Scene *, ListBaseT< Strip > *, LoadData *)
ProxyJob * ED_seq_proxy_job_get(const bContext *C, wmJob *wm_job)
void add_image_init_alpha_mode(Main *bmain, Scene *scene, Strip *strip)
void tool_settings_fit_method_set(Scene *scene, eSeqImageFitMethod fit_method)
Strip * add_movieclip_strip(Scene *scene, ListBaseT< Strip > *seqbase, LoadData *load_data)
Strip * add_scene_strip(Scene *scene, ListBaseT< Strip > *seqbase, LoadData *load_data)
bool retiming_selection_clear(const Editing *ed)
void select_active_set(Scene *scene, Strip *strip)
SeqTimelineChannel * channel_get_by_index(const ListBaseT< SeqTimelineChannel > *channels, const int channel_index)
@ SEQ_LOAD_SET_VIEW_TRANSFORM
@ SEQ_LOAD_MOVIE_SYNC_FPS
eSeqRippleFlag tool_settings_ripple_flag_get(Scene *scene)
void transform_shuffle_vertical(ListBaseT< Strip > *seqbasep, Span< Strip * > strips, Scene *scene, const int channel_delta)
int effect_type_get_min_num_inputs(StripType type)
ListBaseT< SeqTimelineChannel > * channels_displayed_get(const Editing *ed)
Strip * add_movie_strip(Main *bmain, Scene *scene, ListBaseT< Strip > *seqbase, LoadData *load_data)
Strip * add_mask_strip(Scene *scene, ListBaseT< Strip > *seqbase, LoadData *load_data)
wmJob * ED_seq_proxy_wm_job_get(const bContext *C)
int default_strip_length(const double scene_fps)
eSeqOverlapMode tool_settings_overlap_mode_get(Scene *scene)
void view2d_region_to_view(const View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
const EnumPropertyItem * RNA_movieclip_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
eSpaceSeq_Proxy_RenderSize
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
ScrArea * CTX_wm_area(const bContext *C)
char * STRNCPY(char(&dst)[N], const char *src)
int RNA_enum_get(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
@ RPT_ERROR_INVALID_INPUT
void uiTemplateImageFormatViews(ui::Layout *layout, PointerRNA *imfptr, PointerRNA *ptr)
Scene * CTX_data_sequencer_scene(const bContext *C)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
bool BLI_path_abs(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1
bool WM_operator_poll_or_report_error(bContext *C, wmOperatorType *ot, ReportList *reports)
PropertyRNA * RNA_def_float_color(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void WM_operator_properties_free(PointerRNA *ptr)
const char * RNA_property_identifier(const PropertyRNA *prop)
void MOV_close(MovieReader *anim)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
bool BKE_sound_stream_info_get(Main *main, const char *filepath, int stream, SoundStreamInfo *sound_info)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
PointerRNA WM_operator_properties_create_ptr(wmOperatorType *ot)
@ SCE_COPY_LINK_COLLECTION
std::string RNA_property_string_get(PointerRNA *ptr, PropertyRNA *prop)
bool BLI_path_frame(char *path, size_t path_maxncpy, int frame, int digits) ATTR_NONNULL(1)
int RNA_int_get(PointerRNA *ptr, const char *name)
wmWindow * CTX_wm_window(const bContext *C)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
char * BLI_strdupn(const char *str, size_t len) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
MINLINE int max_ii(int a, int b)
@ SEQ_VIEW_SEQUENCE_PREVIEW
int RNA_property_collection_length(PointerRNA *ptr, PropertyRNA *prop)
bool BLI_path_frame_get(const char *path, int *r_frame, int *r_digits_len) ATTR_NONNULL(1
void WM_operator_properties_filesel(wmOperatorType *ot, const int filter, const short type, const eFileSel_Action action, const eFileSel_Flag flag, const short display, const short sort)
bool ED_operator_sequencer_active_editable(bContext *C)
@ USER_SEQ_PROXY_SETUP_AUTOMATIC
void WM_jobs_start(wmWindowManager *wm, wmJob *wm_job)
@ STRIP_TYPE_GAUSSIAN_BLUR
bool RNA_property_boolean_get(PointerRNA *ptr, PropertyRNA *prop)
const char * BKE_main_blendfile_path(const Main *bmain) ATTR_NONNULL()
@ LIB_ID_DUPLICATE_IS_ROOT_ID
void void void const char * BLI_path_basename(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
bool BLI_path_extension_ensure(char *path, size_t path_maxncpy, const char *ext) ATTR_NONNULL(1
char * BLI_file_read_text_as_mem(const char *filepath, size_t pad_bytes, size_t *r_size)
BLI_INLINE int BLI_rcti_size_y(const struct rcti *rct)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
void void BLI_path_split_dir_part(const char *filepath, char *dir, size_t dir_maxncpy) ATTR_NONNULL(1
VecBase< int32_t, 2 > int2
VecBase< float, 2 > float2
ListBaseT< ImageFrameRange > ED_image_filesel_detect_sequences(StringRefNull blendfile_path, StringRefNull root_path, wmOperator *op, bool detect_udim)
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
const EnumPropertyItem * RNA_scene_without_sequencer_scene_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
wmWindowManager * CTX_wm_manager(const bContext *C)
int BKE_sound_stream_count(Main *main, const char *filepath)
const EnumPropertyItem * RNA_mask_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
void RNA_def_property_subtype(PropertyRNA *prop, PropertySubType subtype)
bool void BLI_path_rel(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1)
bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier)
rcti ED_time_scrub_clamp_scroller_mask(const rcti &scroller_mask)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
const EnumPropertyItem rna_enum_strip_scale_method_items[]
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
const EnumPropertyItem rna_enum_dummy_NULL_items[]
BLI_INLINE int BLI_rcti_size_x(const struct rcti *rct)
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void BLI_rcti_init(struct rcti *rect, int xmin, int xmax, int ymin, int ymax)
@ USER_SEQ_ED_CONNECT_STRIPS_BY_DEFAULT
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
void void void BLI_path_split_file_part(const char *filepath, char *file, size_t file_maxncpy) ATTR_NONNULL(1
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
Main * CTX_data_main(const bContext *C)
int MOV_get_video_stream_count(MovieReader *anim)
@ ID_RECALC_SEQUENCER_STRIPS
wmOperatorStatus WM_operator_name_call_ptr(bContext *C, wmOperatorType *ot, wm::OpCallContext context, PointerRNA *properties, const wmEvent *event)
wmOperatorStatus WM_enum_search_invoke(bContext *C, wmOperator *op, const wmEvent *)
void DEG_relations_tag_update(Main *bmain)
const EnumPropertyItem rna_enum_strip_overlap_mode_items[]
void RNA_property_boolean_set(PointerRNA *ptr, PropertyRNA *prop, bool value)
bScreen * CTX_wm_screen(const bContext *C)
bool void BLI_path_frame_strip(char *path, char *r_ext, size_t ext_maxncpy) ATTR_NONNULL(1
bool RNA_collection_is_empty(PointerRNA *ptr, const char *name)
std::string RNA_string_get(PointerRNA *ptr, const char *name)
size_t BLI_strlen_utf8(const char *strc) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
Scene * ED_scene_sequencer_add(Main *bmain, bContext *C, eSceneCopyMethod method)
int RNA_property_int_get(PointerRNA *ptr, PropertyRNA *prop)
@ SEQ_PROXY_SKIP_EXISTING
ARegion * CTX_wm_region(const bContext *C)
bool BLI_rcti_clamp_pt_v(const struct rcti *rect, int xy[2])
void WM_event_add_fileselect(bContext *C, wmOperator *op)
Scene * BKE_scene_duplicate(Main *bmain, Scene *sce, eSceneCopyMethod type, eDupli_ID_Flags duplicate_flags, uint duplicate_options)
MovieReader * openanim_noload(const char *filepath, ImBufFlags flags, int streamindex, bool keep_original_colorspace, ColorManagedColorspaceSettings *colorspace_settings)
void RNA_float_get_array(PointerRNA *ptr, const char *name, float *values)
bool WM_jobs_is_running(const wmJob *wm_job)
void ED_area_tag_redraw(ScrArea *area)
#define SEQPROP_VIEW_TRANSFORM
#define SEQPROP_STARTFRAME
#define SEQPROP_PLAYBACK_RATE
#define SEQPROP_FIT_METHOD
ListBaseT< ImageFrame > frames
ListBaseT< MovieClip > movieclips
ListBaseT< Scene > scenes
ColorManagedViewSettings view_settings
ListBaseT< SpaceLink > spacedata
eSpaceSeq_Proxy_RenderSize render_size
seq::TextVarsRuntime * runtime
ListBaseT< struct ScrArea > areabase
ImageFormatData im_format
Vector< ProxyBuildContext * > queue
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)
Layout & column(bool align)
void separator(float factor=1.0f, LayoutSeparatorType type=LayoutSeparatorType::Auto)
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll_property(const bContext *C, wmOperator *op, const PropertyRNA *prop) ATTR_WARN_UNUSED_RESULT
void(*) cancel(bContext *C, wmOperator *op)
void(*) ui(bContext *C, wmOperator *op)
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
std::string(*) get_description(bContext *C, wmOperatorType *ot, PointerRNA *ptr)
struct ReportList * reports
struct wmOperatorType * type
bke::WindowRuntime * runtime