267 #include "msos/ptlib/video.h"
269 #include "unix/ptlib/video.h"
275 #endif // PTLIB_VIDEO_H
virtual void CloseVideoReader()
Destroy the attached grabber class.
virtual PBoolean IsRenderOpen()
See if the rendering device is open.
virtual PBoolean Read(void *buf, PINDEX len)
Low level read from the channel.
virtual void CloseVideoPlayer()
Destroy the attached video display class.
A class representing a video channel.
Definition: video.h:50
PVideoChannel()
Create a video channel.
PBoolean Open(const PString &device, Directions dir)
Open the specified device for playing or recording.
virtual void SetRenderFrameSize(int width, int height)
Specify the width and height of the video stream, which is to be rendered onto the previously specifi...
virtual void AttachVideoPlayer(PVideoOutputDevice *device, PBoolean keepCurrent=true)
Attach a user specific class for rendering video.
virtual PBoolean DisableDecode()
Allow the outputdevice decide whether the decoder should ignore decode hence not render any output...
virtual bool FlowControl(const void *flowData)
Flow Control information Pass data to the channel for flowControl determination.
virtual void SetGrabberFrameSize(int width, int height)
Specifiy the width and height of the video stream, which is to be extracted from the previously speci...
PBoolean IsOpen() const
return True if one (or both) of the video device class pointers is non NULL.
This is an array collection class of PString objects.
Definition: pstring.h:2365
PINDEX GetRenderHeight()
Return the previously specified height.
static PStringArray GetDeviceNames(Directions dir)
Get all of the names for video devices/drivers that are available on this platform.
Directions direction
Definition: video.h:253
PMutex accessMutex
For displaying video on the screen.
Definition: video.h:259
PVideoInputDevice * mpInput
Specified video device name, eg /dev/video0.
Definition: video.h:256
virtual void AttachVideoReader(PVideoInputDevice *device, PBoolean keepCurrent=true)
Attach a user specific class for acquiring video.
virtual PBoolean IsGrabberOpen()
See if the grabber is open.
virtual PVideoOutputDevice * GetVideoPlayer()
Return a pointer to the class for displaying video.
PBoolean ToggleVFlipInput()
Toggle the vertical flip state of the video grabber.
Abstract class defining I/O channel semantics.
Definition: channel.h:103
bool PBoolean
Definition: object.h:174
The character string class.
Definition: pstring.h:108
virtual PINDEX GetGrabHeight()
Return the height of the currently selected grabbing device.
Directions
Definition: video.h:57
PINDEX GetRenderWidth()
Return the previously specified width.
PBoolean DisplayRawData(void *videoBuffer)
Get data from the attached inputDevice, and display on the attached ouptutDevice. ...
virtual PINDEX GetGrabWidth()
Return the width of the currently selected grabbing device.
This class defines a thread mutual exclusion object.
Definition: mutex.h:101
PBoolean Write(const void *buf, PINDEX len)
Low level write to the channel, which is data to be rendered to the local video display device...
virtual PVideoInputDevice * GetVideoReader()
Return a pointer to the class for acquiring video.
virtual PBoolean Redraw(const void *frame)
Cause the referenced data to be drawn to the previously defined media.
PString deviceName
Definition: video.h:255
static PString GetDefaultDevice(Directions dir)
Get the name for the default video devices/driver that is on this platform.
void RestrictAccess()
Restrict others from using this video channel.
This class defines a video output device.
Definition: videoio.h:712
PVideoOutputDevice * mpOutput
For grabbing video from the camera.
Definition: video.h:257
void EnableAccess()
Allow free access to this video channel.