home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2004 March / PCWELT_3_2004.ISO / pcwsoft / flaskmpeg_078_39_src.z.exe / flaskmpeg / flbrightness.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-10-28  |  1.5 KB  |  61 lines

  1. /* 
  2.  *  flbrightness.h   
  3.  *           
  4.  *
  5.  *    Copyright (C) Alberto Vigata - January 2000
  6.  *
  7.  *  This file is part of FlasKMPEG, a free MPEG to MPEG/AVI converter
  8.  *    
  9.  *  FlasKMPEG is free software; you can redistribute it and/or modify
  10.  *  it under the terms of the GNU General Public License as published by
  11.  *  the Free Software Foundation; either version 2, or (at your option)
  12.  *  any later version.
  13.  *   
  14.  *  FlasKMPEG is distributed in the hope that it will be useful,
  15.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.  *  GNU General Public License for more details.
  18.  *   
  19.  *  You should have received a copy of the GNU General Public License
  20.  *  along with GNU Make; see the file COPYING.  If not, write to
  21.  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
  22.  *
  23.  */
  24.  
  25.  
  26. #ifndef FLBRIGHTNESS_H
  27. #define FLBRIGHTNESS_H
  28.  
  29. #include "FlFilterSimple.h"
  30.  
  31. static const int g_nBrightnessMin = 0;
  32. static const int g_nBrightnessMax = 255;
  33.  
  34. struct TBrightnessCfg
  35. {
  36.   int brightness; //
  37.   int hue;
  38.   int contrast;
  39. };
  40.  
  41. #define IsValidCropConfig(x)
  42.  
  43. class FlBrightness : public FlFilterSimple
  44. {
  45. public:
  46.   FlBrightness();
  47.   int StartSimple();
  48.   int Configure(void *conf, int confsize );
  49.   int GetFilterConf( flfilter_conf *fc );
  50.   int ValFilterConf( flfilter_conf *fc );
  51.   int ProcessSimple(CFrame *in, CFrame *out);
  52.   int StopSimple();
  53.  
  54. private:
  55.   void Luminance(CFrame *in);
  56.   TBrightnessCfg m_cfg;
  57. };
  58.  
  59.  
  60.  
  61. #endif