Implement broadcast manager functionality and enhance FrameGrabber info and type methods

This commit is contained in:
brunoherbelin
2025-11-09 11:38:01 +01:00
parent 0ef06e400d
commit 08114e2cbe
16 changed files with 281 additions and 92 deletions

View File

@@ -203,16 +203,21 @@ std::string ShmdataBroadcast::gst_pipeline() const
return pipeline;
}
std::string ShmdataBroadcast::info() const
std::string ShmdataBroadcast::info(bool extended) const
{
std::ostringstream ret;
if (!initialized_)
ret << "Shared Memory starting..";
else if (active_)
ret << "Shared Memory " << socket_path_;
else
ret << "Shared Memory terminated";
if (extended) {
ret << gst_pipeline();
}
else {
if (!initialized_)
ret << "Shared Memory starting..";
else if (active_)
ret << "Shared Memory " << socket_path_;
else
ret << "Shared Memory terminated";
}
return ret.str();
}