FaceRecognition/src/source_bin.hpp
2025-07-07 18:26:09 +00:00

32 lines
810 B
C++

// #ifndef MYCLASS_H
// #define MYCLASS_H
#include <glib.h>
#include <gst/gst.h>
#include <fstream>
#include <iostream>
#include "cuda_runtime_api.h"
#define GPU_ID 0
class SourceBin {
public:
typedef struct {
gint source_id;
GstElement *streammux;
struct cudaDeviceProp prop;
} StreamData;
// Static function declaration
static void decodebin_child_added(GstChildProxy *, GObject *, gchar *,
gpointer);
static void cb_newpad(GstElement *, GstPad *, gpointer, gboolean *);
static GstElement *create_nvurisrc_bin(guint, gchar *, GstElement *,
cudaDeviceProp prop);
private:
// Static data member (if needed)
// static int staticCounter;
};
// #endif // MYCLASS_H