int CropVideo::load_defaults()
{
+return 0;
}
int CropVideo::save_defaults()
{
+return 0;
}
CropVideoWindow::CropVideoWindow(MWindow *mwindow, CropVideo *thread)
DbWindowItem::
~DbWindowItem()
{
- delete source;
- delete title;
+ delete [] source;
+ delete [] title;
}
#define CmprFn(nm,key) int DbWindowGUI:: \
int FormatQuality::handle_event()
{
asset->quality = get_value();
+return 0;
}
int FormatBits::handle_event()
{
asset->bits = get_bits();
+return 0;
}
int FormatDither::handle_event()
{
*dither = get_value();
+return 0;
}
int FormatSigned::handle_event()
{
asset->signed_ = get_value();
+return 0;
}
{
asset->byte_order = get_value() ^ 1;
lohi->update(get_value() ^ 1);
+return 0;
}
FormatLOHI::FormatLOHI(int x, int y, FormatHILO *hilo, Asset *asset)
{
asset->byte_order = get_value();
hilo->update(get_value() ^ 1);
+return 0;
}
PluginMessages(int input_flag, int output_flag, int message_id = -1);
~PluginMessages();
- send_message(char *text);
- receive_message(char *text);
-
- send_message(int command, char *text);
- send_message(long command, long value);
- send_message(long command, long value1, long value2);
- send_message(int command);
-
- receive_message(); // returns the command
- receive_message(int *command, char *text);
- receive_message(int *command, long *value);
- receive_message(long *value1, long *value2);
- receive_message(int *command, long *value1, long *value2);
+ void send_message(char *text);
+ void receive_message(char *text);
+
+ void send_message(int command, char *text);
+ void send_message(long command, long value);
+ void send_message(long command, long value1, long value2);
+ void send_message(int command);
+
+ void receive_message(); // returns the command
+ void receive_message(int *command, char *text);
+ void receive_message(int *command, long *value);
+ void receive_message(long *value1, long *value2);
+ void receive_message(int *command, long *value1, long *value2);
Messages *messages;
int input_flag, output_flag;
int PluginGlobalPathText::handle_event()
{
strcpy(pwindow->thread->preferences->global_plugin_dir, get_text());
+return 0;
}
int PluginLocalPathText::handle_event()
{
strcpy(pwindow->thread->preferences->local_plugin_dir, get_text());
+return 0;
}
current_jump_jumps[2] = 60;
current_jump_jumps[3] = 80;
current_jump_jumps[4] = 100;
+return 0;
}
int RecordEngine::run_script(FileXML *script)
int RecordEngine::set_dc_offset(long new_offset, int number)
{
adevice->set_dc_offset(new_offset, number);
+return 0;
}
long int RecordEngine::get_dc_offset(long *dc_offset, RecordGUIDCOffsetText **dc_offset_text)
{
this->gui = gui;
update_position(current_position);
+return 0;
}
int RecordEngine::get_duplex_enable()
int RecordEngine::lock_window()
{
gui->lock_window();
+return 0;
}
int RecordEngine::unlock_window()
{
gui->unlock_window();
+return 0;
}
int RecordEngine::update_position(long new_position)
gui->update_next_label(next_label);
}
+return 0;
}
int RecordEngine::goto_prev_label()
update_position(new_position);
}
}
+return 0;
}
int RecordEngine::goto_next_label()
int RecordEngine::reset_over()
{
+return 0;
}
int RecordEngine::set_done(int value)
stop_operation(1);
stop_monitor();
gui->set_done(value);
+return 0;
}
int RecordEngine::start_over()
record->startsource_frame = 0;
}
}
+return 0;
}
int RecordEngine::change_channel(Channel *channel)
{
File file;
strcpy(string, file.formattostr(mwindow->plugindb, asset->format));
+ return 0;
}
int RecordEngine::get_samplerate() { return asset->rate; }
int RecordEngine::get_bits() { return asset->bits; }
int RecordEngine::set_monitor_video(int value)
{
+return 0;
}
int RecordEngine::set_monitor_audio(int value)
{
+return 0;
}
int RecordEngine::set_record_mode(char *text)
{
record->record_mode = text_to_mode(text);
+return 0;
}
int RecordEngine::get_record_mode(char *text)
{
mode_to_text(text, record->record_mode);
+return 0;
}
int RecordEngine::get_record_mode()
{
return record->record_mode;
+return 0;
}
int RecordEngine::mode_to_text(char *string, int mode)
case 1: sprintf(string, _("Timed")); break;
case 2: sprintf(string, _("Loop")); break;
}
+return 0;
}
int RecordEngine::text_to_mode(char *string)
if(!strcasecmp(string, _("Untimed"))) return 0;
if(!strcasecmp(string, _("Timed"))) return 1;
if(!strcasecmp(string, _("Loop"))) return 2;
+return 0;
}
long RecordEngine::get_current_delay()
{
current_jump_delay = 0;
current_jump_jump = current_jump_jumps[current_jump_delay];
+return 0;
}
int RecordEngine::set_loop_duration()
{
record->set_loop_duration((long)record->get_samplerate() * (atol(gui->loop_sec->get_text()) + atol(gui->loop_min->get_text()) * 60 + atol(gui->loop_hr->get_text()) * 3600));
+return 0;
}
int Scale::handle_event()
{
thread->start();
+return 0;
}
ScaleThread::ScaleThread(MWindow *mwindow)
sprintf(string, "%.0f", aspect_h);
window->aspect_h->update(string);
}
+return 0;
}
if(*output > 10000) *output = 10000;
*output *= -1;
thread->update_window();
+return 0;
}
ScaleOffsetText::ScaleOffsetText(int x, int y, ScaleThread *thread, int *output)
if(*output > 10000) *output = 10000;
if(*output < -10000) *output = -10000;
thread->update_window(1);
+return 0;
}
ScaleRatioText::ScaleRatioText(int x, int y, ScaleThread *thread, float *output)
if(*output < -10000) *output = -10000;
*output *= -1;
thread->update_window();
+return 0;
}
int ScaleConstrain::handle_event()
{
thread->constrain_ratio = get_value();
+return 0;
}
ScaleData::ScaleData(int x, int y, ScaleThread *thread)
{
thread->scale_data = get_value();
thread->update_window();
+return 0;
}
{
thread->auto_aspect = get_value();
thread->update_aspect(thread->window);
+return 0;
}
int ScaleAspectW::handle_event()
{
*output = atof(get_text());
+return 0;
}
int ScaleAspectH::handle_event()
{
*output = atof(get_text());
+return 0;
}