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=========================================================================*/
44#ifndef vtkFFMPEGWriter_h
45#define vtkFFMPEGWriter_h
46
48#include "vtkIOFFMPEGModule.h" // For export macro
49
50class vtkFFMPEGWriterInternal;
51
52class VTKIOFFMPEG_EXPORT vtkFFMPEGWriter : public vtkGenericMovieWriter
53{
54public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
64 void Start() override;
65 void Write() override;
66 void End() override;
68
70
75 vtkSetClampMacro(Quality, int, 0, 2);
76 vtkGetMacro(Quality, int);
78
80
84 vtkSetMacro(Compression, bool);
85 vtkGetMacro(Compression, bool);
86 vtkBooleanMacro(Compression, bool);
88
90
93 vtkSetClampMacro(Rate, int, 1, 5000);
94 vtkGetMacro(Rate, int);
96
98
101 vtkSetMacro(BitRate, int);
102 vtkGetMacro(BitRate, int);
104
106
109 vtkSetMacro(BitRateTolerance, int);
110 vtkGetMacro(BitRateTolerance, int);
112
113protected:
116
117 vtkFFMPEGWriterInternal* Internals;
118
121 int Rate;
125
126private:
127 vtkFFMPEGWriter(const vtkFFMPEGWriter&) = delete;
128 void operator=(const vtkFFMPEGWriter&) = delete;
129};
130
131#endif
Uses the FFMPEG library to write video files.
static vtkFFMPEGWriter * New()
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...
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:49