mirror of
https://github.com/brunoherbelin/vimix.git
synced 2026-01-06 15:05:27 +01:00
If gstshmdatasink is available (from shmdata https://gitlab.com/sat-mtl/tools/shmdata/), the shmdata broadcaster can capture output and share it to memory
29 lines
626 B
C++
29 lines
626 B
C++
#ifndef SHMDATABROADCAST_H
|
|
#define SHMDATABROADCAST_H
|
|
|
|
#include "FrameGrabber.h"
|
|
|
|
class ShmdataBroadcast : public FrameGrabber
|
|
{
|
|
public:
|
|
ShmdataBroadcast(const std::string &socketpath = "/tmp/shmdata_vimix");
|
|
virtual ~ShmdataBroadcast() {}
|
|
|
|
static bool available();
|
|
inline std::string socket_path() const { return socket_path_; }
|
|
|
|
void stop() override;
|
|
std::string info() const override;
|
|
|
|
private:
|
|
std::string init(GstCaps *caps) override;
|
|
void terminate() override;
|
|
|
|
// connection information
|
|
std::string socket_path_;
|
|
std::atomic<bool> stopped_;
|
|
|
|
};
|
|
|
|
#endif // SHMDATABROADCAST_H
|