A class representing a video channel.
![]() | GetGrabWidth () Return the width of the currently selected grabbing device |
![]() | GetGrabHeight () Return the height of the currently selected grabbing device |
![]() | Write (const void * buf, PINDEX len) Low level write to the channel, which is data to be rendered to the local video display device |
![]() | Redraw (const void * frame) Cause the referenced data to be drawn to the previously defined media |
![]() | SetRenderNow (int _now) Set the current time |
![]() | GetRenderWidth () Return the previously specified width |
![]() | GetRenderHeight () Return the previously specified height |
![]() | SetRenderFrameSize (int _width, int _height) Specifiy the width and height of the video stream, which is to be rendered onto the previously specified device |
![]() | SetGrabberFrameSize (int _width, int _height) Specifiy the width and height of the video stream, which is to be extracted from the previously specified device |
![]() | AttachVideoPlayer (PVideoOutputDevice * device) Attach a user specific class for rendering video |
![]() | AttachVideoReader (PVideoInputDevice * device) Attach a user specific class for acquiring video |
![]() | IsGrabberOpen () See if the grabber is open |
![]() | IsRenderOpen () See if the rendering device is open |
![]() | Construction |
![]() | Open functions |
![]() | mpInput Specified video device name, eg /dev/video0. |
![]() | mpOutput For grabbing video from the camera. |
Overrides from class PObject
Information functions
Reading functions
Writing functions
Miscellaneous functions
Error functions
Run Time Type functions
Comparison functions
I/O functions
A class representing a video channel. This class is provided mainly for the playback or recording of video on the system.Note that this video channel is implicitly a series of frames in YUV411P format. No conversion is performed on data to/from the channel.
PVideoChannel( const PString & device, Directions dir )
dir - Video I/O direction
BOOL IsOpen() const
static PStringList GetDeviceNames( Directions dir )
static PString GetDefaultDevice( Directions dir )
virtual PINDEX GetGrabHeight()
BOOL Write(const void * buf, PINDEX len)
virtual BOOL Redraw(const void * frame)
virtual void SetRenderNow(int _now)
PINDEX GetRenderWidth()
PINDEX GetRenderHeight()
virtual void SetRenderFrameSize(int _width, int _height)
virtual void SetGrabberFrameSize(int _width, int _height)
virtual void AttachVideoPlayer(PVideoOutputDevice * device)
virtual void AttachVideoReader(PVideoInputDevice * device)
virtual BOOL IsGrabberOpen()
virtual BOOL IsRenderOpen()
PVideoInputDevice* mpInput
PVideoOutputDevice* mpOutput
Alphabetic index HTML hierarchy of classes or Java