]> git.sesse.net Git - vlc/blob - modules/video_filter/atmo/AtmoInput.h
Factorized a bit colorthres code.
[vlc] / modules / video_filter / atmo / AtmoInput.h
1 /*
2  * AtmoInput.h:  abstract class for retrieving precalculated image data from
3  * different sources in the live view mode
4  *
5  *
6  * See the README.txt file for copyright information and how to reach the author(s).
7  *
8  * $Id$
9  */
10 #ifndef _AtmoInput_h_
11 #define _AtmoInput_h_
12
13 #include "AtmoDefs.h"
14 #include "AtmoCalculations.h"
15 #include "AtmoPacketQueue.h"
16 #include "AtmoThread.h"
17 #include "AtmoDynData.h"
18
19 class CAtmoDynData;
20
21 /*
22   basic definition of an AtmoLight data/image source ...
23 */
24 class CAtmoInput : public CThread {
25
26 protected:
27     CAtmoDynData         *m_pAtmoDynData;
28     CAtmoColorCalculator *m_pAtmoColorCalculator;
29
30 public:
31     CAtmoInput(CAtmoDynData *pAtmoDynData);
32     virtual ~CAtmoInput(void);
33
34     // Opens the input-device.
35     // Returns true if the input-device was opened successfully.
36     virtual ATMO_BOOL Open(void) { return ATMO_FALSE; }
37
38     // Closes the input-device.
39     // Returns true if the input-device was closed successfully.
40     virtual ATMO_BOOL Close(void) { return ATMO_FALSE; }
41
42 };
43
44 #endif