Record Class Reference

#include <record.h>

Inherits Thread.

Collaboration diagram for Record:

Collaboration graph
[legend]

Public Member Functions

 Record (MWindow *mwindow, RecordMenuItem *menu_item)
 ~Record ()
void run ()
int load_defaults ()
int save_defaults ()
Batchnew_batch ()
void delete_batch ()
void activate_batch (int number, int stop_operation)
void change_editing_batch (int number)
void close_output_file ()
void delete_batch (int number)
void swap_batches (int number1, int number2)
void get_audio_write_length (int &buffer_size, int &fragment_size)
int open_input_devices (int duplex, int context)
int close_input_devices (int is_monitor)
void start_file_threads ()
int start_recording (int duplex, int context)
int record_frame ()
int start_monitor ()
int pause_monitor ()
int resume_monitor ()
int stop_operation (int resume_monitor)
int stop_duplex ()
void stop_file_threads ()
int stop_monitor ()
int get_in_length ()
int set_video_picture ()
void set_translation (int x, int y)
int set_channel (int channel)
void set_channel (Channel *channel)
int has_signal ()
void toggle_label ()
void configure_batches ()
void source_to_text (char *string, Batch *batch)
int open_output_file ()
int delete_output_file ()
int init_next_file ()
void rewind_file ()
ArrayList< Channel * > * get_video_inputs ()
int get_next_batch ()
Batchget_current_batch ()
Batchget_editing_batch ()
char * current_mode ()
char * current_source ()
int get_current_channel ()
int get_editing_channel ()
void get_current_time (double &seconds, int &day)
Channelget_current_channel_struct ()
char * current_news ()
double * current_start ()
double * current_duration ()
Assetcurrent_asset ()
int * current_offset_type ()
int64_t sync_position ()
double current_display_position ()
int64_t current_audio_position ()
int64_t current_duration_samples ()
int64_t current_video_position ()
int64_t current_duration_frames ()
int64_t batch_video_offset ()
void start_over ()
int set_script (FileXML *script)
int run_script (Asset *asset, int &do_audio, int &do_video)
int save_engine_defaults ()
float get_min_db ()
int get_samplerate ()
float get_framerate ()
int get_everyframe ()
int get_time_format ()
int get_realtime ()
float get_frame_rate ()
char * get_in_path ()
char * get_video_inpath ()
int get_video_driver ()
int get_vu_format ()
int get_rec_mode ()
int set_rec_mode (int value)
int set_loop_duration (int64_t value)
int use_floatingpoint ()
int get_out_length ()
int64_t get_out_buffersize ()
int get_software_positioning ()
int64_t get_in_buffersize ()
int get_video_buffersize ()
int get_video_capturesize ()
int get_meter_over_hold (int divisions)
int get_meter_peak_hold (int divisions)
int get_meter_speed ()
int64_t get_playback_buffer ()
int enable_duplex ()

Data Fields

Assetdefault_asset
ArrayList< Batch * > batches
int load_mode
int do_audio
int do_video
int monitor_audio
int monitor_video
int video_window_open
int prompt_cancel
int fixed_compression
int current_batch
int editing_batch
ChannelDBchanneldb
Channelmaster_channel
LoadModeloadmode
MWindowmwindow
RecordGUIrecord_gui
RecordMonitorrecord_monitor
RecordThreadmonitor_engine
RecordThreadrecord_engine
AudioDeviceadevice
VideoDevicevdevice
Filefile
PlaybackEngineduplex_engine
RecordWindowrecord_window
Timer monitor_timer
int capture_state
int video_x
int video_y
float video_zoom
int reverse_interlace
int color_model
PictureConfigpicture
int fill_frames
EDLedl
Mutexwindow_lock
int current_channel
FileXMLscript
RecordMenuItemmenu_item
int realtime
int to_tracks
int64_t loop_duration
int64_t startsource_sample
int64_t endsource_sample
int64_t startsource_frame
int64_t endsource_frame
int64_t dc_offset [MAXCHANNELS]
int append_to_file
int record_mode
int frame_w
int frame_h
int video_window_w
int cpus

Detailed Description

Definition at line 49 of file record.h.


Constructor & Destructor Documentation

Record::Record ( MWindow mwindow,
RecordMenuItem menu_item 
)

Record::~Record (  ) 

Definition at line 130 of file record.C.

References channeldb, master_channel, picture, and window_lock.


Member Function Documentation

void Record::run (  )  [virtual]

Implements Thread.

Definition at line 343 of file record.C.

References _, EDLSession::aconfig_in, ArrayList< TYPE >::append(), EDLSession::aspect_h, EDLSession::aspect_w, MWindow::asset_to_edl(), Batch::assets, RecordAudio::batch_done, RecordVideo::batch_done, batches, channeldb, AudioInConfig::channels, Asset::channels, MWindow::clear(), close_output_file(), configure_batches(), EDL::copy_session(), RecordThread::create_objects(), EDL::create_objects(), current_batch, RecordMenuItem::current_state, default_asset, Garbage::delete_object(), VideoInConfig::driver, editing_batch, edl, MWindow::edl, Thread::end(), VideoDevice::fix_asset(), fixed_compression, Batch::get_current_asset(), MWindow::gui, Asset::height, VideoDevice::is_compressed(), Batch::labels, EDLSession::labels_follow_edits, VideoDevice::load_channeldb(), load_defaults(), load_mode, Mutex::lock(), BC_WindowBase::lock_window(), menu_item, monitor_engine, mwindow, EDLSession::output_h, EDLSession::output_w, MWindow::paste_edls(), EDLSession::plugins_follow_edits, prompt_cancel, RecordThread::record_audio, record_engine, record_gui, record_monitor, RecordThread::record_video, Batch::recorded, ArrayList< TYPE >::remove_all_objects(), MWindow::remove_asset_from_caches(), MWindow::restart_brender(), MWindow::save_backup(), VideoDevice::save_channeldb(), MWindow::save_defaults(), save_defaults(), script, EDL::session, SET_TRACE, Thread::start(), start_monitor(), RecordThread::stop_recording(), MWindow::sync_parameters(), ArrayList< TYPE >::total, MWindow::undo, Mutex::unlock(), BC_WindowBase::unlock_window(), MWindowGUI::update(), MWindow::update_plugin_guis(), MainUndo::update_undo(), ArrayList< TYPE >::values, EDLSession::vconfig_in, video_window_open, Asset::width, and window_lock.

Here is the call graph for this function:

int Record::load_defaults (  ) 

int Record::save_defaults (  ) 

Batch * Record::new_batch (  ) 

void Record::delete_batch (  ) 

void Record::activate_batch ( int  number,
int  stop_operation 
)

void Record::change_editing_batch ( int  number  ) 

Definition at line 631 of file record.C.

References editing_batch, record_gui, and RecordGUI::update_batch_tools().

Referenced by RecordGUIBatches::selection_changed().

Here is the call graph for this function:

void Record::close_output_file (  ) 

Definition at line 791 of file record.C.

References File::close_file(), file, mwindow, SigHandler::pull_file(), and MWindow::sighandler.

Referenced by activate_batch(), and run().

Here is the call graph for this function:

void Record::delete_batch ( int  number  ) 

void Record::swap_batches ( int  number1,
int  number2 
)

void Record::get_audio_write_length ( int &  buffer_size,
int &  fragment_size 
)

int Record::open_input_devices ( int  duplex,
int  context 
)

int Record::close_input_devices ( int  is_monitor  ) 

Definition at line 1083 of file record.C.

References adevice, capture_state, AudioDevice::close_all(), VideoDevice::close_all(), and vdevice.

Referenced by RecordThread::pause_recording(), and RecordThread::run().

Here is the call graph for this function:

void Record::start_file_threads (  ) 

int Record::start_recording ( int  duplex,
int  context 
)

int Record::record_frame (  ) 

int Record::start_monitor (  ) 

Definition at line 1143 of file record.C.

References capture_state, monitor_engine, monitor_timer, open_input_devices(), RecordThread::start_recording(), and Timer::update().

Referenced by run().

Here is the call graph for this function:

int Record::pause_monitor (  ) 

Definition at line 1158 of file record.C.

References capture_state, monitor_engine, and RecordThread::pause_recording().

Referenced by start_recording().

Here is the call graph for this function:

int Record::resume_monitor (  ) 

Definition at line 1167 of file record.C.

References capture_state, monitor_engine, monitor_timer, open_input_devices(), RecordThread::resume_recording(), and Timer::update().

Referenced by RecordThread::run().

Here is the call graph for this function:

int Record::stop_operation ( int  resume_monitor  ) 

Definition at line 1184 of file record.C.

References capture_state, monitor_engine, record_engine, and RecordThread::stop_recording().

Referenced by activate_batch(), RecordGUIStop::handle_event(), RecordTransport::keypress_event(), and start_over().

Here is the call graph for this function:

int Record::stop_duplex (  ) 

Definition at line 1179 of file record.C.

Referenced by RecordThread::run().

void Record::stop_file_threads (  ) 

int Record::stop_monitor (  ) 

Definition at line 1152 of file record.C.

References monitor_engine, and RecordThread::stop_recording().

Here is the call graph for this function:

int Record::get_in_length (  ) 

Definition at line 1205 of file record.C.

References MWindow::edl, MAX, mwindow, EDLSession::record_speed, and EDL::session.

Referenced by open_input_devices().

int Record::set_video_picture (  ) 

void Record::set_translation ( int  x,
int  y 
)

int Record::set_channel ( int  channel  ) 

void Record::set_channel ( Channel channel  ) 

Definition at line 1258 of file record.C.

References VideoDevice::set_channel(), and vdevice.

Here is the call graph for this function:

int Record::has_signal (  ) 

Definition at line 1263 of file record.C.

References VideoDevice::has_signal(), and vdevice.

Referenced by RecordChannelPicker::has_signal().

Here is the call graph for this function:

void Record::toggle_label (  ) 

Definition at line 805 of file record.C.

References current_display_position(), get_current_batch(), record_gui, Batch::toggle_label(), and RecordGUI::update_labels().

Referenced by RecordGUILabel::handle_event().

Here is the call graph for this function:

void Record::configure_batches (  ) 

Definition at line 310 of file record.C.

References Batch::assets, batches, Batch::calculate_news(), Asset::copy_format(), default_asset, Batch::get_current_asset(), Asset::path, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Referenced by run().

Here is the call graph for this function:

void Record::source_to_text ( char *  string,
Batch batch 
)

Definition at line 324 of file record.C.

References _, Batch::channel, channeldb, VideoInConfig::driver, MWindow::edl, ChannelDB::get(), mwindow, EDL::session, ChannelDB::size(), Channel::title, and EDLSession::vconfig_in.

Referenced by set_channel(), and RecordGUI::update_batches().

Here is the call graph for this function:

int Record::open_output_file (  ) 

int Record::delete_output_file (  ) 

int Record::init_next_file (  ) 

void Record::rewind_file (  ) 

ArrayList< Channel * > * Record::get_video_inputs (  ) 

Definition at line 966 of file record.C.

References default_asset, VideoDevice::get_inputs(), vdevice, and Asset::video_data.

Referenced by RecordChannelPicker::get_video_inputs().

Here is the call graph for this function:

int Record::get_next_batch (  ) 

Batch * Record::get_current_batch (  ) 

Batch * Record::get_editing_batch (  ) 

char * Record::current_mode (  ) 

Definition at line 856 of file record.C.

References get_current_batch(), Batch::mode_to_text(), and record_mode.

Here is the call graph for this function:

char * Record::current_source (  ) 

Definition at line 906 of file record.C.

References get_current_batch(), and Batch::get_source_text().

Here is the call graph for this function:

int Record::get_current_channel (  ) 

Definition at line 926 of file record.C.

References Batch::channel, and get_current_batch().

Referenced by get_current_channel_struct(), and open_input_devices().

Here is the call graph for this function:

int Record::get_editing_channel (  ) 

Definition at line 931 of file record.C.

References Batch::channel, and get_editing_batch().

Referenced by RecordChannelPicker::get_current_channel_number().

Here is the call graph for this function:

void Record::get_current_time ( double &  seconds,
int &  day 
)

Definition at line 1269 of file record.C.

Referenced by RecordThread::do_cron(), and RecordThread::run().

Channel * Record::get_current_channel_struct (  ) 

Definition at line 936 of file record.C.

References channeldb, ChannelDB::get(), and get_current_channel().

Referenced by RecordChannelPicker::get_current_channel_struct().

Here is the call graph for this function:

char * Record::current_news (  ) 

Definition at line 911 of file record.C.

References batches, current_batch, Batch::news, and ArrayList< TYPE >::values.

double * Record::current_start (  ) 

Definition at line 921 of file record.C.

References batches, current_batch, Batch::start_time, and ArrayList< TYPE >::values.

double * Record::current_duration (  ) 

Definition at line 946 of file record.C.

References batches, current_batch, Batch::duration, and ArrayList< TYPE >::values.

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

Asset * Record::current_asset (  ) 

Definition at line 916 of file record.C.

References batches, current_batch, Batch::get_current_asset(), and ArrayList< TYPE >::values.

Here is the call graph for this function:

int * Record::current_offset_type (  ) 

Definition at line 961 of file record.C.

References batches, current_batch, Batch::start_type, and ArrayList< TYPE >::values.

int64_t Record::sync_position (  ) 

Definition at line 974 of file record.C.

References capture_state, monitor_engine, record_engine, and RecordThread::sync_position().

Referenced by RecordVideo::run().

Here is the call graph for this function:

double Record::current_display_position (  ) 

int64_t Record::current_audio_position (  ) 

Definition at line 867 of file record.C.

References default_asset, file, Batch::file_offset, File::get_audio_position(), get_current_batch(), and Asset::sample_rate.

Here is the call graph for this function:

int64_t Record::current_duration_samples (  ) 

int64_t Record::current_video_position (  ) 

Definition at line 877 of file record.C.

References default_asset, file, Batch::file_offset, Asset::frame_rate, get_current_batch(), File::get_video_position(), and Asset::sample_rate.

Here is the call graph for this function:

int64_t Record::current_duration_frames (  ) 

int64_t Record::batch_video_offset (  ) 

Definition at line 861 of file record.C.

References default_asset, Batch::file_offset, Asset::frame_rate, and get_current_batch().

Here is the call graph for this function:

void Record::start_over (  ) 

int Record::set_script ( FileXML script  ) 

int Record::run_script ( Asset asset,
int &  do_audio,
int &  do_video 
)

int Record::save_engine_defaults (  ) 

float Record::get_min_db (  ) 

Definition at line 1306 of file record.C.

References MWindow::edl, EDLSession::min_meter_db, mwindow, and EDL::session.

Referenced by RecordEngine::get_min_db().

int Record::get_samplerate (  ) 

float Record::get_framerate (  ) 

int Record::get_everyframe (  ) 

Definition at line 1312 of file record.C.

References MWindow::edl, mwindow, EDL::session, and EDLSession::video_every_frame.

int Record::get_time_format (  ) 

Definition at line 1288 of file record.C.

References MWindow::edl, mwindow, EDL::session, and EDLSession::time_format.

Referenced by RecordEngine::get_time_format().

int Record::get_realtime (  ) 

Reimplemented from Thread.

Definition at line 1318 of file record.C.

References realtime.

float Record::get_frame_rate (  ) 

Definition at line 1293 of file record.C.

Referenced by RecordEngine::get_frame_rate().

char* Record::get_in_path (  ) 

char* Record::get_video_inpath (  ) 

int Record::get_video_driver (  ) 

int Record::get_vu_format (  ) 

Definition at line 1305 of file record.C.

References MWindow::edl, EDLSession::meter_format, mwindow, and EDL::session.

Referenced by RecordEngine::get_vu_format().

int Record::get_rec_mode (  ) 

Definition at line 1308 of file record.C.

References record_mode.

int Record::set_rec_mode ( int  value  ) 

Definition at line 1309 of file record.C.

References record_mode.

int Record::set_loop_duration ( int64_t  value  ) 

Definition at line 1299 of file record.C.

References loop_duration.

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

int Record::use_floatingpoint (  ) 

int Record::get_out_length (  ) 

Definition at line 1314 of file record.C.

References MWindow::edl, mwindow, EDLSession::playback_buffer, and EDL::session.

int64_t Record::get_out_buffersize (  ) 

Definition at line 1316 of file record.C.

References MWindow::edl, mwindow, EDLSession::playback_buffer, and EDL::session.

int Record::get_software_positioning (  ) 

int64_t Record::get_in_buffersize (  ) 

Definition at line 1317 of file record.C.

References MWindow::edl, mwindow, EDLSession::record_write_length, and EDL::session.

int Record::get_video_buffersize (  ) 

Definition at line 1311 of file record.C.

References MWindow::edl, mwindow, EDL::session, and EDLSession::video_write_length.

int Record::get_video_capturesize (  ) 

int Record::get_meter_over_hold ( int  divisions  ) 

int Record::get_meter_peak_hold ( int  divisions  ) 

int Record::get_meter_speed (  ) 

int64_t Record::get_playback_buffer (  ) 

Definition at line 1322 of file record.C.

References MWindow::edl, mwindow, EDLSession::playback_buffer, and EDL::session.

int Record::enable_duplex (  ) 


Field Documentation

Definition at line 111 of file record.h.

Referenced by RecordGUI::create_objects(), load_defaults(), run(), and save_defaults().

Definition at line 118 of file record.h.

Referenced by run(), and start_recording().

Definition at line 120 of file record.h.

Referenced by RecordVideo::get_capture_frame(), and run().

Definition at line 162 of file record.h.

Definition at line 167 of file record.h.

Referenced by run(), start_recording(), stop_operation(), and sync_position().

Definition at line 173 of file record.h.

Definition at line 174 of file record.h.

Referenced by RecordMenuItem::handle_event().

Definition at line 178 of file record.h.

Referenced by resume_monitor(), and start_monitor().

Definition at line 188 of file record.h.

Referenced by open_input_devices().

Definition at line 194 of file record.h.

Referenced by run(), and RecordMonitorThread::show_output_frame().

Definition at line 195 of file record.h.

Referenced by RecordMenuItem::handle_event(), Record(), run(), and ~Record().

Definition at line 214 of file record.h.

Definition at line 216 of file record.h.

Referenced by Record(), and run().

Definition at line 217 of file record.h.

Referenced by run().

Reimplemented from Thread.

Definition at line 252 of file record.h.

Referenced by get_realtime().

Definition at line 253 of file record.h.

Referenced by RecordToTracks::handle_event().

Definition at line 255 of file record.h.

Referenced by RecordEngine::start_over().

Definition at line 256 of file record.h.

Definition at line 257 of file record.h.

Referenced by RecordEngine::start_over().

Definition at line 258 of file record.h.

int64_t Record::dc_offset[MAXCHANNELS]

Definition at line 260 of file record.h.

Definition at line 262 of file record.h.

Referenced by RecordMonitor::get_scale().

Definition at line 263 of file record.h.

Referenced by RecordMonitor::get_scale().

Definition at line 264 of file record.h.

Referenced by RecordMonitorGUI::set_title().

Definition at line 265 of file record.h.


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

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