MCPcopy Create free account
hub / github.com/SpectacularAI/sdk / tryParseResolution

Function tryParseResolution

cpp/common/visualization/visualizer.cpp:57–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55)";
56
57std::pair<int, int> tryParseResolution(const std::string &s) {
58 std::istringstream iss(s);
59
60 int width, height;
61 char comma;
62 if (iss >> width >> comma >> height && comma == ',') {
63 return std::make_pair(width, height);
64 } else {
65 std::cerr << "Failed to parse resolution from " << s << std::endl;
66 exit(EXIT_FAILURE);
67 }
68}
69
70// Runs Python visualization using system()
71bool runPythonVisualizer(const VisualizerArgs &args) {

Callers 1

runPythonVisualizerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected