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

PVideoInputDevice_FakeVideo Class Reference

Inheritance diagram for PVideoInputDevice_FakeVideo:

PVideoInputDevice PVideoDevice PObject

List of all members.


Detailed Description

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

Definition at line 1410 of file vfakeio.cxx.


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 {
  PAL, NTSC, SECAM, Auto,
  NumVideoFormats
}

Public Member Functions

virtual BOOL CanCaptureVideo () const
void ClearMapping ()
BOOL Close ()
void FillRect (BYTE *frame, int x, int y, int rectWidth, int rectHeight, int r, int g, int b)
OneVFakeLetterData * FindLetter (char ascii)
virtual int GetBrightness ()
virtual int GetChannel () const
virtual int GetColour ()
const PStringGetColourFormat () const
virtual int GetContrast ()
const PStringGetDeviceName () const
virtual PStringList GetDeviceNames () const
virtual BOOL GetFrame (PBYTEArray &frame)
virtual BOOL GetFrameData (BYTE *buffer, PINDEX *bytesReturned=NULL)
virtual BOOL GetFrameDataNoDelay (BYTE *buffer, PINDEX *bytesReturned=NULL)
virtual unsigned GetFrameHeight () const
virtual unsigned GetFrameRate () const
virtual BOOL GetFrameSize (unsigned &width, unsigned &height)
virtual BOOL GetFrameSizeLimits (unsigned &minWidth, unsigned &minHeight, unsigned &maxWidth, unsigned &maxHeight)
virtual unsigned GetFrameWidth () const
virtual int GetHue ()
int GetLastError () const
virtual PINDEX GetMaxFrameBytes ()
virtual int GetNumChannels ()
virtual BOOL GetParameters (int *whiteness, int *brightness, int *colour, int *contrast, int *hue)
const PStringGetPreferredColourFormat ()
virtual BOOL GetVFlipState ()
virtual VideoFormat GetVideoFormat () const
virtual int GetWhiteness ()
void GrabBlankImage (BYTE *resFrame)
void GrabBouncingBoxes (BYTE *resFrame)
void GrabMovingBlocksTestFrame (BYTE *resFrame)
void GrabMovingLineTestFrame (BYTE *resFrame)
void GrabNTSCTestFrame (BYTE *resFrame)
void GrabOriginalMovingBlocksFrame (BYTE *resFrame)
void GrabTextVideoFrame (BYTE *resFrame)
BOOL IsCapturing ()
BOOL IsOpen ()
BOOL Open (const PString &deviceName, BOOL startImmediate=TRUE)
virtual BOOL OpenFull (const OpenArgs &args, BOOL startImmediate=TRUE)
 PVideoInputDevice_FakeVideo ()
virtual BOOL SetBrightness (unsigned newBrightness)
virtual BOOL SetChannel (int channelNumber)
virtual BOOL SetColour (unsigned newColour)
virtual BOOL SetColourFormat (const PString &colourFormat)
virtual BOOL SetColourFormatConverter (const PString &colourFormat)
virtual BOOL SetContrast (unsigned newContrast)
virtual BOOL SetFrameRate (unsigned rate)
virtual BOOL SetFrameSize (unsigned width, unsigned height)
virtual BOOL SetFrameSizeConverter (unsigned width, unsigned height, BOOL bScaleNotCrop)
virtual BOOL SetHue (unsigned newHue)
void SetPreferredColourFormat (const PString &colourFmt)
virtual BOOL SetVFlipState (BOOL newVFlipState)
virtual BOOL SetVideoChannelFormat (int channelNumber, VideoFormat videoFormat)
virtual BOOL SetVideoFormat (VideoFormat videoFormat)
virtual BOOL SetWhiteness (unsigned newWhiteness)
BOOL Start ()
BOOL Stop ()
virtual BOOL TestAllFormats ()
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

PINDEX bytesPerPixel
int channelNumber
PString colourFormat
PColourConverterconverter
PString deviceName
int frameBrightness
int frameColour
int frameContrast
unsigned frameHeight
int frameHue
unsigned frameRate
int frameTimeError
int frameWhiteness
unsigned frameWidth
unsigned grabCount
int lastError
int msBetweenFrames
BOOL nativeVerticalFlip
PString preferredColourFormat
PTime previousFrameTime
PINDEX scanLineWidth
PString textLine [MAX_L_HEIGHT]
VideoFormat videoFormat
PINDEX videoFrameSize

Private Member Functions

 PCLASSINFO (PVideoInputDevice_FakeVideo, PVideoInputDevice)

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

Generated by  Doxygen 1.6.0   Back to index