mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 23:40:02 +01:00
Start gstreamer init of frame grabber in a thread and wait future return from initializer before switching to active recording mode.
32 lines
552 B
C++
32 lines
552 B
C++
#ifndef LOOPBACK_H
|
|
#define LOOPBACK_H
|
|
|
|
#include <vector>
|
|
|
|
#include <gst/pbutils/pbutils.h>
|
|
#include <gst/app/gstappsrc.h>
|
|
|
|
#include "FrameGrabber.h"
|
|
|
|
|
|
class Loopback : public FrameGrabber
|
|
{
|
|
static std::string system_loopback_pipeline;
|
|
static std::string system_loopback_name;
|
|
static bool system_loopback_initialized;
|
|
|
|
std::string init(GstCaps *caps) override;
|
|
void terminate() override;
|
|
|
|
public:
|
|
|
|
Loopback();
|
|
|
|
static bool systemLoopbackInitialized();
|
|
static bool initializeSystemLoopback();
|
|
|
|
};
|
|
|
|
|
|
#endif // LOOPBACK_H
|