#include <videoio1394dc.h>
Inheritance diagram for PVideoInput1394DcDevice:
Public Member Functions | |
PVideoInput1394DcDevice () | |
~PVideoInput1394DcDevice () | |
BOOL | Open (const PString &deviceName, BOOL startImmediate=TRUE) |
BOOL | IsOpen () |
BOOL | Close () |
BOOL | Start () |
BOOL | Stop () |
BOOL | IsCapturing () |
PINDEX | GetMaxFrameBytes () |
BOOL | GetFrameData (BYTE *buffer, PINDEX *bytesReturned=NULL) |
BOOL | GetFrameDataNoDelay (BYTE *buffer, PINDEX *bytesReturned=NULL) |
int | GetBrightness () |
BOOL | SetBrightness (unsigned newBrightness) |
int | GetWhiteness () |
BOOL | SetWhiteness (unsigned newWhiteness) |
int | GetColour () |
BOOL | SetColour (unsigned newColour) |
int | GetContrast () |
BOOL | SetContrast (unsigned newContrast) |
int | GetHue () |
BOOL | SetHue (unsigned newHue) |
BOOL | GetParameters (int *whiteness, int *brightness, int *colour, int *contrast, int *hue) |
BOOL | GetFrameSizeLimits (unsigned &minWidth, unsigned &minHeight, unsigned &maxWidth, unsigned &maxHeight) |
void | ClearMapping () |
int | GetNumChannels () |
BOOL | SetChannel (int channelNumber) |
BOOL | SetFrameRate (unsigned rate) |
BOOL | SetVideoFormat (VideoFormat videoFormat) |
BOOL | SetFrameSize (unsigned width, unsigned height) |
BOOL | SetColourFormat (const PString &colourFormat) |
BOOL | TestAllFormats () |
BOOL | SetFrameSizeConverter (unsigned width, unsigned height, BOOL bScaleNotCrop) |
BOOL | SetColourFormatConverter (const PString &colourFormat) |
Static Public Member Functions | |
PStringList | GetInputDeviceNames () |
Protected Attributes | |
raw1394handle_t | handle |
BOOL | is_capturing |
BOOL | UseDMA |
nodeid_t * | camera_nodes |
int | numCameras |
dc1394_cameracapture | camera |
int | capturing_duration |
PString | desiredColourFormat |
unsigned | desiredFrameWidth |
unsigned | desiredFrameHeight |
|
Create a new video input device. |
|
Close the video input device on destruction. |
|
|
|
Close the device. Reimplemented from PVideoInputDevice. |
|
Get the brightness of the image. 0xffff-Very bright. Reimplemented from PVideoDevice. |
|
Get the colour of the image. 0xffff-lots of colour. Reimplemented from PVideoDevice. |
|
Get the contrast of the image. 0xffff-High contrast. Reimplemented from PVideoDevice. |
|
Grab a frame, after a delay as specified by the frame rate.
Implements PVideoInputDevice. |
|
Grab a frame. Do not delay according to the current frame rate parameter.
Implements PVideoInputDevice. |
|
Get the minimum & maximum size of a frame on the device.
Reimplemented from PVideoDevice. |
|
Get the hue of the image. 0xffff-High hue. Reimplemented from PVideoDevice. |
|
Get a list of all of the drivers available. |
|
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. Implements PVideoInputDevice. |
|
Get the number of video channels available on the device. Default behaviour returns 1. Reimplemented from PVideoDevice. |
|
Return whiteness, brightness, colour, contrast and hue in one call. Reimplemented from PVideoDevice. |
|
Get the whiteness of the image. 0xffff-Very white. Reimplemented from PVideoDevice. |
|
Determine if the video device I/O capture is in progress. Implements PVideoInputDevice. |
|
Determine of the device is currently open. Implements PVideoDevice. |
|
Open the device given the device name.
Implements PVideoInputDevice. |
|
Set brightness of the image. 0xffff-Very bright. Reimplemented from PVideoDevice. |
|
Set the video channel to be used on the device. The channel number is an integer from 0 to GetNumChannels()-1. The special value of -1 will find the first working channel number. Default behaviour sets the value of the channelNumber variable and then returns TRUE.
Reimplemented from PVideoDevice. |
|
Set colour of the image. 0xffff-lots of colour. Reimplemented from PVideoDevice. |
|
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. Reimplemented from PVideoDevice. |
|
Set the colour format to be used, trying converters if available. This function will set the colour format on the device to one that is compatible with a registered converter, and install that converter so that the correct format is used. Reimplemented from PVideoDevice. |
|
Set contrast of the image. 0xffff-High contrast. Reimplemented from PVideoDevice. |
|
Set the video frame rate to be used on the device. Default behaviour sets the value of the frameRate variable and then returns TRUE.
Reimplemented from PVideoDevice. |
|
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.
Reimplemented from PVideoDevice. |
|
Set the frame size to be used, trying converters if available. If the device does not support the size, a set of alternate resolutions are attempted. A converter is setup if possible.
Reimplemented from PVideoDevice. |
|
Set hue of the image. 0xffff-High hue. Reimplemented from PVideoDevice. |
|
Set the video format to be used. Default behaviour sets the value of the videoFormat variable and then returns TRUE.
Reimplemented from PVideoDevice. |
|
Set whiteness of the image. 0xffff-Very white. Reimplemented from PVideoDevice. |
|
Start the video device I/O. Implements PVideoDevice. |
|
Stop the video device I/O capture. Implements PVideoDevice. |
|
Try all known video formats & see which ones are accepted by the video driver Implements PVideoInputDevice. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|