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

  1. /* 
  2.  *  Crop.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 CROP_H
  27. #define CROP_H
  28.  
  29. #include "FlFilterSimple.h"
  30.  
  31.  
  32. struct TCropConfig
  33. {
  34.     int top;      // coordinates of the cropping rectangle
  35.   int left;     // 0.0 is upper left
  36.   int right;    // top > bottom
  37.   int bottom;
  38. };
  39.  
  40. #define IsValidCropConfig(x)
  41.  
  42. class FlCrop : public FlFilterSimple
  43. {
  44. public:
  45.   FlCrop();
  46.   int StartSimple();
  47.   int Configure(void *conf, int confsize );
  48.   int GetFilterConf( flfilter_conf *fc );
  49.   int ValFilterConf( flfilter_conf *fc );
  50.   int ProcessSimple(CFrame *in, CFrame *out);
  51.   int StopSimple();
  52.  
  53. private:
  54.   TCropConfig m_cfg;
  55. };
  56.  
  57.  
  58.  
  59. #endif