MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / CacheDisk

Method CacheDisk

src/CacheDisk.cpp:27–40  ·  view source on GitHub ↗

Default constructor, no max bytes

Source from the content-addressed store, hash-verified

25
26// Default constructor, no max bytes
27CacheDisk::CacheDisk(std::string cache_path, std::string format, float quality, float scale) : CacheBase(0) {
28 // Set cache type name
29 cache_type = "CacheDisk";
30 range_version = 0;
31 needs_range_processing = false;
32 frame_size_bytes = 0;
33 image_format = format;
34 image_quality = quality;
35 image_scale = scale;
36 max_bytes = 0;
37
38 // Init path directory
39 InitPath(cache_path);
40}
41
42// Constructor that sets the max bytes to cache
43CacheDisk::CacheDisk(std::string cache_path, std::string format, float quality, float scale, int64_t max_bytes) : CacheBase(max_bytes) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected