OpenShot Library | libopenshot
0.2.2
|
Go to the documentation of this file.
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>
115 virtual void Close() = 0;
129 virtual std::shared_ptr<Frame> GetFrame(int64_t number) = 0;
132 virtual bool IsOpen() = 0;
135 virtual string Name() = 0;
138 virtual string Json() = 0;
139 virtual void SetJson(
string value) = 0;
140 virtual Json::Value JsonValue() = 0;
141 virtual void SetJsonValue(Json::Value root) = 0;
144 void SetMaxSize(
int width,
int height) { max_width = width; max_height = height; };
147 virtual void Open() = 0;
Header file for ChannelLayout class.
int sample_rate
The number of audio samples per second (44100 is a common sample rate)
Header file for Fraction class.
This namespace is the default namespace for all code in the openshot library.
This class represents a fraction.
ChannelLayout channel_layout
The channel layout (mono, stereo, 5 point surround, etc...)
int audio_bit_rate
The bit rate of the audio stream (in bytes)
float duration
Length of time (in seconds)
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)
int width
The width of the video (in pixesl)
ReaderInfo info
Information about the current media file.
All cache managers in libopenshot are based on this CacheBase class.
string acodec
The name of the audio codec used to encode / decode the video stream.
int max_height
The maximium image height needed by this clip (used for optimizations)
int64_t video_length
The number of frames in the video stream.
int height
The height of the video (in pixels)
Header file for ZeroMQ-based Logger class.
bool has_audio
Determines if this file has an audio stream.
int64_t file_size
Size of file (in bytes)
Header file for CacheMemory class.
Fraction pixel_ratio
The pixel ratio of the video stream as a fraction (i.e. some pixels are not square)
This struct contains info about a media file, such as height, width, frames per second,...
bool has_single_image
Determines if this file only contains a single image.
CriticalSection getFrameCriticalSection
Section lock for multiple threads.
CriticalSection processingCriticalSection
int max_width
The maximum image width needed by this clip (used for optimizations)
Header file for Frame class.
std::map< string, string > metadata
An optional map/dictionary of metadata for this reader.
int audio_stream_index
The index of the audio stream.
int pixel_format
The pixel format (i.e. YUV420P, RGB24, etc...)
string vcodec
The name of the video codec used to encode / decode the video stream.
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.
int video_bit_rate
The bit rate of the video stream (in bytes)
This abstract class is the base class, used by all readers in libopenshot.
ChannelLayout
This enumeration determines the audio channel layout (such as stereo, mono, 5 point surround,...
void SetMaxSize(int width, int height)
Set Max Image Size (used for performance optimization)
Header file for JSON class.
int video_stream_index
The index of the video stream.
Fraction audio_timebase
The audio timebase determines how long each audio packet should be played.
int channels
The number of audio channels used in the audio stream.