Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkMovieGeneratorWin32.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MovieGeneratorWin32WIN32_H_HEADER_INCLUDED
18 #define MovieGeneratorWin32WIN32_H_HEADER_INCLUDED
19 
21 #include "mitkMovieGenerator.h"
22 #include <comdef.h>
23 #include <memory.h>
24 #include <string.h>
25 #include <tchar.h>
26 #include <vfw.h>
27 
28 #pragma message(" _Adding library: vfw32.lib")
29 #pragma comment(lib, "vfw32.lib")
30 
31 namespace mitk
32 {
34  {
35  public:
37  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
38 
39  virtual void SetFileName(const char *fileName);
40 
41  protected:
43 
45  void InitBitmapHeader();
46 
48  virtual bool InitGenerator();
49 
51  virtual bool AddFrame(void *data);
52 
54  virtual bool TerminateGenerator();
55 
57  _bstr_t m_sFile;
58 
60  BITMAPINFOHEADER m_bih;
61 
63  _bstr_t m_sError;
64 
65  private:
67  long m_lFrame;
68 
70  PAVIFILE m_pAVIFile;
71 
73  PAVISTREAM m_pStream;
74 
76  PAVISTREAM m_pStreamCompressed;
77  };
78 
79 } // namespace mitk
80 
81 #endif /* MovieGeneratorWin32WIN32_H_HEADER_INCLUDED */
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKALGORITHMSEXT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
BITMAPINFOHEADER m_bih
structure contains information for a single stream
_bstr_t m_sError
last error string
_bstr_t m_sFile
name of output file