123456789101112131415161718192021222324252627282930313233343536 |
- #pragma once
- #include <string>
- #define CAPTUREWRITER_CLASS_DECL
- namespace DIOS_DataElement
- {
- class CDataMgr;
- }
- namespace DIOS_Kernel
- {
- class CLoopShareMemMgr;
- class CAPTUREWRITER_CLASS_DECL CCaptureWriter
- {
- public:
- CCaptureWriter(const wchar_t* wstrName);
- virtual ~CCaptureWriter();
- const wchar_t* GetName();
- bool Init(bool bMemOverlapped);
- bool SetPerBlockLen(size_t nPerBlockLen);
- bool BeginWriteSequence(const wchar_t* wszNotify);
- bool WriteGrayDataForFPD(int nWidth, int nHeight, int nBits, int nFrameId, void* pData, int nDataLen);
- bool WriteData(void* pData, int nDataLen);
- bool EndWriteSequence(const wchar_t* wszNotify);
- private:
- CLoopShareMemMgr * m_pShareMemMgr;
- std::wstring* m_pwstrName;
- DIOS_DataElement::CDataMgr* m_pDataMgr;
- bool m_bInit;
- };
- }
|