13 #ifndef OPENSHOT_PROFILE_H
14 #define OPENSHOT_PROFILE_H
20 #include <QtCore/QString>
21 #include <QtCore/QStringList>
22 #include <QtCore/QFile>
23 #include <QTextStream>
74 std::string
Json()
const;
76 void SetJson(
const std::string value);
Header file for Fraction class.
Header file for JSON class.
This class represents a fraction.
This class loads a special text-based file called a Profile.
Profile(std::string path)
Constructor for Profile.
void SetJsonValue(const Json::Value root)
Load Json::Value into this object.
std::string Json() const
Generate JSON string of this object.
ProfileInfo info
Profile data stored here.
void SetJson(const std::string value)
Load JSON string into this object.
Json::Value JsonValue() const
Generate Json::Value for this object.
This namespace is the default namespace for all code in the openshot library.
This struct holds profile data, typically loaded from a file.
std::string description
The description of this profile.
int width
The width 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)
Fraction display_ratio
The ratio of width to height of the video stream (i.e. 640x480 has a ratio of 4/3)
Fraction fps
Frames per second, as a fraction (i.e. 24/1 = 24 fps)
int height
The height of the video (in pixels)
int pixel_format
The pixel format (i.e. YUV420P, RGB24, etc...)