#include "VideoWrapperTypes.h"
#include <time.h>
Go to the source code of this file.
| Camera Library Management Functions | |
| VW_API VWResult VW_API_ENTRY | VIDEO_loadLibrary (char *szLibIdentifier, char *szLibImplementation) | 
| Dynamically loads support for a camera library. | |
| typedef | void (VW_API_ENTRY VWPrintFcn)(char *) | 
| Type definition for print callback functions. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_setPrintFunction (VWPrintFcn *fp) | 
| Sets a callback function that may be used for printing messages from the video libraries. | |
| Camera Management Functions | |
| VW_API VWResult VW_API_ENTRY | VIDEO_openVideo (char *szInit, VWHVideo *phVideo) | 
| Intializes a video camera. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_close (VWHVideo hVideo) | 
| Close the video camera. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_startVideo (VWHVideo hVideo) | 
| Starts aquiring frames from the camera. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_stopVideo (VWHVideo hVideo) | 
| Stops aquiring frames from the camera. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_resetVideo (VWHVideo hVideo, VWBool bAutomatic) | 
| Resets all the camera parameters to defaults. | |
| Frame Capture Functions | |
| VW_API VWResult VW_API_ENTRY | VIDEO_getFrame (VWHVideo hVideo, unsigned char **ppbFrame, timeval *pTimestamp) | 
| Polls for new video frame. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_releaseFrame (VWHVideo hVideo) | 
| Releases the frame so that memory may be deallocated. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_getFrameRate (VWHVideo hVideo, double *pdFrameRate) | 
| Gets the frame rate of the camera as frames per second. | |
| Image Format Accessor Functions | |
| VW_API VWResult VW_API_ENTRY | VIDEO_getWidth (VWHVideo hVideo, int *pnWidth) | 
| Gets the video width. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_getHeight (VWHVideo hVideo, int *pnHeight) | 
| Gets the video height. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_getPixelFormat (VWHVideo hVideo, int *pnFormat) | 
| Gets the pixel format. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_getDepth (VWHVideo hVideo, int *pnDepth) | 
| Gets color depth as bits per pixel. | |
| Error Reporting Functions | |
| VW_API char *VW_API_ENTRY | VIDEO_getErrDescription (VWResult resultCode) | 
| Gets a string describing the given VWResult code. | |
| Camera Property Functions | |
| VW_API VWResult VW_API_ENTRY | VIDEO_showPropertiesDialog (VWHVideo hVideo) | 
| Displays the a pop-up property window associated with this device. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_setPropertyLong (VWHVideo hVideo, VWCamProp propId, long lValue1, long lValue2=0L, VWBool bAuto=FALSE) | 
| Sets a long-typed camera property such as white balance, gain, etc. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_getPropertyLong (VWHVideo hVideo, VWCamProp propId, long *plValue1=NULL, long *plValue2=NULL, VWBool *pbAuto=NULL) | 
| Gets a long-typed camera property such as white balance, gain, etc. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_getPropertyRangeLong (VWHVideo hVideo, VWCamProp propId, long *plMinValue=NULL, long *plMaxValue=NULL, VWBool *pbAuto=NULL) | 
| Gets the valid range for a long-typed camera property such as white balance, gain, etc. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_setPropertyString (VWHVideo hVideo, VWCamProp propId, char *szValue) | 
| Sets a string-typed camera property. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_getPropertyString (VWHVideo hVideo, VWCamProp propId, char *szValue, int nSize) | 
| Gets a string-typed camera property. | |
| Disk Capture Functions | |
| VW_API VWResult VW_API_ENTRY | VIDEO_startFramesToDisk (VWHVideo hVideo, char *szOutputDirectory, long lBufferSizeLimit=VW_UNLIMITED_BUFFER) | 
| Starts the capture of video frames to disk. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_stopFramesToDisk (VWHVideo hVideo, int *pnFrames=NULL) | 
| Stops the capture of frames to disk. | |
| Replay Camera Functions | |
| These functions operate only on the "replay" camera. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_replaySetPlaybackPosition (VWHVideo hVideo, timeval tvNewPosition) | 
| Sets the current position for video playback to permit random access. | |
| VW_API VWResult VW_API_ENTRY | VIDEO_replaySetPlaybackLoop (VWHVideo hVideo, VWBool bLoop) | 
| Sets the loop state of the replay camera. | |
| VW_API VWBool VW_API_ENTRY | VIDEO_replayIsPlaybackFinished (VWHVideo hVideo, VWBool *pbFinished) | 
| Checks to see if playback is finished. | |
Copyright 2003-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 the pixel format. 
 
 
 
 | 
| 
 | ||||||||||||||||||||||||
| 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 the capture of video frames to disk. Frames are written as TIFFs. This version does not write frames to disk until VIDEO_stopFramesToDisk is executed. Unless lBufferSizeLimit is set to VW_UNLIMITED_BUFFER, frames will be discarded when the buffer limit is reached. 
 
 
 
 | 
| 
 | 
| Starts aquiring frames from the camera. 
 
 
 | 
| 
 | ||||||||||||
| Stops the capture of frames to disk. 
 
 
 | 
| 
 | 
| Stops aquiring frames from the camera. 
 
 
 | 
 1.4.1
 1.4.1