#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "VideoWrapper.h"
#include "VideoWrapperTypes.h"
#include "VideoWrapperTime.h"
#include "VideoWrapperCaptureReplay.h"
Functions | |
VWResult | VIDEO_setPrintFunction (VWPrintFcn *func) |
Sets a callback function that may be used for printing messages from the video libraries. | |
VWResult | VIDEO_loadLibrary (char *szLibIdentifier, char *szLibImplementation) |
Dynamically loads support for a camera library. | |
VWResult | VIDEO_openVideo (char *lpCmdLine, VWHVideo *phVideo) |
Intializes a video camera. | |
VWResult | VIDEO_close (VWHVideo hVideo) |
Close the video camera. | |
VWResult | VIDEO_startVideo (VWHVideo hVideo) |
Starts aquiring frames from the camera. | |
VWResult | VIDEO_stopVideo (VWHVideo hVideo) |
Stops aquiring frames from the camera. | |
VWResult | VIDEO_getFrame (VWHVideo hVideo, unsigned char **ppbFrame, timeval *pTimestamp=NULL) |
Polls for new video frame. | |
VWResult | VIDEO_releaseFrame (VWHVideo hVideo) |
Releases the frame so that memory may be deallocated. | |
VWResult | VIDEO_resetVideo (VWHVideo hVideo, VWBool bAutomatic) |
Resets all the camera parameters to defaults. | |
VWResult | VIDEO_showPropertiesDialog (VWHVideo hVideo) |
Displays the a pop-up property window associated with this device. | |
VWResult | VIDEO_getWidth (VWHVideo hVideo, int *pnWidth) |
Gets the video width. | |
VWResult | VIDEO_getHeight (VWHVideo hVideo, int *pnHeight) |
Gets the video height. | |
VWResult | VIDEO_getDepth (VWHVideo hVideo, int *pnDepth) |
Gets color depth as bits per pixel. | |
VWResult | VIDEO_getFrameRate (VWHVideo hVideo, double *pFrameRate) |
Gets the frame rate of the camera as frames per second. | |
VWResult | VIDEO_setPropertyLong (VWHVideo hVideo, VWCamProp propId, long lValue1, long lValue2, VWBool bAuto) |
Sets a long-typed camera property such as white balance, gain, etc. | |
VWResult | VIDEO_getPropertyLong (VWHVideo hVideo, VWCamProp propId, long *plValue1, long *plValue2, VWBool *pbAuto) |
Gets a long-typed camera property such as white balance, gain, etc. | |
VWResult | VIDEO_getPropertyRangeLong (VWHVideo hVideo, VWCamProp propId, long *plMinValue, long *plMaxValue, VWBool *pbAuto) |
Gets the valid range for a long-typed camera property such as white balance, gain, etc. | |
VWResult | VIDEO_setPropertyString (VWHVideo hVideo, VWCamProp propId, char *szValue) |
Sets a string-typed camera property. | |
VWResult | VIDEO_getPropertyString (VWHVideo hVideo, VWCamProp propId, char *szValue, int nSize) |
Gets a string-typed camera property. | |
char *VW_API_ENTRY | VIDEO_getErrDescription (VWResult resultCode) |
Gets a string describing the given VWResult code. | |
VWResult | VIDEO_replaySetPlaybackPosition (VWHVideo hVideo, timeval tvNewPosition) |
Sets the current position for video playback to permit random access. | |
VWResult | VIDEO_replaySetPlaybackLoop (VWHVideo hVideo, VWBool bLoop) |
Sets the loop state of the replay camera. | |
VWResult | VIDEO_replayIsPlaybackFinished (VWHVideo hVideo, VWBool *pbFinished) |
Checks to see if playback is finished. |
Copyright 2004-5, Georgia Tech Research Corporation, Atlanta, Georgia 30332-0415 All Rights Reserved
|
Close the video camera.
|
|
Gets color depth as bits per pixel.
|
|
Gets a string describing the given VWResult code.
|
|
Polls for new video frame.
|
|
Gets the frame rate of the camera as frames per second.
|
|
Gets the video height.
|
|
Gets a long-typed camera property such as white balance, gain, etc. Some properties are composed of two values. Symbols for camera properties are defined in VideoWrapperTypes.h.
|
|
Gets the valid range for a long-typed camera property such as white balance, gain, etc. Symbols for camera properties are defined in VideoWrapperTypes.h.
|
|
Gets a string-typed camera property.
|
|
Gets the video width.
|
|
Dynamically loads support for a camera library. Some camera libraries are 'preset' and VideoWrapper can load them automatically, however this function allows VideoWrapper to be extended at runtime to support additional camera libraries.
|
|
Intializes a video camera.
|
|
Releases the frame so that memory may be deallocated.
|
|
Checks to see if playback is finished. Will return true after a call to getNextFrame goes past the last saved frame.
|
|
Sets the loop state of the replay camera. Has no effect with other camera libraries. If the loop state is true, video playback will loop when the end is reached.
|
|
Sets the current position for video playback to permit random access.
|
|
Resets all the camera parameters to defaults.
|
|
Sets a callback function that may be used for printing messages from the video libraries.
|
|
Sets a long-typed camera property such as white balance, gain, etc. Some properties are composed of two values. Symbols for camera properties are defined in VideoWrapperTypes.h.
|
|
Sets a string-typed camera property.
|
|
Displays the a pop-up property window associated with this device. Not supported by all camera libraries.
|
|
Starts aquiring frames from the camera.
|
|
Stops aquiring frames from the camera.
|