VTK  9.2.6
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 =========================================================================*/
54 #ifndef vtkFFMPEGWriter_h
55 #define vtkFFMPEGWriter_h
56 
57 #include "vtkGenericMovieWriter.h"
58 #include "vtkIOFFMPEGModule.h" // For export macro
59 
60 class vtkFFMPEGWriterInternal;
61 
62 class VTKIOFFMPEG_EXPORT vtkFFMPEGWriter : public vtkGenericMovieWriter
63 {
64 public:
65  static vtkFFMPEGWriter* New();
67  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
70 
74  void Start() override;
75  void Write() override;
76  void End() override;
78 
80 
85  vtkSetClampMacro(Quality, int, 0, 2);
86  vtkGetMacro(Quality, int);
88 
90 
94  vtkSetMacro(Compression, bool);
95  vtkGetMacro(Compression, bool);
96  vtkBooleanMacro(Compression, bool);
98 
100 
103  vtkSetClampMacro(Rate, int, 1, 5000);
104  vtkGetMacro(Rate, int);
106 
108 
111  vtkSetMacro(BitRate, int);
112  vtkGetMacro(BitRate, int);
114 
116 
119  vtkSetMacro(BitRateTolerance, int);
120  vtkGetMacro(BitRateTolerance, int);
122 
123 protected:
125  ~vtkFFMPEGWriter() override;
126 
127  vtkFFMPEGWriterInternal* Internals;
128 
130  int Quality;
131  int Rate;
132  int BitRate;
135 
136 private:
137  vtkFFMPEGWriter(const vtkFFMPEGWriter&) = delete;
138  void operator=(const vtkFFMPEGWriter&) = delete;
139 };
140 
141 #endif
Uses the FFMPEG library to write video files.
vtkFFMPEGWriterInternal * Internals
void Write() override
These methods start writing an Movie file, write a frame to the file and then end the writing process...
void End() override
These methods start writing an Movie file, write a frame to the file and then end the writing process...
static vtkFFMPEGWriter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkFFMPEGWriter() override
void Start() override
These methods start writing an Movie file, write a frame to the file and then end the writing process...
an abstract movie writer class.
a simple class to control print indentation
Definition: vtkIndent.h:119