![]() |
ARX
1.0
The next-generation open source augmented reality toolkit.
|
Classes | |
| struct | _ASPECT_RATIOS_ENTRY |
Macros | |
| #define | _GNU_SOURCE |
| #define | _ASPECT_RATIOS_COUNT (sizeof(aspectRatios)/sizeof(aspectRatios[0])) |
| #define | PRIMES_COUNT (sizeof(primes)/sizeof(primes[0])) |
| #define | PRIMES_COUNT (sizeof(primes)/sizeof(primes[0])) |
Functions | |
| AR_VIDEO_ASPECT_RATIO | arVideoUtilFindAspectRatio (int w, int h) |
| Determine the approximate aspect ratio for a given image resolution. More... | |
| char * | arVideoUtilFindAspectRatioName (int w, int h) |
| Determine the approximate aspect ratio for a given image resolution. More... | |
| #define _ASPECT_RATIOS_COUNT (sizeof(aspectRatios)/sizeof(aspectRatios[0])) |
| #define _GNU_SOURCE |
| #define PRIMES_COUNT (sizeof(primes)/sizeof(primes[0])) |
| #define PRIMES_COUNT (sizeof(primes)/sizeof(primes[0])) |
| AR_VIDEO_ASPECT_RATIO arVideoUtilFindAspectRatio | ( | int | w, |
| int | h | ||
| ) |
Determine the approximate aspect ratio for a given image resolution.
A convenience method which makes it easy to determine the approximate aspect ratio of an image with the given resolution (expressed in pixel width and height). Returns a symbolic constant for the aspect ratio, which makes it easy to determine whether two different resolutions have the same aspect ratio. Assumes square pixels.
| w | Width in pixels |
| h | Height in pixels |
| char * arVideoUtilFindAspectRatioName | ( | int | w, |
| int | h | ||
| ) |
Determine the approximate aspect ratio for a given image resolution.
A convenience method which makes it easy to determine the approximate aspect ratio of an image with the given resolution (expressed in pixel width and height). Returns a string for the aspect ratio. Assumes square pixels.
| w | Width in pixels |
| h | Height in pixels |
1.9.5