OpenShot Library | libopenshot
0.2.5
|
Go to the documentation of this file.
31 #ifndef OPENSHOT_PROFILE_H
32 #define OPENSHOT_PROFILE_H
38 #include <QtCore/qstring.h>
39 #include <QtCore/qstringlist.h>
40 #include <QtCore/qfile.h>
41 #include <QTextStream>
93 std::string
Json()
const;
95 void SetJson(
const std::string value);
Header file for Fraction class.
Fraction fps
Frames per second, as a fraction (i.e. 24/1 = 24 fps)
This namespace is the default namespace for all code in the openshot library.
int width
The width of the video (in pixels)
int height
The height of the video (in pixels)
Fraction pixel_ratio
The pixel ratio of the video stream as a fraction (i.e. some pixels are not square)
This class represents a fraction.
int pixel_format
The pixel format (i.e. YUV420P, RGB24, etc...)
This class loads a special text-based file called a Profile.
This struct holds profile data, typically loaded from a file.
Fraction display_ratio
The ratio of width to height of the video stream (i.e. 640x480 has a ratio of 4/3)
std::string Json() const
Get and Set JSON methods.
void SetJsonValue(const Json::Value root)
Load Json::Value into this object.
std::string description
The description of this profile.
ProfileInfo info
Profile data stored here.
Json::Value JsonValue() const
Generate Json::Value for this object.
Profile(std::string path)
Constructor for Profile.
void SetJson(const std::string value)
Load JSON string into this object.
Header file for JSON class.
Header file for all Exception classes.