add credits
This commit is contained in:
5
main.cpp
5
main.cpp
@@ -71,10 +71,8 @@ int main() {
|
|||||||
std::cout << "Initial format: " << fmtList[0].width << "x" << fmtList[0].height
|
std::cout << "Initial format: " << fmtList[0].width << "x" << fmtList[0].height
|
||||||
<< " @ " << fmtList[0].framerate << " fps" << std::endl;
|
<< " @ " << fmtList[0].framerate << " fps" << std::endl;
|
||||||
|
|
||||||
// Create camera controller
|
|
||||||
const auto controller = std::make_shared<CameraController>(cam);
|
const auto controller = std::make_shared<CameraController>(cam);
|
||||||
|
|
||||||
// Start Unix domain socket server
|
|
||||||
const std::string socketPath = "/tmp/vizion_control.sock";
|
const std::string socketPath = "/tmp/vizion_control.sock";
|
||||||
SocketServer server(socketPath);
|
SocketServer server(socketPath);
|
||||||
|
|
||||||
@@ -98,15 +96,12 @@ int main() {
|
|||||||
std::cout << R"( echo '{"command":"set_pipeline","params":{"pipeline":"YOUR_PIPELINE"}}' | socat - UNIX-CONNECT:)" << socketPath << std::endl;
|
std::cout << R"( echo '{"command":"set_pipeline","params":{"pipeline":"YOUR_PIPELINE"}}' | socat - UNIX-CONNECT:)" << socketPath << std::endl;
|
||||||
std::cout << "\nPress Ctrl+C to exit.\n" << std::endl;
|
std::cout << "\nPress Ctrl+C to exit.\n" << std::endl;
|
||||||
|
|
||||||
// Main loop - keep running until signaled to stop
|
|
||||||
while (g_running) {
|
while (g_running) {
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cleanup
|
|
||||||
std::cout << "Shutting down..." << std::endl;
|
std::cout << "Shutting down..." << std::endl;
|
||||||
|
|
||||||
// Stop streaming engine if running
|
|
||||||
if (controller->getStreamingEngine()->isRunning()) {
|
if (controller->getStreamingEngine()->isRunning()) {
|
||||||
controller->getStreamingEngine()->stop();
|
controller->getStreamingEngine()->stop();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user