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=========================================================================*/
41#ifndef vtkFFMPEGWriter_h
42#define vtkFFMPEGWriter_h
43
45#include "vtkIOFFMPEGModule.h" // For export macro
46
47class vtkFFMPEGWriterInternal;
48
49class VTKIOFFMPEG_EXPORT vtkFFMPEGWriter : public vtkGenericMovieWriter
50{
51public:
54 void PrintSelf(ostream& os, vtkIndent indent) override;
55
57
61 void Start() override;
62 void Write() override;
63 void End() override;
65
67
72 vtkSetClampMacro(Quality, int, 0, 2);
73 vtkGetMacro(Quality, int);
75
77
81 vtkSetMacro(Compression, bool);
82 vtkGetMacro(Compression, bool);
83 vtkBooleanMacro(Compression, bool);
85
87
90 vtkSetClampMacro(Rate, int, 1, 5000);
91 vtkGetMacro(Rate, int);
93
95
98 vtkSetMacro(BitRate, int);
99 vtkGetMacro(BitRate, int);
101
103
106 vtkSetMacro(BitRateTolerance, int);
107 vtkGetMacro(BitRateTolerance, int);
109
110protected:
113
114 vtkFFMPEGWriterInternal* Internals;
115
118 int Rate;
122
123private:
124 vtkFFMPEGWriter(const vtkFFMPEGWriter&) = delete;
125 void operator=(const vtkFFMPEGWriter&) = delete;
126};
127
128#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:43