__compare |
int __compare( const void *a, const void *b)
a
- Image buffer to compare against.
b
- Image buffer to compare against.
Compares the specified image buffers by age.
operator == |
bool operator == ( const image_struct &a, const image_struct &b)
a
- Image structure to compare against.
b
- Image structure to compare against.
Compares the specified image structures for equality.
filter_enum |
- filter_enum
typedef enum { KInvert = 0, KClear = 1, KSobel = 2, KNull = 3 } filter_enum;
KInvert
- Specify the color inversion filter.
KClear
- Specify the clear U, V channel filter.
KSobel
- Specify the Sobel convolution filter.
KNull
- Specify the default (pass-through) filter.
Contains a listing of all currently supported image filters.
flags_struct |
typedef struct { unsigned int age : 8; unsigned int top : 1; unsigned int left : 1; unsigned int back : 1; unsigned int front : 1; unsigned int right : 1; unsigned int active : 1; unsigned int bottom : 1; unsigned int filter : 8; } flags_struct;
age
- The current age (between 0 and 255) of the image buffer (default is 128).
top
- Image buffer perspective matches the top of a virtual cube (default is false).
left
- Image buffer perspective matches the left side of a virtual cube (default is false).
back
- Image buffer perspective matches the back of a virtual cube (default is false).
front
- Image buffer perspective matches the front of a virtual cube (default is false).
right
- Image buffer perspective matches the right side of a virtual cube (default is false).
active
- Specify whether or not this is an active image structure (default is false).
bottom
- Image buffer perspective matches the bottom of a virtual cube (default is false).
filter
- The selected image filter (see filter_enum) to activate (default is KNull).
Contains various configuration settings associated with the specified image structure.
image_struct |
typedef struct { flags_struct flags; unsigned int hash; unsigned int size; unsigned int width; unsigned int height; unsigned int length; unsigned char *pixels; } image_struct;
flags
- Configuration settings associated with the image buffer.
hash
- Hash value for the image buffer.
size
- Size (i.e. width * height * 1.5) of the image buffer in pixels.
width
- Width of the image buffer in pixels.
height
- Height of the image buffer in pixels.
length
- Length of Y channel (i.e. width * height) for the image buffer in pixels.
pixels
- Pointer to the YUV 4:2:0 format image buffer.
Contains any state associated with the specified image buffer.
© Max Rupp (feelgood@cs.pdx.edu). All rights reserved.
(Last Updated September 20, 2006)