#include <AR/config.h>
#include <AR/ar.h>
Functions | |
AR_DLL_API int | arVideoDispOption (void) |
display the video option. | |
AR_DLL_API int | arVideoOpen (char *config) |
open a video source. | |
AR_DLL_API int | arVideoClose (void) |
close the video source. After your application has finished using a video stream, this function must be called to close the link to the input source, and free resources associated with the capture operation. | |
AR_DLL_API int | arVideoCapStart (void) |
start the capture of video. | |
AR_DLL_API int | arVideoCapStop (void) |
stop the capture of video. | |
AR_DLL_API int | arVideoCapNext (void) |
call for the next grabbed video frame. | |
AR_DLL_API ARUint8 * | arVideoGetImage (void) |
get the video image. | |
AR_DLL_API int | arVideoInqSize (int *x, int *y) |
get the video image size, in pixels. | |
AR_DLL_API int | ar2VideoDispOption (void) |
display the video option (multiple video inputs) | |
AR_DLL_API AR2VideoParamT * | ar2VideoOpen (char *config) |
open a video source (multiple video inputs) | |
AR_DLL_API int | ar2VideoClose (AR2VideoParamT *vid) |
close a video source (multiple video inputs) | |
AR_DLL_API int | ar2VideoCapStart (AR2VideoParamT *vid) |
start the capture of a video source (multiple video inputs) | |
AR_DLL_API int | ar2VideoCapNext (AR2VideoParamT *vid) |
call for the next grabbed video frame of a video source (multiple video inputs) | |
AR_DLL_API int | ar2VideoCapStop (AR2VideoParamT *vid) |
stop the capture of a video source (multiple video inputs) | |
AR_DLL_API ARUint8 * | ar2VideoGetImage (AR2VideoParamT *vid) |
get a video image from a video source (multiple video inputs) | |
AR_DLL_API int | ar2VideoInqSize (AR2VideoParamT *vid, int *x, int *y) |
get the video image size of a video source (multiple video inputs) |
This library provides multi-platform video input support for ARToolKit. It abstracts access to hardware video input available on different machines and operating systems.
The actual supported platforms (and the driver/library used) are:
This library provides two sets of functions, depending on whether your program needs to use only one video stream, or more than one video stream. These two sets are functionally identical.
More information on establishing video streams is available in the ARToolKit manual.
Atsishi Nakazawa nakazawa@inolab.sys.es.osaka-u.ac.jp
Thomas Pintaric pintaric@ims.tuwien.ac.at (Windows DirectShow video support).
Philip Lamb phil@eden.net.nz (Macintosh Quicktime video support).
Hartmut Seichter hartmut@technotecture.com (GStreamer Video support)
|
call for the next grabbed video frame of a video source (multiple video inputs) Companion function to arVideoCapNext for multiple video sources.
|
|
start the capture of a video source (multiple video inputs) Companion function to arVideoCapStart for multiple video sources.
|
|
stop the capture of a video source (multiple video inputs) Companion function to arVideoCapStop for multiple video sources.
|
|
close a video source (multiple video inputs) Companion function to arVideoClose for multiple video sources.
|
|
display the video option (multiple video inputs) Companion function to arVideoDispOption, for multiple video sources. |
|
get a video image from a video source (multiple video inputs) Companion function to arVideoGetImage for multiple video sources.
|
|
get the video image size of a video source (multiple video inputs) Companion function to arVideoInqSize for multiple video sources.
|
|
open a video source (multiple video inputs) Companion function to arVideoOpen for multiple video sources. This function can be called multiple times to open multiple video streams. The maximum number of streams is dependent on the operating system and the performance characteristics of the host CPU and video capture infrastructure.
|
|
call for the next grabbed video frame. This function should be called at least once per frame. It has several purposes, depending on the operating system. It allows the video driver to perform housekeeping tasks and also signals to the video grabber that your code has finished using the most recent video frame returned by arVideoGetImage(), and that the video driver may re-use the memory occupied by the frame. The effect of this call is operating-system dependent. The best place to call this function is immediately after you have finished displaying the current video frame, i.e. after calling arglDispImage() or argDispImage().
|
|
start the capture of video. This function starts the video capture routine.
|
|
stop the capture of video. This function stops the video capture routine.
|
|
close the video source. After your application has finished using a video stream, this function must be called to close the link to the input source, and free resources associated with the capture operation.
|
|
display the video option. The video configuration options vary by operating system and platform. This function outputs to the standard output the options available on the current OS and platform.
|
|
get the video image. This function returns a buffer with a captured video image. The returned data consists of a tightly-packed array of pixels, beginning with the first component of the leftmost pixel of the topmost row, and continuing with the remaining components of that pixel, followed by the remaining pixels in the topmost row, followed by the leftmost pixel of the second row, and so on. The arrangement of components of the pixels in the buffer is determined by the configuration string passed in to the driver at the time the video stream was opened. If no pixel format was specified in the configuration string, then an operating- system dependent default, defined in <AR/config.h> is used. The memory occupied by the pixel data is owned by the video driver and should not be freed by your program. The pixels in the buffer remain valid until the next call to arVideoCapNext, or the next call to arVideoGetImage which returns a non-NULL pointer, or any call to arVideoCapStop or arVideoClose.
|
|
get the video image size, in pixels. This function returns the size of the captured video frame, in pixels.
|
|
open a video source. This function opens a video input path with the driver (and device) present on your platform. According to your operating system and the hardware the initialization will be different : a generic string structure is used for this issue. This function prepares the video stream for capture, but capture will not actually begin until arVideoCapStart is called.
|