#ifndef SV4L2DEVICE_H #define SV4L2DEVICE_H #include #include struct LMSBBB_buffer{ void* start; size_t length; }; class SV4L2Device { public: SV4L2Device(); virtual ~SV4L2Device(); static bool CheckDevice(QString strDevice); int xioctl(int fh, unsigned long int request, void *arg); int open_device(QString strDevice); template void clear_memmory(typeXX* x); void StreamOn(); protected: static int m_nDeviceID; int m_nVideoWidth; int m_nVideoHeight; v4l2_requestbuffers m_RequestBuffer; v4l2_buffer m_Buffer; LMSBBB_buffer* m_pBufferLMS; }; #endif // SV4L2DEVICE_H