Medical Imaging Interaction Toolkit  2018.4.99-eed36131
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef MovieGeneratorWin32WIN32_H_HEADER_INCLUDED
14 #define MovieGeneratorWin32WIN32_H_HEADER_INCLUDED
15 
17 #include "mitkMovieGenerator.h"
18 #include <comdef.h>
19 #include <memory.h>
20 #include <string.h>
21 #include <tchar.h>
22 #include <vfw.h>
23 
24 #pragma message(" _Adding library: vfw32.lib")
25 #pragma comment(lib, "vfw32.lib")
26 
27 namespace mitk
28 {
30  {
31  public:
33  itkFactorylessNewMacro(Self);
34  itkCloneMacro(Self);
35 
36  virtual void SetFileName(const char *fileName);
37 
38  protected:
40 
42  void InitBitmapHeader();
43 
45  virtual bool InitGenerator();
46 
48  virtual bool AddFrame(void *data);
49 
51  virtual bool TerminateGenerator();
52 
54  _bstr_t m_sFile;
55 
57  BITMAPINFOHEADER m_bih;
58 
60  _bstr_t m_sError;
61 
62  private:
64  long m_lFrame;
65 
67  PAVIFILE m_pAVIFile;
68 
70  PAVISTREAM m_pStream;
71 
73  PAVISTREAM m_pStreamCompressed;
74  };
75 
76 } // namespace mitk
77 
78 #endif /* MovieGeneratorWin32WIN32_H_HEADER_INCLUDED */
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKALGORITHMSEXT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
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