13 #ifndef OPENSHOT_PROFILE_H 14 #define OPENSHOT_PROFILE_H 21 #include <QtCore/QString> 22 #include <QtCore/QStringList> 23 #include <QtCore/QFile> 24 #include <QTextStream> 67 std::string formattedFPS(
bool include_decimal);
80 if (left_pixels < right_pixels) {
84 if (left_fps < right_fps) {
88 if (left_dar < right_dar) {
109 if (left_pixels > right_pixels) {
113 if (left_fps > right_fps) {
117 if (left_dar > right_dar) {
146 std::string ShortName();
147 std::string LongName();
148 std::string LongNameWithDesc();
151 std::string Json()
const;
152 Json::Value JsonValue()
const;
153 void SetJson(
const std::string value);
154 void SetJsonValue(
const Json::Value root);
Header file for Fraction class.
int num
Numerator for the fraction.
ProfileInfo info
Profile data stored here.
std::string description
The description of this profile.
double ToDouble() const
Return this fraction as a double (i.e. 1/2 = 0.5)
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.
friend bool operator>(const Profile &l, const Profile &r)
This struct holds profile data, typically loaded from a file.
friend bool operator<(const Profile &l, const Profile &r)
int width
The width of the video (in pixels)
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.
friend bool operator==(const Profile &l, const Profile &r)
Equality operator (compare profile objects)
Fraction display_ratio
The ratio of width to height of the video stream (i.e. 640x480 has a ratio of 4/3) ...
int den
Denominator for the fraction.