class PVideoOutputDeviceRGB

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

Inheritance:


Public Methods

[more] PVideoOutputDeviceRGB ()
Create a new video output device
[more]virtual BOOL SetColourFormat ( const PString & colourFormat )
Set the colour format to be used.
[more]virtual BOOL SetFrameSize ( unsigned width, unsigned height )
Set the frame size to be used.
[more]virtual PINDEX GetMaxFrameBytes ()
Get the maximum frame size in bytes.
[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


Inherited from PVideoOutputDevice:

Public Methods

ostatic PStringList GetDriverNames(PPluginManager* pluginMgr = NULL)
ostatic PStringList GetDriversDeviceNames( const PString &driverName, PPluginManager* pluginMgr = NULL )
ostatic PVideoOutputDevice* CreateDevice( const PString &driverName, PPluginManager* pluginMgr = NULL )
ostatic PVideoOutputDevice* CreateOpenedDevice( const PString & driverName, const PString & deviceName, BOOL startImmediate = TRUE, PPluginManager* pluginMgr = NULL )
ovirtual BOOL Close()
ovirtual BOOL CanCaptureVideo() const
ovirtual BOOL Stop()

Public Members

o 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 )
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 GetFrameSize( unsigned & width, unsigned & height )
ovirtual unsigned GetFrameWidth() const
ovirtual unsigned GetFrameHeight() const
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 for RGB in a frame store
o PVideoOutputDeviceRGB()
Create a new video output device

ovirtual BOOL SetColourFormat( const PString & colourFormat )
Set the colour format to be used. Note that this function does not do any conversion. If it returns TRUE then the video device does the colour format in native mode.

To utilise an internal converter use the SetColourFormatConverter() function.

Default behaviour sets the value of the colourFormat variable and then returns TRUE.

ovirtual BOOL SetFrameSize( unsigned width, unsigned height )
Set the frame size to be used.

Note that devices may not be able to produce the requested size, and this function will fail. See SetFrameSizeConverter().

Default behaviour sets the frameWidth and frameHeight variables and returns TRUE.

Parameters:
width - New width of frame
height - New height of frame

ovirtual PINDEX GetMaxFrameBytes()
Get the maximum frame size in bytes.

Note a particular device may be able to provide variable length frames (eg motion JPEG) so will be the maximum size of all frames.

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


Direct child classes:
PVideoOutputDevicePPM

Alphabetic index HTML hierarchy of classes or Java



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