Default constructor, no max bytes
| 25 | |
| 26 | // Default constructor, no max bytes |
| 27 | CacheDisk::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 |
| 43 | CacheDisk::CacheDisk(std::string cache_path, std::string format, float quality, float scale, int64_t max_bytes) : CacheBase(max_bytes) { |
nothing calls this directly
no outgoing calls
no test coverage detected