X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fcinelerra%2Fedl.h;h=0798b408164c6889a2b626ec30b266e98d03cb10;hb=c857b2fb7965d27d86d5785fb9f1b8957a871a1a;hp=6ec34c8ff51a513023adba55ae6b9fd8eb78a30f;hpb=0c086b3e7b552e0f6b06c8696d7682d9d4bd91db;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/edl.h b/cinelerra-5.1/cinelerra/edl.h index 6ec34c8f..0798b408 100644 --- a/cinelerra-5.1/cinelerra/edl.h +++ b/cinelerra-5.1/cinelerra/edl.h @@ -107,21 +107,29 @@ public: void rechannel(); void resample(double old_rate, double new_rate, int data_type); - int copy(double start, double end, int all, + int copy(int copy_flags, double start, double end, FileXML *file, const char *output_path, int rewind_it); - int copy(int all, FileXML *file, const char *output_path, int rewind_it); + int copy(int copy_flags, FileXML *file, const char *output_path, + int rewind_it); - int copy_clip(double start, double end, int all, + int copy_clip(int copy_flags, double start, double end, FileXML *file, const char *output_path, int rewind_it); - int copy_clip(int all, FileXML *file, const char *output_path, int rewind_it); + int copy_clip(int copy_flags, FileXML *file, const char *output_path, + int rewind_it); - int copy_nested_edl(double start, double end, int all, + int copy_nested(int copy_flags, double start, double end, FileXML *file, const char *output_path, int rewind_it); - int copy_nested_edl(int all, FileXML *file, const char *output_path, int rewind_it); + int copy_nested(int copy_flags, FileXML *file, const char *output_path, + int rewind_it); - int copy_vwindow_edl(double start, double end, int all, + int copy_vwindow(int copy_flags, double start, double end, FileXML *file, const char *output_path, int rewind_it); - int copy_vwindow_edl(int all, FileXML *file, const char *output_path, int rewind_it); + int copy_vwindow(int copy_flags, FileXML *file, const char *output_path, + int rewind_it); + + int copy_xml(int copy_flags, double start, double end, + FileXML *file, const char *closer, const char *output_path, + int rewind_it); void copy_tracks(EDL *edl); // Copies project path, folders, EDLSession, and LocalSession from edl argument. @@ -159,6 +167,7 @@ public: // return next/prev edit starting from position double next_edit(double position); double prev_edit(double position); + double skip_silence(double position); // Debug int dump(FILE *fp=stdout); static int next_id(); @@ -172,34 +181,20 @@ public: void delete_edit_labels(ArrayList *edits, int collapse); void move_edit_labels(ArrayList *edits, double dist); - void modify_edithandles(double oldposition, - double newposition, - int currentend, - int handle_mode, - int edit_labels, - int edit_plugins, - int edit_autos); + void modify_edithandles(double oldposition, double newposition, + int currentend, int handle_mode, int edit_labels, + int edit_plugins, int edit_autos, int group_id); - void modify_pluginhandles(double oldposition, - double newposition, - int currentend, - int handle_mode, - int edit_labels, - int edit_autos, - Edits *trim_edits); - - int trim_selection(double start, - double end, - int edit_labels, - int edit_plugins, - int edit_autos); + void modify_pluginhandles(double oldposition, double newposition, + int currentend, int handle_mode, int edit_labels, + int edit_autos, Edits *trim_edits); + + int trim_selection(double start, double end, + int edit_labels, int edit_plugins, int edit_autos); // Editing functions - int copy_assets(double start, double end, - FileXML *file, int all, const char *output_path); - int copy(double start, double end, int all, - const char *closer, FileXML *file, - const char *output_path, int rewind_it); + int copy_assets(int copy_flags, double start, double end, + FileXML *file, const char *output_path); void copy_indexables(EDL *edl); EDL *new_nested(EDL *edl, const char *path); EDL *create_nested_clip(EDL *nested); @@ -227,6 +222,14 @@ public: int insert_clips(ArrayList *new_edls, int load_mode, Track *first_track = 0); // Add a copy of EDL* to the clip array. Returns the copy. EDL* add_clip(EDL *edl); + EDL *selected_edits_to_clip(int packed, + double *start_position, Track **start_track, + int edit_labels, int edit_autos, int edit_plugins); + EDL *selected_edits_to_clip(int packed, double *start_position, Track **start_track); + void selected_edits_to_clipboard(int packed); + void paste_edits(EDL *clip, Track *first_track, double position, int overwrite, + int edit_edits, int edit_labels, int edit_autos, int edit_plugins); + void paste_edits(EDL *clip, Track *first_track, double position, int overwrite); // resequence group ids starting at next_id int regroup(int next_id);