CustusX
2023.01.05-dev+develop.0da12
An IGT application
|
Recorder for a VideoSource. More...
#include <cxVideoRecorder.h>
Public Types | |
typedef std::map< double, vtkImageDataPtr > | DataType |
<timestamp, frame> More... | |
Public Member Functions | |
VideoRecorder (VideoSourcePtr source, bool sync=true) | |
virtual | ~VideoRecorder () |
virtual void | startRecord () |
virtual void | stopRecord () |
virtual DataType | getRecording (double start, double stop) |
Recorder for a VideoSource.
The class has an autosync feature that is useful if the realtimestream clock is unsynced with the master clock. The first received frame is used to estimate a shift between the master and source clocks. This shift is then added to the input times in getRecording in order to retrieve data using the source clock.
Definition at line 46 of file cxVideoRecorder.h.
typedef std::map<double, vtkImageDataPtr> cx::VideoRecorder::DataType |
<timestamp, frame>
Definition at line 50 of file cxVideoRecorder.h.
cx::VideoRecorder::VideoRecorder | ( | VideoSourcePtr | source, |
bool | sync = true |
||
) |
Definition at line 28 of file cxVideoRecorder.cpp.
|
virtual |
Definition at line 35 of file cxVideoRecorder.cpp.
|
virtual |
Definition at line 94 of file cxVideoRecorder.cpp.
|
virtual |
Definition at line 48 of file cxVideoRecorder.cpp.
|
virtual |
Definition at line 53 of file cxVideoRecorder.cpp.