verror(3)

NAME
verror - verification routines for VIFF images

DESCRIPTION
verror provides verification routines for various types of checking of fields in the VIFF data structure that represents Khoros images. Some routines compare two viff data structures to each other, while others compare a characteristic of a single viff data structure to a desired value that is passed in. They are all frequently used by image processing routines throughout the Khoros image processing library (ipl).

For an explanation of all the following routines in greater detail, with explanations of all arguments to each routine, see the section on verror in the Khoros Programmer's Manual, chapter 8, Libraries.

ALL programs that utilize these routines MUST include the statement:

#include "vinclude.h"

AVAILABLE ROUTINES

match_map_enable()

Check to see if two viff files or structures have the same map enable type.

int match_map_enable(prog, img1, img2, exit_flag)
char *prog;
struct xvimage *img1,*img2;
int exit_flag;

match_map_scheme()

Check to see if the two viff data structures have the same mapping scheme.

int match_map_scheme(prog, img1, img2, exit_flag)
char *prog;
struct xvimage *img1,*img2;
int exit_flag;

match_map_size()

Check to see if the two viff data structures have the same row and column size.

int match_map_size(prog, img1, img2, exit_flag)
char *prog;
struct xvimage *img1,*img2;
int exit_flag;

match_map_type()

Check to see if the two viff data structures have the same map data type.

int match_map_type(prog, img1, img2, exit_flag)
char *prog;
struct xvimage *img1,*img2;
int exit_flag;

match_color_model()

Check to see if the two viff data structures have the same color model.

int match_color_model(prog, img1, img2, exit_flag)
char *prog;
struct xvimage *img1,*img2;
int exit_flag;

match_dim()

Check to see if the two viff data structures have the same location dimension.

int match_dim(prog, img1, img2, exit_flag)
char *prog;
struct xvimage *img1,*img2;
int exit_flag;

match_encode_scheme()

Check to see if the two viff data structures have the same data storage encoding scheme.

int match_encode_scheme(prog, img1, img2, exit_flag)
char *prog;
struct xvimage *img1,*img2;
int exit_flag;

match_loc_type()

Check to see if the two viff data structures have the same location type.

int match_loc_type(prog, img1, img2, exit_flag)
char *prog;
struct xvimage *img1,*img2;
int exit_flag;

match_num_bands()

Check to see if the two viff data structures number of data bands per image.

int match_num_bands(prog, img1, img2, exit_flag)
char *prog;
struct xvimage *img1,*img2;
int exit_flag;

match_num_images()

Check to see if the two viff data structures number of images.

int match_num_images(prog, img1, img2, exit_flag)
char *prog;
struct xvimage *img1,*img2;
int exit_flag;

matchsize()

Check to see if the two viff data structures number are the same size.

int matchsize(prog, img1, img2, exit_flag)
char *prog;
struct xvimage *img1,*img2;
int exit_flag;

matchtype()

int matchtype(prog, img1, img2, exit_flag)
char *prog;
struct xvimage *img1,*img2;
int exit_flag;

proper_map_rowsize()

Check to see if map row size is correct.

int proper_map_rowsize(prog, image, proper_row_size, exit_flag)
char *prog;
struct xvimage *image;
unsigned long proper_row_size;
int exit_flag;

proper_map_enable()

Check to see if map enable value is correct.

int proper_map_enable(prog, image, proper_map_enable, exit_flag)
char *prog;
struct xvimage *image;
unsigned long proper_map_enable;
int exit_flag;

proper_map_scheme()
int proper_map_scheme(prog, image, proper_map_scheme, exit_flag)
char *prog;
struct xvimage *image;
unsigned long proper_map_scheme;
int exit_flag;

proper_map_size()

Check to see if map row and column sizes are correct.

int proper_map_size(prog, image, proper_col_size, proper_row_size, exit_flag)
char *prog;
struct xvimage *image;
unsigned long proper_col_size;
unsigned long proper_row_size;
int exit_flag;

proper_map_type()

Check to see if map data type is correct.

int proper_map_type(prog, image, proper_map_type, exit_flag)
char *prog;
struct xvimage *image;
unsigned long proper_map_type;
int exit_flag;

proper_color_model()

Check to see if color space model is correct.

int proper_color_model(prog, image, proper_color_model, exit_flag)
char *prog;
struct xvimage *image;
unsigned long proper_color_model;
int exit_flag;

proper_num_bands()

Check to see if number of data bands correct.

int proper_num_bands(prog,image,proper_number,exit_flag)
char *prog;
struct xvimage *image;
unsigned long proper_number;
int exit_flag;

proper_num_images()

Check to see if map row size is correct.

int proper_num_images(prog, image, proper_number, exit_flag)
char *prog;
struct xvimage *image;
unsigned long proper_number;
int exit_flag;

proper_dim()

Check to see if location dimension is correct.

int proper_dim(prog, image, proper_loc_dim, exit_flag)
char *prog;
struct xvimage *image;
unsigned long proper_loc_dim;
int exit_flag;

proper_encode_scheme()

Check to see if encoding scheme is correct.

int proper_encode_scheme(prog, image, proper_enc_scheme, exit_flag)
char *prog;
struct xvimage *image;
unsigned long proper_enc_scheme;
int exit_flag;

proper_loc_type()

Check to see if location type is correct - implied or explicit.

int proper_loc_type(prog, image, proper_loc_type, exit_flag)
char *prog;
struct xvimage *image;
unsigned long proper_loc_type;
int exit_flag;

propersize()

Check to see if viff data is of the correct size.

int propersize(prog, image, proper_col_size, proper_row_size, exit_flag)
char *prog;
struct xvimage *image;
unsigned long proper_col_size;
unsigned long proper_row_size;
int exit_flag;

propertype()

Check to see if the viff data is of the correct data type. int proper_map_rowsize(prog, image, proper_data_type, exit_flag)
char *prog;
struct xvimage *image;
unsigned long proper_data_type;
int exit_flag;