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.
ProfileInfo info
Profile data stored here.
void SetJson(const std::string value)
Load JSON string into this object.
std::string description
The description of this profile.
Profile(std::string path)
Constructor for Profile.
Header file for all Exception classes.
std::string Json() const
Get and Set JSON methods.
Header file for JSON class.
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.
This class loads a special text-based file called a Profile.
This struct holds profile data, typically loaded from a file.
int width
The width of the video (in pixels)
Json::Value JsonValue() const
Generate Json::Value for this object.
Fraction fps
Frames per second, as a fraction (i.e. 24/1 = 24 fps)
int pixel_format
The pixel format (i.e. YUV420P, RGB24, etc...)
int height
The height of the video (in pixels)
This namespace is the default namespace for all code in the openshot library.
void SetJsonValue(const Json::Value root)
Load Json::Value into this object.
Fraction display_ratio
The ratio of width to height of the video stream (i.e. 640x480 has a ratio of 4/3) ...