]> git.sesse.net Git - vlc/blob - modules/video_filter/atmo/AtmoLiveView.h
Fix memleak in opencv.
[vlc] / modules / video_filter / atmo / AtmoLiveView.h
1 /*
2  * AtmoLiveView.h:  this effect outputs colors as result of a picture content
3  * (most complex effect) see thread.c of the linux version - to fully understand
4  * what happes here..
5  *
6  * See the README.txt file for copyright information and how to reach the author(s).
7  *
8  * $Id$
9  */
10 #ifndef _AtmoLiveView_h_
11 #define _AtmoLiveView_h_
12
13 #include "AtmoDefs.h"
14
15 #if !defined(_ATMO_VLC_PLUGIN_)
16 #   include <comdef.h>          
17 #   include "AtmoWin_h.h"
18 #   include <windows.h>
19 #endif
20
21 #include "AtmoThread.h"
22 #include "AtmoConfig.h"
23 #include "AtmoConnection.h"
24 #include "AtmoInput.h"
25
26 class CAtmoLiveView :  public CThread
27 {
28 protected:
29         virtual DWORD Execute(void);
30
31 #if !defined(_ATMO_VLC_PLUGIN_)
32 public:
33     STDMETHODIMP setLiveViewSource(enum ComLiveViewSource dwModus);
34     STDMETHODIMP getCurrentLiveViewSource(enum ComLiveViewSource *modus);
35 #endif
36
37 protected:
38     CAtmoDynData *m_pAtmoDynData;
39     CAtmoInput *m_pAtmoInput;
40
41 #if !defined(_ATMO_VLC_PLUGIN_)
42     ComLiveViewSource m_LiveViewSource;
43     ComLiveViewSource m_CurrentLiveViewSource;
44     CRITICAL_SECTION m_InputChangeCriticalSection;
45     HANDLE m_InputChangedEvent;
46 #endif
47
48 public:
49     CAtmoLiveView(CAtmoDynData *pAtmoDynData);
50     virtual ~CAtmoLiveView(void);
51
52     CAtmoInput *getAtmoInput() { return m_pAtmoInput; }
53
54 #if !defined(_ATMO_VLC_PLUGIN_)
55     ComLiveViewSource getLiveViewSource() { return m_CurrentLiveViewSource; }
56 #endif
57 };
58
59 #endif