RecordThread Class Reference

#include <recordthread.h>

Inherits Thread.

Collaboration diagram for RecordThread:

Collaboration graph
[legend]

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 ()

Data Fields

int quit_when_completed
RecordAudiorecord_audio
RecordVideorecord_video
int monitor
int single_frame
int context
Timerrecord_timer
int engine_done
int resume_monitor
double last_seconds
int last_day

Private Attributes

MWindowmwindow
Recordrecord
Filefile
Conditionpause_lock
Conditionstartup_lock
Conditionloop_lock
Mutexstate_lock
DriveSyncdrivesync

Detailed Description

Definition at line 16 of file recordthread.h.


Constructor & Destructor Documentation

RecordThread::RecordThread ( MWindow mwindow,
Record record 
)

RecordThread::~RecordThread (  ) 


Member Function Documentation

int RecordThread::create_objects (  ) 

int RecordThread::start_recording ( int  monitor,
int  context 
)

int RecordThread::stop_recording ( int  resume_monitor  ) 

int RecordThread::pause_recording (  ) 

int RecordThread::resume_recording (  ) 

int64_t RecordThread::sync_position (  ) 

Definition at line 180 of file recordthread.C.

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

Referenced by Record::sync_position().

Here is the call graph for this function:

void RecordThread::do_cron (  ) 

void RecordThread::run (  )  [virtual]

Implements Thread.

Definition at line 238 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, Condition::lock(), Mutex::lock(), 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, SET_TRACE, Thread::start(), 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, TRACE, Mutex::unlock(), Condition::unlock(), Timer::update(), Record::vdevice, Asset::video_data, Asset::video_length, and EDLSession::video_write_length.

Here is the call graph for this function:


Field Documentation

Definition at line 32 of file recordthread.h.

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

Definition at line 38 of file recordthread.h.

Definition at line 40 of file recordthread.h.

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

Definition at line 41 of file recordthread.h.

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

Definition at line 42 of file recordthread.h.

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

Definition at line 43 of file recordthread.h.

Referenced by run(), and start_recording().

Definition at line 45 of file recordthread.h.

Referenced by do_cron(), and run().

Definition at line 46 of file recordthread.h.

Referenced by do_cron(), and run().

Definition at line 49 of file recordthread.h.

Referenced by create_objects(), and run().

Definition at line 50 of file recordthread.h.

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

Definition at line 51 of file recordthread.h.

Definition at line 52 of file recordthread.h.

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

Definition at line 54 of file recordthread.h.

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

Definition at line 56 of file recordthread.h.

Referenced by run().


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

Generated on Mon Apr 28 14:39:43 2008 for Cinelerra by  doxygen 1.5.5