forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathvtkOggTheoraWriter.h
84 lines (65 loc) · 2.47 KB
/
vtkOggTheoraWriter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*=========================================================================
Program: Visualization Toolkit
Module: vtkOggTheoraWriter.h
Copyright (c) Michael Wild, Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkOggTheoraWriter - Uses the ogg and theora libraries to write video
// files.
// .SECTION Description
// vtkOggTheoraWriter is an adapter that allows VTK to use the ogg and theora
// libraries to write movie files. This class creates .ogv files containing
// theora encoded video without audio.
//
// This implementation is based on vtkFFMPEGWriter and uses some code derived
// from the encoder example distributed with libtheora.
//
// .SECTION See Also vtkGenericMovieWriter vtkAVIWriter vtkMPEG2Writer vtkFFMPEGWriter
#ifndef __vtkOggTheoraWriter_h
#define __vtkOggTheoraWriter_h
#include "vtkGenericMovieWriter.h"
class vtkOggTheoraWriterInternal;
class VTK_IO_EXPORT vtkOggTheoraWriter : public vtkGenericMovieWriter
{
public:
static vtkOggTheoraWriter *New();
vtkTypeMacro(vtkOggTheoraWriter,vtkGenericMovieWriter);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// These methods start writing an Movie file, write a frame to the file
// and then end the writing process.
void Start();
void Write();
void End();
// Description:
// Set/Get the compression quality.
// 0 means worst quality and smallest file size
// 2 means best quality and largest file size
vtkSetClampMacro(Quality, int, 0, 2);
vtkGetMacro(Quality, int);
// Description:
// Set/Get the frame rate, in frame/s.
vtkSetClampMacro(Rate, int , 1, 5000);
vtkGetMacro(Rate, int);
// Description:
// Is the video to be encoded using 4:2:0 subsampling?
vtkSetMacro(Subsampling, int);
vtkGetMacro(Subsampling, int);
vtkBooleanMacro(Subsampling, int);
protected:
vtkOggTheoraWriter();
~vtkOggTheoraWriter();
vtkOggTheoraWriterInternal *Internals;
int Initialized;
int Quality;
int Rate;
int Subsampling;
private:
vtkOggTheoraWriter(const vtkOggTheoraWriter&); // Not implemented
void operator=(const vtkOggTheoraWriter&); // Not implemented
};
#endif