OpenShot Library | libopenshot
0.2.5
|
Go to the documentation of this file.
38 #ifndef OPENSHOT_IMAGE_WRITER_H
39 #define OPENSHOT_IMAGE_WRITER_H
41 #ifdef USE_IMAGEMAGICK
93 int64_t write_video_count;
94 std::vector<Magick::Image> frames;
99 std::shared_ptr<Frame> last_frame;
133 int quality,
int loops,
bool combine);
137 void WriteFrame(std::shared_ptr<Frame> frame);
149 #endif //USE_IMAGEMAGICK
150 #endif //OPENSHOT_IMAGE_WRITER_H
int GetCacheSize()
Get the cache size.
Header file for WriterBase class.
This namespace is the default namespace for all code in the openshot library.
This class represents a fraction.
void WriteFrame(std::shared_ptr< Frame > frame)
Add a frame to the stack waiting to be encoded.
This class uses the ImageMagick library to write image files (including animated GIFs)
Header file for CacheMemory class.
bool IsOpen()
Determine if writer is open or closed.
void SetCacheSize(int new_size)
Set the cache size (number of frames to queue before writing)
void Close()
Close the writer and encode/output final image to the disk. This is a requirement of ImageMagick,...
Header file for ReaderBase class.
Header file for OpenMPUtilities (set some common macros)
void SetVideoOptions(std::string format, Fraction fps, int width, int height, int quality, int loops, bool combine)
Set the video export options.
Header file for MagickUtilities (IM6/IM7 compatibility overlay)
This abstract class is the base class, used by all readers in libopenshot.
ImageWriter(std::string path)
Constructor for ImageWriter. Throws one of the following exceptions.
Header file for all Exception classes.
This abstract class is the base class, used by writers. Writers are types of classes that encode vide...