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

  1. /* 
  2.  *  mism.cpp 
  3.  *
  4.  *    Copyright (C) Alberto Vigata - December 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 MISM_H
  26. #define MISM_H
  27.  
  28. #include "mismapi.h"
  29.  
  30. #define MismIsAc3Track(streamId, subStreamId) ( (subStreamId>= 0x80 && subStreamId <= 0x87 && streamId==0xBD) )
  31. #define MismIsMpegTrack(streamId, subStreamId ) ((streamId >= 0xC0) && (streamId <= 0xDF)) 
  32.  
  33. #define MismIsAudioTrack(streamId, subStreamId) ( MismIsAc3Track(streamId, subStreamId) || \
  34.                                                   MismIsMpegTrack(streamId, subStreamId) )
  35.  
  36. typedef struct TExtraInfo_Tag
  37. {
  38.   unsigned char (* clut)[16][4];
  39. }TExtraInfo;
  40.  
  41. typedef struct
  42. {
  43.   fmHandle      handle;     // Handle to the stream that we are working with
  44.   LPFMMismInfo  pMismInfo;  // MismInfo structure that defines the Mism
  45. } TWorkingMism, *LPTWorkingMism;
  46.  
  47. bool StartMism();
  48. bool StopMism();
  49.  
  50. // Helpers
  51. bool GetFirstVideoId( fmStreamIds *streamIds , fmStreamId *Id);
  52. bool GetFirstAudioId( fmStreamIds *streamIds, fmStreamId *Id, int *nIdx);
  53. bool GetFirstSubpicId( fmStreamIds *streamIds, fmStreamId *Id);
  54. bool MismIsAudioId(fmStreamId *Id);
  55.  
  56. #endif