#ifndef __SMVIDEO


#define __SMVIDEO

#include <vfw.h>


class SM_AviDecoder
{
public:
        SM_AviDecoder   ();
        ~SM_AviDecoder  ();

  int   Init            (const char* pcFile);
  int   Shutdown        ();

  void  Reset           ();
  void  GetFrame        (int iFrame);

  static int InitSubsystem();
  static int ShutdownSubsystem();

  
protected:
  PAVISTREAM		    m_Avi;
  PGETFRAME         m_Frame;
  BITMAPINFOHEADER* m_pBmInfo;
  
};


#endif