The Recorder class is used to record streams to an ONI file.
After a recorder is instantiated, it must be initialized with a specific filename where the recording will be stored. The recorder is then attached to one or more streams. Once this is complete, the recorder can be told to start recording. The recorder will store every frame from every stream to the specified file. Later, this file can be used to initialize a file Device, and used to play back the same data that was recorded.
Opening a file device is done by passing its path as the uri to the Device::open() method.
- See also
- PlaybackControl for options available to play a reorded file.
Definition at line 2491 of file OpenNI.h.
Status openni::Recorder::attach |
( |
VideoStream & |
stream, |
|
|
bool |
allowLossyCompression = false |
|
) |
| |
|
inline |
Attaches a stream to the recorder. Note, this won't start recording, you should explicitly start it using start() method. As soon as the recording process has been started, no more streams can be attached to the recorder.
@param [in] stream The stream to be recorded.
@param [in] allowLossyCompression [Optional] If this value is true, the recorder might use
a lossy compression, which means that when the recording will be played-back, there might
be small differences from the original frame. Default value is false.
Definition at line 2551 of file OpenNI.h.