#pragma once #include "libvideoqueue.h" #include "videoutil.h" #include "SpBase.h" #ifndef MAX_PATH #define MAX_PATH 260 #endif // !MAX_PATH class RvcFaceVideo { public: RvcFaceVideo(void); ~RvcFaceVideo(void); int InitVideoQueue(const char* strenvqueue, const char* stroptqueue, const char* strpreview_envqueue, const char* strpreview_optqueue); int GetVideoFrameSize(int icameraid, int* ivideowidth, int* ivideoheight); int GetPreViewVideoFrameSize(int icameraid, int* ivideowidth, int* ivideoheight); bool GetVideoFrame(int icameraid, videoq_frame* videoframe, int iflags); bool GetPreViewVideoFrame(int icameraid, videoq_frame* videoframe, int iflags); int InitVideoFrame(); public: Clibvideoqueue* m_env_videoqueue; Clibvideoqueue* m_opt_videoqueue; videoq_frame *m_env_videoframe; videoq_frame *m_opt_videoframe; Clibvideoqueue* m_preview_env_videoqueue; Clibvideoqueue* m_preview_opt_videoqueue; videoq_frame *m_preview_env_videoframe; videoq_frame *m_preview_opt_videoframe; private: char m_env_videoname[MAX_PATH]; char m_opt_videoname[MAX_PATH]; char m_preview_env_videoname[MAX_PATH]; char m_preview_opt_videoname[MAX_PATH]; };