RecordEngine Class Reference

#include <recordengine.h>

Collaboration diagram for RecordEngine:

Collaboration graph
[legend]

Public Member Functions

 RecordEngine (MWindow *mwindow, Record *record)
 RecordEngine (MWindow *mwindow, Record *record, File *file, Asset *asset, RecordLabels *labels)
 ~RecordEngine ()
int initialize ()
int set_gui (RecordGUI *gui)
long get_dc_offset (int offset)
int set_dc_offset (long new_offset, int number)
long get_dc_offset (long *dc_offset, RecordGUIDCOffsetText **dc_offset_text)
int run_script (FileXML *script)
int start_monitor ()
int stop_monitor ()
int pause_monitor ()
int resume_monitor ()
int start_saving (int duplex=0)
int stop_saving (int no_monitor=0)
int save_frame ()
int arm_duplex ()
int start_duplex ()
int stop_duplex ()
int start_preview ()
int stop_preview (int no_monitor=0)
int stop_operation (int no_monitor=0)
int start_over ()
int lock_window ()
int unlock_window ()
int set_video_picture ()
int open_input_devices (int duplex)
int close_input_devices ()
int open_output_devices ()
int close_output_devices ()
int delete_all_labels ()
int calibrate_dc_offset ()
int calibrate_dc_offset (long new_value, int channel)
int update_position (long new_position)
int update_total_length (long new_length)
int update_prev_label (long new_label)
int update_next_label (long new_label)
int goto_prev_label ()
int goto_next_label ()
int toggle_label ()
int reset_over ()
int set_done (int value)
int mode_to_text (char *string, int mode)
int text_to_mode (char *string)
long absolute_monitor_position ()
long absolute_preview_position ()
long absolute_record_position ()
ArrayList< char * > * get_video_inputs ()
int change_channel (Channel *channel)
int get_vu_format ()
int get_loop_hr ()
int get_loop_min ()
int get_loop_sec ()
long get_loop_duration ()
int set_loop_duration ()
int get_duplex_status ()
int set_duplex_status (int duplex_status)
int set_record_mode (char *text)
int set_monitor_video (int value)
int set_monitor_audio (int value)
int get_record_mode (char *text)
int get_record_mode ()
int get_dither ()
int get_duplex_enable ()
int get_input_channels ()
int get_format (char *string)
int get_samplerate ()
int get_time_format ()
float get_frames_per_foot ()
float get_min_db ()
float get_frame_rate ()
long get_current_position ()
int get_bits ()
long get_current_delay ()
long get_current_jumps ()
int reset_current_delay ()
int get_in_length ()
int get_meter_over_hold (int divisions)
int get_meter_peak_hold (int divisions)
int get_meter_speed ()

Data Fields

Recordrecord
MWindowmwindow
RecordThreadmonitor_thread
RecordThreadrecord_thread
PlaybackEngineduplex_thread
RecordGUIgui
AudioDeviceadevice
VideoDevicevdevice
Filefile
Assetasset
RecordLabelslabels
Timer monitor_timer
Timer preview_timer
Timer record_timer
int record_mode
int is_saving
int is_previewing
int is_duplexing
int is_monitoring
long total_length
long current_position
long prev_label
long next_label

Private Attributes

long jump_delay [JUMP_DELAYS]
long current_jump_jumps [JUMP_DELAYS]
int current_jump_delay
int current_jump_jump

Detailed Description

Definition at line 22 of file recordengine.h.


Constructor & Destructor Documentation

RecordEngine::RecordEngine ( MWindow mwindow,
Record record 
)

Definition at line 28 of file recordengine.C.

RecordEngine::RecordEngine ( MWindow mwindow,
Record record,
File file,
Asset asset,
RecordLabels labels 
)

RecordEngine::~RecordEngine (  ) 

Definition at line 67 of file recordengine.C.

References adevice, monitor_thread, record_thread, and vdevice.


Member Function Documentation

int RecordEngine::initialize (  ) 

int RecordEngine::set_gui ( RecordGUI gui  ) 

Definition at line 188 of file recordengine.C.

References current_position, and update_position().

Here is the call graph for this function:

long RecordEngine::get_dc_offset ( int  offset  ) 

Definition at line 173 of file recordengine.C.

References Record::dc_offset, and record.

Referenced by calibrate_dc_offset().

int RecordEngine::set_dc_offset ( long  new_offset,
int  number 
)

Definition at line 178 of file recordengine.C.

References adevice.

Referenced by calibrate_dc_offset().

long int RecordEngine::get_dc_offset ( long *  dc_offset,
RecordGUIDCOffsetText **  dc_offset_text 
)

Definition at line 183 of file recordengine.C.

References adevice.

int RecordEngine::run_script ( FileXML script  ) 

int RecordEngine::start_monitor (  ) 

Definition at line 291 of file recordengine.C.

References is_monitoring, monitor_thread, monitor_timer, open_input_devices(), RecordThread::start_recording(), and Timer::update().

Here is the call graph for this function:

int RecordEngine::stop_monitor (  ) 

Definition at line 300 of file recordengine.C.

Referenced by set_done().

int RecordEngine::pause_monitor (  ) 

Definition at line 310 of file recordengine.C.

References is_monitoring, monitor_thread, and RecordThread::pause_recording().

Referenced by save_frame(), start_preview(), and start_saving().

Here is the call graph for this function:

int RecordEngine::resume_monitor (  ) 

Definition at line 320 of file recordengine.C.

References is_monitoring, monitor_thread, monitor_timer, open_input_devices(), RecordThread::resume_recording(), and Timer::update().

Here is the call graph for this function:

int RecordEngine::start_saving ( int  duplex = 0  ) 

Definition at line 332 of file recordengine.C.

References adevice, duplex_thread, Record::enable_duplex(), is_duplexing, is_saving, open_input_devices(), pause_monitor(), record, record_timer, and Timer::update().

Referenced by run_script().

Here is the call graph for this function:

int RecordEngine::stop_saving ( int  no_monitor = 0  ) 

Definition at line 378 of file recordengine.C.

References is_saving, record_thread, and RecordThread::stop_recording().

Referenced by stop_operation().

Here is the call graph for this function:

int RecordEngine::save_frame (  ) 

Definition at line 362 of file recordengine.C.

References Record::do_audio, is_saving, open_input_devices(), pause_monitor(), record, record_thread, record_timer, RecordThread::start_recording(), and Timer::update().

Here is the call graph for this function:

int RecordEngine::arm_duplex (  ) 

int RecordEngine::start_duplex (  ) 

int RecordEngine::stop_duplex (  ) 

Definition at line 388 of file recordengine.C.

References duplex_thread, and is_duplexing.

int RecordEngine::start_preview (  ) 

Definition at line 400 of file recordengine.C.

References current_position, file, is_previewing, open_output_devices(), pause_monitor(), preview_timer, stop_operation(), and Timer::update().

Here is the call graph for this function:

int RecordEngine::stop_preview ( int  no_monitor = 0  ) 

Definition at line 416 of file recordengine.C.

References is_previewing.

Referenced by stop_operation().

int RecordEngine::stop_operation ( int  no_monitor = 0  ) 

Definition at line 426 of file recordengine.C.

References is_previewing, is_saving, stop_preview(), and stop_saving().

Referenced by goto_next_label(), goto_prev_label(), set_done(), start_over(), and start_preview().

Here is the call graph for this function:

int RecordEngine::start_over (  ) 

int RecordEngine::lock_window (  ) 

Definition at line 470 of file recordengine.C.

References gui, and BC_WindowBase::lock_window().

Here is the call graph for this function:

int RecordEngine::unlock_window (  ) 

Definition at line 475 of file recordengine.C.

References gui, and BC_WindowBase::unlock_window().

Here is the call graph for this function:

int RecordEngine::set_video_picture (  ) 

Definition at line 435 of file recordengine.C.

References Record::do_video, record, VideoDevice::set_picture(), and vdevice.

Here is the call graph for this function:

int RecordEngine::open_input_devices ( int  duplex  ) 

int RecordEngine::close_input_devices (  ) 

Definition at line 281 of file recordengine.C.

References adevice, VideoDevice::close_all(), AudioDevice::close_all(), Record::do_audio, Record::do_video, record, and vdevice.

Here is the call graph for this function:

int RecordEngine::open_output_devices (  ) 

Definition at line 446 of file recordengine.C.

References adevice, Record::do_audio, Record::get_software_positioning(), record, and AudioDevice::set_software_positioning().

Referenced by start_preview().

Here is the call graph for this function:

int RecordEngine::close_output_devices (  ) 

Definition at line 460 of file recordengine.C.

References adevice, AudioDevice::close_all(), Record::do_audio, and record.

Here is the call graph for this function:

int RecordEngine::delete_all_labels (  ) 

int RecordEngine::calibrate_dc_offset (  ) 

Definition at line 549 of file recordengine.C.

References Record::dc_offset, RecordGUI::dc_offset_text, Record::do_audio, get_dc_offset(), gui, and record.

Here is the call graph for this function:

int RecordEngine::calibrate_dc_offset ( long  new_value,
int  channel 
)

Definition at line 558 of file recordengine.C.

References Record::dc_offset, Record::do_audio, record, and set_dc_offset().

Here is the call graph for this function:

int RecordEngine::update_position ( long  new_position  ) 

int RecordEngine::update_total_length ( long  new_length  ) 

int RecordEngine::update_prev_label ( long  new_label  ) 

int RecordEngine::update_next_label ( long  new_label  ) 

int RecordEngine::goto_prev_label (  ) 

int RecordEngine::goto_next_label (  ) 

int RecordEngine::toggle_label (  ) 

Definition at line 542 of file recordengine.C.

References current_position, labels, RecordLabels::toggle_label(), and update_position().

Here is the call graph for this function:

int RecordEngine::reset_over (  ) 

Definition at line 568 of file recordengine.C.

int RecordEngine::set_done ( int  value  ) 

Definition at line 572 of file recordengine.C.

References gui, BC_WindowBase::set_done(), stop_monitor(), and stop_operation().

Here is the call graph for this function:

int RecordEngine::mode_to_text ( char *  string,
int  mode 
)

Definition at line 672 of file recordengine.C.

References _.

Referenced by get_record_mode(), and run_script().

int RecordEngine::text_to_mode ( char *  string  ) 

Definition at line 682 of file recordengine.C.

References _.

Referenced by set_record_mode().

long RecordEngine::absolute_monitor_position (  ) 

Definition at line 724 of file recordengine.C.

References Record::do_audio, Timer::get_difference(), Record::get_samplerate(), is_monitoring, monitor_timer, and record.

Here is the call graph for this function:

long RecordEngine::absolute_preview_position (  ) 

Definition at line 741 of file recordengine.C.

References Record::do_audio, Timer::get_difference(), Record::get_samplerate(), is_previewing, preview_timer, and record.

Here is the call graph for this function:

long RecordEngine::absolute_record_position (  ) 

Definition at line 758 of file recordengine.C.

References Record::do_audio, Timer::get_difference(), Record::get_samplerate(), is_saving, record, and record_timer.

Here is the call graph for this function:

ArrayList< char * > * RecordEngine::get_video_inputs (  ) 

Definition at line 619 of file recordengine.C.

References Record::do_video, VideoDevice::get_inputs(), record, and vdevice.

Here is the call graph for this function:

int RecordEngine::change_channel ( Channel channel  ) 

Definition at line 611 of file recordengine.C.

References Record::do_video, record, VideoDevice::set_channel(), and vdevice.

Here is the call graph for this function:

int RecordEngine::get_vu_format (  ) 

Definition at line 627 of file recordengine.C.

References Record::get_vu_format(), and record.

Here is the call graph for this function:

int RecordEngine::get_loop_hr (  ) 

Definition at line 639 of file recordengine.C.

References asset, Record::loop_duration, and record.

Referenced by get_loop_min(), and get_loop_sec().

int RecordEngine::get_loop_min (  ) 

Definition at line 640 of file recordengine.C.

References asset, get_loop_hr(), Record::loop_duration, and record.

Referenced by get_loop_sec().

Here is the call graph for this function:

int RecordEngine::get_loop_sec (  ) 

Definition at line 641 of file recordengine.C.

References asset, get_loop_hr(), get_loop_min(), Record::loop_duration, and record.

Here is the call graph for this function:

long RecordEngine::get_loop_duration (  ) 

Definition at line 642 of file recordengine.C.

References Record::loop_duration, and record.

int RecordEngine::set_loop_duration (  ) 

Definition at line 706 of file recordengine.C.

References Record::get_samplerate(), gui, RecordGUI::loop_hr, RecordGUI::loop_min, RecordGUI::loop_sec, record, and Record::set_loop_duration().

Here is the call graph for this function:

int RecordEngine::get_duplex_status (  ) 

int RecordEngine::set_duplex_status ( int  duplex_status  ) 

int RecordEngine::set_record_mode ( char *  text  ) 

Definition at line 657 of file recordengine.C.

References record, Record::record_mode, and text_to_mode().

Referenced by run_script().

Here is the call graph for this function:

int RecordEngine::set_monitor_video ( int  value  ) 

Definition at line 649 of file recordengine.C.

Referenced by run_script().

int RecordEngine::set_monitor_audio ( int  value  ) 

Definition at line 653 of file recordengine.C.

Referenced by run_script().

int RecordEngine::get_record_mode ( char *  text  ) 

Definition at line 662 of file recordengine.C.

References mode_to_text(), record, and Record::record_mode.

Here is the call graph for this function:

int RecordEngine::get_record_mode (  ) 

Definition at line 667 of file recordengine.C.

References record, and Record::record_mode.

Referenced by run_script().

int RecordEngine::get_dither (  ) 

Definition at line 628 of file recordengine.C.

References Asset::bits, Record::default_asset, Asset::dither, and record.

int RecordEngine::get_duplex_enable (  ) 

Definition at line 194 of file recordengine.C.

References Record::enable_duplex(), and record.

Here is the call graph for this function:

int RecordEngine::get_input_channels (  ) 

Definition at line 629 of file recordengine.C.

References asset, and Asset::channels.

int RecordEngine::get_format ( char *  string  ) 

Definition at line 630 of file recordengine.C.

References asset, file, Asset::format, File::formattostr(), mwindow, and MWindow::plugindb.

Here is the call graph for this function:

int RecordEngine::get_samplerate (  ) 

Definition at line 635 of file recordengine.C.

References asset.

int RecordEngine::get_time_format (  ) 

Definition at line 637 of file recordengine.C.

References Record::get_time_format(), and record.

Here is the call graph for this function:

float RecordEngine::get_frames_per_foot (  ) 

Definition at line 647 of file recordengine.C.

float RecordEngine::get_min_db (  ) 

Definition at line 643 of file recordengine.C.

References Record::get_min_db(), and record.

Here is the call graph for this function:

float RecordEngine::get_frame_rate (  ) 

Definition at line 638 of file recordengine.C.

References Record::get_frame_rate(), and record.

Here is the call graph for this function:

long RecordEngine::get_current_position (  ) 

int RecordEngine::get_bits (  ) 

Definition at line 636 of file recordengine.C.

References asset, and Asset::bits.

long RecordEngine::get_current_delay (  ) 

Definition at line 689 of file recordengine.C.

References current_jump_delay, current_jump_jump, current_jump_jumps, and jump_delay.

long RecordEngine::get_current_jumps (  ) 

int RecordEngine::reset_current_delay (  ) 

Definition at line 700 of file recordengine.C.

References current_jump_delay, current_jump_jump, and current_jump_jumps.

int RecordEngine::get_in_length (  ) 

Definition at line 714 of file recordengine.C.

References Record::get_meter_speed(), and record.

Here is the call graph for this function:

int RecordEngine::get_meter_over_hold ( int  divisions  ) 

Definition at line 644 of file recordengine.C.

int RecordEngine::get_meter_peak_hold ( int  divisions  ) 

Definition at line 645 of file recordengine.C.

int RecordEngine::get_meter_speed (  ) 

Definition at line 646 of file recordengine.C.

References Record::get_meter_speed(), and record.

Here is the call graph for this function:


Field Documentation

Definition at line 28 of file recordengine.h.

Referenced by get_format(), initialize(), open_input_devices(), and start_over().

Definition at line 102 of file recordengine.h.

Referenced by initialize(), run_script(), save_frame(), stop_saving(), and ~RecordEngine().

Definition at line 103 of file recordengine.h.

Referenced by initialize(), start_saving(), and stop_duplex().

Definition at line 113 of file recordengine.h.

Referenced by absolute_monitor_position(), resume_monitor(), and start_monitor().

Definition at line 113 of file recordengine.h.

Referenced by absolute_preview_position(), and start_preview().

Definition at line 113 of file recordengine.h.

Referenced by absolute_record_position(), save_frame(), and start_saving().

Definition at line 114 of file recordengine.h.

Definition at line 117 of file recordengine.h.

Referenced by RecordEngine(), start_saving(), and stop_duplex().

Definition at line 119 of file recordengine.h.

Referenced by goto_next_label(), initialize(), start_over(), and update_position().

Definition at line 121 of file recordengine.h.

Referenced by RecordEngine(), and update_position().

Definition at line 122 of file recordengine.h.

Referenced by RecordEngine(), and update_position().

long RecordEngine::jump_delay[JUMP_DELAYS] [private]

Definition at line 169 of file recordengine.h.

Referenced by get_current_delay(), and initialize().

long RecordEngine::current_jump_jumps[JUMP_DELAYS] [private]

Definition at line 169 of file recordengine.h.

Referenced by get_current_delay(), initialize(), and reset_current_delay().

Definition at line 170 of file recordengine.h.

Referenced by get_current_delay(), and reset_current_delay().

Definition at line 170 of file recordengine.h.

Referenced by get_current_delay(), and reset_current_delay().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:38:23 2008 for Cinelerra by  doxygen 1.5.5