![]() |
ARX
1.0
The next-generation open source augmented reality toolkit.
|
Functions | |
AR_VIDEO_MODULE | arVideoGetDefaultModule (void) |
int | arVideoOpen (const char *config) |
Open a video input module. More... | |
int | arVideoOpenAsync (const char *config, void(*callback)(void *), void *userdata) |
Open a video input module, invoking a callback once opening is complete. More... | |
int | arVideoClose (void) |
int | arVideoDispOption (void) |
AR_VIDEO_MODULE | arVideoGetModule (void) |
int | arVideoGetId (ARUint32 *id0, ARUint32 *id1) |
int | arVideoGetSize (int *x, int *y) |
int | arVideoGetPixelSize (void) |
AR_PIXEL_FORMAT | arVideoGetPixelFormat (void) |
AR2VideoBufferT * | arVideoGetImage (void) |
Get a frame image from the video module. More... | |
int | arVideoCapStart (void) |
Start video capture. More... | |
int | arVideoCapStartAsync (AR_VIDEO_FRAME_READY_CALLBACK callback, void *userdata) |
Start video capture with asynchronous notification of new frame arrival. More... | |
int | arVideoCapStop (void) |
Stop video capture. More... | |
int | arVideoGetParami (int paramName, int *value) |
Get value of an integer parameter from active video module. More... | |
int | arVideoSetParami (int paramName, int value) |
Set value of an integer parameter in active video module. More... | |
int | arVideoGetParamd (int paramName, double *value) |
Get value of a double-precision floating-point parameter from active video module. More... | |
int | arVideoSetParamd (int paramName, double value) |
Set value of a double-precision floating-point parameter in active video module. More... | |
int | arVideoGetParams (const int paramName, char **value) |
Get value of a string parameter from active video module. More... | |
int | arVideoSetParams (const int paramName, const char *value) |
Get value of a string parameter in active video module. More... | |
int | arVideoSaveParam (char *filename) |
int | arVideoLoadParam (char *filename) |
int | arVideoSetBufferSize (const int width, const int height) |
int | arVideoGetBufferSize (int *width, int *height) |
int | arVideoGetCParam (ARParam *cparam) |
int | arVideoGetCParamAsync (void(*callback)(const ARParam *, void *), void *userdata) |
int | arVideoUtilGetPixelSize (const AR_PIXEL_FORMAT arPixelFormat) |
const char * | arVideoUtilGetPixelFormatName (const AR_PIXEL_FORMAT arPixelFormat) |
int arVideoCapStart | ( | void | ) |
Start video capture.
Each call to arVideoCapStart must be balanced with a call to arVideoCapStop.
int arVideoCapStartAsync | ( | AR_VIDEO_FRAME_READY_CALLBACK | callback, |
void * | userdata | ||
) |
Start video capture with asynchronous notification of new frame arrival.
callback | A function to call when a new frame arrives. This function may be called anytime until the function arVideoCapStop has been called successfully. The callback may occur on a different thread to the calling thread and it is up to the user to synchronise the callback with any procedures that must run on the main thread, a rendering thread, or other arbitrary thread. |
userdata | Optional user data pointer which will be passed to the callback as a parameter. May be NULL. |
int arVideoCapStop | ( | void | ) |
Stop video capture.
Each call to arVideoCapStop must match a call to arVideoCapStart.
int arVideoClose | ( | void | ) |
int arVideoDispOption | ( | void | ) |
int arVideoGetBufferSize | ( | int * | width, |
int * | height | ||
) |
int arVideoGetCParam | ( | ARParam * | cparam | ) |
int arVideoGetCParamAsync | ( | void(*)(const ARParam *, void *) | callback, |
void * | userdata | ||
) |
AR_VIDEO_MODULE arVideoGetDefaultModule | ( | void | ) |
AR2VideoBufferT * arVideoGetImage | ( | void | ) |
Get a frame image from the video module.
AR_VIDEO_MODULE arVideoGetModule | ( | void | ) |
int arVideoGetParamd | ( | int | paramName, |
double * | value | ||
) |
Get value of a double-precision floating-point parameter from active video module.
paramName | Name of parameter to get, as defined in <ARX/ARVideo/video.h> |
value | Pointer to double, which will be filled with the value of the parameter. |
int arVideoGetParami | ( | int | paramName, |
int * | value | ||
) |
Get value of an integer parameter from active video module.
paramName | Name of parameter to get, as defined in <ARX/ARVideo/video.h> |
value | Pointer to integer, which will be filled with the value of the parameter. |
int arVideoGetParams | ( | const int | paramName, |
char ** | value | ||
) |
Get value of a string parameter from active video module.
paramName | Name of parameter to get, as defined in <ARX/ARVideo/video.h> |
value | Pointer to pointer, which will be filled with a pointer to a C-string (nul-terminated, UTF-8) containing the value of the parameter. The string returned is allocated internally, and it is the responsibility of the caller to call free() on the returned value. |
AR_PIXEL_FORMAT arVideoGetPixelFormat | ( | void | ) |
int arVideoGetPixelSize | ( | void | ) |
int arVideoGetSize | ( | int * | x, |
int * | y | ||
) |
int arVideoLoadParam | ( | char * | filename | ) |
int arVideoOpen | ( | const char * | config | ) |
Open a video input module.
Opening a video input module selects, connects to, and configures a video source for other video operations. Once this call has returned, other APIs can be invoked. @oaram config A configuration string, consisting of a series of space-separated configuration tokens. While the configuration string options are largely platform- and system-dependent, the token "-module=X" where X is a video input module name is always accepted. For information on configuration options, see https://github.com/artoolkitx/artoolkitx/wiki/artoolkitX-video-module-configuration-reference
int arVideoOpenAsync | ( | const char * | config, |
void(*)(void *) | callback, | ||
void * | userdata | ||
) |
Open a video input module, invoking a callback once opening is complete.
Opening a video input module selects, connects to, and configures a video source for other video operations. This variant returns immediately while continuing the opening operation asynchronously, invoking a user-supplied callback once opening has completed. The only API permissible to call between this function and the invocation of the callback is arVideoGetModule. @oaram config A configuration string, consisting of a series of space-separated configuration tokens. While the configuration string options are largely platform- and system-dependent, the token "-module=X" where X is a video input module name is always accepted. For information on configuration options, see https://github.com/artoolkitx/artoolkitx/wiki/artoolkitX-video-module-configuration-reference
callback | The callback to invoke once opening is complete. In most cases, the callback will be invoked on a different thread, so care must be taken if the caller is sensitive to this. |
userdata | An arbitrary pointer which will be passed to the callback. |
int arVideoSaveParam | ( | char * | filename | ) |
int arVideoSetBufferSize | ( | const int | width, |
const int | height | ||
) |
int arVideoSetParamd | ( | int | paramName, |
double | value | ||
) |
Set value of a double-precision floating-point parameter in active video module.
paramName | Name of parameter to set, as defined in <ARX/ARVideo/video.h> |
value | Double value to set the parameter to. |
int arVideoSetParami | ( | int | paramName, |
int | value | ||
) |
Set value of an integer parameter in active video module.
paramName | Name of parameter to set, as defined in <ARX/ARVideo/video.h> |
value | Integer value to set the parameter to. |
int arVideoSetParams | ( | const int | paramName, |
const char * | value | ||
) |
Get value of a string parameter in active video module.
paramName | Name of parameter to set, as defined in <ARX/ARVideo/video.h> |
value | Pointer to C-string (nul-terminated, UTF-8) containing the value to set the parameter to. |
const char * arVideoUtilGetPixelFormatName | ( | const AR_PIXEL_FORMAT | arPixelFormat | ) |
int arVideoUtilGetPixelSize | ( | const AR_PIXEL_FORMAT | arPixelFormat | ) |