| 22 | using namespace openshot; |
| 23 | |
| 24 | ChunkReader::ChunkReader(std::string path, ChunkVersion chunk_version) |
| 25 | : path(path), chunk_size(24 * 3), is_open(false), version(chunk_version), local_reader(NULL) |
| 26 | { |
| 27 | // Check if folder exists? |
| 28 | if (!does_folder_exist(path)) |
| 29 | // Raise exception |
| 30 | throw InvalidFile("Chunk folder could not be opened.", path); |
| 31 | |
| 32 | // Init previous location |
| 33 | previous_location.number = 0; |
| 34 | previous_location.frame = 0; |
| 35 | |
| 36 | // Open and Close the reader, to populate its attributes (such as height, width, etc...) |
| 37 | Open(); |
| 38 | Close(); |
| 39 | } |
| 40 | |
| 41 | // Check if folder path existing |
| 42 | bool ChunkReader::does_folder_exist(std::string path) |
nothing calls this directly
no test coverage detected