Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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) itkCloneMacro(Self)
34 
35  virtual void SetFileName(const char *fileName);
36 
37  protected:
39 
41  void InitBitmapHeader();
42 
44  virtual bool InitGenerator();
45 
47  virtual bool AddFrame(void *data);
48 
50  virtual bool TerminateGenerator();
51 
53  _bstr_t m_sFile;
54 
56  BITMAPINFOHEADER m_bih;
57 
59  _bstr_t m_sError;
60 
61  private:
63  long m_lFrame;
64 
66  PAVIFILE m_pAVIFile;
67 
69  PAVISTREAM m_pStream;
70 
72  PAVISTREAM m_pStreamCompressed;
73  };
74 
75 } // namespace mitk
76 
77 #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