This file is indexed.

/usr/share/gtk-doc/html/libvips/libvips-boolean.html is in libvips-doc 7.26.3-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>boolean</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="VIPS Reference Manual">
<link rel="up" href="ch02.html" title="VIPS operation API by section">
<link rel="prev" href="libvips-arithmetic.html" title="arithmetic">
<link rel="next" href="libvips-relational.html" title="relational">
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libvips-arithmetic.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">VIPS Reference Manual</th>
<td><a accesskey="n" href="libvips-relational.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libvips-boolean.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libvips-boolean.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="libvips-boolean"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libvips-boolean.top_of_page"></a>boolean</span></h2>
<p>boolean — boolean algebra on images, bitshifts</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libvips-boolean.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="libvips-boolean.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;vips/vips.h&gt;

<span class="returnvalue">int</span>                 <a class="link" href="libvips-boolean.html#im-andimage" title="im_andimage ()">im_andimage</a>                         (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in1</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in2</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="libvips-boolean.html#im-orimage" title="im_orimage ()">im_orimage</a>                          (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in1</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in2</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="libvips-boolean.html#im-eorimage" title="im_eorimage ()">im_eorimage</a>                         (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in1</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in2</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="libvips-boolean.html#im-andimage-vec" title="im_andimage_vec ()">im_andimage_vec</a>                     (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *c</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="libvips-boolean.html#im-andimageconst" title="im_andimageconst ()">im_andimageconst</a>                    (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> c</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="libvips-boolean.html#im-orimage-vec" title="im_orimage_vec ()">im_orimage_vec</a>                      (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *c</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="libvips-boolean.html#im-orimageconst" title="im_orimageconst ()">im_orimageconst</a>                     (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> c</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="libvips-boolean.html#im-eorimage-vec" title="im_eorimage_vec ()">im_eorimage_vec</a>                     (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *c</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="libvips-boolean.html#im-eorimageconst" title="im_eorimageconst ()">im_eorimageconst</a>                    (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> c</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="libvips-boolean.html#im-shiftleft-vec" title="im_shiftleft_vec ()">im_shiftleft_vec</a>                    (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *c</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="libvips-boolean.html#im-shiftleft" title="im_shiftleft ()">im_shiftleft</a>                        (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="libvips-boolean.html#im-shiftright-vec" title="im_shiftright_vec ()">im_shiftright_vec</a>                   (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *c</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="libvips-boolean.html#im-shiftright" title="im_shiftright ()">im_shiftright</a>                       (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libvips-boolean.description"></a><h2>Description</h2>
<p>
These operations perform boolean operations, such as bitwise-and, on
every pixel in an image or pair of images. 
They are useful for combining the results of
the relational and morphological functions.
All will work with 
images of any type or any mixture of types, of any size and of any number 
of bands.
</p>
<p>
For binary operations, if the number of bands differs, one of the images 
must have one band. In this case, an n-band image is formed from the 
one-band image by joining n copies of the one-band image together and then
the two n-band images are operated upon.
</p>
<p>
In the same way, for operations that take an array constant, such as 
<a class="link" href="libvips-boolean.html#im-andimage-vec" title="im_andimage_vec ()"><code class="function">im_andimage_vec()</code></a>, you can mix single-element arrays or single-band images
freely.
</p>
<p>
If the images differ in size, the smaller image is enlarged to match the
larger by adding zero pixels along the bottom and right.
</p>
<p>
The output type is the same as the input type for integer types. Float and
complex types are cast to signed int.
</p>
<p>
You might think <a class="link" href="libvips-boolean.html#im-andimage" title="im_andimage ()"><code class="function">im_andimage()</code></a> would be called "im_and", but that causes
problems when we try and make a C++ binding and drop the "im_" prefix.
</p>
</div>
<div class="refsect1">
<a name="libvips-boolean.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="im-andimage"></a><h3>im_andimage ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 im_andimage                         (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in1</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in2</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>);</pre>
<p>
This operation calculates <em class="parameter"><code>in1</code></em> &amp; <em class="parameter"><code>in2</code></em> and writes the result to <em class="parameter"><code>out</code></em>. 
The images may have any format. They may differ
in their number of bands, see above. They may differ in size, see above.
</p>
<p>
See also: <a class="link" href="libvips-boolean.html#im-orimage" title="im_orimage ()"><code class="function">im_orimage()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in1</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span> 1</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>in2</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span> 2</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>output <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-orimage"></a><h3>im_orimage ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 im_orimage                          (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in1</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in2</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>);</pre>
<p>
This operation calculates <em class="parameter"><code>in1</code></em> | <em class="parameter"><code>in2</code></em> and writes the result to <em class="parameter"><code>out</code></em>. 
The images may have any format. They may differ
in their number of bands, see above. They may differ in size, see above.
</p>
<p>
See also: <a class="link" href="libvips-boolean.html#im-eorimage" title="im_eorimage ()"><code class="function">im_eorimage()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in1</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span> 1</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>in2</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span> 2</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>output <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-eorimage"></a><h3>im_eorimage ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 im_eorimage                         (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in1</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in2</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>);</pre>
<p>
This operation calculates <em class="parameter"><code>in1</code></em> ^ <em class="parameter"><code>in2</code></em> and writes the result to <em class="parameter"><code>out</code></em>. 
The images may have any format. They may differ
in their number of bands, see above. They may differ in size, see above.
</p>
<p>
See also: <a class="link" href="libvips-boolean.html#im-eorimage-vec" title="im_eorimage_vec ()"><code class="function">im_eorimage_vec()</code></a>, <a class="link" href="libvips-boolean.html#im-andimage" title="im_andimage ()"><code class="function">im_andimage()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in1</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span> 1</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>in2</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span> 2</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>output <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-andimage-vec"></a><h3>im_andimage_vec ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 im_andimage_vec                     (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *c</code></em>);</pre>
<p>
This operation calculates <em class="parameter"><code>in</code></em> &amp; <em class="parameter"><code>c</code></em> (bitwise and of image pixels with array
<em class="parameter"><code>c</code></em>) and writes the result to <em class="parameter"><code>out</code></em>. 
</p>
<p>
See also: <a class="link" href="libvips-boolean.html#im-andimage" title="im_andimage ()"><code class="function">im_andimage()</code></a>, <a class="link" href="libvips-boolean.html#im-orimage-vec" title="im_orimage_vec ()"><code class="function">im_orimage_vec()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span> 1</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>output <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td>
<td>array length</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
<td>array of constants</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-andimageconst"></a><h3>im_andimageconst ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 im_andimageconst                    (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> c</code></em>);</pre>
<p>
This operation calculates <em class="parameter"><code>in</code></em> &amp; <em class="parameter"><code>c</code></em> (bitwise and of image pixels with
constant
<em class="parameter"><code>c</code></em>) and writes the result to <em class="parameter"><code>out</code></em>. 
</p>
<p>
See also: <a class="link" href="libvips-boolean.html#im-andimage" title="im_andimage ()"><code class="function">im_andimage()</code></a>, <a class="link" href="libvips-boolean.html#im-orimage-vec" title="im_orimage_vec ()"><code class="function">im_orimage_vec()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span> 1</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>output <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
<td>constant</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-orimage-vec"></a><h3>im_orimage_vec ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 im_orimage_vec                      (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *c</code></em>);</pre>
<p>
This operation calculates <em class="parameter"><code>in</code></em> | <em class="parameter"><code>c</code></em> (bitwise or of image pixels with array
<em class="parameter"><code>c</code></em>) and writes the result to <em class="parameter"><code>out</code></em>. 
</p>
<p>
See also: <a class="link" href="libvips-boolean.html#im-andimage" title="im_andimage ()"><code class="function">im_andimage()</code></a>, <a class="link" href="libvips-boolean.html#im-orimageconst" title="im_orimageconst ()"><code class="function">im_orimageconst()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span> 1</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>output <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td>
<td>array length</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
<td>array of constants</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-orimageconst"></a><h3>im_orimageconst ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 im_orimageconst                     (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> c</code></em>);</pre>
<p>
This operation calculates <em class="parameter"><code>in</code></em> | <em class="parameter"><code>c</code></em> (bitwise or of image pixels with
constant
<em class="parameter"><code>c</code></em>) and writes the result to <em class="parameter"><code>out</code></em>. 
</p>
<p>
See also: <a class="link" href="libvips-boolean.html#im-andimage" title="im_andimage ()"><code class="function">im_andimage()</code></a>, <a class="link" href="libvips-boolean.html#im-orimage-vec" title="im_orimage_vec ()"><code class="function">im_orimage_vec()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span> 1</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>output <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
<td>constant</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-eorimage-vec"></a><h3>im_eorimage_vec ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 im_eorimage_vec                     (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *c</code></em>);</pre>
<p>
This operation calculates <em class="parameter"><code>in</code></em> ^ <em class="parameter"><code>c</code></em> (bitwise exclusive-or of image pixels 
with array
<em class="parameter"><code>c</code></em>) and writes the result to <em class="parameter"><code>out</code></em>. 
</p>
<p>
See also: <a class="link" href="libvips-boolean.html#im-andimage" title="im_andimage ()"><code class="function">im_andimage()</code></a>, <a class="link" href="libvips-boolean.html#im-orimageconst" title="im_orimageconst ()"><code class="function">im_orimageconst()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span> 1</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>output <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td>
<td>array length</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
<td>array of constants</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-eorimageconst"></a><h3>im_eorimageconst ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 im_eorimageconst                    (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> c</code></em>);</pre>
<p>
This operation calculates <em class="parameter"><code>in</code></em> ^ <em class="parameter"><code>c</code></em> (bitwise exclusive-or of image pixels 
with
constant
<em class="parameter"><code>c</code></em>) and writes the result to <em class="parameter"><code>out</code></em>. 
</p>
<p>
See also: <a class="link" href="libvips-boolean.html#im-andimage" title="im_andimage ()"><code class="function">im_andimage()</code></a>, <a class="link" href="libvips-boolean.html#im-orimage-vec" title="im_orimage_vec ()"><code class="function">im_orimage_vec()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span> 1</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>output <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
<td>constant</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-shiftleft-vec"></a><h3>im_shiftleft_vec ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 im_shiftleft_vec                    (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *c</code></em>);</pre>
<p>
This operation calculates <em class="parameter"><code>in</code></em> &lt;&lt; <em class="parameter"><code>c</code></em> (left-shift by <em class="parameter"><code>c</code></em> bits
with array
<em class="parameter"><code>c</code></em>) and writes the result to <em class="parameter"><code>out</code></em>. 
</p>
<p>
See also: <a class="link" href="libvips-boolean.html#im-andimage" title="im_andimage ()"><code class="function">im_andimage()</code></a>, <a class="link" href="libvips-boolean.html#im-orimageconst" title="im_orimageconst ()"><code class="function">im_orimageconst()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>output <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td>
<td>array length</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
<td>array of constants</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-shiftleft"></a><h3>im_shiftleft ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 im_shiftleft                        (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>);</pre>
<p>
This operation calculates <em class="parameter"><code>in</code></em> &lt;&lt; <em class="parameter"><code>n</code></em> (left-shift by <em class="parameter"><code>n</code></em> bits)
and writes the result to <em class="parameter"><code>out</code></em>. 
</p>
<p>
See also: <a class="link" href="libvips-boolean.html#im-andimage" title="im_andimage ()"><code class="function">im_andimage()</code></a>, <a class="link" href="libvips-boolean.html#im-orimageconst" title="im_orimageconst ()"><code class="function">im_orimageconst()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>output <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td>
<td>constant</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-shiftright-vec"></a><h3>im_shiftright_vec ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 im_shiftright_vec                   (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *c</code></em>);</pre>
<p>
This operation calculates <em class="parameter"><code>in</code></em> &lt;&lt; <em class="parameter"><code>c</code></em> (right-shift by <em class="parameter"><code>c</code></em> bits
with array
<em class="parameter"><code>c</code></em>) and writes the result to <em class="parameter"><code>out</code></em>. 
</p>
<p>
See also: <a class="link" href="libvips-boolean.html#im-andimage" title="im_andimage ()"><code class="function">im_andimage()</code></a>, <a class="link" href="libvips-boolean.html#im-orimageconst" title="im_orimageconst ()"><code class="function">im_orimageconst()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>output <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td>
<td>array length</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
<td>array of constants</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-shiftright"></a><h3>im_shiftright ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 im_shiftright                       (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>);</pre>
<p>
This operation calculates <em class="parameter"><code>in</code></em> &gt;&gt; <em class="parameter"><code>n</code></em> (right-shift by <em class="parameter"><code>n</code></em> bits)
and writes the result to <em class="parameter"><code>out</code></em>. 
</p>
<p>
See also: <a class="link" href="libvips-boolean.html#im-andimage" title="im_andimage ()"><code class="function">im_andimage()</code></a>, <a class="link" href="libvips-boolean.html#im-orimageconst" title="im_orimageconst ()"><code class="function">im_orimageconst()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>output <span class="type">IMAGE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td>
<td>constant</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on error</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="libvips-boolean.see-also"></a><h2>See Also</h2>
<a class="link" href="libvips-arithmetic.html" title="arithmetic">arithmetic</a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.17</div>
</body>
</html>