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

Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions

PVideoInputDevice_1394DC Class Reference

#include <videoio1394dc.h>

Inheritance diagram for PVideoInputDevice_1394DC:
Inheritance graph
Collaboration diagram for PVideoInputDevice_1394DC:
Collaboration graph

List of all members.

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
PStringList GetDeviceNames () const
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)
 PVideoInputDevice_1394DC ()
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 ()
 ~PVideoInputDevice_1394DC ()
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
PINDEX frameBytes
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 (PVideoInputDevice_1394DC, PVideoInputDevice)

Run Time Type functions

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

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 }

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)

Detailed Description

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

Definition at line 69 of file videoio1394dc.h.

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

Generated by  Doxygen 1.6.0   Back to index