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

  1. /* 
  2.  *  RunState.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.  
  25. #ifndef RUN_STATE_H
  26. #define RUN_STATE_H
  27.  
  28. #include ".\flaskmpeg.h"
  29. #include ".\plugins.h"
  30. #include ".\PostProcessing.h"
  31. #include ".\video\videowrapper.h"
  32. #include ".\audio\audio.h"
  33. #include ".\Language.h"
  34. #include ".\Misc\Graph.h"
  35. #include ".\Profile.h"
  36. #include ".\mism.h"
  37. #include ".\batchlist.h"
  38. #include ".\OutputManager.h"
  39. #include ".\VideoRenderer.h"
  40. #include ".\ProgressDlg.h"
  41.  
  42. enum { FILE_MODE, DVDMODE };
  43.  
  44. struct TRunState
  45. {
  46.   int                  audioType[8];
  47.   int                      nAudioTracks;
  48.   int               selected_out_plug;
  49.   int               working_mode;
  50.   i64               startFilePos;
  51.   char              openedFileName[MAXFILENAME];
  52.   
  53.   batchlist         vBatchList;
  54.  
  55.   HWND              hMainWnd;
  56.   HWND              hPlayerWnd;
  57.  
  58.   TConfig           conf;         // Global general runtime options
  59.  
  60.   HINSTANCE         hInst;
  61.   
  62.   CProfile          *profiler;    // Profiler
  63.   TProfile           prof;        // Profile currectly selected
  64.   
  65.   TAudioTrack       sAudioTrack; // AudioTrack currently selected
  66.   TWorkingMism      pVideoMism;
  67.   TWorkingMism      pAudioMism;
  68.   
  69.   COutputManager    obOutputManager;
  70.  
  71.   CProgressReportDlg obProgressReportDlg;
  72.  
  73.   VideoWrapper      *video;
  74.   Audio                    *audio;
  75.  
  76.  
  77.   fmStreamIds       sStreamIds;   // Stream Ids from opened Mism
  78.   
  79.   CVideoRenderer    *pVideoRenderer;
  80.   
  81.   CLanguage         *lng;
  82.   
  83.   TPlugins          plugs;
  84.   TGraph            gr;            // Progress graph stuff
  85.   
  86.   CArr<FMMismInfo>     AvalInputs; // Array of available MISMS
  87. };
  88.  
  89.  
  90. #endif