X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ffile.h;h=5e695bcb4b1bfbbe7d460e351ae9dc40f178d435;hb=4784a8d70bc39f9b7e467f93304d2df3f23fd2df;hp=442bdc58cbc512d11367de1cad7a475b82df2b49;hpb=089f2be86316b88f72a6c359ab10e2b95539005b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/file.h b/cinelerra-5.1/cinelerra/file.h index 442bdc58..5e695bcb 100644 --- a/cinelerra-5.1/cinelerra/file.h +++ b/cinelerra-5.1/cinelerra/file.h @@ -58,6 +58,7 @@ public: File(); ~File(); + int probe(); // Get attributes for various file formats. // The dither parameter is carried over from recording, where dither is done at the device. int get_options(FormatTools *format, @@ -245,17 +246,14 @@ public: // The minimum setting for cache_size should be bigger than 1MB. int64_t get_memory_usage(); - static int supports_video(ArrayList *plugindb, char *format); // returns 1 if the format supports video or audio - static int supports_audio(ArrayList *plugindb, char *format); + static int renders_video(Asset *asset); + static int renders_audio(Asset *asset); // Get the extension for the filename static const char* get_tag(int format); static const char* get_prefix(int format); - static int supports_video(int format); // returns 1 if the format supports video or audio - static int supports_audio(int format); static int strtoformat(const char *format); static const char* formattostr(int format); - static int strtoformat(ArrayList *plugindb, const char *format); - static const char* formattostr(ArrayList *plugindb, int format); + static int is_image_render(int format); static int strtobits(const char *bits); static const char* bitstostr(int bits); static int str_to_byteorder(const char *string); @@ -316,10 +314,12 @@ public: static void init_cin_path(); static void get_exe_path(char *result, char *bnp=0); static void getenv_path(char *result, const char *path); + static void setenv_path(char *result, const char *var, const char *path); static char cinexe_path[BCTEXTLEN], cinpkg_path[BCTEXTLEN]; static char cindat_path[BCTEXTLEN], cinlib_path[BCTEXTLEN]; static char cincfg_path[BCTEXTLEN], cinplg_path[BCTEXTLEN]; static char cinlad_path[BCTEXTLEN], cinlcl_path[BCTEXTLEN]; + static char cinbwr_path[BCTEXTLEN]; static const char *get_cin() { return getenv("CIN_PKG"); } static const char *get_cin_path() { return getenv("CIN_PATH"); } static const char *get_cindat_path() { return getenv("CIN_DAT"); } @@ -328,6 +328,10 @@ public: static const char *get_plugin_path() { return getenv("CIN_PLUGIN"); } static const char *get_ladspa_path() { return getenv("CIN_LADSPA"); } static const char *get_locale_path() { return getenv("CIN_LOCALE"); } + static const char *get_browser_path() { return getenv("CIN_BROWSER"); } + + static const char *default_probes[]; + static const int nb_probes; private: void reset_parameters();