OpenShot Library | libopenshot
0.2.2
|
Go to the documentation of this file.
28 #ifndef OPENSHOT_CHUNK_READER_H
29 #define OPENSHOT_CHUNK_READER_H
39 #include <QtCore/qdir.h>
113 std::shared_ptr<Frame> last_frame;
116 bool does_folder_exist(
string path);
122 string get_chunk_path(int64_t chunk_number,
string folder,
string extension);
152 std::shared_ptr<Frame> GetFrame(int64_t requested_frame);
158 string Name() {
return "ChunkReader"; };
162 void SetJson(
string value);
163 Json::Value JsonValue();
164 void SetJsonValue(Json::Value root);
int64_t GetChunkSize()
Get the chunk size (number of frames to write in each chunk)
This class reads a special chunk-formatted file, which can be easily shared in a distributed environm...
CacheMemory * GetCache()
Get the cache object used by this reader (always return NULL for this reader)
This namespace is the default namespace for all code in the openshot library.
void SetChunkSize(int64_t new_size)
Set the chunk size (number of frames to write in each chunk)
This struct holds the location of a frame within a chunk.
bool IsOpen()
Determine if reader is open or closed.
This class is a memory-based cache manager for Frame objects.
Header file for CacheMemory class.
This class uses the FFmpeg libraries, to open video files and audio files, and return openshot::Frame...
int64_t number
The chunk number.
Header file for ReaderBase class.
string Name()
Return the type name of the class.
This abstract class is the base class, used by all readers in libopenshot.
int64_t frame
The frame number.
Header file for JSON class.
ChunkVersion
This enumeration allows the user to choose which version of the chunk they would like (low,...
@ THUMBNAIL
The lowest quality stream contained in this chunk file.
Header file for all Exception classes.
Header file for FFmpegReader class.
@ FINAL
The highest quality stream contained in this chunk file.
@ PREVIEW
The medium quality stream contained in this chunk file.