Files
DCCONSTRUCTIONS fa8bde584f feat(video): recover camera previews and reduce encoding and playout cost
Improve camera recovery, shared preview lifecycle and receiver playout diagnostics. Preserve qualified X4 runtime changes and restore async admission in loopback media tests.
2026-10-29 09:10:01 +03:00

34 lines
1.3 KiB
C++

// Capability qualification only. No CameraSDK linkage, discovery or USB calls.
#include <ins_realtime_stitcher.h>
#include <ins_stitcher.h>
#include <exception>
#include <iostream>
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;
}
}