This class defines a video input device
![]() | PVideoInputDevice () Create a new video input device |
![]() | ~PVideoInputDevice () Close the video input device on destruction |
![]() | Open ( const PString & deviceName, BOOL startImmediate = TRUE ) Open the device given the device name. |
![]() | IsOpen () Determine of the device is currently open |
![]() | Close () Close the device |
![]() | Start () Start the video device I/O |
![]() | Stop () Stop the video device I/O capture |
![]() | IsCapturing () Determine if the video device I/O capture is in progress |
![]() | GetDeviceNames () const Get a list of all of the drivers available |
![]() | GetInputDeviceNames () Get a list of all of the drivers available |
![]() | GetMaxFrameBytes () Get the maximum frame size in bytes. |
![]() | GetFrame ( PBYTEArray & frame ) Grab a frame |
![]() | GetFrameData ( BYTE * buffer, PINDEX * bytesReturned = NULL ) Grab a frame. |
![]() | VerifyHardwareFrameSize (unsigned width, unsigned height) Check the hardware can do the asked for size. |
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
This class defines a video input device
Note a particular device may be able to provide variable length
frames (eg motion JPEG) so will be the maximum size of all frames.
Note that not all cameras can provide all frame sizes.
~PVideoInputDevice()
virtual BOOL Open( const PString & deviceName, BOOL startImmediate = TRUE )
startImmediate - Immediately start devicevirtual BOOL IsOpen()
virtual BOOL Close()
virtual BOOL Start()
virtual BOOL Stop()
virtual BOOL IsCapturing()
virtual PStringList GetDeviceNames() const
static PStringList GetInputDeviceNames()
virtual PINDEX GetMaxFrameBytes()
virtual BOOL GetFrame( PBYTEArray & frame )
virtual BOOL GetFrameData( BYTE * buffer, PINDEX * bytesReturned = NULL )
bytesReturned - OPtional bytes returned.virtual BOOL VerifyHardwareFrameSize(unsigned width, unsigned height)
Alphabetic index HTML hierarchy of classes or Java