28 #ifndef OPENSHOT_READER_BASE_H 29 #define OPENSHOT_READER_BASE_H 42 #include <QtCore/qstring.h> 43 #include <QGraphicsItem> 44 #include <QGraphicsScene> 45 #include <QGraphicsPixmapItem> 114 virtual void Close() = 0;
128 virtual std::shared_ptr<Frame> GetFrame(int64_t number) = 0;
131 virtual bool IsOpen() = 0;
134 virtual string Name() = 0;
137 virtual string Json() = 0;
138 virtual void SetJson(
string value) = 0;
139 virtual Json::Value JsonValue() = 0;
140 virtual void SetJsonValue(Json::Value root) = 0;
143 void SetMaxSize(
int width,
int height) { max_width = width; max_height = height; };
146 virtual void Open() = 0;
int max_height
The maximium image height needed by this clip (used for optimizations)
Header file for Fraction class.
CriticalSection getFrameCriticalSection
Section lock for multiple threads.
CriticalSection processingCriticalSection
ChannelLayout channel_layout
The channel layout (mono, stereo, 5 point surround, etc...)
int width
The width of the video (in pixesl)
float duration
Length of time (in seconds)
string acodec
The name of the audio codec used to encode / decode the video stream.
This abstract class is the base class, used by all readers in libopenshot.
bool has_video
Determines if this file has a video stream.
Fraction display_ratio
The ratio of width to height of the video stream (i.e. 640x480 has a ratio of 4/3) ...
Header file for CacheMemory class.
int64_t file_size
Size of file (in bytes)
int audio_bit_rate
The bit rate of the audio stream (in bytes)
void SetMaxSize(int width, int height)
Set Max Image Size (used for performance optimization)
bool has_audio
Determines if this file has an audio stream.
Header file for Frame class.
int audio_stream_index
The index of the audio stream.
int64_t video_length
The number of frames in the video stream.
int height
The height of the video (in pixels)
Header file for JSON class.
This class represents a fraction.
Header file for ZeroMQ-based Logger class.
This struct contains info about a media file, such as height, width, frames per second, etc...
Header file for ChannelLayout class.
All cache managers in libopenshot are based on this CacheBase class.
bool has_single_image
Determines if this file only contains a single image.
ChannelLayout
This enumeration determines the audio channel layout (such as stereo, mono, 5 point surround...
ReaderInfo info
Information about the current media file.
Fraction fps
Frames per second, as a fraction (i.e. 24/1 = 24 fps)
Fraction video_timebase
The video timebase determines how long each frame stays on the screen.
Fraction pixel_ratio
The pixel ratio of the video stream as a fraction (i.e. some pixels are not square) ...
This namespace is the default namespace for all code in the openshot library.
int pixel_format
The pixel format (i.e. YUV420P, RGB24, etc...)
int video_bit_rate
The bit rate of the video stream (in bytes)
Fraction audio_timebase
The audio timebase determines how long each audio packet should be played.
string vcodec
The name of the video codec used to encode / decode the video stream.
int channels
The number of audio channels used in the audio stream.
int video_stream_index
The index of the video stream.
int max_width
The maximum image width needed by this clip (used for optimizations)
int sample_rate
The number of audio samples per second (44100 is a common sample rate)