31 #ifndef OPENSHOT_CHUNK_READER_H 32 #define OPENSHOT_CHUNK_READER_H 106 std::shared_ptr<openshot::Frame> last_frame;
109 bool does_folder_exist(std::string path);
115 std::string get_chunk_path(int64_t chunk_number, std::string folder, std::string extension);
129 void Close()
override;
145 std::shared_ptr<openshot::Frame> GetFrame(int64_t requested_frame)
override;
148 bool IsOpen()
override {
return is_open; };
151 std::string
Name()
override {
return "ChunkReader"; };
154 std::string Json()
const override;
155 void SetJson(
const std::string value)
override;
156 Json::Value JsonValue()
const override;
157 void SetJsonValue(
const Json::Value root)
override;
160 void Open()
override;
This class reads a special chunk-formatted file, which can be easily shared in a distributed environm...
Header file for ReaderBase class.
The lowest quality stream contained in this chunk file.
This abstract class is the base class, used by all readers in libopenshot.
Header file for CacheMemory class.
The highest quality stream contained in this chunk file.
Header file for Frame class.
The medium quality stream contained in this chunk file.
Header file for JSON class.
void SetChunkSize(int64_t new_size)
Set the chunk size (number of frames to write in each chunk)
int64_t number
The chunk number.
ChunkVersion
This enumeration allows the user to choose which version of the chunk they would like (low...
std::string Name() override
Return the type name of the class.
int64_t GetChunkSize()
Get the chunk size (number of frames to write in each chunk)
This namespace is the default namespace for all code in the openshot library.
openshot::CacheMemory * GetCache() override
Get the cache object used by this reader (always return NULL for this reader)
int64_t frame
The frame number.
This struct holds the location of a frame within a chunk.
This class is a memory-based cache manager for Frame objects.
bool IsOpen() override
Determine if reader is open or closed.