HxNvr/HxIVA/HxDevice.h
2024-02-03 18:39:36 +08:00

39 lines
673 B
C++

#ifndef HXDEVICE_H
#define HXDEVICE_H
#include "main.h"
typedef enum __CONNECTION_TYPE_
{
File = 0,
Rtsp = 1,
}connection_type;
class HxDevice
{
public:
HxDevice();
void startup(int type, QString url, QString file = "");
private:
void frame_read_process(void);
void frame_decode_process(void);
int mv_convert_images(VideoFrameDataInfo *src_buffer, VideoFrameDataInfo *dst_buffer);
private:
int type;
int connection_type;
int frame_id;
QString address;
QMutex mutex;
QQueue<cv::Mat> frames;
/* 视频图像帧信息 */
VideoFrameDataInfo bgr_frame_buffer, detect_frame_buffer;
};
#endif // HXDEVICE_H