Main Page | Directories | File List | Globals | Related Pages

VideoWrapperCaptureReplay.cpp File Reference

Implements functions for video capture and replay. More...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include "libtiff/tiff.h"
#include "libtiff/tiffio.h"
#include "VideoWrapper.h"
#include "VideoWrapperTypes.h"
#include "VideoWrapperTime.h"
#include "VideoWrapperCaptureReplay.h"

Functions

VWResult VIDEO_startFramesToDisk (VWHVideo hVideo, char *szOutputDirectory, long lBufferSizeLimit)
 Starts the capture of video frames to disk.
VWResult VIDEO_stopFramesToDisk (VWHVideo hVideo, int *pnFrames)
 Stops the capture of frames to disk.


Detailed Description

Implements functions for video capture and replay.

Copyright 2005, Georgia Tech Research Corporation, Atlanta, Georgia 30332-0415 All Rights Reserved


Function Documentation

VWResult VIDEO_startFramesToDisk VWHVideo  hVideo,
char *  szOutputDirectory,
long  lBufferSizeLimit = VW_UNLIMITED_BUFFER
 

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.

Parameters:
hVideo Handle to video camera.
szOutputDirectory Directory to write frames. start-time for video capture.
lBufferSizeLimit Limit for capture buffer in bytes. Set to VW_UNLIMITED_BUFFER for unlimited buffer size.
Returns:
VWResult indicating success or failure.
Note:
The current implementation is not very efficient and recommended only for small captures.

VWResult VIDEO_stopFramesToDisk VWHVideo  hVideo,
int *  pnFrames = NULL
 

Stops the capture of frames to disk.

Parameters:
hVideo Handle to video camera.
[out] pnFrames Pointer returning the number of frames captured.
Returns:
VWResult indicating success or failure.


Generated on Tue Oct 18 12:18:51 2005 for VideoWrapper API by  doxygen 1.4.1