#include <edl.h>

Public Member Functions | |
| EDL (EDL *parent_edl=0) | |
| ~EDL () | |
| int | create_objects () |
| EDL & | operator= (EDL &edl) |
| int | load_defaults (BC_Hash *defaults) |
| int | save_defaults (BC_Hash *defaults) |
| void | boundaries () |
| int | create_default_tracks () |
| int | load_xml (ArrayList< PluginServer * > *plugindb, FileXML *file, uint32_t load_flags) |
| int | save_xml (ArrayList< PluginServer * > *plugindb, FileXML *xml, char *output_path, int is_clip, int is_vwindow) |
| int | load_audio_config (FileXML *file, int append_mode, uint32_t load_flags) |
| int | load_video_config (FileXML *file, int append_mode, uint32_t load_flags) |
| double | align_to_frame (double position, int round) |
| void | rechannel () |
| void | resample (double old_rate, double new_rate, int data_type) |
| void | copy_tracks (EDL *edl) |
| void | copy_session (EDL *edl, int session_only=0) |
| int | copy_all (EDL *edl) |
| void | copy_assets (EDL *edl) |
| void | copy_clips (EDL *edl) |
| void | synchronize_params (EDL *edl) |
| int | equivalent (double position1, double position2) |
| double | equivalent_output (EDL *edl) |
| void | set_project_path (char *path) |
| void | set_inpoint (double position) |
| void | set_outpoint (double position) |
| void | set_index_file (Asset *asset) |
| void | update_assets (EDL *src) |
| void | optimize () |
| int | dump () |
| void | new_folder (char *folder) |
| void | delete_folder (char *folder) |
| void | modify_edithandles (double oldposition, double newposition, int currentend, int handle_mode, int edit_labels, int edit_plugins) |
| void | modify_pluginhandles (double oldposition, double newposition, int currentend, int handle_mode, int edit_labels, Edits *trim_edits) |
| int | trim_selection (double start, double end, int edit_labels, int edit_plugins) |
| int | copy_assets (double start, double end, FileXML *file, int all, ArrayList< PluginServer * > *plugindb, char *output_path) |
| int | copy (double start, double end, int all, int is_clip, int is_vwindow, FileXML *file, ArrayList< PluginServer * > *plugindb, char *output_path, int rewind_it) |
| void | paste_silence (double start, double end, int edit_labels, int edit_plugins) |
| void | remove_from_project (ArrayList< Asset * > *assets) |
| void | remove_from_project (ArrayList< EDL * > *clips) |
| int | clear (double start, double end, int clear_labels, int clear_plugins) |
| void | insert_asset (Asset *asset, double position, Track *first_track=0, RecordLabels *labels=0) |
| int | insert_clips (ArrayList< EDL * > *new_edls, int load_mode, Track *first_track=0) |
| EDL * | add_clip (EDL *edl) |
| void | get_shared_plugins (Track *source, ArrayList< SharedLocation * > *plugin_locations) |
| void | get_shared_tracks (Track *track, ArrayList< SharedLocation * > *module_locations) |
| int | get_tracks_height (Theme *theme) |
| int64_t | get_tracks_width () |
| void | calculate_conformed_dimensions (int single_channel, float &w, float &h) |
| void | output_dimensions_scaled (int &w, int &h) |
| float | get_aspect_ratio () |
Static Public Member Functions | |
| static int | next_id () |
Data Fields | |
| ArrayList< char * > | folders |
| ArrayList< EDL * > | clips |
| EDL * | vwindow_edl |
| int | vwindow_edl_shared |
| Assets * | assets |
| Tracks * | tracks |
| Labels * | labels |
| EDLSession * | session |
| LocalSession * | local_session |
| char | project_path [BCTEXTLEN] |
| EDL * | parent_edl |
| int | id |
Static Public Attributes | |
| static Mutex * | id_lock = 0 |
Definition at line 46 of file edl.h.
| EDL::EDL | ( | EDL * | parent_edl = 0 |
) |
Definition at line 38 of file edl.C.
References folders, labels, local_session, new_folder(), next_id(), project_path, ArrayList< TYPE >::set_array_delete(), tracks, vwindow_edl, and vwindow_edl_shared.
Referenced by add_clip(), copy_clips(), and load_xml().

| EDL::~EDL | ( | ) |
Definition at line 59 of file edl.C.
References assets, clips, folders, labels, local_session, parent_edl, ArrayList< TYPE >::remove_all_objects(), session, tracks, vwindow_edl, and vwindow_edl_shared.

| int EDL::create_objects | ( | ) |
Definition at line 91 of file edl.C.
References assets, labels, local_session, parent_edl, session, and tracks.
Referenced by add_clip(), VWindow::change_source(), copy_clips(), BRenderCommand::copy_edl(), New::create_new_edl(), RenderFarmClientThread::do_packages(), FormatPresetItem::FormatPresetItem(), MWindow::init_edl(), MWindow::insert(), MWindow::load_assets(), MWindow::load_filenames(), load_xml(), TransportCommand::new_edl(), NewPresetItem::NewPresetItem(), MWindow::paste_edls(), RenderEngine::RenderEngine(), SetFormatThread::run(), Render::run(), Record::run(), PreferencesThread::run(), ClipEdit::run(), VWindowEditing::to_clip(), MWindow::to_clip(), and TransportCommand::TransportCommand().
Definition at line 111 of file edl.C.
References copy_all().

| int EDL::load_defaults | ( | BC_Hash * | defaults | ) |
Definition at line 118 of file edl.C.
References LocalSession::load_defaults(), EDLSession::load_defaults(), local_session, parent_edl, and session.
Referenced by New::create_new_edl(), and MWindow::init_edl().

| int EDL::save_defaults | ( | BC_Hash * | defaults | ) |
Definition at line 127 of file edl.C.
References local_session, parent_edl, LocalSession::save_defaults(), EDLSession::save_defaults(), and session.
Referenced by New::handle_event(), MWindow::paste_edls(), NewThread::run(), and MWindow::save_defaults().

| void EDL::boundaries | ( | ) |
Definition at line 136 of file edl.C.
References LocalSession::boundaries(), EDLSession::boundaries(), local_session, and session.
Referenced by NewVChannelsTumbler::handle_down_event(), NewVTracksTumbler::handle_down_event(), NewAChannelsTumbler::handle_down_event(), NewATracksTumbler::handle_down_event(), NewVChannelsTumbler::handle_up_event(), NewVTracksTumbler::handle_up_event(), NewAChannelsTumbler::handle_up_event(), NewATracksTumbler::handle_up_event(), and load_xml().

| int EDL::create_default_tracks | ( | ) |
Definition at line 142 of file edl.C.
References Tracks::add_audio_track(), Tracks::add_video_track(), EDLSession::audio_tracks, session, tracks, and EDLSession::video_tracks.
Referenced by MWindow::asset_to_edl(), New::create_new_project(), and MWindow::init_edl().

| int EDL::load_xml | ( | ArrayList< PluginServer * > * | plugindb, | |
| FileXML * | file, | |||
| uint32_t | load_flags | |||
| ) |
Definition at line 156 of file edl.C.
References ArrayList< TYPE >::append(), assets, BCTEXTLEN, boundaries(), LocalSession::clipboard_length, clips, create_objects(), EDL(), folders, XMLTag::get_property(), labels, List< TYPE >::last, Tracks::load(), Labels::load(), Assets::load(), EDLSession::load_audio_config(), EDLSession::load_video_config(), load_xml(), EDLSession::load_xml(), LocalSession::load_xml(), local_session, new_folder(), parent_edl, project_path, FileXML::read_tag(), FileXML::read_text(), ArrayList< TYPE >::remove_all_objects(), session, FileXML::tag, XMLTag::title_is(), tracks, LocalSession::unset_inpoint(), LocalSession::unset_outpoint(), vwindow_edl, vwindow_edl_shared, and Labels::xml_tag.
Referenced by BatchRenderThread::calculate_dest_paths(), MWindow::insert(), MWindow::load_filenames(), MainUndoStackItem::load_from_undo(), load_xml(), RenderFarmClientThread::read_edl(), Render::run(), VWindowEditing::to_clip(), and MWindow::to_clip().

| int EDL::save_xml | ( | ArrayList< PluginServer * > * | plugindb, | |
| FileXML * | xml, | |||
| char * | output_path, | |||
| int | is_clip, | |||
| int | is_vwindow | |||
| ) |
Definition at line 325 of file edl.C.
References copy(), Tracks::total_length(), and tracks.
Referenced by MainUndo::capture_state(), copy(), Save::handle_event(), SaveAs::run(), MWindow::save_backup(), and RenderFarmServerThread::send_edl().

| int EDL::load_audio_config | ( | FileXML * | file, | |
| int | append_mode, | |||
| uint32_t | load_flags | |||
| ) |
| int EDL::load_video_config | ( | FileXML * | file, | |
| int | append_mode, | |||
| uint32_t | load_flags | |||
| ) |
| double EDL::align_to_frame | ( | double | position, | |
| int | round | |||
| ) |
Definition at line 1139 of file edl.C.
References EDLSession::cursor_on_frames, EDLSession::frame_rate, Units::round(), EDLSession::sample_rate, session, and Units::to_int64().
Referenced by Autos::auto_exists_for_editing(), TrackCanvas::cursor_motion_event(), TrackCanvas::do_edits(), TrackCanvas::do_plugins(), Autos::get_auto_for_editing(), VModePatch::get_keyframe(), VFadePatch::get_keyframe(), MutePatch::get_keyframe(), APanPatch::get_keyframe(), AFadePatch::get_keyframe(), Autos::get_prev_auto(), TrackCanvas::repeat_event(), ManualGoto::run(), VTimeBar::select_label(), MTimeBar::select_label(), CTimeBar::select_label(), set_inpoint(), set_outpoint(), ZoomBar::set_selection(), TrackCanvas::start_selection(), MWindow::toggle_label(), VPatchGUI::update(), APatchGUI::update(), TimeBar::update_cursor(), and TrackCanvas::update_drag_handle().

| void EDL::rechannel | ( | ) |
Definition at line 596 of file edl.C.
References Autos::default_auto, List< TYPE >::first, ListItem< TYPE >::next, NEXT, TRACK_AUDIO, and tracks.
Referenced by SetFormatThread::apply_changes().
| void EDL::resample | ( | double | old_rate, | |
| double | new_rate, | |||
| int | data_type | |||
| ) |
Definition at line 614 of file edl.C.
References List< TYPE >::first, NEXT, and tracks.
Referenced by SetFormatThread::apply_changes(), MWindow::asset_to_rate(), and MWindow::paste_edls().
| void EDL::copy_tracks | ( | EDL * | edl | ) |
| void EDL::copy_session | ( | EDL * | edl, | |
| int | session_only = 0 | |||
| ) |
Definition at line 379 of file edl.C.
References ArrayList< TYPE >::append(), EDLSession::copy(), LocalSession::copy_from(), folders, local_session, new_folder(), parent_edl, project_path, ArrayList< TYPE >::remove_all_objects(), session, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.
Referenced by SetFormatThread::apply_changes(), PreferencesThread::apply_settings(), copy_all(), MWindow::load_assets(), MWindow::load_filenames(), MWindow::paste_edls(), SetFormatThread::run(), Record::run(), PreferencesThread::run(), and ClipEdit::run().

| int EDL::copy_all | ( | EDL * | edl | ) |
Definition at line 343 of file edl.C.
References copy_assets(), copy_clips(), Labels::copy_from(), Tracks::copy_from(), copy_session(), labels, and tracks.
Referenced by add_clip(), copy_clips(), BRenderCommand::copy_edl(), TransportCommand::copy_from(), FormatPresetItem::FormatPresetItem(), NewPresetsPulldown::handle_event(), FormatPresetsPulldown::handle_event(), PackageRenderer::initialize(), NewPresetItem::NewPresetItem(), operator=(), MWindow::paste_edls(), Render::render(), RenderEngine::RenderEngine(), and ClipEdit::run().

| void EDL::copy_assets | ( | EDL * | edl | ) |
Definition at line 371 of file edl.C.
References assets, Assets::copy_from(), and parent_edl.
Referenced by copy(), and copy_all().

| void EDL::copy_clips | ( | EDL * | edl | ) |
Definition at line 353 of file edl.C.
References add_clip(), clips, copy_all(), create_objects(), EDL(), ArrayList< TYPE >::remove_all_objects(), ArrayList< TYPE >::total, ArrayList< TYPE >::values, vwindow_edl, and vwindow_edl_shared.
Referenced by copy_all().

| void EDL::synchronize_params | ( | EDL * | edl | ) |
Definition at line 626 of file edl.C.
References List< TYPE >::first, local_session, ListItem< TYPE >::next, LocalSession::synchronize_params(), and tracks.
Referenced by PlaybackEngine::perform_change(), and PlaybackEngine::sync_parameters().

| int EDL::equivalent | ( | double | position1, | |
| double | position2 | |||
| ) |
Definition at line 659 of file edl.C.
References EDLSession::cursor_on_frames, EDLSession::frame_rate, EDLSession::sample_rate, and session.
Referenced by Edits::clear_handle(), Tracks::get_affected_edits(), Autos::get_auto_at_position(), Autos::insert_auto(), Autos::insert_auto_for_editing(), Labels::insert_labels(), Edits::modify_handles(), Labels::next_label(), Labels::prev_label(), set_inpoint(), set_outpoint(), Labels::toggle_label(), and TimeBar::update_highlights().
| double EDL::equivalent_output | ( | EDL * | edl | ) |
Definition at line 673 of file edl.C.
References Tracks::equivalent_output(), EDLSession::equivalent_output(), session, and tracks.
Referenced by BRenderThread::run().

| void EDL::set_project_path | ( | char * | path | ) |
Definition at line 682 of file edl.C.
References project_path.
Referenced by MWindow::save_backup().
| void EDL::set_inpoint | ( | double | position | ) |
Definition at line 687 of file edl.C.
References align_to_frame(), equivalent(), LocalSession::get_inpoint(), LocalSession::get_outpoint(), local_session, LocalSession::set_inpoint(), LocalSession::unset_inpoint(), and LocalSession::unset_outpoint().
Referenced by VWindow::set_inpoint(), MWindow::set_inpoint(), and InPointUndoItem::undo().

| void EDL::set_outpoint | ( | double | position | ) |
Definition at line 702 of file edl.C.
References align_to_frame(), equivalent(), LocalSession::get_inpoint(), LocalSession::get_outpoint(), local_session, LocalSession::set_outpoint(), LocalSession::unset_inpoint(), and LocalSession::unset_outpoint().
Referenced by VWindow::set_outpoint(), MWindow::set_outpoint(), and OutPointUndoItem::undo().
