2 * AtmoInput.h: abstract class for retrieving precalculated image data from
3 * different sources in the live view mode
6 * See the README.txt file for copyright information and how to reach the author(s).
14 #include "AtmoDynData.h"
17 basic definition of an AtmoLight data/image source ...
22 tColorPacket m_ColorPacket;
23 volatile ATMO_BOOL m_FrameArrived;
24 CAtmoDynData *m_pAtmoDynData;
27 CAtmoInput(CAtmoDynData *pAtmoDynData);
28 virtual ~CAtmoInput(void);
30 // Opens the input-device.
31 // Returns true if the input-device was opened successfully.
32 virtual ATMO_BOOL Open(void) { return ATMO_FALSE; }
34 // Closes the input-device.
35 // Returns true if the input-device was closed successfully.
36 virtual ATMO_BOOL Close(void) { return ATMO_FALSE; }
38 // Returns the calculated tColorPacket for further processing (e.g. filtering).
39 virtual tColorPacket GetColorPacket(void) { return m_ColorPacket; }
41 // wait for the arrival of the next frame...(to come in sync again)
42 virtual void WaitForNextFrame(DWORD timeout);