13 #ifndef OPENSHOT_IMAGE_WRITER_H 14 #define OPENSHOT_IMAGE_WRITER_H 16 #ifdef USE_IMAGEMAGICK 65 int64_t write_video_count;
66 std::vector<Magick::Image> frames;
71 std::shared_ptr<Frame> last_frame;
105 std::string format,
Fraction fps,
int width,
int height,
106 int quality,
int loops,
bool combine);
110 void WriteFrame(std::shared_ptr<Frame> frame);
122 #endif //USE_IMAGEMAGICK 123 #endif //OPENSHOT_IMAGE_WRITER_H Header file for Fraction class.
void WriteFrame(std::shared_ptr< Frame > frame)
Add a frame to the stack waiting to be encoded.
Header file for MagickUtilities (IM6/IM7 compatibility overlay)
This abstract class is the base class, used by all readers in libopenshot.
void Close()
Close the writer and encode/output final image to the disk. This is a requirement of ImageMagick...
int GetCacheSize()
Get the cache size.
Header file for WriterBase class.
This abstract class is the base class, used by writers. Writers are types of classes that encode vide...
This class represents a fraction.
ImageWriter(std::string path)
Constructor for ImageWriter. Throws one of the following exceptions.
This class uses the ImageMagick library to write image files (including animated GIFs) ...
void SetVideoOptions(std::string format, Fraction fps, int width, int height, int quality, int loops, bool combine)
Set the video export options.
void SetCacheSize(int new_size)
Set the cache size (number of frames to queue before writing)
This namespace is the default namespace for all code in the openshot library.
bool IsOpen()
Determine if writer is open or closed.