#include "asset.h"
#include "assets.h"
#include "autoconf.h"
+#include "awindowgui.h"
#include "bccmodels.h"
#include "bchash.h"
+#include "clip.h"
#include "edl.h"
#include "edlsession.h"
#include "filexml.h"
for(int i = 0; i < ASSET_COLUMNS; i++)
asset_columns[i] = 100;
auto_conf = new AutoConf;
+ awindow_folder = AW_MEDIA_FOLDER;
aspect_w = 4; aspect_h = 3;
audio_channels = 2;
audio_tracks = 2;
autos_follow_edits = 1; // this is needed for predictability
auto_keyframes = 0;
- brender_start = 0.0;
+ brender_start = brender_end = 0.0;
clipboard_length = 0; // unused
color_model = BC_RGBA8888;
- interlace_mode = BC_ILACE_MODE_UNDETECTED;
+ interlace_mode = ILACE_MODE_UNDETECTED;
crop_x1 = 0; crop_x2 = 320;
crop_y1 = 0; crop_y2 = 240;
eyedrop_radius = 0;
ruler_x1 = ruler_y1 = 0.0;
ruler_x2 = ruler_y2 = 0.0;
- strcpy(current_folder, "");
cursor_on_frames = 1;
typeless_keyframes = 0;
cwindow_dest = 0;
cwindow_scrollbars = 0;
cwindow_xscroll = cwindow_yscroll = 0;
cwindow_zoom = 1.0;
- strcpy(default_atransition, "");
- strcpy(default_vtransition, "");
+ cwindow_click2play = 0;
+ strcpy(default_atransition, INIT_ATRANSITION);
+ strcpy(default_vtransition, INIT_VTRANSITION);
default_transition_length = 1.0;
edit_handle_mode[0] = MOVE_ALL_EDITS;
edit_handle_mode[1] = MOVE_ONE_EDIT;
interpolate_raw = 1;
white_balance_raw = 1;
labels_follow_edits = 1;
- mpeg4_deblock = 1;
plugins_follow_edits = 1;
single_standalone = 1;
meter_format = METER_DB;
playback_buffer = 4096;
playback_cursor_visible = 0;
playback_preload = 0;
+ proxy_scale = 1;
+ proxy_disabled_scale = 1;
+ proxy_use_scaler = 0;
+ proxy_auto_scale = 1;
+ proxy_beep = 0;
+ render_beep = 0;
decode_subtitles = 0;
subtitle_number = 0;
label_cells = 0;
record_write_length = 131072;
record_realtime_toc = 1;
- safe_regions = 0;
+ safe_regions = 0;
sample_rate = 48000;
- scrub_speed = 2.;
- show_assets = 1;
- show_titles = 1;
+ scrub_speed = 2.;
+ show_assets = 1;
+ show_titles = 1;
+ si_useduration = 1;
+ si_duration = 3;
test_playback_edits = 1;
time_format = TIME_HMSF;
- for(int i = 0; i < 4; i++)
- timecode_offset[i] = 0;
- nudge_format = 1;
- tool_window = 0;
+ nudge_format = 1;
+ tool_window = 0;
for(int i = 0; i < MAXCHANNELS; i++) {
vchannel_x[i] = 64*i;
vchannel_y[i] = 0;
aconfig_in = new AudioInConfig;
vconfig_in = new VideoInConfig;
recording_format = new Asset;
- video_every_frame = 0;
- video_asynchronous = 0;
+ video_every_frame = 0;
+// video_asynchronous = 0;
video_tracks = 1;
video_write_length = 30;
- view_follows_playback = 1;
- vwindow_meter = 0;
- vwindow_zoom = 1.;
+ view_follows_playback = 1;
+ vwindow_meter = 0;
+ vwindow_zoom = 1.;
+ vwindow_click2play = 0;
playback_config = new PlaybackConfig;
}
return ((playback_preload != ptr->playback_preload) ||
(interpolation_type != ptr->interpolation_type) ||
(video_every_frame != ptr->video_every_frame) ||
- (video_asynchronous != ptr->video_asynchronous) ||
+// (video_asynchronous != ptr->video_asynchronous) ||
(real_time_playback != ptr->real_time_playback) ||
(playback_software_position != ptr->playback_software_position) ||
(test_playback_edits != ptr->test_playback_edits) ||
(decode_subtitles != ptr->decode_subtitles) ||
(subtitle_number != ptr->subtitle_number) ||
(interpolate_raw != ptr->interpolate_raw) ||
- (white_balance_raw != ptr->white_balance_raw));
+ (white_balance_raw != ptr->white_balance_raw) ||
+ (proxy_disabled_scale != ptr->proxy_disabled_scale) ||
+ (proxy_scale != ptr->proxy_scale) ||
+ (proxy_use_scaler != ptr->proxy_use_scaler));
}
void EDLSession::equivalent_output(EDLSession *session, double *result)
{
- if(session->output_w != output_w ||
- session->output_h != output_h ||
- session->frame_rate != frame_rate ||
- session->color_model != color_model ||
- session->interpolation_type != interpolation_type ||
- session->interpolate_raw != interpolate_raw ||
- session->white_balance_raw != white_balance_raw ||
- session->mpeg4_deblock != mpeg4_deblock ||
- session->decode_subtitles != decode_subtitles ||
- session->subtitle_number != subtitle_number)
+ if( session->output_w != output_w ||
+ session->output_h != output_h ||
+ !EQUIV(session->frame_rate, frame_rate) ||
+ session->color_model != color_model ||
+ session->interpolation_type != interpolation_type ||
+ session->interpolate_raw != interpolate_raw ||
+ session->white_balance_raw != white_balance_raw ||
+ session->decode_subtitles != decode_subtitles ||
+ session->subtitle_number != subtitle_number ||
+ session->proxy_disabled_scale != proxy_disabled_scale ||
+ session->proxy_scale != proxy_scale ||
+ session->proxy_use_scaler != proxy_use_scaler )
*result = 0;
// If it's before the current brender_start, render extra data.
*result = brender_start;
}
-
int EDLSession::load_defaults(BC_Hash *defaults)
{
char string[BCTEXTLEN];
+ audio_channels = defaults->get("ACHANNELS", audio_channels);
+ audio_tracks = defaults->get("ATRACKS", audio_tracks);
// Default channel positions
- for(int i = 0; i < MAXCHANNELS; i++)
- {
+ for( int i=0; i<MAXCHANNELS; ++i ) {
sprintf(string, "ACHANNEL_ANGLE_%d", i);
- int default_position = i * 30;
-
- if(i == 0) default_position = 180;
- else
- if(i == 1) default_position = 0;
- else
- if(default_position == 90) default_position = 300;
- else
- if(default_position == 0) default_position = 330;
-
- achannel_positions[i] = defaults->get(string, default_position);
+ achannel_positions[i] = defaults->get(string,
+ default_audio_channel_position(i, audio_channels));
}
aconfig_in->load_defaults(defaults);
assetlist_format = defaults->get("ASSETLIST_FORMAT", ASSETS_ICONS);
sprintf(string, "ASSET_COLUMN%d", i);
asset_columns[i] = defaults->get(string, 100);
}
- audio_channels = defaults->get("ACHANNELS", audio_channels);
- audio_tracks = defaults->get("ATRACKS", audio_tracks);
auto_conf->load_defaults(defaults);
autos_follow_edits = defaults->get("AUTOS_FOLLOW_EDITS", 1);
brender_start = defaults->get("BRENDER_START", brender_start);
+ brender_end = defaults->get("BRENDER_END", brender_end);
BC_CModels::to_text(string, BC_RGBA8888);
color_model = BC_CModels::from_text(defaults->get("COLOR_MODEL", string));
eyedrop_radius = defaults->get("EYEDROP_RADIUS", 0);
ilacemode_to_xmltext(string, interlace_mode);
const char *ilace_mode = defaults->get("INTERLACE_MODE",string);
- interlace_mode = ilacemode_from_xmltext(ilace_mode, BC_ILACE_MODE_NOTINTERLACED);
+ interlace_mode = ilacemode_from_xmltext(ilace_mode, ILACE_MODE_NOTINTERLACED);
crop_x1 = defaults->get("CROP_X1", 0);
crop_x2 = defaults->get("CROP_X2", 320);
crop_y1 = defaults->get("CROP_Y1", 0);
ruler_x2 = defaults->get("RULER_X2", 0.0);
ruler_y1 = defaults->get("RULER_Y1", 0.0);
ruler_y2 = defaults->get("RULER_Y2", 0.0);
- sprintf(current_folder, MEDIA_FOLDER);
- defaults->get("CURRENT_FOLDER", current_folder);
+ awindow_folder = defaults->get("AWINDOW_FOLDER", AW_MEDIA_FOLDER);
cursor_on_frames = defaults->get("CURSOR_ON_FRAMES", 1);
typeless_keyframes = defaults->get("TYPELESS_KEYFRAMES", 0);
cwindow_dest = defaults->get("CWINDOW_DEST", 0);
cwindow_xscroll = defaults->get("CWINDOW_XSCROLL", 0);
cwindow_yscroll = defaults->get("CWINDOW_YSCROLL", 0);
cwindow_zoom = defaults->get("CWINDOW_ZOOM", (float)1);
- sprintf(default_atransition, "Crossfade");
+ cwindow_click2play = defaults->get("CWINDOW_CLICK2PLAY", 0);
+ sprintf(default_atransition, INIT_ATRANSITION);
defaults->get("DEFAULT_ATRANSITION", default_atransition);
- sprintf(default_vtransition, "Dissolve");
+ sprintf(default_vtransition, INIT_VTRANSITION);
defaults->get("DEFAULT_VTRANSITION", default_vtransition);
default_transition_length = defaults->get("DEFAULT_TRANSITION_LENGTH", (double)1);
edit_handle_mode[0] = defaults->get("EDIT_HANDLE_MODE0", MOVE_ALL_EDITS);
meter_format = defaults->get("METER_FORMAT", METER_DB);
min_meter_db = defaults->get("MIN_METER_DB", -85);
max_meter_db = defaults->get("MAX_METER_DB", 6);
- mpeg4_deblock = defaults->get("MPEG4_DEBLOCK", mpeg4_deblock);
output_w = defaults->get("OUTPUTW", output_w);
output_h = defaults->get("OUTPUTH", output_h);
playback_buffer = defaults->get("PLAYBACK_BUFFER", 4096);
show_titles = defaults->get("SHOW_TITLES", 1);
// test_playback_edits = defaults->get("TEST_PLAYBACK_EDITS", 1);
time_format = defaults->get("TIME_FORMAT", TIME_HMSF);
- for(int i = 0; i < 4; i++) {
- sprintf(string, "TIMECODE_OFFSET_%d", i);
- timecode_offset[i] = defaults->get(string, 0);
- }
nudge_format = defaults->get("NUDGE_FORMAT", 1);
tool_window = defaults->get("TOOL_WINDOW", 0);
vconfig_in->load_defaults(defaults);
}
video_channels = defaults->get("VCHANNELS", video_channels);
video_every_frame = defaults->get("VIDEO_EVERY_FRAME", 0);
- video_asynchronous = defaults->get("VIDEO_ASYNCHRONOUS", 0);
+// video_asynchronous = defaults->get("VIDEO_ASYNCHRONOUS", 0);
video_tracks = defaults->get("VTRACKS", video_tracks);
video_write_length = defaults->get("VIDEO_WRITE_LENGTH", 30);
view_follows_playback = defaults->get("VIEW_FOLLOWS_PLAYBACK", 1);
vwindow_meter = defaults->get("VWINDOW_METER", 0);
-
+ vwindow_zoom = defaults->get("VWINDOW_ZOOM", (float)1);
+ vwindow_click2play = defaults->get("VWINDOW_CLICK2PLAY", 0);
decode_subtitles = defaults->get("DECODE_SUBTITLES", decode_subtitles);
subtitle_number = defaults->get("SUBTITLE_NUMBER", subtitle_number);
label_cells = defaults->get("LABEL_CELLS", label_cells);
program_no = defaults->get("PROGRAM_NO", program_no);
+ proxy_beep = defaults->get("PROXY_BEEP", proxy_beep);
+ render_beep = defaults->get("RENDER_BEEP", render_beep);
- vwindow_zoom = defaults->get("VWINDOW_ZOOM", (float)1);
boundaries();
return 0;
defaults->update("ATRACKS", audio_tracks);
defaults->update("AUTOS_FOLLOW_EDITS", autos_follow_edits);
defaults->update("BRENDER_START", brender_start);
+ defaults->update("BRENDER_END", brender_end);
BC_CModels::to_text(string, color_model);
defaults->update("COLOR_MODEL", string);
ilacemode_to_xmltext(string, interlace_mode);
defaults->update("RULER_X2", ruler_x2);
defaults->update("RULER_Y1", ruler_y1);
defaults->update("RULER_Y2", ruler_y2);
- defaults->update("CURRENT_FOLDER", current_folder);
+ defaults->update("AWINDOW_FOLDER", awindow_folder);
defaults->update("CURSOR_ON_FRAMES", cursor_on_frames);
defaults->update("TYPELESS_KEYFRAMES", typeless_keyframes);
defaults->update("CWINDOW_DEST", cwindow_dest);
defaults->update("CWINDOW_XSCROLL", cwindow_xscroll);
defaults->update("CWINDOW_YSCROLL", cwindow_yscroll);
defaults->update("CWINDOW_ZOOM", cwindow_zoom);
+ defaults->update("CWINDOW_CLICK2PLAY", cwindow_click2play);
defaults->update("DEFAULT_ATRANSITION", default_atransition);
defaults->update("DEFAULT_VTRANSITION", default_vtransition);
defaults->update("DEFAULT_TRANSITION_LENGTH", default_transition_length);
defaults->update("METER_FORMAT", meter_format);
defaults->update("MIN_METER_DB", min_meter_db);
defaults->update("MAX_METER_DB", max_meter_db);
- defaults->update("MPEG4_DEBLOCK", mpeg4_deblock);
defaults->update("OUTPUTW", output_w);
defaults->update("OUTPUTH", output_h);
defaults->update("PLAYBACK_BUFFER", playback_buffer);
defaults->update("SAFE_REGIONS", safe_regions);
defaults->update("SAMPLERATE", sample_rate);
defaults->update("SCRUB_SPEED", scrub_speed);
- defaults->update("SI_USEDURATION",si_useduration);
+ defaults->update("SI_USEDURATION",si_useduration);
defaults->update("SI_DURATION",si_duration);
defaults->update("SHOW_ASSETS", show_assets);
defaults->update("SHOW_TITLES", show_titles);
// defaults->update("TEST_PLAYBACK_EDITS", test_playback_edits);
defaults->update("TIME_FORMAT", time_format);
- for(int i = 0; i < 4; i++) {
- sprintf(string, "TIMECODE_OFFSET_%d", i);
- defaults->update(string, timecode_offset[i]);
- }
defaults->update("NUDGE_FORMAT", nudge_format);
defaults->update("TOOL_WINDOW", tool_window);
vconfig_in->save_defaults(defaults);
}
defaults->update("VCHANNELS", video_channels);
defaults->update("VIDEO_EVERY_FRAME", video_every_frame);
- defaults->update("VIDEO_ASYNCHRONOUS", video_asynchronous);
+// defaults->update("VIDEO_ASYNCHRONOUS", video_asynchronous);
defaults->update("VTRACKS", video_tracks);
defaults->update("VIDEO_WRITE_LENGTH", video_write_length);
defaults->update("VIEW_FOLLOWS_PLAYBACK", view_follows_playback);
defaults->update("VWINDOW_METER", vwindow_meter);
defaults->update("VWINDOW_ZOOM", vwindow_zoom);
+ defaults->update("VWINDOW_CLICK2PLAY", vwindow_click2play);
defaults->update("DECODE_SUBTITLES", decode_subtitles);
defaults->update("SUBTITLE_NUMBER", subtitle_number);
defaults->update("LABEL_CELLS", label_cells);
defaults->update("PROGRAM_NO", program_no);
-
+ defaults->update("PROXY_BEEP", proxy_beep);
+ defaults->update("RENDER_BEEP", render_beep);
return 0;
}
Workarounds::clamp(min_meter_db, -80, -20);
Workarounds::clamp(max_meter_db, 0, 10);
Workarounds::clamp(frames_per_foot, 1, 32);
+ Workarounds::clamp(proxy_scale, 1, 32);
Workarounds::clamp(output_w, 16, (int)BC_INFINITY);
Workarounds::clamp(output_h, 16, (int)BC_INFINITY);
Workarounds::clamp(video_write_length, 1, 1000);
Workarounds::clamp(ruler_y1, 0.0, output_h);
Workarounds::clamp(ruler_y2, 0.0, output_h);
if(brender_start < 0) brender_start = 0.0;
+ if(brender_end < 0) brender_end = 0.0;
Workarounds::clamp(subtitle_number, 0, 31);
+ Workarounds::clamp(awindow_folder, 0, AWINDOW_FOLDERS - 1);
// Correct framerates
frame_rate = Units::fix_framerate(frame_rate);
BC_CModels::to_text(string, color_model);
color_model = BC_CModels::from_text(file->tag.get_property("COLORMODEL", string));
const char *ilace_mode = file->tag.get_property("INTERLACE_MODE");
- interlace_mode = ilacemode_from_xmltext(ilace_mode, BC_ILACE_MODE_NOTINTERLACED);
+ interlace_mode = ilacemode_from_xmltext(ilace_mode, ILACE_MODE_NOTINTERLACED);
video_channels = file->tag.get_property("CHANNELS", video_channels);
for(int i = 0; i < video_channels; i++)
{
output_h = file->tag.get_property("OUTPUTH", output_h);
aspect_w = file->tag.get_property("ASPECTW", aspect_w);
aspect_h = file->tag.get_property("ASPECTH", aspect_h);
+ proxy_scale = file->tag.get_property("PROXY_SCALE", proxy_scale);
+ proxy_disabled_scale = file->tag.get_property("PROXY_DISABLED_SCALE", proxy_disabled_scale);
+ proxy_use_scaler = file->tag.get_property("PROXY_USE_SCALER", proxy_use_scaler);
+ proxy_auto_scale = file->tag.get_property("PROXY_AUTO_SCALE", proxy_auto_scale);
return 0;
}
// load channels setting
if(append_mode) return 0;
audio_channels = file->tag.get_property("CHANNELS", (int64_t)audio_channels);
-
-
for(int i = 0; i < audio_channels; i++)
{
sprintf(string, "ACHANNEL_ANGLE_%d", i);
auto_keyframes = file->tag.get_property("AUTO_KEYFRAMES", auto_keyframes);
autos_follow_edits = file->tag.get_property("AUTOS_FOLLOW_EDITS", autos_follow_edits);
brender_start = file->tag.get_property("BRENDER_START", brender_start);
+ brender_end = file->tag.get_property("BRENDER_END", brender_end);
eyedrop_radius = file->tag.get_property("EYEDROP_RADIUS", eyedrop_radius);
crop_x1 = file->tag.get_property("CROP_X1", crop_x1);
crop_y1 = file->tag.get_property("CROP_Y1", crop_y1);
ruler_y1 = file->tag.get_property("RULER_Y1", ruler_y1);
ruler_x2 = file->tag.get_property("RULER_X2", ruler_x2);
ruler_y2 = file->tag.get_property("RULER_Y2", ruler_y2);
- file->tag.get_property("CURRENT_FOLDER", current_folder);
+ awindow_folder = file->tag.get_property("AWINDOW_FOLDER", AW_MEDIA_FOLDER);
cursor_on_frames = file->tag.get_property("CURSOR_ON_FRAMES", cursor_on_frames);
typeless_keyframes = file->tag.get_property("TYPELESS_KEYFRAMES", typeless_keyframes);
cwindow_dest = file->tag.get_property("CWINDOW_DEST", cwindow_dest);
cwindow_xscroll = file->tag.get_property("CWINDOW_XSCROLL", cwindow_xscroll);
cwindow_yscroll = file->tag.get_property("CWINDOW_YSCROLL", cwindow_yscroll);
cwindow_zoom = file->tag.get_property("CWINDOW_ZOOM", cwindow_zoom);
+ cwindow_click2play = file->tag.get_property("CWINDOW_CLICK2PLAY", cwindow_click2play);
editing_mode = file->tag.get_property("EDITING_MODE", editing_mode);
folderlist_format = file->tag.get_property("FOLDERLIST_FORMAT", folderlist_format);
highlighted_track = file->tag.get_property("HIGHLIGHTED_TRACK", 0);
labels_follow_edits = file->tag.get_property("LABELS_FOLLOW_EDITS", labels_follow_edits);
- mpeg4_deblock = file->tag.get_property("MPEG4_DEBLOCK", mpeg4_deblock);
plugins_follow_edits = file->tag.get_property("PLUGINS_FOLLOW_EDITS", plugins_follow_edits);
single_standalone = file->tag.get_property("SINGLE_STANDALONE", single_standalone);
playback_preload = file->tag.get_property("PLAYBACK_PRELOAD", playback_preload);
show_titles = file->tag.get_property("SHOW_TITLES", 1);
// test_playback_edits = file->tag.get_property("TEST_PLAYBACK_EDITS", test_playback_edits);
time_format = file->tag.get_property("TIME_FORMAT", time_format);
- for(int i = 0; i < 4; i++) {
- sprintf(string, "TIMECODE_OFFSET_%d", i);
- timecode_offset[i] = file->tag.get_property(string, timecode_offset[i]);
- }
nudge_format = file->tag.get_property("NUDGE_FORMAT", nudge_format);
tool_window = file->tag.get_property("TOOL_WINDOW", tool_window);
vwindow_meter = file->tag.get_property("VWINDOW_METER", vwindow_meter);
vwindow_zoom = file->tag.get_property("VWINDOW_ZOOM", vwindow_zoom);
+ vwindow_click2play = file->tag.get_property("VWINDOW_CLICK2PLAY", vwindow_click2play);
decode_subtitles = file->tag.get_property("DECODE_SUBTITLES", decode_subtitles);
subtitle_number = file->tag.get_property("SUBTITLE_NUMBER", subtitle_number);
label_cells = file->tag.get_property("LABEL_CELLS", label_cells);
program_no = file->tag.get_property("PROGRAM_NO", program_no);
+ proxy_beep = file->tag.get_property("PROXY_BEEP", proxy_beep);
+ render_beep = file->tag.get_property("RENDER_BEEP", render_beep);
boundaries();
}
file->tag.set_property("AUTO_KEYFRAMES", auto_keyframes);
file->tag.set_property("AUTOS_FOLLOW_EDITS", autos_follow_edits);
file->tag.set_property("BRENDER_START", brender_start);
+ file->tag.set_property("BRENDER_END", brender_end);
file->tag.set_property("EYEDROP_RADIUS", eyedrop_radius);
file->tag.set_property("CROP_X1", crop_x1);
file->tag.set_property("CROP_Y1", crop_y1);
file->tag.set_property("RULER_Y1", ruler_y1);
file->tag.set_property("RULER_X2", ruler_x2);
file->tag.set_property("RULER_Y2", ruler_y2);
- file->tag.set_property("CURRENT_FOLDER", current_folder);
+ file->tag.set_property("AWINDOW_FOLDER", awindow_folder);
file->tag.set_property("CURSOR_ON_FRAMES", cursor_on_frames);
file->tag.set_property("TYPELESS_KEYFRAMES", typeless_keyframes);
file->tag.set_property("CWINDOW_DEST", cwindow_dest);
file->tag.set_property("CWINDOW_XSCROLL", cwindow_xscroll);
file->tag.set_property("CWINDOW_YSCROLL", cwindow_yscroll);
file->tag.set_property("CWINDOW_ZOOM", cwindow_zoom);
+ file->tag.set_property("CWINDOW_CLICK2PLAY", cwindow_click2play);
file->tag.set_property("EDITING_MODE", editing_mode);
file->tag.set_property("FOLDERLIST_FORMAT", folderlist_format);
file->tag.set_property("HIGHLIGHTED_TRACK", highlighted_track);
file->tag.set_property("LABELS_FOLLOW_EDITS", labels_follow_edits);
- file->tag.set_property("MPEG4_DEBLOCK", mpeg4_deblock);
file->tag.set_property("PLUGINS_FOLLOW_EDITS", plugins_follow_edits);
file->tag.set_property("SINGLE_STANDALONE", single_standalone);
file->tag.set_property("PLAYBACK_PRELOAD", playback_preload);
file->tag.set_property("SHOW_TITLES", show_titles);
file->tag.set_property("TEST_PLAYBACK_EDITS", test_playback_edits);
file->tag.set_property("TIME_FORMAT", time_format);
- for(int i = 0; i < 4; i++) {
- sprintf(string, "TIMECODE_OFFSET_%d", i);
- file->tag.set_property(string, timecode_offset[i]);
- }
file->tag.set_property("NUDGE_FORMAT", nudge_format);
file->tag.set_property("TOOL_WINDOW", tool_window);
file->tag.set_property("VWINDOW_METER", vwindow_meter);
file->tag.set_property("VWINDOW_ZOOM", vwindow_zoom);
+ file->tag.set_property("VWINDOW_CLICK2PLAY", vwindow_click2play);
file->tag.set_property("DECODE_SUBTITLES", decode_subtitles);
file->tag.set_property("SUBTITLE_NUMBER", subtitle_number);
+ file->tag.set_property("PROXY_BEEP", proxy_beep);
+ file->tag.set_property("RENDER_BEEP", render_beep);
file->append_tag();
file->tag.set_title("/SESSION");
file->tag.set_property("COLORMODEL", string);
ilacemode_to_xmltext(string, interlace_mode);
file->tag.set_property("INTERLACE_MODE",string);
- file->tag.set_property("CHANNELS", video_channels);
+ file->tag.set_property("CHANNELS", video_channels);
for(int i = 0; i < video_channels; i++)
{
sprintf(string, "VCHANNEL_X_%d", i);
file->tag.set_property("OUTPUTH", output_h);
file->tag.set_property("ASPECTW", aspect_w);
file->tag.set_property("ASPECTH", aspect_h);
+ file->tag.set_property("PROXY_SCALE", proxy_scale);
+ file->tag.set_property("PROXY_DISABLED_SCALE", proxy_disabled_scale);
+ file->tag.set_property("PROXY_USE_SCALER", proxy_use_scaler);
+ file->tag.set_property("PROXY_AUTO_SCALE", proxy_auto_scale);
file->append_tag();
file->tag.set_title("/VIDEO");
file->append_tag();
audio_tracks = session->audio_tracks;
autos_follow_edits = session->autos_follow_edits;
brender_start = session->brender_start;
+ brender_end = session->brender_end;
color_model = session->color_model;
interlace_mode = session->interlace_mode;
eyedrop_radius = session->eyedrop_radius;
ruler_y1 = session->ruler_y1;
ruler_x2 = session->ruler_x2;
ruler_y2 = session->ruler_y2;
- strcpy(current_folder, session->current_folder);
+ awindow_folder = session->awindow_folder;
cursor_on_frames = session->cursor_on_frames;
typeless_keyframes = session->typeless_keyframes;
cwindow_dest = session->cwindow_dest;
cwindow_xscroll = session->cwindow_xscroll;
cwindow_yscroll = session->cwindow_yscroll;
cwindow_zoom = session->cwindow_zoom;
+ cwindow_click2play = session->cwindow_click2play;
strcpy(default_atransition, session->default_atransition);
strcpy(default_vtransition, session->default_vtransition);
default_transition_length = session->default_transition_length;
meter_format = session->meter_format;
min_meter_db = session->min_meter_db;
max_meter_db = session->max_meter_db;
- mpeg4_deblock = session->mpeg4_deblock;
output_w = session->output_w;
output_h = session->output_h;
playback_buffer = session->playback_buffer;
show_titles = session->show_titles;
test_playback_edits = session->test_playback_edits;
time_format = session->time_format;
- for(int i = 0; i < 4; i++) {
- timecode_offset[i] = session->timecode_offset[i];
- }
nudge_format = session->nudge_format;
tool_window = session->tool_window;
for(int i = 0; i < MAXCHANNELS; i++) {
video_channels = session->video_channels;
*vconfig_in = *session->vconfig_in;
video_every_frame = session->video_every_frame;
- video_asynchronous = session->video_asynchronous;
+// video_asynchronous = session->video_asynchronous;
video_tracks = session->video_tracks;
video_write_length = session->video_write_length;
view_follows_playback = session->view_follows_playback;
vwindow_meter = session->vwindow_meter;
vwindow_zoom = session->vwindow_zoom;
+ vwindow_click2play = session->vwindow_click2play;
+ proxy_scale = session->proxy_scale;
+ proxy_disabled_scale = session->proxy_disabled_scale;
+ proxy_use_scaler = session->proxy_use_scaler;
+ proxy_auto_scale = session->proxy_auto_scale;
+ proxy_beep = session->proxy_beep;
+ render_beep = session->render_beep;
subtitle_number = session->subtitle_number;
decode_subtitles = session->decode_subtitles;
return 0;
}
-int64_t EDLSession::get_frame_offset()
-{
- return int64_t((timecode_offset[3] * 3600 + timecode_offset[2] * 60 +
- timecode_offset[1]) * frame_rate + timecode_offset[0]);
-}
-
void EDLSession::dump()
{
printf("EDLSession::dump\n");
printf(" audio_tracks=%d audio_channels=%d sample_rate=%jd\n"
" video_tracks=%d frame_rate=%f output_w=%d output_h=%d aspect_w=%f aspect_h=%f\n"
- " decode subtitles=%d subtitle_number=%d label_cells=%d program_no=%d\n",
+ " decode subtitles=%d subtitle_number=%d label_cells=%d program_no=%d\n"
+ " proxy scale=%d\n disabled_scale=%d, use_scaler=%d, auto_scale=%d\n"
+ " proxy_beep=%d render_beep=%d\n",
audio_tracks, audio_channels, sample_rate, video_tracks,
frame_rate, output_w, output_h, aspect_w, aspect_h,
- decode_subtitles, subtitle_number, label_cells, program_no);
+ decode_subtitles, subtitle_number, label_cells, program_no,
+ proxy_scale, proxy_disabled_scale, proxy_use_scaler, proxy_auto_scale,
+ proxy_beep, render_beep);
}