]> git.sesse.net Git - vlc/blob - modules/video_filter/atmo/AtmoInput.cpp
android: Enable the iomx module
[vlc] / modules / video_filter / atmo / AtmoInput.cpp
1 /*
2  * AtmoInput.cpp:  abstract class for retrieving precalculated image data
3  * from 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
11 #ifdef HAVE_CONFIG_H
12 # include "config.h"
13 #endif
14
15 #include "AtmoDefs.h"
16 #include "AtmoInput.h"
17
18 #if defined(_ATMO_VLC_PLUGIN_)
19 CAtmoInput::CAtmoInput(CAtmoDynData *pAtmoDynData) : CThread(pAtmoDynData->getAtmoFilter())
20 {
21   m_pAtmoDynData         = pAtmoDynData;
22   m_pAtmoColorCalculator = new CAtmoColorCalculator(pAtmoDynData->getAtmoConfig());
23 }
24 #else
25 CAtmoInput::CAtmoInput(CAtmoDynData *pAtmoDynData)
26 {
27   m_pAtmoDynData = pAtmoDynData;
28   m_pAtmoColorCalculator = new CAtmoColorCalculator(pAtmoDynData->getAtmoConfig());
29 }
30 #endif
31
32 CAtmoInput::~CAtmoInput(void)
33 {
34   delete m_pAtmoColorCalculator;
35 }
36