This class defines a video input device that generates fictitous image data
![]() | PFakeVideoInputDevice () Create a new (fake) video input device |
![]() | Open ( const PString & deviceName, BOOL startImmediate = TRUE ) Open the device given the device name. |
![]() | IsOpen () Determine of the device is currently open |
![]() | Close () Close the device |
![]() | Start () Start the video device I/O |
![]() | Stop () Stop the video device I/O capture |
![]() | IsCapturing () Determine if the video device I/O capture is in progress |
![]() | GetDeviceNames () const Get a list of all of the drivers available |
![]() | GetMaxFrameBytes () Get the maximum frame size in bytes. |
![]() | GetFrameData ( BYTE * buffer, PINDEX * bytesReturned = NULL ) Grab a frame. |
![]() | FillFrameWithData (BYTE * buffer) Called when this class has to generate a fictitous image |
![]() | GrabMovingBlocksTestFrame (BYTE *resFrame) A test image that contains area of low and high resolution. |
![]() | GrabMovingLineTestFrame (BYTE *resFrame) a test image consisting of a horizontal line moving down the image, with a constantly varying background. |
![]() | GrabNTSCTestFrame (BYTE *resFrame) Generate a constant image, which contains the colours for a NTSC test frame |
![]() | GrabBouncingBoxes (BYTE *resFrame) Generate three bouncing boxes, which bounce from a different height |
![]() | FillRect (BYTE * frame, unsigned width, unsigned height, int x, int y, int rectWidth, int rectHeight, int r, int g, int b) Fills a region of the image with a constant colour |
![]() | WaitFinishPreviousFrame () Given a preset interval of n milliseconds, this function returns n msecs after the previous frame capture was initiated |
![]() | SetVideoFormat ( VideoFormat videoFormat ) Set the video format to be used. |
![]() | GetNumChannels () Get the number of video channels available on the device. |
![]() | SetChannel ( int channelNumber ) Set the video channel to be used on the device. |
![]() | SetColourFormat ( const PString & colourFormat ) Set the colour format to be used. |
![]() | SetFrameRate ( unsigned rate ) Set the video frame rate to be used on the device. |
![]() | GetFrameSizeLimits ( unsigned & minWidth, unsigned & minHeight, unsigned & maxWidth, unsigned & maxHeight ) Get the minimum & maximum size of a frame on the device. |
![]() | SetFrameSize ( unsigned width, unsigned height ) Set the frame size to be used. |
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
This class defines a video input device that generates fictitous image data
Note a particular device may be able to provide variable length
frames (eg motion JPEG) so will be the maximum size of all frames.
Default behaviour sets the value of the videoFormat variable and then
returns the IsOpen() status.
Default behaviour returns 1.
Default behaviour sets the value of the channelNumber variable and then
returns the IsOpen() status.
Default behaviour sets the value of the colourFormat variable and then
returns the IsOpen() status.
Default behaviour sets the value of the frameRate variable and then
return the IsOpen() status.
Default behaviour returns the value 1 to UINT_MAX for both and returns
FALSE.
Default behaviour sets the frameWidth and frameHeight variables and
returns the IsOpen() status.
BOOL Open( const PString & deviceName, BOOL startImmediate = TRUE )
startImmediate - Immediately start deviceBOOL IsOpen()
BOOL Close()
BOOL Start()
BOOL Stop()
BOOL IsCapturing()
PStringList GetDeviceNames() const
virtual PINDEX GetMaxFrameBytes()
BOOL GetFrameData( BYTE * buffer, PINDEX * bytesReturned = NULL )
bytesReturned - Optional bytes returned.void FillFrameWithData(BYTE * buffer)
void GrabMovingBlocksTestFrame(BYTE *resFrame)
void GrabMovingLineTestFrame(BYTE *resFrame)
void GrabNTSCTestFrame(BYTE *resFrame)
void GrabBouncingBoxes(BYTE *resFrame)
void FillRect(BYTE * frame, unsigned width, unsigned height, int x, int y, int rectWidth, int rectHeight, int r, int g, int b)
virtual void WaitFinishPreviousFrame()
virtual BOOL SetVideoFormat( VideoFormat videoFormat )
virtual int GetNumChannels()
virtual BOOL SetChannel( int channelNumber )
virtual BOOL SetColourFormat( const PString & colourFormat )
virtual BOOL SetFrameRate( unsigned rate )
virtual BOOL GetFrameSizeLimits( unsigned & minWidth, unsigned & minHeight, unsigned & maxWidth, unsigned & maxHeight )
minHeight - Variable to receive minimum height
maxWidth - Variable to receive maximum width
maxHeight - Variable to receive maximum heightvirtual BOOL SetFrameSize( unsigned width, unsigned height )
height - New height of frame
Alphabetic index HTML hierarchy of classes or Java