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

Method ChunkReader

src/ChunkReader.cpp:24–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22using namespace openshot;
23
24ChunkReader::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
42bool ChunkReader::does_folder_exist(std::string path)

Callers

nothing calls this directly

Calls 1

InvalidFileClass · 0.85

Tested by

no test coverage detected