Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xil_or(3) — Solaris 2.4 x86 SDK

Media Vault

Software Library

Restoration Projects

Artifacts Sought

xil_or(3)

NAME

xil_or, xil_or_const − bitwise logical OR operations

SYNOPSIS

#include <xil/xil.h>

void xil_or (XilImage src1,

XilImage src2,
XilImage dst);

void xil_or_const (XilImage src1,

unsigned int ∗constants,
XilImage dst);

DESCRIPTION

xil_or () performs a bitwise logical OR operation on each pixel of the src2 (source) image with the corresponding pixel in the src1 image and stores the result in the dst (destination) image. 

xil_or_const () performs a bitwise logical OR operation on each pixel of the src1 (source) image with the constants values and stores the results in the dst (destination) image.  For a n-band image, n unsigned integers must be provided, one per band.  The values in band 0 ar ORed with the value in constants[0], and so on. 

ERRORS

For a complete list of XIL error messages by number, consult Appendix B of the XIL Programmer’s Guide. 

EXAMPLES

Bitwise logical OR image2 with image1 and store the result in dst:

XilImage image1, image2, dst;
xil_or(image1, image2, dst);

Bitwise logical OR a 4-band image1 with 4 different constants and store the result in dst:

XilImage image, dst;
unsigned int constants[4];
constants[0] = 1;
constants[1] = 1;
constants[2] = 1;
constants[3] = 0;
xil_or_const(image, constants, dst);

NOTES

Source and destination images must be the same data type and have the same number of bands.  In-place operations are supported. 

SunOS   —  Last change: 03 August 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026