OpenShot Library | libopenshot
0.3.3
|
This class loads a special text-based file called a Profile. More...
#include <Profiles.h>
Public Member Functions | |
std::string | Json () const |
Generate JSON string of this object. More... | |
Json::Value | JsonValue () const |
Generate Json::Value for this object. More... | |
std::string | Key () |
Return a unique key of this profile with padding (01920x1080i2997_16:09) More... | |
std::string | LongName () |
Return a longer format name (1920x1080p @ 29.97 fps (16:9)) More... | |
std::string | LongNameWithDesc () |
Return a longer format name with description (1920x1080p @ 29.97 fps (16:9) HD 1080i 29.97 fps) More... | |
Profile () | |
Default Constructor for Profile. More... | |
Profile (std::string path) | |
Constructor for Profile. More... | |
void | Save (const std::string &file_path) const |
Save profile to a text file (label=value, one per line format) More... | |
void | SetJson (const std::string value) |
Load JSON string into this object. More... | |
void | SetJsonValue (const Json::Value root) |
Load Json::Value into this object. More... | |
std::string | ShortName () |
Return the name of this profile (1920x1080p29.97) More... | |
Public Attributes | |
ProfileInfo | info |
Profile data stored here. More... | |
Friends | |
bool | operator< (const Profile &l, const Profile &r) |
bool | operator== (const Profile &l, const Profile &r) |
Equality operator (compare profile objects) More... | |
bool | operator> (const Profile &l, const Profile &r) |
This class loads a special text-based file called a Profile.
Profile data contains common video settings, such as framerate, height, width, aspect ratio, etc... All derived classes from openshot::WriterBase can load profile data using this class.
Definition at line 64 of file Profiles.h.
Profile::Profile | ( | ) |
Default Constructor for Profile.
Definition at line 20 of file Profiles.cpp.
Referenced by Profile().
Profile::Profile | ( | std::string | path | ) |
Constructor for Profile.
path | The file path / location of a profile file |
Definition at line 37 of file Profiles.cpp.
std::string Profile::Json | ( | ) | const |
Generate JSON string of this object.
Definition at line 223 of file Profiles.cpp.
Json::Value Profile::JsonValue | ( | ) | const |
Generate Json::Value for this object.
Definition at line 230 of file Profiles.cpp.
Referenced by Json().
std::string Profile::Key | ( | ) |
Return a unique key of this profile with padding (01920x1080i2997_16:09)
Definition at line 147 of file Profiles.cpp.
std::string Profile::LongName | ( | ) |
Return a longer format name (1920x1080p @ 29.97 fps (16:9))
Definition at line 175 of file Profiles.cpp.
std::string Profile::LongNameWithDesc | ( | ) |
Return a longer format name with description (1920x1080p @ 29.97 fps (16:9) HD 1080i 29.97 fps)
Definition at line 188 of file Profiles.cpp.
void Profile::Save | ( | const std::string & | file_path | ) | const |
Save profile to a text file (label=value, one per line format)
file_path | The file path / location of a profile file |
Definition at line 201 of file Profiles.cpp.
void Profile::SetJson | ( | const std::string | value | ) |
Load JSON string into this object.
Definition at line 254 of file Profiles.cpp.
void Profile::SetJsonValue | ( | const Json::Value | root | ) |
Load Json::Value into this object.
Definition at line 271 of file Profiles.cpp.
Referenced by SetJson().
std::string Profile::ShortName | ( | ) |
Return the name of this profile (1920x1080p29.97)
Definition at line 163 of file Profiles.cpp.
Less than operator (compare profile objects) Compare # of pixels, then FPS, then DAR
Definition at line 71 of file Profiles.h.
Equality operator (compare profile objects)
Definition at line 128 of file Profiles.h.
Greater than operator (compare profile objects) Compare # of pixels, then FPS, then DAR
Definition at line 100 of file Profiles.h.
ProfileInfo openshot::Profile::info |
Profile data stored here.
Definition at line 136 of file Profiles.h.
Referenced by JsonValue(), Key(), LongName(), LongNameWithDesc(), Profile(), Save(), SetJsonValue(), and ShortName().