// Capability qualification only. No CameraSDK linkage, discovery or USB calls. #include #include #include #include int main(int argc, char** argv) { if (argc != 2) return 4; std::cout << "{\"phase\":\"process_started\"}" << std::endl; try { ins::InitEnv(); ins::SetLogPath(argv[1]); ins::SetLogLevel(ins::InsLogLevel::WARNING); std::cout << "{\"phase\":\"environment_initialized\"}" << std::endl; { ins::RealTimeStitcher stitcher; stitcher.SetSoftwareCodecUsage(true, true); stitcher.EnableFlowState(false); stitcher.EnableDirectionLock(false); stitcher.SetStitchType(ins::STITCH_TYPE::DYNAMICSTITCH); stitcher.SetOutputSize(960, 480); std::cout << "{\"phase\":\"realtime_constructed\"}" << std::endl; } std::cout << "{\"phase\":\"realtime_destroyed\",\"frame_verified\":false}" << std::endl; return 0; } catch (const std::exception&) { std::cerr << "MediaSDK qualification raised an exception" << std::endl; return 2; } catch (...) { std::cerr << "MediaSDK qualification raised an unknown exception" << std::endl; return 3; } }