# endif
#endif
-#if !defined(_ATMO_VLC_PLUGIN_)
-# include <comdef.h>
-# include "AtmoWin_h.h"
+#if defined(_ATMO_VLC_PLUGIN_)
+# include <vlc_common.h>
+# include <vlc_threads.h>
#endif
#include "AtmoInput.h"
#include "AtmoCalculations.h"
-class CAtmoExternalCaptureInput :
- public CAtmoInput,
- public CThread
+class CAtmoExternalCaptureInput : public CAtmoInput
{
protected:
#if defined(_ATMO_VLC_PLUGIN_)
vlc_mutex_t m_WakeupLock;
#else
HANDLE m_hWakeupEvent;
+ CRITICAL_SECTION m_BufferLock;
#endif
BITMAPINFOHEADER m_CurrentFrameHeader;
*/
virtual ATMO_BOOL Close(void);
- /*
- this method is called from the AtmoLiveView thread - to get the
- new color packet (a packet is an RGB triple for each channel)
- */
- virtual tColorPacket GetColorPacket(void);
-
- /*
- this method is also called from the AtmoLiveView thread - to
- resync on a frame
- */
- virtual void WaitForNextFrame(DWORD timeout);
};
#endif