|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   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);
 
  
virtual void Play()
Play through the 'tape' sequentially at the specified frame rate.
std::function< void(vtkFFMPEGVideoSourceVideoCallbackData const  &data)> VideoCallbackType
VideoCallbackType VideoCallback
vtkNew< vtkMutexLock > FeedMutex
mutual exclusion locking class
void SetFrameSize(int dim[3]) override
virtual void InternalGrab()
The internal function which actually does the grab.
Reader for ffmpeg supported formats.
void SetVideoCallback(VideoCallbackType cb, void *clientData)
void * AudioCallbackClientData
virtual void Stop()
Stop recording or playing.
vtkNew< vtkConditionVariable > FeedCondition
This is the structure that is passed to the thread that is created from the SingleMethodExecute,...
std::function< void(vtkFFMPEGVideoSourceAudioCallbackData const  &data)> AudioCallbackType
vtkFFMPEGVideoSource * Caller
virtual void ReleaseSystemResources()
Release the video driver.
vtkFFMPEGVideoSource * Caller
static vtkVideoSource * New()
virtual void SetOutputFormat(int format)
Set the output format.
virtual void Grab()
Grab a single video frame.
mutual exclusion locking class
virtual void SetFrameRate(float rate)
Request a particular frame rate (default 30 frames per second).
virtual void SetFrameSize(int x, int y, int z)
Set the full-frame size.
void * VideoCallbackClientData
virtual void Record()
Record incoming video at the specified FrameRate.
vtkNew< vtkMutexLock > FeedAudioMutex
AudioCallbackType AudioCallback
void SetAudioCallback(AudioCallbackType cb, void *clientData)
vtkNew< vtkConditionVariable > FeedAudioCondition
virtual void Initialize()
Initialize the hardware.
vtkFFMPEGVideoSourceInternal * Internal
Superclass of video input devices for VTK.