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

Method LongName

src/Profiles.cpp:207–218  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

205
206// Return a longer format name (1920x1080p @ 29.97 fps (16:9))
207std::string Profile::LongName() {
208 std::string progressive_str = info.interlaced_frame ? "i" : "p";
209 std::string fps_string = formattedFPS(true);
210 std::string result = std::to_string(info.width) + "x" + std::to_string(info.height) +
211 progressive_str + " @ " + fps_string +
212 " fps (" + std::to_string(info.display_ratio.num) + ":" +
213 std::to_string(info.display_ratio.den) + ")";
214
215 if (info.spherical)
216 result += " 360°";
217 return result;
218}
219
220// Return a longer format name (1920x1080p @ 29.97 fps (16:9) HD 1080i 29.97 fps)
221std::string Profile::LongNameWithDesc() {

Callers 1

Profiles.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected