home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2001 September / PC-WELT 9-2001.ISO / software / hw / brennen / flask_src.exe / FlasKMPEG.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-26  |  3.9 KB  |  179 lines

  1. /* 
  2.  *  FlasKMPEG.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 FLASKMPEG_H
  25. #define FLASKMPEG_H
  26.  
  27. #include <windows.h>
  28. #include <winbase.h>
  29. #include <wingdi.h>
  30. #include <stdio.h>
  31. #include <stdlib.h>
  32. #include <fcntl.h>
  33.  
  34.  
  35. //Premiere Includes
  36. #include ".\Premiere\prTypes.h"
  37. #include ".\Premiere\prCompile.h"
  38. #include ".\Premiere\prWinEnv.h"
  39. #include  ".\Premiere\premiere.h"
  40.  
  41. #include <io.h>
  42.  
  43. #define MAXFILENAME 1024
  44.  
  45. typedef __int8    i8;
  46. typedef __int16   i16;
  47. typedef __int32   i32;
  48. typedef __int64   i64;
  49.  
  50. typedef unsigned __int8    ui8;
  51. typedef unsigned __int16   ui16;
  52. typedef unsigned __int32   ui32;
  53. typedef unsigned __int64   ui64;
  54.  
  55.  
  56.  
  57. #define VERSION 594
  58.  
  59. /* FlasK MPEG options */
  60. typedef struct
  61. {
  62.     //Miscelaneous
  63.     bool                firstTimeRunning;
  64.     bool                showDetailsInProgress;
  65.     bool                compileWhole;
  66.     int                    displayTimeUnits; /* general diag box: 0 = seconds, 1 = frames */
  67.     unsigned long        framesToCompile;
  68.     int                    outputFormat;
  69.     int                    selectedTab;
  70.     int                    priority;
  71.     int                 selected_language;
  72.  
  73.     bool                warn_overwrite;
  74.     bool                shutdown;
  75.     
  76.     int                    lurk_size;
  77.     //Video options
  78.     int                    InterpolatedWidth;
  79.     int                    InterpolatedHeight;
  80.     compTimebaseRec        timeBase;
  81.     bool                recons_progressive;
  82.  
  83.     //Crop and letterboxing
  84.     bool                crop;
  85.     int                    cropTopOffset;
  86.     int                    cropHeight;
  87.     int                    cropLeftOffset;
  88.     int                    cropWidth;
  89.  
  90.     bool                letterbox;
  91.     int                    letterboxTop;
  92.     int                    letterboxBottom;
  93.     int                    letterboxLeft;
  94.     int                    letterboxRight;
  95.  
  96.     //Interlacing
  97.     int                    deinterlace;
  98.     int                    threshold;
  99.     int                    blend;
  100.  
  101.     bool                keepAspect;
  102.     int                    idctType;
  103.     bool                displayVideo;
  104.     bool                syncVideo;
  105.  
  106.     //Audio options
  107.     int                audioMode; 
  108.     int                    outSampleFrequency;
  109.     bool                sampleFreqSameAsInput;
  110.  
  111.     //File options
  112.     HANDLE                hOutputFile;            //Handle to output file
  113.     char                inputFile[MAXFILENAME];
  114.     char                    inputDir[MAXFILENAME];
  115.     char                outputFile[MAXFILENAME];
  116.     char                    outputDir[MAXFILENAME];
  117.     char                audioOutFile[MAXFILENAME];
  118.     char                    audioOutDir[MAXFILENAME];
  119.  
  120.     //Interpolation filter options
  121.     int                    filter;
  122.     ui32                presentFrame;
  123.  
  124. } TagOptions;
  125.  
  126. typedef struct
  127. {
  128.     int            version;
  129.     TagOptions  options;
  130. } TConfig;
  131.  
  132.  
  133. //audioTypes
  134. #define AC3            0
  135. #define MPEG        1
  136. #define NO            2
  137.  
  138.  
  139. typedef struct
  140. {
  141.     ULONG        totalFileSize;
  142.     ULONG        currentPosition;
  143. } TFileProgress;
  144.  
  145.  
  146. int LoadRegistryConfig( TConfig *Config );
  147. void SaveRegistryConfig( TConfig *Config );
  148. void ShowInConsole(char *buffer);
  149.  
  150. /*
  151. #define  NEAREST    0
  152. #define  BILINEAL   1
  153. #define  BELL        2
  154. #define  BSPLINE    3
  155. #define  LANCZOS3   5
  156. #define  MITCHELL   6
  157. #define  BICUBIC    3
  158. #define  HANNING    4
  159. */
  160.  
  161. #define  MAX_IMAGE_MEM 1024*1024*4
  162.  
  163. #define INPUT_NOEXIST            1
  164. #define IS_TRANSPORTSTREAM      2
  165. #define NOT_RECOGNIZED            3
  166. #define NO_AUDIOVIDEO           4
  167.  
  168. //Audio modes
  169. #define NO_AUDIO        0
  170. #define DSC                1
  171. #define DO_AUDIO        2
  172.  
  173.  
  174. // Priorities
  175. #define IDLE_PRIO     0
  176. #define NORMAL_PRIO  1
  177. #define HIGH_PRIO    2
  178. #define HIGHEST_PRIO 3
  179. #endif