VTK  9.3.0
vtkFFMPEGWriter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
32#ifndef vtkFFMPEGWriter_h
33#define vtkFFMPEGWriter_h
34
36#include "vtkIOFFMPEGModule.h" // For export macro
37
38VTK_ABI_NAMESPACE_BEGIN
39class vtkFFMPEGWriterInternal;
40
41class VTKIOFFMPEG_EXPORT vtkFFMPEGWriter : public vtkGenericMovieWriter
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
53 void Start() override;
54 void Write() override;
55 void End() override;
57
59
64 vtkSetClampMacro(Quality, int, 0, 2);
65 vtkGetMacro(Quality, int);
67
69
73 vtkSetMacro(Compression, bool);
74 vtkGetMacro(Compression, bool);
75 vtkBooleanMacro(Compression, bool);
77
79
82 vtkSetClampMacro(Rate, int, 1, 5000);
83 vtkGetMacro(Rate, int);
85
87
90 vtkSetMacro(BitRate, int);
91 vtkGetMacro(BitRate, int);
93
95
98 vtkSetMacro(BitRateTolerance, int);
99 vtkGetMacro(BitRateTolerance, int);
101
102protected:
105
106 vtkFFMPEGWriterInternal* Internals;
107
110 int Rate;
114
115private:
116 vtkFFMPEGWriter(const vtkFFMPEGWriter&) = delete;
117 void operator=(const vtkFFMPEGWriter&) = delete;
118};
119
120VTK_ABI_NAMESPACE_END
121#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:38