MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / LongNameWithDesc

Method LongNameWithDesc

src/Profiles.cpp:221–237  ·  view source on GitHub ↗

Return a longer format name (1920x1080p @ 29.97 fps (16:9) HD 1080i 29.97 fps)

Source from the content-addressed store, hash-verified

219
220// Return a longer format name (1920x1080p @ 29.97 fps (16:9) HD 1080i 29.97 fps)
221std::string Profile::LongNameWithDesc() {
222 std::string progressive_str = info.interlaced_frame ? "i" : "p";
223 std::string fps_string = formattedFPS(true);
224
225 std::string result = std::to_string(info.width) + "x" + std::to_string(info.height) +
226 progressive_str + " @ " + fps_string +
227 " fps (" + std::to_string(info.display_ratio.num) + ":" +
228 std::to_string(info.display_ratio.den) + ")";
229
230 if (info.spherical)
231 result += " 360°";
232
233 if (!info.description.empty())
234 result += " " + info.description;
235
236 return result;
237}
238
239// Save profile to file system
240void Profile::Save(const std::string& file_path) const {

Callers 1

Profiles.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected