| 1 | /* ----------------- */ | 
|---|
| 2 | /* --- nrbool1.h --- */ | 
|---|
| 3 | /* ----------------- */ | 
|---|
| 4 |  | 
|---|
| 5 | /* | 
|---|
| 6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved | 
|---|
| 7 | * Univ Paris Sud XI, CNRS | 
|---|
| 8 | */ | 
|---|
| 9 |  | 
|---|
| 10 | #ifndef _NR_BOOL1_H_ | 
|---|
| 11 | #define _NR_BOOL1_H_ | 
|---|
| 12 |  | 
|---|
| 13 | #ifdef __cplusplus | 
|---|
| 14 | #ifdef PRAGMA_VERBOSE | 
|---|
| 15 | #pragma message ("C++") | 
|---|
| 16 | #endif | 
|---|
| 17 | extern "C" { | 
|---|
| 18 | #endif | 
|---|
| 19 |  | 
|---|
| 20 | #ifdef PRAGMA_VERBOSE | 
|---|
| 21 | //#pragma message("- include nrbool1.h") | 
|---|
| 22 | #endif | 
|---|
| 23 |  | 
|---|
| 24 | /* ========================= */ | 
|---|
| 25 | /* === Logical operation === */ | 
|---|
| 26 | /* ========================= */ | 
|---|
| 27 |  | 
|---|
| 28 | /* ----------- */ | 
|---|
| 29 | /* --- Not --- */ | 
|---|
| 30 | /* ----------- */ | 
|---|
| 31 | /* Y = ! Y */ | 
|---|
| 32 | IMAGE_EXPORT(void) not_bvector    (byte   *X, long ncl, long nch, byte   *Y); | 
|---|
| 33 | IMAGE_EXPORT(void) not_si8vector  (sint8  *X, long ncl, long nch, sint8  *Y); | 
|---|
| 34 | IMAGE_EXPORT(void) not_ui8vector  (uint8  *X, long ncl, long nch, uint8  *Y); | 
|---|
| 35 | IMAGE_EXPORT(void) not_si16vector (sint16 *X, long ncl, long nch, sint16 *Y); | 
|---|
| 36 | IMAGE_EXPORT(void) not_ui16vector (uint16 *X, long ncl, long nch, uint16 *Y); | 
|---|
| 37 | IMAGE_EXPORT(void) not_si32vector (sint32 *X, long ncl, long nch, sint32 *Y); | 
|---|
| 38 | IMAGE_EXPORT(void) not_ui32vector (uint32 *X, long ncl, long nch, uint32 *Y); | 
|---|
| 39 | IMAGE_EXPORT(void) not_si64vector (sint64 *X, long ncl, long nch, sint64 *Y); | 
|---|
| 40 | IMAGE_EXPORT(void) not_ui64vector (uint64 *X, long ncl, long nch, uint64 *Y); | 
|---|
| 41 | IMAGE_EXPORT(void) not_rgb8vector (rgb8   *X, long ncl, long nch, rgb8   *Y); | 
|---|
| 42 | IMAGE_EXPORT(void) not_rgbx8vector(rgbx8  *X, long ncl, long nch, rgbx8  *Y); | 
|---|
| 43 |  | 
|---|
| 44 | /* ---------- */ | 
|---|
| 45 | /* --- Or --- */ | 
|---|
| 46 | /* ---------- */ | 
|---|
| 47 | /* Z = X | Y */ | 
|---|
| 48 |  | 
|---|
| 49 | IMAGE_EXPORT(void) or_bvector    (byte   *X, long ncl, long nch, byte   *Y, byte    *Z); | 
|---|
| 50 | IMAGE_EXPORT(void) or_si8vector  (sint8  *X, long ncl, long nch, sint8  *Y, sint8   *Z); | 
|---|
| 51 | IMAGE_EXPORT(void) or_ui8vector  (uint8  *X, long ncl, long nch, uint8  *Y, uint8   *Z); | 
|---|
| 52 | IMAGE_EXPORT(void) or_si16vector (sint16 *X, long ncl, long nch, sint16 *Y, sint16  *Z); | 
|---|
| 53 | IMAGE_EXPORT(void) or_ui16vector (uint16 *X, long ncl, long nch, uint16 *Y, uint16  *Z); | 
|---|
| 54 | IMAGE_EXPORT(void) or_si32vector (sint32 *X, long ncl, long nch, sint32 *Y, sint32  *Z); | 
|---|
| 55 | IMAGE_EXPORT(void) or_ui32vector (uint32 *X, long ncl, long nch, uint32 *Y, uint32  *Z); | 
|---|
| 56 | IMAGE_EXPORT(void) or_si64vector (sint64 *X, long ncl, long nch, sint64 *Y, sint64  *Z); | 
|---|
| 57 | IMAGE_EXPORT(void) or_ui64vector (uint64 *X, long ncl, long nch, uint64 *Y, uint64  *Z); | 
|---|
| 58 | IMAGE_EXPORT(void) or_rgb8vector (rgb8   *X, long ncl, long nch, rgb8   *Y, rgb8    *Z); | 
|---|
| 59 | IMAGE_EXPORT(void) or_rgbx8vector(rgbx8  *X, long ncl, long nch, rgbx8  *Y, rgbx8   *Z); | 
|---|
| 60 |  | 
|---|
| 61 | IMAGE_EXPORT(void) orc_bvector    (byte   *X, long ncl, long nch, byte   y, byte    *Z); | 
|---|
| 62 | IMAGE_EXPORT(void) orc_si8vector  (sint8  *X, long ncl, long nch, sint8  y, sint8   *Z); | 
|---|
| 63 | IMAGE_EXPORT(void) orc_ui8vector  (uint8  *X, long ncl, long nch, uint8  y, uint8   *Z); | 
|---|
| 64 | IMAGE_EXPORT(void) orc_si16vector (sint16 *X, long ncl, long nch, sint16 y, sint16  *Z); | 
|---|
| 65 | IMAGE_EXPORT(void) orc_ui16vector (uint16 *X, long ncl, long nch, uint16 y, uint16  *Z); | 
|---|
| 66 | IMAGE_EXPORT(void) orc_si32vector (sint32 *X, long ncl, long nch, sint32 y, sint32  *Z); | 
|---|
| 67 | IMAGE_EXPORT(void) orc_ui32vector (uint32 *X, long ncl, long nch, uint32 y, uint32  *Z); | 
|---|
| 68 | IMAGE_EXPORT(void) orc_si64vector (sint64 *X, long ncl, long nch, sint64 y, sint64  *Z); | 
|---|
| 69 | IMAGE_EXPORT(void) orc_ui64vector (uint64 *X, long ncl, long nch, uint64 y, uint64  *Z); | 
|---|
| 70 | IMAGE_EXPORT(void) orc_rgb8vector (rgb8   *X, long ncl, long nch, rgb8   y, rgb8    *Z); | 
|---|
| 71 | IMAGE_EXPORT(void) orc_rgbx8vector(rgbx8  *X, long ncl, long nch, rgbx8  y, rgbx8   *Z); | 
|---|
| 72 |  | 
|---|
| 73 | /* ----------- */ | 
|---|
| 74 | /* --- Xor --- */ | 
|---|
| 75 | /* ----------- */ | 
|---|
| 76 | /* Z = X ^ Y */ | 
|---|
| 77 |  | 
|---|
| 78 | IMAGE_EXPORT(void) xor_bvector    (byte   *X, long ncl, long nch, byte   *Y, byte    *Z); | 
|---|
| 79 | IMAGE_EXPORT(void) xor_si8vector  (sint8  *X, long ncl, long nch, sint8  *Y, sint8   *Z); | 
|---|
| 80 | IMAGE_EXPORT(void) xor_ui8vector  (uint8  *X, long ncl, long nch, uint8  *Y, uint8   *Z); | 
|---|
| 81 | IMAGE_EXPORT(void) xor_si16vector (sint16 *X, long ncl, long nch, sint16 *Y, sint16  *Z); | 
|---|
| 82 | IMAGE_EXPORT(void) xor_ui16vector (uint16 *X, long ncl, long nch, uint16 *Y, uint16  *Z); | 
|---|
| 83 | IMAGE_EXPORT(void) xor_si32vector (sint32 *X, long ncl, long nch, sint32 *Y, sint32  *Z); | 
|---|
| 84 | IMAGE_EXPORT(void) xor_ui32vector (uint32 *X, long ncl, long nch, uint32 *Y, uint32  *Z); | 
|---|
| 85 | IMAGE_EXPORT(void) xor_si64vector (sint64 *X, long ncl, long nch, sint64 *Y, sint64  *Z); | 
|---|
| 86 | IMAGE_EXPORT(void) xor_ui64vector (uint64 *X, long ncl, long nch, uint64 *Y, uint64  *Z); | 
|---|
| 87 | IMAGE_EXPORT(void) xor_rgb8vector (rgb8   *X, long ncl, long nch, rgb8   *Y, rgb8    *Z); | 
|---|
| 88 | IMAGE_EXPORT(void) xor_rgbx8vector(rgbx8  *X, long ncl, long nch, rgbx8  *Y, rgbx8   *Z); | 
|---|
| 89 |  | 
|---|
| 90 | IMAGE_EXPORT(void) xorc_bvector    (byte   *X, long ncl, long nch, byte   y, byte    *Z); | 
|---|
| 91 | IMAGE_EXPORT(void) xorc_si8vector  (sint8  *X, long ncl, long nch, sint8  y, sint8   *Z); | 
|---|
| 92 | IMAGE_EXPORT(void) xorc_ui8vector  (uint8  *X, long ncl, long nch, uint8  y, uint8   *Z); | 
|---|
| 93 | IMAGE_EXPORT(void) xorc_si16vector (sint16 *X, long ncl, long nch, sint16 y, sint16  *Z); | 
|---|
| 94 | IMAGE_EXPORT(void) xorc_ui16vector (uint16 *X, long ncl, long nch, uint16 y, uint16  *Z); | 
|---|
| 95 | IMAGE_EXPORT(void) xorc_si32vector (sint32 *X, long ncl, long nch, sint32 y, sint32  *Z); | 
|---|
| 96 | IMAGE_EXPORT(void) xorc_ui32vector (uint32 *X, long ncl, long nch, uint32 y, uint32  *Z); | 
|---|
| 97 | IMAGE_EXPORT(void) xorc_si64vector (sint64 *X, long ncl, long nch, sint64 y, sint64  *Z); | 
|---|
| 98 | IMAGE_EXPORT(void) xorc_ui64vector (uint64 *X, long ncl, long nch, uint64 y, uint64  *Z); | 
|---|
| 99 | IMAGE_EXPORT(void) xorc_rgb8vector (rgb8   *X, long ncl, long nch, rgb8   y, rgb8    *Z); | 
|---|
| 100 | IMAGE_EXPORT(void) xorc_rgbx8vector(rgbx8  *X, long ncl, long nch, rgbx8  y, rgbx8   *Z); | 
|---|
| 101 |  | 
|---|
| 102 | /* ----------- */ | 
|---|
| 103 | /* --- And --- */ | 
|---|
| 104 | /* ----------- */ | 
|---|
| 105 | /* Z = X & Y */ | 
|---|
| 106 |  | 
|---|
| 107 | IMAGE_EXPORT(void) and_bvector    (byte   *X, long ncl, long nch, byte   *Y, byte    *Z); | 
|---|
| 108 | IMAGE_EXPORT(void) and_si8vector  (sint8  *X, long ncl, long nch, sint8  *Y, sint8   *Z); | 
|---|
| 109 | IMAGE_EXPORT(void) and_ui8vector  (uint8  *X, long ncl, long nch, uint8  *Y, uint8   *Z); | 
|---|
| 110 | IMAGE_EXPORT(void) and_si16vector (sint16 *X, long ncl, long nch, sint16 *Y, sint16  *Z); | 
|---|
| 111 | IMAGE_EXPORT(void) and_ui16vector (uint16 *X, long ncl, long nch, uint16 *Y, uint16  *Z); | 
|---|
| 112 | IMAGE_EXPORT(void) and_si32vector (sint32 *X, long ncl, long nch, sint32 *Y, sint32  *Z); | 
|---|
| 113 | IMAGE_EXPORT(void) and_ui32vector (uint32 *X, long ncl, long nch, uint32 *Y, uint32  *Z); | 
|---|
| 114 | IMAGE_EXPORT(void) and_si64vector (sint64 *X, long ncl, long nch, sint64 *Y, sint64  *Z); | 
|---|
| 115 | IMAGE_EXPORT(void) and_ui64vector (uint64 *X, long ncl, long nch, uint64 *Y, uint64  *Z); | 
|---|
| 116 | IMAGE_EXPORT(void) and_rgb8vector (rgb8   *X, long ncl, long nch, rgb8   *Y, rgb8    *Z); | 
|---|
| 117 | IMAGE_EXPORT(void) and_rgbx8vector(rgbx8  *X, long ncl, long nch, rgbx8  *Y, rgbx8   *Z); | 
|---|
| 118 |  | 
|---|
| 119 | IMAGE_EXPORT(void) andc_bvector    (byte   *X, long ncl, long nch, byte   y, byte    *Z); | 
|---|
| 120 | IMAGE_EXPORT(void) andc_si8vector  (sint8  *X, long ncl, long nch, sint8  y, sint8   *Z); | 
|---|
| 121 | IMAGE_EXPORT(void) andc_ui8vector  (uint8  *X, long ncl, long nch, uint8  y, uint8   *Z); | 
|---|
| 122 | IMAGE_EXPORT(void) andc_si16vector (sint16 *X, long ncl, long nch, sint16 y, sint16  *Z); | 
|---|
| 123 | IMAGE_EXPORT(void) andc_ui16vector (uint16 *X, long ncl, long nch, uint16 y, uint16  *Z); | 
|---|
| 124 | IMAGE_EXPORT(void) andc_si32vector (sint32 *X, long ncl, long nch, sint32 y, sint32  *Z); | 
|---|
| 125 | IMAGE_EXPORT(void) andc_ui32vector (uint32 *X, long ncl, long nch, uint32 y, uint32  *Z); | 
|---|
| 126 | IMAGE_EXPORT(void) andc_si64vector (sint64 *X, long ncl, long nch, sint64 y, sint64  *Z); | 
|---|
| 127 | IMAGE_EXPORT(void) andc_ui64vector (uint64 *X, long ncl, long nch, uint64 y, uint64  *Z); | 
|---|
| 128 | IMAGE_EXPORT(void) andc_rgb8vector (rgb8   *X, long ncl, long nch, rgb8   y, rgb8    *Z); | 
|---|
| 129 | IMAGE_EXPORT(void) andc_rgbx8vector(rgbx8  *X, long ncl, long nch, rgbx8  y, rgbx8   *Z); | 
|---|
| 130 |  | 
|---|
| 131 |  | 
|---|
| 132 | #ifdef __cplusplus | 
|---|
| 133 | } | 
|---|
| 134 | #endif | 
|---|
| 135 |  | 
|---|
| 136 | #endif // _NR_BOOL1_H_ | 
|---|