VTK  9.1.0
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=========================================================================*/
51#ifndef vtkFFMPEGWriter_h
52#define vtkFFMPEGWriter_h
53
55#include "vtkIOFFMPEGModule.h" // For export macro
56
57class vtkFFMPEGWriterInternal;
58
59class VTKIOFFMPEG_EXPORT vtkFFMPEGWriter : public vtkGenericMovieWriter
60{
61public:
64 void PrintSelf(ostream& os, vtkIndent indent) override;
65
67
71 void Start() override;
72 void Write() override;
73 void End() override;
75
77
82 vtkSetClampMacro(Quality, int, 0, 2);
83 vtkGetMacro(Quality, int);
85
87
91 vtkSetMacro(Compression, bool);
92 vtkGetMacro(Compression, bool);
93 vtkBooleanMacro(Compression, bool);
95
97
100 vtkSetClampMacro(Rate, int, 1, 5000);
101 vtkGetMacro(Rate, int);
103
105
108 vtkSetMacro(BitRate, int);
109 vtkGetMacro(BitRate, int);
111
113
116 vtkSetMacro(BitRateTolerance, int);
117 vtkGetMacro(BitRateTolerance, int);
119
120protected:
123
124 vtkFFMPEGWriterInternal* Internals;
125
128 int Rate;
132
133private:
134 vtkFFMPEGWriter(const vtkFFMPEGWriter&) = delete;
135 void operator=(const vtkFFMPEGWriter&) = delete;
136};
137
138#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:113