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
58#include "vtkIOFFMPEGModule.h" // For export macro
59
60class vtkFFMPEGWriterInternal;
61
62class VTKIOFFMPEG_EXPORT vtkFFMPEGWriter : public vtkGenericMovieWriter
63{
64public:
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
123protected:
126
127 vtkFFMPEGWriterInternal* Internals;
128
131 int Rate;
135
136private:
137 vtkFFMPEGWriter(const vtkFFMPEGWriter&) = delete;
138 void operator=(const vtkFFMPEGWriter&) = delete;
139};
140
141#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:119