27 #ifndef vtkFFMPEGVideoSource_h
28 #define vtkFFMPEGVideoSource_h
30 #include "vtkIOFFMPEGModule.h"
36 class vtkFFMPEGVideoSourceInternal;
128 vtkSetStringMacro(FileName);
129 vtkGetStringMacro(FileName);
141 vtkGetMacro(EndOfFile,
bool);
144 vtkGetMacro(Stereo3D,
bool);
156 this->AudioCallback = cb;
157 this->AudioCallbackClientData = clientData;
169 this->VideoCallback = cb;
170 this->VideoCallbackClientData = clientData;
179 vtkSetMacro(DecodingThreads,
int);
180 vtkGetMacro(DecodingThreads,
int);
mutual exclusion locking class
Reader for ffmpeg supported formats.
std::function< void(vtkFFMPEGVideoSourceVideoCallbackData const &data)> VideoCallbackType
vtkFFMPEGVideoSourceInternal * Internal
std::function< void(vtkFFMPEGVideoSourceAudioCallbackData const &data)> AudioCallbackType
void SetVideoCallback(VideoCallbackType cb, void *clientData)
void * Drain(vtkMultiThreader::ThreadInfo *data)
void SetFrameSize(int dim[3]) override
void Record() override
Standard VCR functionality: Record incoming video.
~vtkFFMPEGVideoSource() override
void Stop() override
Standard VCR functionality: Stop recording or playing.
void Play() override
Standard VCR functionality: Play recorded video.
vtkNew< vtkConditionVariable > FeedAudioCondition
void InternalGrab() override
The internal function which actually does the grab.
void SetFrameSize(int x, int y, int z) override
Request a particular frame size (set the third value to 1).
VideoCallbackType VideoCallback
void SetFrameRate(float rate) override
Request a particular frame rate (default 30 frames per second).
void * AudioCallbackClientData
static void * DrainAudioThread(vtkMultiThreader::ThreadInfo *data)
void SetAudioCallback(AudioCallbackType cb, void *clientData)
vtkNew< vtkMutexLock > FeedMutex
void * VideoCallbackClientData
void * Feed(vtkMultiThreader::ThreadInfo *data)
void Grab() override
Grab a single video frame.
static vtkFFMPEGVideoSource * New()
AudioCallbackType AudioCallback
vtkNew< vtkMutexLock > FeedAudioMutex
void ReleaseSystemResources() override
Free the driver (this is called automatically inside the destructor).
void * DrainAudio(vtkMultiThreader::ThreadInfo *data)
void SetOutputFormat(int format) override
Request a particular output format (default: VTK_RGB).
static void * FeedThread(vtkMultiThreader::ThreadInfo *data)
vtkNew< vtkConditionVariable > FeedCondition
void Initialize() override
Initialize the driver (this is called automatically when the first grab is done).
static void * DrainThread(vtkMultiThreader::ThreadInfo *data)
This is the structure that is passed to the thread that is created from the SingleMethodExecute,...
mutual exclusion locking class
Superclass of video input devices for VTK.
vtkFFMPEGVideoSource * Caller
vtkFFMPEGVideoSource * Caller