Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

PVideoInputDevice Class Reference

#include <videoio.h>

Inheritance diagram for PVideoInputDevice:

PVideoDevice PObject PVideoInput1394DcDevice List of all members.

Public Member Functions

 ~PVideoInputDevice ()
virtual BOOL CanCaptureVideo () const
virtual BOOL Open (const PString &deviceName, BOOL startImmediate=TRUE)=0
virtual BOOL Close ()
virtual BOOL IsCapturing ()=0
virtual PINDEX GetMaxFrameBytes ()=0
virtual BOOL GetFrame (PBYTEArray &frame)=0
virtual BOOL GetFrameData (BYTE *buffer, PINDEX *bytesReturned=NULL)=0
virtual BOOL GetFrameDataNoDelay (BYTE *buffer, PINDEX *bytesReturned=NULL)=0
virtual BOOL TestAllFormats ()=0

Static Public Member Functions

static PStringList GetDriverNames (PPluginManager *pluginMgr=NULL)
static PStringList GetDriversDeviceNames (const PString &driverName, PPluginManager *pluginMgr=NULL)
static PVideoInputDeviceCreateDevice (const PString &driverName, PPluginManager *pluginMgr=NULL)
static PVideoInputDeviceCreateDeviceByName (const PString &deviceName, PPluginManager *pluginMgr=NULL)
static PVideoInputDeviceCreateOpenedDevice (const PString &driverName, const PString &deviceName, BOOL startImmediate=TRUE, PPluginManager *pluginMgr=NULL)

Detailed Description

This class defines a video input device.


Constructor & Destructor Documentation

PVideoInputDevice::~PVideoInputDevice  )  [inline]
 

Close the video input device on destruction.


Member Function Documentation

virtual BOOL PVideoInputDevice::CanCaptureVideo  )  const [virtual]
 

Is the device a camera, and obtain video

Implements PVideoDevice.

virtual BOOL PVideoInputDevice::Close  )  [inline, virtual]
 

Close the device.

Implements PVideoDevice.

Reimplemented in PVideoInput1394DcDevice.

static PVideoInputDevice* PVideoInputDevice::CreateDevice const PString driverName,
PPluginManager pluginMgr = NULL
[static]
 

Return the video input device that corresponds to the specified name.

static PVideoInputDevice* PVideoInputDevice::CreateDeviceByName const PString deviceName,
PPluginManager pluginMgr = NULL
[static]
 

static PVideoInputDevice* PVideoInputDevice::CreateOpenedDevice const PString driverName,
const PString deviceName,
BOOL  startImmediate = TRUE,
PPluginManager pluginMgr = NULL
[static]
 

Return opened video input device that corresponds to the specified name

static PStringList PVideoInputDevice::GetDriverNames PPluginManager pluginMgr = NULL  )  [static]
 

Return the list of available video input drivers

static PStringList PVideoInputDevice::GetDriversDeviceNames const PString driverName,
PPluginManager pluginMgr = NULL
[static]
 

Return video devices that correspond to the specified name

virtual BOOL PVideoInputDevice::GetFrame PBYTEArray frame  )  [pure virtual]
 

Grab a frame.

virtual BOOL PVideoInputDevice::GetFrameData BYTE *  buffer,
PINDEX *  bytesReturned = NULL
[pure virtual]
 

Grab a frame, after a delay as specified by the frame rate.

Parameters:
bytesReturned  Buffer to receive frame OPtional bytes returned.

Implemented in PVideoInput1394DcDevice.

virtual BOOL PVideoInputDevice::GetFrameDataNoDelay BYTE *  buffer,
PINDEX *  bytesReturned = NULL
[pure virtual]
 

Grab a frame. Do not delay according to the current frame rate parameter.

Parameters:
bytesReturned  Buffer to receive frame OPtional bytes returned.

Implemented in PVideoInput1394DcDevice.

virtual PINDEX PVideoInputDevice::GetMaxFrameBytes  )  [pure virtual]
 

Get the maximum frame size in bytes.

Note a particular device may be able to provide variable length frames (eg motion JPEG) so will be the maximum size of all frames.

Implements PVideoDevice.

Implemented in PVideoInput1394DcDevice.

virtual BOOL PVideoInputDevice::IsCapturing  )  [pure virtual]
 

Determine if the video device I/O capture is in progress.

Implemented in PVideoInput1394DcDevice.

virtual BOOL PVideoInputDevice::Open const PString deviceName,
BOOL  startImmediate = TRUE
[pure virtual]
 

Open the device given the device name.

Parameters:
startImmediate  Device name to open Immediately start device

Implements PVideoDevice.

Implemented in PVideoInput1394DcDevice.

virtual BOOL PVideoInputDevice::TestAllFormats  )  [pure virtual]
 

Try all known video formats & see which ones are accepted by the video driver

Implemented in PVideoInput1394DcDevice.


The documentation for this class was generated from the following file:
Generated on Mon Feb 21 20:43:17 2005 for PWLib by  doxygen 1.4.1