class PVideoOutputDevice

This class defines a video output device- typically, a window

Inheritance:


Public Methods

[more] PVideoOutputDevice ()
Create a new video output device
[more]virtual ~PVideoOutputDevice ()
Close the video output device on destruction
[more]static PStringList GetDriverNames (PPluginManager* pluginMgr = NULL)
Return the list of available video input drivers
[more]static PStringList GetDriversDeviceNames ( const PString &driverName, PPluginManager* pluginMgr = NULL )
Return video devices that correspond to the specified name
[more]static PVideoOutputDevice* CreateDevice ( const PString &driverName, PPluginManager* pluginMgr = NULL )
Return the video output device that corresponds to the specified name
[more]static PVideoOutputDevice* CreateOpenedDevice ( const PString & driverName, const PString & deviceName, BOOL startImmediate = TRUE, PPluginManager* pluginMgr = NULL )
Return opened video output device that corresponds to the specified name
[more]virtual BOOL Close ()
Close the device
[more]virtual BOOL CanCaptureVideo () const
Is the device a camera, and obtain video
[more]virtual BOOL SetFrameData ( unsigned x, unsigned y, unsigned width, unsigned height, const BYTE* data, BOOL endFrame = TRUE )
Set a section of the output frame buffer
[more]virtual BOOL Stop ()
Stop the video device I/O display

Public Members

[more] Indicate frame may be displayed


Inherited from PVideoDevice:

Public Methods

ovirtual BOOL OpenFull( const OpenArgs & args, BOOL startImmediate = TRUE )
ovirtual BOOL Open( const PString & deviceName, BOOL startImmediate = TRUE )
ovirtual BOOL IsOpen()
ovirtual BOOL Start()
oconst PString& GetDeviceName() const
ovirtual PStringList GetDeviceNames() const
ovirtual BOOL SetVideoFormat( VideoFormat videoFormat )
ovirtual VideoFormat GetVideoFormat() const
ovirtual int GetNumChannels()
ovirtual BOOL SetChannel( int channelNumber )
ovirtual int GetChannel() const
ovirtual BOOL SetColourFormatConverter( const PString & colourFormat )
ovirtual BOOL SetColourFormat( const PString & colourFormat )
oconst PString& GetColourFormat() const
ovirtual BOOL SetFrameRate( unsigned rate )
ovirtual unsigned GetFrameRate() const
ovirtual BOOL GetFrameSizeLimits( unsigned & minWidth, unsigned & minHeight, unsigned & maxWidth, unsigned & maxHeight )
ovirtual BOOL SetFrameSizeConverter( unsigned width, unsigned height, BOOL bScaleNotCrop )
ovirtual BOOL SetFrameSize( unsigned width, unsigned height )
ovirtual BOOL GetFrameSize( unsigned & width, unsigned & height )
ovirtual unsigned GetFrameWidth() const
ovirtual unsigned GetFrameHeight() const
ovirtual PINDEX GetMaxFrameBytes()
ostatic unsigned CalculateFrameBytes( unsigned width, unsigned height, const PString & colourFormat )
oint GetLastError() const
ovirtual int GetBrightness()
ovirtual BOOL SetBrightness(unsigned newBrightness)
ovirtual int GetWhiteness()
ovirtual BOOL SetWhiteness(unsigned newWhiteness)
ovirtual int GetColour()
ovirtual BOOL SetColour(unsigned newColour)
ovirtual int GetContrast()
ovirtual BOOL SetContrast(unsigned newContrast)
ovirtual int GetHue()
ovirtual BOOL SetHue(unsigned newHue)
ovirtual BOOL GetParameters( int* whiteness, int* brightness, int* colour, int* contrast, int* hue )
ovirtual BOOL SetVideoChannelFormat( int channelNumber, VideoFormat videoFormat )
ovirtual BOOL GetVFlipState()
ovirtual BOOL SetVFlipState( BOOL newVFlipState )
ovoid SetPreferredColourFormat(const PString & colourFmt)
oconst PString& GetPreferredColourFormat()


Inherited from PObject:

Public Methods

Run Time Type functions

I/O functions

Public Members

Comparison functions


Documentation

This class defines a video output device- typically, a window
o PVideoOutputDevice()
Create a new video output device

ovirtual ~PVideoOutputDevice()
Close the video output device on destruction

ostatic PStringList GetDriverNames(PPluginManager* pluginMgr = NULL)
Return the list of available video input drivers

ostatic PStringList GetDriversDeviceNames( const PString &driverName, PPluginManager* pluginMgr = NULL )
Return video devices that correspond to the specified name

ostatic PVideoOutputDevice* CreateDevice( const PString &driverName, PPluginManager* pluginMgr = NULL )
Return the video output device that corresponds to the specified name

ostatic PVideoOutputDevice* CreateOpenedDevice( const PString & driverName, const PString & deviceName, BOOL startImmediate = TRUE, PPluginManager* pluginMgr = NULL )
Return opened video output device that corresponds to the specified name

ovirtual BOOL Close()
Close the device

ovirtual BOOL CanCaptureVideo() const
Is the device a camera, and obtain video

ovirtual BOOL SetFrameData( unsigned x, unsigned y, unsigned width, unsigned height, const BYTE* data, BOOL endFrame = TRUE ) = 0
Set a section of the output frame buffer

o Indicate frame may be displayed
Indicate frame may be displayed

ovirtual BOOL Stop()
Stop the video device I/O display


Direct child classes:
PVideoOutputDeviceRGB

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.