|
OpenShot Library | libopenshot
0.4.0
|
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.
| Profile::Profile | ( | std::string | path | ) |
Constructor for Profile.
| path | The file path / location of a profile file |
Definition at line 38 of file Profiles.cpp.
| std::string Profile::Json | ( | ) | const |
Generate JSON string of this object.
Definition at line 263 of file Profiles.cpp.
| Json::Value Profile::JsonValue | ( | ) | const |
Generate Json::Value for this object.
Definition at line 270 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 173 of file Profiles.cpp.
| std::string Profile::LongName | ( | ) |
Return a longer format name (1920x1080p @ 29.97 fps (16:9))
Definition at line 207 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 221 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 240 of file Profiles.cpp.
| void Profile::SetJson | ( | const std::string | value | ) |
Load JSON string into this object.
Definition at line 295 of file Profiles.cpp.
| void Profile::SetJsonValue | ( | const Json::Value | root | ) |
Load Json::Value into this object.
Definition at line 312 of file Profiles.cpp.
Referenced by SetJson().
| std::string Profile::ShortName | ( | ) |
Return the name of this profile (1920x1080p29.97)
Definition at line 196 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().
1.8.17