classPiiVideoFileWriter
#include <PiiVideoFileWriter.h>
An operation that writes images into video files in standard video formats.
Inherits PiiDefaultOperation
Description
If a video with the same name already exists, it will be overwritten.
Inputs
Properties
|
The output file name. |
|
|
int
|
Frame rate. |
|
The directory the writer will store the video in. |
Constructors and destructor
|
virtual
|
Public member functions
|
( )
|
|
|
int
|
( )
|
|
( )
|
|
|
void
|
|
|
void
|
(
|
|
void
|
|
Protected member functions
|
virtual void
|
( )
Executes one round of processing. |
Property details
-
QString fileName
[read, write]The output file name.
-
int frameRate
[read, write]Frame rate.
-
QString outputDirectory
[read, write]The directory the writer will store the video in.
Relative and absolute paths are OK. An example: "videos/".
Function details
-
PiiVideoFileWriter
() -
virtual ~PiiVideoFileWriter
()[virtual] -
QString fileName
() -
int frameRate
() -
QString outputDirectory
() -
void setFileName
-
void setFrameRate
(- int frameRate
-
void setOutputDirectory
-
virtual void process
()[protected, virtual]Executes one round of processing.
This function is invoked by the processor if the necessary preconditions for a new processing round are met. This function does all the necessary calculations to create output objects and sends them to output sockets.
Calls to process(), syncEvent(), and setProperty() are synchronized and cannot occur simultaneously. PiiDefaultOperation ensures this by locking processLock() for reading before calling process().
Note: With time-consuming operations, one should occasionally check that the operation hasn't been interrupted, i.e. that state() returns
Running.Exceptions
- PiiExecutionException
-
whenever an unrecoverable error occurs during a processing round, the operation is interrupted, or finishes execution due to end of input data.
Reimplemented from PiiDefaultOperation.
-
void deletePiiVideoWriter
()[slot]
Add a note
Not a single note added yet. Be the first, add yours.