class PFakeVideoInputDevice |
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 |
![]() | GetInputDeviceNames () 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. |
![]() | GetFrameDataNoDelay ( BYTE* buffer, PINDEX* bytesReturned = NULL ) Grab a frame. |
![]() | 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 |
![]() | GrabBlankImage (BYTE* resFrame) Generate a static image, containing a constant field of grey |
![]() | GrabOriginalMovingBlocksFrame (BYTE* resFrame) Generate the original form of the moving blocks test frame |
![]() | GrabTextVideoFrame (BYTE* resFrame) Generate a textual output on the fake video image |
![]() | FindLetter (char ascii) Get the stucture holding required letter for GetTextVideoFrame() |
![]() | 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. |
![]() | TestAllFormats () Try all known video formats & see which ones are accepted by the video driver |
Run Time Type functions
I/O functions
Miscellaneous functions
Comparison 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.
There will be a delay in returning, as specified by frame rate.
Do not delay according to the current frame rate.
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.
Alphabetic index HTML hierarchy of classes or Java