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

Loading...
Searching...
No Matches
Macros | Functions
videoSaveImage.c File Reference
`#include <ARX/ARVideo/video.h>`
`#include <stdio.h>`
`#include <string.h>`
`#include "jpeglib.h"`
Include dependency graph for videoSaveImage.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 | arVideoSaveImageJPEG (int w, int h, AR_PIXEL_FORMAT pixFormat, ARUint8 *pixels, const char *filename, const int quality, const int flipV)

## 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

## ◆ arVideoSaveImageJPEG()

int arVideoSaveImageJPEG | ( | int | w,
|  | int | h,
|  | AR_PIXEL_FORMAT | pixFormat,
|  | ARUint8 * | pixels,
|  | const char * | filename,
|  | const int | quality,
|  | const int | flipV
| ) |  |