MMACH (lmmach) functions


LIBRARY ROUTINE

lvless - Check if an image is always equal or less than another image.

LIBRARY CALL

int
lvless(xvimage *img1, int i1_flg, int u, xvimage *img2, int i2_flg, int l, int *value)

INPUT

none

OUTPUT

none

RETURN VALUE

TRUE (1) on success, FALSE (0) on failure

DESCRIPTION

lvless compares two images pixel by pixel and informs if img2 is always equal or less than img1, in wich case it returns a variable set to one, or set to zero otherwise. A constant image (that can be entered in the place of img1 or img2) can be specified by an integer parameter.

lvless returns a value of one upon success and zero on failure.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

lvless can be defined for all data types supported by khoros, but at the moment it is implemented only for bit and unsigned char images.

Due to the simultaneous processing of 32 pixels in BIT images, input images of the BIT data type must be converted to a special data structure before the library is called. This can be accomplished by using the format routine. After the library call, the unformat routine can convert the image back to the BIT data type.

MODIFICATION

none

FILES

$MMACH/objects/library/lmmach/src/lvless.c

SEE ALSO

lmmach(3)

COPYRIGHT

Copyright (C) 1993-1997 Junior Barrera, Roberto Lotufo. All rights reserved.