00001 /* 00002 * AtmoOutputFilter.h: Post Processor for the color data retrieved from a CAtmoInput 00003 * 00004 * mostly 1:1 from Linux-src "filter.c" copied 00005 * 00006 * See the README.txt file for copyright information and how to reach the author(s). 00007 * 00008 * $Id: 80ad1561b381f1608fda89f51103e8c017b9222a $ 00009 */ 00010 #ifndef _AtmoOutputFilter_h_ 00011 #define _AtmoOutputFilter_h_ 00012 00013 00014 #include "AtmoConfig.h" 00015 #include "AtmoDefs.h" 00016 00017 class CAtmoOutputFilter 00018 { 00019 private: 00020 //tColorPacket filter_input; // input of the filter wozu? 00021 //tColorPacket filter_output; // output of the filter 00022 pColorPacket m_percent_filter_output_old; 00023 00024 pColorPacket m_mean_filter_output_old; 00025 pColorPacket m_mean_values; 00026 pColorPacketLongInt m_mean_sums; 00027 00028 pColorPacket PercentFilter(pColorPacket filter_input, ATMO_BOOL init); 00029 pColorPacket MeanFilter(pColorPacket filter_input, ATMO_BOOL init); 00030 00031 CAtmoConfig *m_pAtmoConfig; 00032 public: 00033 00034 public: 00035 CAtmoOutputFilter(CAtmoConfig *atmoConfig); 00036 virtual ~CAtmoOutputFilter(void); 00037 void ResetFilter(void); 00038 pColorPacket Filtering(pColorPacket ColorPacket); 00039 }; 00040 00041 #endif
1.5.6