RecordVideo Class Reference

#include <recordvideo.h>

Inherits Thread.

Collaboration diagram for RecordVideo:

Collaboration graph
[legend]

Public Member Functions

 RecordVideo (MWindow *mwindow, Record *record, RecordThread *record_thread)
 ~RecordVideo ()
void reset_parameters ()
void run ()
int arm_recording ()
void start_recording ()
int stop_recording ()
int pause_recording ()
int resume_recording ()
int wait_for_completion ()
int set_parameters (File *file, RecordGUI *gui, int buffer_size, int realtime, int frames)
void write_buffer (int skip_new=0)
void start_file_thread ()
int unhang_thread ()
void rewind_file ()
void finish_timed ()
void finish_loop ()
void get_capture_frame ()
void read_buffer ()

Data Fields

MWindowmwindow
Recordrecord
RecordThreadrecord_thread
RecordGUIgui
int single_frame
int buffer_size
int64_t buffer_position
VFramecapture_frame
Timer delayer
int write_result
int grab_result
VFrame *** frame_ptr
int64_t current_sample
int64_t next_sample
int64_t total_dropped_frames
int64_t dropped_frames
int64_t last_dropped_frames
int64_t delay
int64_t record_start
int batch_done
int is_recording
int is_paused
Mutexunhang_lock
Conditiontrigger_lock

Private Member Functions

int cleanup_recording ()

Detailed Description

Definition at line 16 of file recordvideo.h.


Constructor & Destructor Documentation

RecordVideo::RecordVideo ( MWindow mwindow,
Record record,
RecordThread record_thread 
)

Definition at line 30 of file recordvideo.C.

References capture_frame, frame_ptr, gui, Record::record_gui, reset_parameters(), trigger_lock, and unhang_lock.

Here is the call graph for this function:

RecordVideo::~RecordVideo (  ) 


Member Function Documentation

void RecordVideo::reset_parameters (  ) 

void RecordVideo::run (  )  [virtual]

int RecordVideo::arm_recording (  ) 

void RecordVideo::start_recording (  ) 

Definition at line 89 of file recordvideo.C.

References trigger_lock, and Condition::unlock().

Referenced by RecordThread::run().

Here is the call graph for this function:

int RecordVideo::stop_recording (  ) 

int RecordVideo::pause_recording (  ) 

int RecordVideo::resume_recording (  ) 

int RecordVideo::wait_for_completion (  ) 

int RecordVideo::set_parameters ( File file,
RecordGUI gui,
int  buffer_size,
int  realtime,
int  frames 
)

void RecordVideo::write_buffer ( int  skip_new = 0  ) 

Definition at line 382 of file recordvideo.C.

References buffer_position, Record::file, frame_ptr, File::get_video_buffer(), record, write_result, and File::write_video_buffer().

Referenced by cleanup_recording(), rewind_file(), and run().

Here is the call graph for this function:

void RecordVideo::start_file_thread (  ) 

int RecordVideo::unhang_thread (  ) 

Definition at line 407 of file recordvideo.C.

References Thread::end().

Here is the call graph for this function:

void RecordVideo::rewind_file (  ) 

void RecordVideo::finish_timed (  ) 

void RecordVideo::finish_loop (  ) 

void RecordVideo::get_capture_frame (  ) 

Definition at line 134 of file recordvideo.C.

References capture_frame, Record::default_asset, Record::fixed_compression, frame_ptr, VideoDevice::get_best_colormodel(), Asset::height, record, Record::vdevice, and Asset::width.

Referenced by run().

Here is the call graph for this function:

void RecordVideo::read_buffer (  ) 

int RecordVideo::cleanup_recording (  )  [private]

Definition at line 116 of file recordvideo.C.

References RecordThread::monitor, record_thread, and write_buffer().

Referenced by run(), and stop_recording().

Here is the call graph for this function:


Field Documentation

Definition at line 48 of file recordvideo.h.

Referenced by arm_recording(), and run().

Definition at line 51 of file recordvideo.h.

Referenced by arm_recording(), cleanup_recording(), run(), and ~RecordVideo().

Definition at line 52 of file recordvideo.h.

Referenced by RecordVideo(), rewind_file(), and run().

Definition at line 53 of file recordvideo.h.

Definition at line 54 of file recordvideo.h.

Referenced by arm_recording(), rewind_file(), and run().

Definition at line 55 of file recordvideo.h.

Referenced by reset_parameters(), run(), and write_buffer().

Definition at line 56 of file recordvideo.h.

Referenced by get_capture_frame(), read_buffer(), RecordVideo(), run(), and ~RecordVideo().

Definition at line 57 of file recordvideo.h.

Referenced by run().

Definition at line 59 of file recordvideo.h.

Referenced by reset_parameters(), run(), and write_buffer().

Definition at line 61 of file recordvideo.h.

Referenced by read_buffer(), reset_parameters(), and run().

Definition at line 64 of file recordvideo.h.

Referenced by run().

Definition at line 65 of file recordvideo.h.

Referenced by run().

Definition at line 66 of file recordvideo.h.

Referenced by reset_parameters().

Definition at line 67 of file recordvideo.h.

Referenced by reset_parameters(), and run().

Definition at line 68 of file recordvideo.h.

Referenced by reset_parameters(), and run().

Definition at line 69 of file recordvideo.h.

Referenced by run().

Definition at line 71 of file recordvideo.h.

Referenced by reset_parameters(), and run().

Definition at line 77 of file recordvideo.h.

Definition at line 78 of file recordvideo.h.

Definition at line 79 of file recordvideo.h.

Referenced by RecordVideo(), and ~RecordVideo().

Definition at line 80 of file recordvideo.h.

Referenced by arm_recording(), RecordVideo(), run(), start_recording(), and ~RecordVideo().


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

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