// to delete the file object. Otherwise we'd delete just the cached frames
// while the list of open files grew.
void set_cache_frames(int value);
-// Delete frame cache. Return 0 if successful. Return 1 if
-// nothing to delete.
+// Delete oldest frame from cache.
+// Return number of bytes freed if successful.
+// Return 0 if nothing to delete.
int purge_cache();
// Delete oldest frame from cache. Return 0 if successful. Return 1 if
// nothing to delete.
// allocated.
// Get best colormodel to translate for hardware accelerated playback.
// Called by VRender.
- int get_best_colormodel(int driver);
+ int get_best_colormodel(int driver, int vstream=-1);
// Get best colormodel for hardware accelerated recording.
// Called by VideoDevice.
static int get_best_colormodel(Asset *asset, int driver);