FaceRecognition/src/sink_manager.hpp
2025-07-01 17:18:28 +00:00

23 lines
537 B
C++

#include <glib.h>
#include <gst/gst.h>
#include <fstream>
#include <nlohmann/json.hpp>
#include "cuda_runtime_api.h"
#include "json.hpp"
class SinkManager {
private:
std::string codec_rtsp_out;
public:
GstElement *sink = NULL, *nvvidconv_postosd = NULL, *caps = NULL,
*encoder = NULL, *rtppay = NULL;
std::string host, output_sink, output_video_path;
int display_output = 1, bitrate;
guint updsink_port_num;
SinkManager();
bool create_sink(cudaDeviceProp prop);
~SinkManager();
};