AtmoZoneDefinition.h

Go to the documentation of this file.
00001 #ifndef _AtmoZoneDefinition_h_
00002 #define _AtmoZoneDefinition_h_
00003 
00004 #include "AtmoDefs.h"
00005 
00006 #define ATMO_LOAD_GRADIENT_OK  0
00007 #define ATMO_LOAD_GRADIENT_FILENOTFOND    1
00008 #define ATMO_LOAD_GRADIENT_FAILED_SIZE    2
00009 #define ATMO_LOAD_GRADIENT_FAILED_HEADER  3
00010 #define ATMO_LOAD_GRADIENT_FAILED_FORMAT  4
00011 
00012 
00013 class CAtmoZoneDefinition
00014 {
00015 private:
00016     int m_zonenumber; // just for identification and channel assignment!
00017     unsigned char m_BasicWeight[IMAGE_SIZE];
00018 
00019 public:
00020     CAtmoZoneDefinition(void);
00021     ~CAtmoZoneDefinition(void);
00022 
00023     void Fill(unsigned char value);
00024     void FillGradientFromLeft(int start_row,int end_row);
00025     void FillGradientFromRight(int start_row,int end_row);
00026     void FillGradientFromTop(int start_col,int end_col);
00027     void FillGradientFromBottom(int start_col,int end_col);
00028 
00029     int LoadGradientFromBitmap(char *pszBitmap);
00030 #if !defined(_ATMO_VLC_PLUGIN_)
00031     void SaveZoneBitmap(char *);
00032     void SaveWeightBitmap(char *fileName,int *weight);
00033 #endif
00034 
00035     void UpdateWeighting(int *destWeight,
00036                          int WidescreenMode,
00037                          int newEdgeWeightning);
00038 
00039     void setZoneNumber(int num);
00040     int getZoneNumber();
00041 };
00042 
00043 #endif

Generated on Tue May 25 08:04:59 2010 for VLC by  doxygen 1.5.6