]> git.sesse.net Git - vlc/blob - modules/video_filter/atmo/AtmoInput.cpp
Use var_InheritString for --decklink-video-connection.
[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 #include "AtmoDefs.h"
11 #include "AtmoInput.h"
12
13 #if defined(_ATMO_VLC_PLUGIN_)
14 CAtmoInput::CAtmoInput(CAtmoDynData *pAtmoDynData) : CThread(pAtmoDynData->getAtmoFilter())
15 {
16   m_pAtmoDynData         = pAtmoDynData;
17   m_pAtmoColorCalculator = new CAtmoColorCalculator(pAtmoDynData->getAtmoConfig());
18 }
19 #else
20 CAtmoInput::CAtmoInput(CAtmoDynData *pAtmoDynData)
21 {
22   m_pAtmoDynData = pAtmoDynData;
23   m_pAtmoColorCalculator = new CAtmoColorCalculator(pAtmoDynData->getAtmoConfig());
24 }
25 #endif
26
27 CAtmoInput::~CAtmoInput(void)
28 {
29   delete m_pAtmoColorCalculator;
30 }
31