Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PVideoInput1394DcDevice Class Reference

#include <videoio1394dc.h>

Inheritance diagram for PVideoInput1394DcDevice:

PVideoInputDevice PVideoDevice PObject

List of all members.

Detailed Description

This class defines a video input device that generates fictitous image data.

Definition at line 50 of file videoio1394dc.h.

Comparison functions

virtual Comparison Compare (const PObject &obj) const
virtual Comparison CompareObjectMemoryDirect (const PObject &obj) const
bool operator!= (const PObject &obj) const
bool operator< (const PObject &obj) const
bool operator<= (const PObject &obj) const
bool operator== (const PObject &obj) const
bool operator> (const PObject &obj) const
bool operator>= (const PObject &obj) const
enum  Comparison { LessThan = -1, EqualTo = 0, GreaterThan = 1 }

Run Time Type functions

virtual const char * GetClass (unsigned=0) const
virtual BOOL InternalIsDescendant (const char *clsName) const
BOOL IsClass (const char *cls) const
static const char * Class ()

I/O functions

virtual void PrintOn (ostream &strm) const
virtual void ReadFrom (istream &strm)
ostream & operator<< (ostream &strm, const PObject &obj)
istream & operator>> (istream &strm, PObject &obj)

Public Types

enum  StandardSizes {
  CIF16Width = 1408, CIF16Height = 1152, CIF4Width = 704, CIF4Height = 576,
  CIFWidth = 352, CIFHeight = 288, QCIFWidth = 176, QCIFHeight = 144,
  SQCIFWidth = 144, SQCIFHeight = 96
enum  VideoFormat {

Public Member Functions

virtual BOOL CanCaptureVideo () const
void ClearMapping ()
BOOL Close ()
int GetBrightness ()
virtual int GetChannel () const
int GetColour ()
const PStringGetColourFormat () const
int GetContrast ()
const PStringGetDeviceName () const
virtual PStringList GetDeviceNames () const =0
virtual BOOL GetFrame (PBYTEArray &frame)
BOOL GetFrameData (BYTE *buffer, PINDEX *bytesReturned=NULL)
BOOL GetFrameDataNoDelay (BYTE *buffer, PINDEX *bytesReturned=NULL)
virtual unsigned GetFrameHeight () const
virtual unsigned GetFrameRate () const
virtual BOOL GetFrameSize (unsigned &width, unsigned &height)
BOOL GetFrameSizeLimits (unsigned &minWidth, unsigned &minHeight, unsigned &maxWidth, unsigned &maxHeight)
virtual unsigned GetFrameWidth () const
int GetHue ()
int GetLastError () const
PINDEX GetMaxFrameBytes ()
int GetNumChannels ()
BOOL GetParameters (int *whiteness, int *brightness, int *colour, int *contrast, int *hue)
const PStringGetPreferredColourFormat ()
virtual BOOL GetVFlipState ()
virtual VideoFormat GetVideoFormat () const
int GetWhiteness ()
BOOL IsCapturing ()
BOOL IsOpen ()
BOOL Open (const PString &deviceName, BOOL startImmediate=TRUE)
virtual BOOL OpenFull (const OpenArgs &args, BOOL startImmediate=TRUE)
 PVideoInput1394DcDevice ()
BOOL SetBrightness (unsigned newBrightness)
BOOL SetChannel (int channelNumber)
BOOL SetColour (unsigned newColour)
BOOL SetColourFormat (const PString &colourFormat)
BOOL SetColourFormatConverter (const PString &colourFormat)
BOOL SetContrast (unsigned newContrast)
BOOL SetFrameRate (unsigned rate)
BOOL SetFrameSize (unsigned width, unsigned height)
BOOL SetFrameSizeConverter (unsigned width, unsigned height, BOOL bScaleNotCrop)
BOOL SetHue (unsigned newHue)
void SetPreferredColourFormat (const PString &colourFmt)
virtual BOOL SetVFlipState (BOOL newVFlipState)
virtual BOOL SetVideoChannelFormat (int channelNumber, VideoFormat videoFormat)
BOOL SetVideoFormat (VideoFormat videoFormat)
BOOL SetWhiteness (unsigned newWhiteness)
BOOL Start ()
BOOL Stop ()
BOOL TestAllFormats ()
 ~PVideoInput1394DcDevice ()
Miscellaneous functions
virtual PObjectClone () const
virtual PINDEX HashFunction () const

Static Public Member Functions

static unsigned CalculateFrameBytes (unsigned width, unsigned height, const PString &colourFormat)
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)
static PStringList GetDriverNames (PPluginManager *pluginMgr=NULL)
static PStringList GetDriversDeviceNames (const PString &driverName, PPluginManager *pluginMgr=NULL)
static PStringList GetInputDeviceNames ()

Protected Member Functions

PINDEX GetMaxFrameBytesConverted (PINDEX rawFrameBytes) const

Protected Attributes

dc1394_cameracapture camera
nodeid_t * camera_nodes
int capturing_duration
int channelNumber
PString colourFormat
PString desiredColourFormat
unsigned desiredFrameHeight
unsigned desiredFrameWidth
PString deviceName
int frameBrightness
int frameColour
int frameContrast
unsigned frameHeight
int frameHue
unsigned frameRate
int frameTimeError
int frameWhiteness
unsigned frameWidth
raw1394handle_t handle
BOOL is_capturing
int lastError
int msBetweenFrames
BOOL nativeVerticalFlip
int numCameras
PString preferredColourFormat
PTime previousFrameTime
VideoFormat videoFormat

Private Member Functions

 PCLASSINFO (PVideoInput1394DcDevice, PVideoInputDevice)

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index