#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 frames; /* 视频图像帧信息 */ VideoFrameDataInfo bgr_frame_buffer, detect_frame_buffer; }; #endif // HXDEVICE_H