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=========================================================================*/
32#ifndef vtkFFMPEGWriter_h
33#define vtkFFMPEGWriter_h
34
36#include "vtkIOFFMPEGModule.h" // For export macro
37
38class vtkFFMPEGWriterInternal;
39
40class VTKIOFFMPEG_EXPORT vtkFFMPEGWriter : public vtkGenericMovieWriter
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
52 void Start() override;
53 void Write() override;
54 void End() override;
56
58
63 vtkSetClampMacro(Quality, int, 0, 2);
64 vtkGetMacro(Quality, int);
66
68
72 vtkSetMacro(Compression, bool);
73 vtkGetMacro(Compression, bool);
74 vtkBooleanMacro(Compression, bool);
76
78
81 vtkSetClampMacro(Rate, int, 1, 5000);
82 vtkGetMacro(Rate, int);
84
86
89 vtkSetMacro(BitRate, int);
90 vtkGetMacro(BitRate, int);
92
94
97 vtkSetMacro(BitRateTolerance, int);
98 vtkGetMacro(BitRateTolerance, int);
100
101protected:
104
105 vtkFFMPEGWriterInternal* Internals;
106
109 int Rate;
113
114private:
115 vtkFFMPEGWriter(const vtkFFMPEGWriter&) = delete;
116 void operator=(const vtkFFMPEGWriter&) = delete;
117};
118
119#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:34