Return a longer format name (1920x1080p @ 29.97 fps (16:9) HD 1080i 29.97 fps)
| 219 | |
| 220 | // Return a longer format name (1920x1080p @ 29.97 fps (16:9) HD 1080i 29.97 fps) |
| 221 | std::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 |
| 240 | void Profile::Save(const std::string& file_path) const { |