#include #include #include #include #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(); };