trap_sigsegv = 1;
trap_sigintr = 1;
awindow_picon_h = 50;
+ layout_scale = 0; // auto scale
vicon_size = 50;
vicon_color_mode = VICON_COLOR_MODE_LOW;
theme[0] = 0;
project_smp = processors = calculate_processors(0);
real_processors = calculate_processors(1);
ffmpeg_marker_indexes = 1;
+ memset(&use_hw_dev, 0, sizeof(use_hw_dev));
warn_indexes = 1;
warn_version = 1;
bd_warn_root = 1;
yuv_color_range = BC_COLORS_JPEG;
autocolor_assets = 0;
ctrl_toggle = 0;
+ rectify_audio = 0;
// Default brender asset
brender_asset = new Asset;
keyframe_reticle = that->keyframe_reticle;
perpetual_session = that->perpetual_session;
awindow_picon_h = that->awindow_picon_h;
+ layout_scale = that->layout_scale;
vicon_size = that->vicon_size;
vicon_color_mode = that->vicon_color_mode;
strcpy(theme, that->theme);
processors = that->processors;
real_processors = that->real_processors;
ffmpeg_marker_indexes = that->ffmpeg_marker_indexes;
+ strcpy(use_hw_dev, &that->use_hw_dev[0]);
warn_indexes = that->warn_indexes;
warn_version = that->warn_version;
bd_warn_root = that->bd_warn_root;
yuv_color_range = that->yuv_color_range;
autocolor_assets = that->autocolor_assets;
ctrl_toggle = that->ctrl_toggle;
+ rectify_audio = that->rectify_audio;
renderfarm_nodes.remove_all_objects();
renderfarm_ports.remove_all();
renderfarm_enabled.remove_all();
defaults->get("INDEX_DIRECTORY", index_directory);
index_size = defaults->get("INDEX_SIZE", index_size);
index_count = defaults->get("INDEX_COUNT", index_count);
+ use_thumbnails = defaults->get("USE_THUMBNAILS", use_thumbnails);
keyframe_reticle = defaults->get("KEYFRAME_RETICLE", keyframe_reticle);
perpetual_session = defaults->get("PERPETUAL_SESSION", perpetual_session);
strcpy(lv2_path, DEFAULT_LV2_PATH);
trap_sigintr = defaults->get("TRAP_SIGINTR", trap_sigintr);
awindow_picon_h = defaults->get("AWINDOW_PICON_H", awindow_picon_h);
+ layout_scale = defaults->get("LAYOUT_SCALE",layout_scale);
vicon_size = defaults->get("VICON_SIZE",vicon_size);
vicon_color_mode = defaults->get("VICON_COLOR_MODE",vicon_color_mode);
strcpy(theme, _(DEFAULT_THEME));
project_smp = defaults->get("PROJECT_SMP", project_smp);
force_uniprocessor = defaults->get("FORCE_UNIPROCESSOR", force_uniprocessor);
ffmpeg_marker_indexes = defaults->get("FFMPEG_MARKER_INDEXES", ffmpeg_marker_indexes);
+ memset(&use_hw_dev, 0, sizeof(use_hw_dev));
+ defaults->get("USE_HW_DEV", use_hw_dev);
warn_indexes = defaults->get("WARN_INDEXES", warn_indexes);
warn_version = defaults->get("WARN_VERSION", warn_version);
bd_warn_root = defaults->get("BD_WARN_ROOT", bd_warn_root);
yuv_color_range = defaults->get("YUV_COLOR_RANGE", yuv_color_range);
autocolor_assets = defaults->get("AUTOCOLOR_ASSETS", autocolor_assets);
ctrl_toggle = defaults->get("CTRL_TOGGLE", ctrl_toggle);
+ rectify_audio = defaults->get("RECTIFY_AUDIO", rectify_audio);
use_brender = defaults->get("USE_BRENDER", use_brender);
brender_fragment = defaults->get("BRENDER_FRAGMENT", brender_fragment);
cache_size = defaults->get("CACHE_SIZE", cache_size);
shbtn_prefs.remove_all_objects();
int shbtns_total = defaults->get("SHBTNS_TOTAL", -1);
if( shbtns_total < 0 ) {
- shbtn_prefs.append(new ShBtnPref(_("Features"), "$CIN_BROWSER file://$CIN_DAT/doc/Features5.pdf", 0));
- shbtn_prefs.append(new ShBtnPref(_("Online Help"), "$CIN_BROWSER https://cinelerra-cv.org/docs.php", 0));
- shbtn_prefs.append(new ShBtnPref(_("Original Manual"), "$CIN_BROWSER file://$CIN_DAT/doc/cinelerra.html", 0));
- shbtn_prefs.append(new ShBtnPref(_("Setting Shell Commands"), "$CIN_BROWSER file://$CIN_DAT/doc/ShellCmds.html", 0));
- shbtn_prefs.append(new ShBtnPref(_("Shortcuts"), "$CIN_BROWSER file://$CIN_DAT/doc/shortcuts.html", 0));
- shbtn_prefs.append(new ShBtnPref(_("RenderMux"), "$CIN_DAT/doc/RenderMux.sh",0));
+ shbtn_prefs.append(new ShBtnPref(_("Current Manual"), "$CIN_BROWSER https://cinelerra-gg.org/download/CinelerraGG_manual.pdf"));
+ shbtn_prefs.append(new ShBtnPref(_("Setting Shell Commands"), "$CIN_BROWSER file://$CIN_DAT/doc/ShellCmds.html"));
+ shbtn_prefs.append(new ShBtnPref(_("Shortcuts"), "$CIN_BROWSER file://$CIN_DAT/doc/shortcuts.html"));
+ shbtn_prefs.append(new ShBtnPref(_("RenderMux"), "$CIN_DAT/doc/RenderMux.sh"));
shbtns_total = 0;
}
for( int i=0; i<shbtns_total; ++i ) {
defaults->get(string, commands);
sprintf(string, "SHBTN%d_WARN", i);
int warn = defaults->get(string, 0);
- shbtn_prefs.append(new ShBtnPref(name, commands, warn));
+ sprintf(string, "SHBTN%d_RUN_SCRIPT", i);
+ int run_script = defaults->get(string, 0);
+ shbtn_prefs.append(new ShBtnPref(name, commands, warn, run_script));
}
file_probes.remove_all_objects();
defaults->update("TRAP_SIGSEGV", trap_sigsegv);
defaults->update("TRAP_SIGINTR", trap_sigintr);
defaults->update("AWINDOW_PICON_H", awindow_picon_h);
+ defaults->update("LAYOUT_SCALE",layout_scale);
defaults->update("VICON_SIZE",vicon_size);
defaults->update("VICON_COLOR_MODE",vicon_color_mode);
defaults->update("THEME", theme);
defaults->update("PROJECT_SMP", project_smp);
defaults->update("FORCE_UNIPROCESSOR", force_uniprocessor);
defaults->update("FFMPEG_MARKER_INDEXES", ffmpeg_marker_indexes);
+ defaults->update("USE_HW_DEV", use_hw_dev);
defaults->update("WARN_INDEXES", warn_indexes);
defaults->update("WARN_VERSION", warn_version);
defaults->update("BD_WARN_ROOT", bd_warn_root);
defaults->update("YUV_COLOR_RANGE", yuv_color_range);
defaults->update("AUTOCOLOR_ASSETS", autocolor_assets);
defaults->update("CTRL_TOGGLE", ctrl_toggle);
+ defaults->update("RECTIFY_AUDIO", rectify_audio);
brender_asset->save_defaults(defaults, "BRENDER_", 1, 1, 1, 0, 0);
defaults->update("USE_BRENDER", use_brender);
defaults->update("BRENDER_FRAGMENT", brender_fragment);
defaults->update(string, pref->commands);
sprintf(string, "SHBTN%d_WARN", i);
defaults->update(string, pref->warn);
+ sprintf(string, "SHBTN%d_RUN_SCRIPT", i);
+ defaults->update(string, pref->run_script);
}
defaults->update("FILE_PROBE_TOTAL", file_probes.size());
for( int i=0; i<file_probes.size(); ++i ) {