audio_offset = new PlaybackAudioOffset(pwindow, this, x2, y);
audio_offset->create_objects();
audio_offset = new PlaybackAudioOffset(pwindow, this, x2, y);
audio_offset->create_objects();
SET_TRACE
add_subwindow(new PlaybackViewFollows(pwindow,
pwindow->thread->edl->session->view_follows_playback, y));
SET_TRACE
add_subwindow(new PlaybackViewFollows(pwindow,
pwindow->thread->edl->session->view_follows_playback, y));
add_subwindow(new PlaybackSoftwareTimer(pwindow,
pwindow->thread->edl->session->playback_software_position, y));
add_subwindow(new PlaybackSoftwareTimer(pwindow,
pwindow->thread->edl->session->playback_software_position, y));
add_subwindow(new PlaybackRealTime(pwindow,
pwindow->thread->edl->session->real_time_playback, y));
add_subwindow(new PlaybackRealTime(pwindow,
pwindow->thread->edl->session->real_time_playback, y));
PlaybackMap51_2 *map51_2 = new PlaybackMap51_2(pwindow, this,
playback_config->aconfig->map51_2, y);
add_subwindow(map51_2);
PlaybackMap51_2 *map51_2 = new PlaybackMap51_2(pwindow, this,
playback_config->aconfig->map51_2, y);
add_subwindow(map51_2);
y2 = y + BC_TextBox::calculate_h(this,MEDIUMFONT,1,1) - get_text_height(MEDIUMFONT);
add_subwindow(title2 = new BC_Title(x2, y2, _("Gain:")));
y2 = y + BC_TextBox::calculate_h(this,MEDIUMFONT,1,1) - get_text_height(MEDIUMFONT);
add_subwindow(title2 = new BC_Title(x2, y2, _("Gain:")));
play_gain = new PlaybackGain(x2, y, pwindow, this);
play_gain->create_objects();
play_gain = new PlaybackGain(x2, y, pwindow, this);
play_gain->create_objects();
- audio_device = new ADevicePrefs(x + 100, y, pwindow,
+ audio_device = new ADevicePrefs(x + xS(100), y, pwindow,
this, playback_config->aconfig, 0, MODEPLAY);
audio_device->initialize(0);
this, playback_config->aconfig, 0, MODEPLAY);
audio_device->initialize(0);
SET_TRACE
add_subwindow(title1 = new BC_Title(x, y, _("Video Out"), LARGEFONT));
SET_TRACE
add_subwindow(title1 = new BC_Title(x, y, _("Video Out"), LARGEFONT));
SET_TRACE
add_subwindow(window = new VideoEveryFrame(pwindow, this, x, y));
SET_TRACE
add_subwindow(window = new VideoEveryFrame(pwindow, this, x, y));
const char *txt = _("Framerate achieved:");
int y1 = y + (window->get_h() - BC_Title::calculate_h(this, txt)) / 2;
add_subwindow(title1 = new BC_Title(x1, y1, txt));
const char *txt = _("Framerate achieved:");
int y1 = y + (window->get_h() - BC_Title::calculate_h(this, txt)) / 2;
add_subwindow(title1 = new BC_Title(x1, y1, txt));
y += window->get_h() + 2*margin;
// add_subwindow(asynchronous = new VideoAsynchronous(pwindow, x, y));
y += window->get_h() + 2*margin;
// add_subwindow(asynchronous = new VideoAsynchronous(pwindow, x, y));
&pwindow->thread->edl->session->interpolation_type);
add_subwindow(vscaling_equation);
vscaling_equation->create_objects();
SET_TRACE
&pwindow->thread->edl->session->interpolation_type);
add_subwindow(vscaling_equation);
vscaling_equation->create_objects();
SET_TRACE
add_subwindow(title1 = new BC_Title(x, y, _("DVD Subtitle to display:")));
PlaybackSubtitleNumber *subtitle_number;
add_subwindow(title1 = new BC_Title(x, y, _("DVD Subtitle to display:")));
PlaybackSubtitleNumber *subtitle_number;
subtitle_number = new PlaybackSubtitleNumber(x1, y, pwindow, this);
subtitle_number->create_objects();
subtitle_number = new PlaybackSubtitleNumber(x1, y, pwindow, this);
subtitle_number->create_objects();
PlaybackSubtitle *subtitle_toggle;
x1 += subtitle_number->get_w() + margin;
add_subwindow(subtitle_toggle = new PlaybackSubtitle(x2, y, pwindow, this));
PlaybackSubtitle *subtitle_toggle;
x1 += subtitle_number->get_w() + margin;
add_subwindow(subtitle_toggle = new PlaybackSubtitle(x2, y, pwindow, this));
add_subwindow(title1=new BC_Title(x2, y2, _("TOC Program No:"), MEDIUMFONT));
PlaybackProgramNumber *program_number;
program_number = new PlaybackProgramNumber(
add_subwindow(title1=new BC_Title(x2, y2, _("TOC Program No:"), MEDIUMFONT));
PlaybackProgramNumber *program_number;
program_number = new PlaybackProgramNumber(
- x2 + title1->get_w() + 10, y2, pwindow, this);
+ x2 + title1->get_w() + xs10, y2, pwindow, this);
program_number->create_objects();
add_subwindow(interpolate_raw = new PlaybackInterpolateRaw( x, y,
pwindow, this));
y += interpolate_raw->get_h() + margin;
program_number->create_objects();
add_subwindow(interpolate_raw = new PlaybackInterpolateRaw( x, y,
pwindow, this));
y += interpolate_raw->get_h() + margin;
y += white_balance_raw->get_h() + margin;
add_subwindow(vdevice_title = new BC_Title(x, y, _("Video Driver:")));
y += white_balance_raw->get_h() + margin;
add_subwindow(vdevice_title = new BC_Title(x, y, _("Video Driver:")));
PlaybackAudioOffset::PlaybackAudioOffset(PreferencesWindow *pwindow,
PlaybackPrefs *playback, int x, int y)
: BC_TumbleTextBox(playback, playback->playback_config->aconfig->audio_offset,
PlaybackAudioOffset::PlaybackAudioOffset(PreferencesWindow *pwindow,
PlaybackPrefs *playback, int x, int y)
: BC_TumbleTextBox(playback, playback->playback_config->aconfig->audio_offset,
- -10.0, 10.0, x, y, 100)
+ -10.0, 10.0, x, y, xS(100))
PlaybackModuleFragment::PlaybackModuleFragment(int x, int y,
PreferencesWindow *pwindow, PlaybackPrefs *playback, char *text)
PlaybackModuleFragment::PlaybackModuleFragment(int x, int y,
PreferencesWindow *pwindow, PlaybackPrefs *playback, char *text)
- : BC_PopupMenu(x, y, 100, text, 1)
+ : BC_PopupMenu(x, y, xS(100), text, 1)
- : BC_CheckBox(10, y, value, _("View follows playback"))
+ : BC_CheckBox(xS(10), y, value, _("View follows playback"))
- : BC_CheckBox(10, y, value, _("Disable hardware synchronization"))
+ : BC_CheckBox(xS(10), y, value, _("Disable hardware synchronization"))
- : BC_CheckBox(10, y, value, _("Audio playback in real time priority (root only)"))
+ : BC_CheckBox(xS(10), y, value, _("Audio playback in real time priority (root only)"))
PlaybackMap51_2::PlaybackMap51_2(PreferencesWindow *pwindow,
PlaybackPrefs *playback_prefs, int value, int y)
PlaybackMap51_2::PlaybackMap51_2(PreferencesWindow *pwindow,
PlaybackPrefs *playback_prefs, int value, int y)
- : BC_CheckBox(10, y, value, _("Map 5.1->2"))
+ : BC_CheckBox(xS(10), y, value, _("Map 5.1->2"))
PlaybackInterpolateRaw::PlaybackInterpolateRaw( int x, int y,
PreferencesWindow *pwindow, PlaybackPrefs *playback)
PlaybackInterpolateRaw::PlaybackInterpolateRaw( int x, int y,
PreferencesWindow *pwindow, PlaybackPrefs *playback)
PlaybackWhiteBalanceRaw::PlaybackWhiteBalanceRaw( int x, int y,
PreferencesWindow *pwindow, PlaybackPrefs *playback)
PlaybackWhiteBalanceRaw::PlaybackWhiteBalanceRaw( int x, int y,
PreferencesWindow *pwindow, PlaybackPrefs *playback)
pwindow->thread->edl->session->interpolate_raw &&
pwindow->thread->edl->session->white_balance_raw,
_("White balance CR2 images"))
pwindow->thread->edl->session->interpolate_raw &&
pwindow->thread->edl->session->white_balance_raw,
_("White balance CR2 images"))
// int VideoAsynchronous::handle_event()
// {
// pwindow->thread->edl->session->video_asynchronous = get_value();
// int VideoAsynchronous::handle_event()
// {
// pwindow->thread->edl->session->video_asynchronous = get_value();
PlaybackSubtitleNumber::PlaybackSubtitleNumber(int x, int y,
PreferencesWindow *pwindow, PlaybackPrefs *playback)
: BC_TumbleTextBox(playback, pwindow->thread->edl->session->subtitle_number,
PlaybackSubtitleNumber::PlaybackSubtitleNumber(int x, int y,
PreferencesWindow *pwindow, PlaybackPrefs *playback)
: BC_TumbleTextBox(playback, pwindow->thread->edl->session->subtitle_number,
PreferencesWindow *pwindow, PlaybackPrefs *playback)
: BC_TumbleTextBox(playback,
pwindow->thread->edl->session->program_no,
PreferencesWindow *pwindow, PlaybackPrefs *playback)
: BC_TumbleTextBox(playback,
pwindow->thread->edl->session->program_no,
PreferencesWindow *pwindow, PlaybackPrefs *playback)
: BC_TumbleTextBox(playback,
pwindow->thread->edl->session->playback_config->aconfig->play_gain,
PreferencesWindow *pwindow, PlaybackPrefs *playback)
: BC_TumbleTextBox(playback,
pwindow->thread->edl->session->playback_config->aconfig->play_gain,
- 0.0001f, 10000.0f, x, y, 72)
+ 0.0001f, 10000.0f, x, y, xS(72))