// Get nearest colormodel that can be decoded without a temporary frame.
// Used by read_frame.
int colormodel_supported(int colormodel);
-// create frame_cache vframe for position, use template vframe
-// clear cache if first frame is a read miss
- VFrame *new_cache_frame(VFrame *vframe, int64_t position, int first_frame);
- void put_cache_frame();
+
+ int get_cache_frame(VFrame *vframe, int64_t position);
+ void put_cache_frame(VFrame *frame, int64_t position, int use_copy);
int get_use_cache();
// stubs for now
Preferences *preferences;
int wr, rd;
- static void init_cin_path();
+ static void init_cin_env_vars();
static void get_exe_path(char *result, char *bnp=0);
static void getenv_path(char *result, const char *path);
static void setenv_path(const char *var, const char *path, int overwrite);