| ARX 1.0 The next-generation open source augmented reality toolkit.

Loading...
Searching...
No Matches
Macros | Functions
videoRGBA.c File Reference
`#include <stdbool.h>`
`#include <ARX/ARVideo/videoRGBA.h>`
Include dependency graph for videoRGBA.c:

## Macros
#define | MAX(x, y) (x > y ? x : y)
#define | MIN(x, y) (x < y ? x : y)
#define | CLAMP(x, r1, r2) (MIN(MAX(x,r1),r2))

## Functions
int | videoRGBA (uint32_t *destRGBA, AR2VideoBufferT *source, int width, int height, AR_PIXEL_FORMAT pixelFormat)
int | videoBGRA (uint32_t *destBGRA, AR2VideoBufferT *source, int width, int height, AR_PIXEL_FORMAT pixelFormat)

## Macro Definition Documentation

## ◆ CLAMP

#define CLAMP | ( |  | x,
|  |  | r1,
|  |  | r2
| ) |  | (MIN(MAX(x,r1),r2))

## ◆ MAX

#define MAX | ( |  | x,
|  |  | y
| ) |  | (x > y ? x : y)

## ◆ MIN

#define MIN | ( |  | x,
|  |  | y
| ) |  | (x < y ? x : y)

## Function Documentation

## ◆ videoBGRA()

int videoBGRA | ( | uint32_t * | destBGRA,
|  | AR2VideoBufferT * | source,
|  | int | width,
|  | int | height,
|  | AR_PIXEL_FORMAT | pixelFormat
| ) |  |

Here is the call graph for this function:

## ◆ videoRGBA()

int videoRGBA | ( | uint32_t * | destRGBA,
|  | AR2VideoBufferT * | source,
|  | int | width,
|  | int | height,
|  | AR_PIXEL_FORMAT | pixelFormat
| ) |  |

Here is the call graph for this function: