#include "cache.inc"
#include "clip.h"
#include "bchash.h"
-#include "file.inc"
+#include "file.h"
#include "filesystem.h"
#include "guicast.h"
#include "indexfile.h"
preferences_lock = new Mutex("Preferences::preferences_lock");
-
- get_exe_path(plugin_dir);
- strcat(plugin_dir,"/plugins");
-
- sprintf(index_directory, BCASTDIR);
+// initial plugin path from build -DPLUGIN_DIR="..."
+ sprintf(plugin_dir, "%s/", File::get_plugin_path());
+ sprintf(index_directory, "%s/", File::get_config_path());
if(strlen(index_directory))
fs.complete_path(index_directory);
cache_size = 0x1000000;
ffmpeg_early_probe = 0;
ffmpeg_marker_indexes = 1;
warn_indexes = 1;
+ warn_version = 1;
+ popupmenu_btnup = 1;
+ dvd_yuv420p_interlace = 0;
// Default brender asset
brender_asset = new Asset;
ffmpeg_early_probe = that->ffmpeg_early_probe;
ffmpeg_marker_indexes = that->ffmpeg_marker_indexes;
warn_indexes = that->warn_indexes;
+ warn_version = that->warn_version;
+ popupmenu_btnup = that->popupmenu_btnup;
+ dvd_yuv420p_interlace = that->dvd_yuv420p_interlace;
renderfarm_nodes.remove_all_objects();
renderfarm_ports.remove_all();
renderfarm_enabled.remove_all();
ffmpeg_early_probe = defaults->get("FFMPEG_EARLY_PROBE", ffmpeg_early_probe);
ffmpeg_marker_indexes = defaults->get("FFMPEG_MARKER_INDEXES", ffmpeg_marker_indexes);
warn_indexes = defaults->get("WARN_INDEXES", warn_indexes);
+ warn_version = defaults->get("WARN_VERSION", warn_version);
+ popupmenu_btnup = defaults->get("POPUPMENU_BTNUP", popupmenu_btnup);
+ dvd_yuv420p_interlace = defaults->get("DVD_YUV420P_INTERLACE", dvd_yuv420p_interlace);
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("manual", "firefox file:///$CINELERRA_PATH/manual.pdf", 0));
- shbtn_prefs.append(new ShBtnPref("online help", "firefox https://cinelerra-cv.org/docs/cinelerra_cv_manual_en.html", 0));
+ shbtn_prefs.append(new ShBtnPref("Features5", "firefox file://$CIN_DAT/doc/Features5.pdf", 0));
+ shbtn_prefs.append(new ShBtnPref("Online Help", "firefox https://cinelerra-cv.org/docs.php", 0));
+ shbtn_prefs.append(new ShBtnPref("Orignal Manual", "firefox file://$CIN_DAT/doc/cinelerra.html", 0));
shbtns_total = 0;
}
for( int i=0; i<shbtns_total; ++i ) {
defaults->update("FFMPEG_EARLY_PROBE", ffmpeg_early_probe);
defaults->update("FFMPEG_MARKER_INDEXES", ffmpeg_marker_indexes);
defaults->update("WARN_INDEXES", warn_indexes);
+ defaults->update("WARN_VERSION", warn_version);
+ defaults->update("POPUPMENU_BTNUP", popupmenu_btnup);
+ defaults->update("DVD_YUV420P_INTERLACE", dvd_yuv420p_interlace);
brender_asset->save_defaults(defaults,
"BRENDER_",
1,
{
strcpy(path, asset->path);
int result = !access(path, R_OK) ? 0 : -1;
- if( !result && asset->format == FILE_MPEG ) {
+ if( !result && ( asset->format == FILE_MPEG ||
+ asset->format == FILE_VMPEG || asset->format == FILE_AMPEG ) ) {
char source_filename[BCTEXTLEN], index_filename[BCTEXTLEN];
IndexFile::get_index_filename(source_filename,
index_directory, index_filename, asset->path, ".toc");