home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2001 September / PC-WELT 9-2001.ISO / software / hw / brennen / flask_src.exe / PostProcessing.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-13  |  2.1 KB  |  76 lines

  1. /* 
  2.  *  PostProcessing.h
  3.  *
  4.  *    Copyright (C) Alberto Vigata - January 2000 - ultraflask@yahoo.com
  5.  *
  6.  *  This file is part of FlasKMPEG, a free MPEG to MPEG/AVI converter
  7.  *    
  8.  *  FlasKMPEG is free software; you can redistribute it and/or modify
  9.  *  it under the terms of the GNU General Public License as published by
  10.  *  the Free Software Foundation; either version 2, or (at your option)
  11.  *  any later version.
  12.  *   
  13.  *  FlasKMPEG is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  *  GNU General Public License for more details.
  17.  *   
  18.  *  You should have received a copy of the GNU General Public License
  19.  *  along with GNU Make; see the file COPYING.  If not, write to
  20.  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
  21.  *
  22.  */
  23.  
  24. #ifndef POST_PROCESSING_H
  25. #define POST_PROCESSING_H
  26.  
  27.  
  28. #include ".\resizer\vbitmap.h"
  29. struct TPPost
  30. {
  31.     // Original image
  32.     int                    inputW;
  33.     int                    inputH;
  34.     // Resizing
  35.     BOOL                doAR;
  36.     double                iDAR;
  37.     int                    filterMode;
  38.     int                    resWidth;
  39.     int                    resHeight;
  40.     
  41.     // Crop and letterboxing
  42.     BOOL                crop;
  43.     int                    cropTopOffset;
  44.     int                    cropHeight;
  45.     int                    cropLeftOffset;
  46.     int                    cropWidth;
  47.  
  48.     BOOL                letterbox;
  49.     int                    letterboxTop;
  50.     int                    letterboxBottom;
  51.     int                    letterboxLeft;
  52.     int                    letterboxRight;
  53.  
  54.     // Deinterlacing
  55.     BOOL                deinterlace;
  56.     int                 threshold;
  57.     int                 blend_fields;
  58.  
  59.     // Current time to be used in subtitles stamping
  60.     i64                 myClock;
  61.  
  62.  
  63. };
  64.  
  65. #define  PPOST_WIDTH(x) (x.crop ? x.cropWidth : x.resWidth)
  66. #define PPOST_HEIGHT(x) (x.crop ? x.cropHeight : x.resHeight)
  67.  
  68. int PostProcessingStart(VBitmap *source, VBitmap *dest, TPPost *pp);
  69. int PostProcess(VBitmap *source, VBitmap *dest, TPPost *pp);
  70. int PostProcessingStop(TPPost *pp);
  71.  
  72. void SetPPostConfig( TConfig *c, TPPost *pp);
  73. void GetPPostConfig( TConfig *c, TPPost *pp);
  74.  
  75. int CheckVideoParameters(TPPost *pp);
  76. #endif