Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

RecordThread Class Reference

#include <recordthread.h>

List of all members.

Public Member Functions

 RecordThread (MWindow *mwindow, Record *record)
 ~RecordThread ()
int create_objects ()
int start_recording (int monitor, int context)
int stop_recording (int resume_monitor)
int pause_recording ()
int resume_recording ()
int64_t sync_position ()
void do_cron ()
void run ()

Public Attributes

int quit_when_completed
RecordAudiorecord_audio
RecordVideorecord_video
int monitor
int single_frame
int context
Timer * record_timer
int engine_done
int resume_monitor
double last_seconds
int last_day

Private Attributes

MWindowmwindow
Recordrecord
Filefile
Condition * pause_lock
Condition * startup_lock
Condition * loop_lock
Mutex * state_lock
DriveSyncdrivesync


Detailed Description

Definition at line 16 of file recordthread.h.


Constructor & Destructor Documentation

RecordThread::RecordThread MWindow mwindow,
Record record
 

Definition at line 25 of file recordthread.C.

References loop_lock, pause_lock, quit_when_completed, record_audio, record_timer, record_video, startup_lock, and state_lock.

RecordThread::~RecordThread  ) 
 

Definition at line 40 of file recordthread.C.

References loop_lock, pause_lock, record_timer, startup_lock, and state_lock.


Member Function Documentation

int RecordThread::create_objects  ) 
 

Definition at line 51 of file recordthread.C.

References Asset::audio_data, Record::default_asset, engine_done, mwindow, record, record_audio, record_video, and Asset::video_data.

Referenced by RecordEngine::initialize().

void RecordThread::do_cron  ) 
 

Definition at line 172 of file recordthread.C.

References Record::current_display_position(), engine_done, RecordGUI::flash_batch(), Record::get_current_batch(), Record::get_current_time(), last_day, last_seconds, record, Record::record_gui, Batch::start_day, and Batch::start_time.

Referenced by run().

int RecordThread::pause_recording  ) 
 

Definition at line 112 of file recordthread.C.

References Asset::audio_data, RecordAudio::batch_done, RecordVideo::batch_done, Record::capture_state, Record::close_input_devices(), context, Record::default_asset, loop_lock, pause_lock, record, record_audio, record_video, state_lock, RecordVideo::stop_recording(), RecordAudio::stop_recording(), and Asset::video_data.

Referenced by RecordEngine::pause_monitor(), and Record::pause_monitor().

int RecordThread::resume_recording  ) 
 

Definition at line 145 of file recordthread.C.

References RecordAudio::batch_done, RecordVideo::batch_done, loop_lock, pause_lock, record_audio, and record_video.

Referenced by RecordEngine::resume_monitor(), and Record::resume_monitor().

void RecordThread::run  ) 
 

Definition at line 220 of file recordthread.C.

References Record::activate_batch(), RecordVideo::arm_recording(), RecordAudio::arm_recording(), Asset::audio_data, Asset::audio_length, Record::capture_state, Record::close_input_devices(), context, Record::default_asset, Record::delete_output_file(), do_cron(), DriveSync::done, drivesync, MWindow::edl, engine_done, Record::file, Record::get_audio_write_length(), VideoDevice::get_best_colormodel(), Batch::get_current_asset(), Record::get_current_batch(), Record::get_current_time(), Record::get_next_batch(), VideoDevice::is_compressed(), last_day, last_seconds, loop_lock, monitor, mwindow, Record::open_input_devices(), Record::open_output_file(), pause_lock, record, record_audio, Batch::record_mode, EDLSession::record_sync_drives, record_timer, record_video, Batch::recorded, Record::resume_monitor(), resume_monitor, Record::rewind_file(), RING_BUFFERS, EDL::session, Batch::session_frames, Batch::session_samples, File::start_audio_thread(), RecordVideo::start_recording(), RecordAudio::start_recording(), File::start_video_thread(), startup_lock, state_lock, File::stop_audio_thread(), Record::stop_duplex(), File::stop_video_thread(), Batch::total_frames, Batch::total_samples, Record::vdevice, Asset::video_data, Asset::video_length, and EDLSession::video_write_length.

int RecordThread::start_recording int  monitor,
int  context
 

Definition at line 66 of file recordthread.C.

References engine_done, loop_lock, resume_monitor, and startup_lock.

Referenced by RecordEngine::save_frame(), RecordEngine::start_monitor(), Record::start_monitor(), and Record::start_recording().

int RecordThread::stop_recording int  resume_monitor  ) 
 

Definition at line 83 of file recordthread.C.

References RecordAudio::batch_done, RecordVideo::batch_done, context, engine_done, record_audio, record_video, state_lock, RecordAudio::stop_recording(), and RecordVideo::stop_recording().

Referenced by Record::stop_monitor(), Record::stop_operation(), and RecordEngine::stop_saving().

int64_t RecordThread::sync_position  ) 
 

Definition at line 162 of file recordthread.C.

References Asset::audio_data, Record::default_asset, record, record_audio, record_timer, Asset::sample_rate, and RecordAudio::sync_position().

Referenced by Record::sync_position().


Member Data Documentation

int RecordThread::context
 

Definition at line 40 of file recordthread.h.

Referenced by pause_recording(), RecordVideo::run(), run(), and stop_recording().

DriveSync* RecordThread::drivesync [private]
 

Definition at line 56 of file recordthread.h.

Referenced by run().

int RecordThread::engine_done
 

Definition at line 42 of file recordthread.h.

Referenced by create_objects(), do_cron(), run(), start_recording(), and stop_recording().

File* RecordThread::file [private]
 

Definition at line 51 of file recordthread.h.

int RecordThread::last_day
 

Definition at line 46 of file recordthread.h.

Referenced by do_cron(), and run().

double RecordThread::last_seconds
 

Definition at line 45 of file recordthread.h.

Referenced by do_cron(), and run().

Condition * RecordThread::loop_lock [private]
 

Definition at line 52 of file recordthread.h.

Referenced by pause_recording(), RecordThread(), resume_recording(), run(), start_recording(), and ~RecordThread().

int RecordThread::monitor
 

Definition at line 36 of file recordthread.h.

Referenced by RecordVideo::arm_recording(), RecordVideo::cleanup_recording(), RecordVideo::run(), run(), and RecordAudio::run().

MWindow* RecordThread::mwindow [private]
 

Definition at line 49 of file recordthread.h.

Referenced by create_objects(), and run().

Condition* RecordThread::pause_lock [private]
 

Definition at line 52 of file recordthread.h.

Referenced by pause_recording(), RecordThread(), resume_recording(), run(), and ~RecordThread().

int RecordThread::quit_when_completed
 

Definition at line 32 of file recordthread.h.

Referenced by RecordThread(), and RecordEngine::run_script().

Record* RecordThread::record [private]
 

Definition at line 50 of file recordthread.h.

Referenced by create_objects(), do_cron(), pause_recording(), run(), and sync_position().

RecordAudio* RecordThread::record_audio
 

Definition at line 33 of file recordthread.h.

Referenced by create_objects(), pause_recording(), RecordThread(), resume_recording(), RecordVideo::run(), run(), stop_recording(), and sync_position().

Timer* RecordThread::record_timer
 

Definition at line 41 of file recordthread.h.

Referenced by RecordThread(), run(), sync_position(), and ~RecordThread().

RecordVideo* RecordThread::record_video
 

Definition at line 34 of file recordthread.h.

Referenced by create_objects(), pause_recording(), RecordThread(), resume_recording(), run(), and stop_recording().

int RecordThread::resume_monitor
 

Definition at line 43 of file recordthread.h.

Referenced by run(), and start_recording().

int RecordThread::single_frame
 

Definition at line 38 of file recordthread.h.

Condition * RecordThread::startup_lock [private]
 

Definition at line 52 of file recordthread.h.

Referenced by RecordThread(), run(), start_recording(), and ~RecordThread().

Mutex* RecordThread::state_lock [private]
 

Definition at line 54 of file recordthread.h.

Referenced by pause_recording(), RecordThread(), run(), stop_recording(), and ~RecordThread().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:24 2006 for Cinelerra-svn by  doxygen 1.4.4