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

PVideoOutputDevice_Window Class Reference

Inheritance diagram for PVideoOutputDevice_Window:

PVideoOutputDeviceRGB PVideoOutputDevice PVideoDevice PObject

List of all members.

Detailed Description

This class defines a video output device for RGB in a frame store.

Definition at line 1156 of file vfw.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 {

Public Member Functions

virtual BOOL CanCaptureVideo () const
virtual BOOL Close ()
virtual BOOL FrameComplete ()
virtual int GetBrightness ()
virtual int GetChannel () const
virtual int GetColour ()
const PStringGetColourFormat () const
virtual int GetContrast ()
const PStringGetDeviceName () const
virtual PStringList GetDeviceNames () const
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 ()
virtual BOOL IsOpen ()
virtual BOOL Open (const PString &deviceName, BOOL startImmediate=TRUE)
virtual BOOL OpenFull (const OpenArgs &args, BOOL startImmediate=TRUE)
 PVideoOutputDevice_Window ()
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 SetFrameData (unsigned x, unsigned y, unsigned width, unsigned height, const BYTE *data, BOOL endFrame=TRUE)
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)
virtual BOOL Start ()
virtual BOOL Stop ()
LRESULT WndProc (UINT uMsg, WPARAM wParam, LPARAM lParam)
 ~PVideoOutputDevice_Window ()
Miscellaneous functions
virtual PObjectClone () const
virtual PINDEX HashFunction () const

Static Public Member Functions

static unsigned CalculateFrameBytes (unsigned width, unsigned height, const PString &colourFormat)
static PVideoOutputDeviceCreateDevice (const PString &driverName, PPluginManager *pluginMgr=NULL)
static PVideoOutputDeviceCreateDeviceByName (const PString &deviceName, PPluginManager *pluginMgr=NULL)
static PVideoOutputDeviceCreateOpenedDevice (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 GetOutputDeviceNames ()

Protected Member Functions

void Draw (HDC hDC)
PINDEX GetMaxFrameBytesConverted (PINDEX rawFrameBytes) const
 PDECLARE_NOTIFIER (PThread, PVideoOutputDevice_Window, HandleDisplay)

Protected Attributes

PINDEX bytesPerPixel
int channelNumber
PString colourFormat
PString deviceName
int frameBrightness
int frameColour
int frameContrast
unsigned frameHeight
int frameHue
unsigned frameRate
PBYTEArray frameStore
int frameTimeError
int frameWhiteness
unsigned frameWidth
int lastError
bool m_flipped
HWND m_hWnd
PSyncPoint m_started
int msBetweenFrames
PMutex mutex
BOOL nativeVerticalFlip
PString preferredColourFormat
PTime previousFrameTime
PINDEX scanLineWidth
bool swappedRedAndBlue
VideoFormat videoFormat

Private Member Functions

 PCLASSINFO (PVideoOutputDevice_Window, PVideoOutputDeviceRGB)

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

Generated by  Doxygen 1.6.0   Back to index