VTK
vtkFFMPEGWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFFMPEGWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
34 #ifndef vtkFFMPEGWriter_h
35 #define vtkFFMPEGWriter_h
36 
37 #include "vtkIOFFMPEGModule.h" // For export macro
38 #include "vtkGenericMovieWriter.h"
39 
40 class vtkFFMPEGWriterInternal;
41 
42 class VTKIOFFMPEG_EXPORT vtkFFMPEGWriter : public vtkGenericMovieWriter
43 {
44 public:
45  static vtkFFMPEGWriter *New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
52  void Start();
53  void Write();
54  void End();
56 
58 
60  vtkSetClampMacro(Quality, int, 0, 2);
61  vtkGetMacro(Quality, int);
63 
65 
67  vtkSetMacro(Compression, bool);
68  vtkGetMacro(Compression, bool);
69  vtkBooleanMacro(Compression, bool);
71 
73 
74  vtkSetClampMacro(Rate, int , 1, 5000);
75  vtkGetMacro(Rate, int);
77 
79 
80  vtkSetMacro(BitRate, int);
81  vtkGetMacro(BitRate, int);
83 
85 
86  vtkSetMacro(BitRateTolerance, int);
87  vtkGetMacro(BitRateTolerance, int);
89 
90 protected:
92  ~vtkFFMPEGWriter();
93 
94  vtkFFMPEGWriterInternal *Internals;
95 
97  int Quality;
98  int Rate;
99  int BitRate;
102 
103 private:
104  vtkFFMPEGWriter(const vtkFFMPEGWriter&); // Not implemented
105  void operator=(const vtkFFMPEGWriter&); // Not implemented
106 };
107 
108 #endif
virtual void Write()=0
virtual void Start()=0
virtual void End()=0
Uses the FFMPEG library to write video files.
a simple class to control print indentation
Definition: vtkIndent.h:38
an abstract movie writer class.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
vtkFFMPEGWriterInternal * Internals