-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbardecode_8c.html
627 lines (566 loc) · 46.4 KB
/
bardecode_8c.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Leptonica: src/bardecode.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<script type="text/javascript">
function hasClass(ele,cls) {
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}
function addClass(ele,cls) {
if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}
function removeClass(ele,cls) {
if (hasClass(ele,cls)) {
var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
ele.className=ele.className.replace(reg,' ');
}
}
function toggleVisibility(linkObj) {
var base = linkObj.getAttribute('id');
var summary = document.getElementById(base + '-summary');
var content = document.getElementById(base + '-content');
var trigger = document.getElementById(base + '-trigger');
if ( hasClass(linkObj,'closed') ) {
summary.style.display = 'none';
content.style.display = 'block';
trigger.src = 'open.png';
removeClass(linkObj,'closed');
addClass(linkObj,'opened');
} else if ( hasClass(linkObj,'opened') ) {
summary.style.display = 'block';
content.style.display = 'none';
trigger.src = 'closed.png';
removeClass(linkObj,'opened');
addClass(linkObj,'closed');
}
return false;
}
</script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="moller52-tiny.jpg"></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Leptonica <span id="projectnumber">1.68</span></div>
<div id="projectbrief">C Image Processing Library</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
<li id="searchli">
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
initNavTree('bardecode_8c.html','');
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#define-members">Defines</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<h1>bardecode.c File Reference</h1> </div>
</div>
<div class="contents">
<p>Decode barcodes after sequence of widths is found.
<a href="#_details">More...</a></p>
<div class="textblock"><code>#include <stdio.h></code><br/>
<code>#include <stdlib.h></code><br/>
<code>#include <string.h></code><br/>
<code>#include "<a class="el" href="allheaders_8h_source.html">allheaders.h</a>"</code><br/>
<code>#include "<a class="el" href="readbarcode_8h_source.html">readbarcode.h</a>"</code><br/>
</div>
<p><a href="bardecode_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="bardecode_8c.html#ab4b704931212061eb5f9b8c3149a4286">DEBUG_CODES</a>   0</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="bardecode_8c.html#a2a19a8608eb82f67316dbcb394883246">barcodeFindFormat</a> (char *barstr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="bardecode_8c.html#af9bd089586e18139560f22e9b8a97413">barcodeVerifyFormat</a> (char *barstr, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> format, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> *pvalid, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> *preverse)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static char * </td><td class="memItemRight" valign="bottom"><a class="el" href="bardecode_8c.html#adaac4e478c512e6c7a0e76eaa9f49b6b">barcodeDecode2of5</a> (char *barstr, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> debugflag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static char * </td><td class="memItemRight" valign="bottom"><a class="el" href="bardecode_8c.html#a06d0c6509b1846f4f8f2c1508627d2d6">barcodeDecodeI2of5</a> (char *barstr, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> debugflag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static char * </td><td class="memItemRight" valign="bottom"><a class="el" href="bardecode_8c.html#af62159776012bb43d4a2313a3d487fe9">barcodeDecode93</a> (char *barstr, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> debugflag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static char * </td><td class="memItemRight" valign="bottom"><a class="el" href="bardecode_8c.html#a8a81ac7bdd9f8ee2b132926f8fc7a4cc">barcodeDecode39</a> (char *barstr, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> debugflag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static char * </td><td class="memItemRight" valign="bottom"><a class="el" href="bardecode_8c.html#a1a27b92e8d4e3bc4e5f2bef0ab2fd393">barcodeDecodeCodabar</a> (char *barstr, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> debugflag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static char * </td><td class="memItemRight" valign="bottom"><a class="el" href="bardecode_8c.html#a80728d8e22fae6d4fa758b0e320e122f">barcodeDecodeUpca</a> (char *barstr, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> debugflag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static char * </td><td class="memItemRight" valign="bottom"><a class="el" href="bardecode_8c.html#af3c623d2c3b8718bdb9aa19371c3919e">barcodeDecodeEan13</a> (char *barstr, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> first, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> debugflag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="bardecode_8c.html#a938cd0be5104765e5c6bc7625580f080">barcodeDispatchDecoder</a> (char *barstr, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> format, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> debugflag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="bardecode_8c.html#af373697803c55e6ed25a1235ac80f5e7">barcodeFormatIsSupported</a> (<a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> format)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Decode barcodes after sequence of widths is found. </p>
<div class="fragment"><pre class="fragment"> Dispatcher
<span class="keywordtype">char</span> *<a class="code" href="bardecode_8c.html#a938cd0be5104765e5c6bc7625580f080">barcodeDispatchDecoder</a>()
Format Determination
static <a class="code" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> <a class="code" href="bardecode_8c.html#a2a19a8608eb82f67316dbcb394883246">barcodeFindFormat</a>()
<a class="code" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> <a class="code" href="bardecode_8c.html#af373697803c55e6ed25a1235ac80f5e7">barcodeFormatIsSupported</a>()
static <a class="code" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> <a class="code" href="bardecode_8c.html#af9bd089586e18139560f22e9b8a97413">barcodeVerifyFormat</a>()
Decode 2 of 5
static <span class="keywordtype">char</span> *<a class="code" href="bardecode_8c.html#adaac4e478c512e6c7a0e76eaa9f49b6b">barcodeDecode2of5</a>()
Decode Interleaved 2 of 5
static <span class="keywordtype">char</span> *<a class="code" href="bardecode_8c.html#a06d0c6509b1846f4f8f2c1508627d2d6">barcodeDecodeI2of5</a>()
Decode Code 93
static <span class="keywordtype">char</span> *<a class="code" href="bardecode_8c.html#af62159776012bb43d4a2313a3d487fe9">barcodeDecode93</a>()
Decode Code 39
static <span class="keywordtype">char</span> *<a class="code" href="bardecode_8c.html#a8a81ac7bdd9f8ee2b132926f8fc7a4cc">barcodeDecode39</a>()
Decode <a class="code" href="readbarcode_8h.html#a9430bbcd96a80ffac60b37ed0264deee">Codabar</a>
static <span class="keywordtype">char</span> *<a class="code" href="bardecode_8c.html#a1a27b92e8d4e3bc4e5f2bef0ab2fd393">barcodeDecodeCodabar</a>()
Decode UPC-A
static <span class="keywordtype">char</span> *<a class="code" href="bardecode_8c.html#a80728d8e22fae6d4fa758b0e320e122f">barcodeDecodeUpca</a>()
Decode EAN 13
static <span class="keywordtype">char</span> *<a class="code" href="bardecode_8c.html#af3c623d2c3b8718bdb9aa19371c3919e">barcodeDecodeEan13</a>()
</pre></div>
<p>Definition in file <a class="el" href="bardecode_8c_source.html">bardecode.c</a>.</p>
</div><hr/><h2>Define Documentation</h2>
<a class="anchor" id="ab4b704931212061eb5f9b8c3149a4286"></a><!-- doxytag: member="bardecode.c::DEBUG_CODES" ref="ab4b704931212061eb5f9b8c3149a4286" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define DEBUG_CODES   0</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="bardecode_8c_source.html#l00069">69</a> of file <a class="el" href="bardecode_8c_source.html">bardecode.c</a>.</p>
</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a2a19a8608eb82f67316dbcb394883246"></a><!-- doxytag: member="bardecode.c::barcodeFindFormat" ref="a2a19a8608eb82f67316dbcb394883246" args="(char *barstr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> barcodeFindFormat </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>barstr</em></td><td>)</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bardecode_8c.html#a2a19a8608eb82f67316dbcb394883246">barcodeFindFormat()</a></p>
<p>Input: barstr (of barcode widths, in set {1,2,3,4}) Return: format (for barcode), or L_BF_UNKNOWN if not recognized </p>
<p>Definition at line <a class="el" href="bardecode_8c_source.html#l00132">132</a> of file <a class="el" href="bardecode_8c_source.html">bardecode.c</a>.</p>
<p>References <a class="el" href="bardecode_8c_source.html#l00191">barcodeVerifyFormat()</a>, <a class="el" href="environ_8h_source.html#l00251">ERROR_INT</a>, <a class="el" href="readbarcode_8h_source.html#l00033">L_BF_UNKNOWN</a>, <a class="el" href="environ_8h_source.html#l00264">L_INFO_STRING</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="readbarcode_8h_source.html#l00068">NumSupportedBarcodeFormats</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, <a class="el" href="readbarcode_8h_source.html#l00050">SupportedBarcodeFormat</a>, and <a class="el" href="readbarcode_8h_source.html#l00059">SupportedBarcodeFormatName</a>.</p>
<p>Referenced by <a class="el" href="bardecode_8c_source.html#l00085">barcodeDispatchDecoder()</a>.</p>
</div>
</div>
<a class="anchor" id="af9bd089586e18139560f22e9b8a97413"></a><!-- doxytag: member="bardecode.c::barcodeVerifyFormat" ref="af9bd089586e18139560f22e9b8a97413" args="(char *barstr, l_int32 format, l_int32 *pvalid, l_int32 *preverse)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> barcodeVerifyFormat </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>barstr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>format</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> * </td>
<td class="paramname"><em>pvalid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> * </td>
<td class="paramname"><em>preverse</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bardecode_8c.html#af9bd089586e18139560f22e9b8a97413">barcodeVerifyFormat()</a></p>
<p>Input: barstr (of barcode widths, in set {1,2,3,4}) format (L_BF_CODEI2OF5, L_BF_CODE93, ...) &valid (<return> 0 if not valid, 1 and 2 if valid) &reverse (<optional return>=""> 1 if reversed; 0 otherwise) Return: 0 if OK, 1 on error</p>
<p>Notes: (1) If valid == 1, the barcode is of the given format in the forward order; if valid == 2, it is backwards. (2) If the barcode needs to be reversed to read it, and &reverse is provided, a 1 is put into . (3) Add to this as more formats are supported. </p>
<p>Definition at line <a class="el" href="bardecode_8c_source.html#l00191">191</a> of file <a class="el" href="bardecode_8c_source.html">bardecode.c</a>.</p>
<p>References <a class="el" href="readbarcode_8h_source.html#l00081">C25_START</a>, <a class="el" href="readbarcode_8h_source.html#l00082">C25_STOP</a>, <a class="el" href="readbarcode_8h_source.html#l00143">C39_START</a>, <a class="el" href="readbarcode_8h_source.html#l00144">C39_STOP</a>, <a class="el" href="readbarcode_8h_source.html#l00118">C93_START</a>, <a class="el" href="readbarcode_8h_source.html#l00119">C93_STOP</a>, <a class="el" href="readbarcode_8h_source.html#l00094">CI25_START</a>, <a class="el" href="readbarcode_8h_source.html#l00095">CI25_STOP</a>, <a class="el" href="readbarcode_8h_source.html#l00150">Codabar</a>, <a class="el" href="readbarcode_8h_source.html#l00074">Code2of5</a>, <a class="el" href="readbarcode_8h_source.html#l00125">Code39</a>, <a class="el" href="readbarcode_8h_source.html#l00101">Code93</a>, <a class="el" href="readbarcode_8h_source.html#l00088">CodeI2of5</a>, <a class="el" href="environ_8h_source.html#l00251">ERROR_INT</a>, <a class="el" href="environ_8h_source.html#l00216">FREE</a>, <a class="el" href="readbarcode_8h_source.html#l00042">L_BF_CODABAR</a>, <a class="el" href="readbarcode_8h_source.html#l00038">L_BF_CODE2OF5</a>, <a class="el" href="readbarcode_8h_source.html#l00040">L_BF_CODE39</a>, <a class="el" href="readbarcode_8h_source.html#l00041">L_BF_CODE93</a>, <a class="el" href="readbarcode_8h_source.html#l00039">L_BF_CODEI2OF5</a>, <a class="el" href="readbarcode_8h_source.html#l00037">L_BF_EAN13</a>, <a class="el" href="readbarcode_8h_source.html#l00043">L_BF_UPCA</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, <a class="el" href="utils_8c_source.html#l00964">stringReverse()</a>, <a class="el" href="readbarcode_8h_source.html#l00165">Upca</a>, <a class="el" href="readbarcode_8h_source.html#l00173">UPCA_MID</a>, <a class="el" href="readbarcode_8h_source.html#l00171">UPCA_START</a>, and <a class="el" href="readbarcode_8h_source.html#l00172">UPCA_STOP</a>.</p>
<p>Referenced by <a class="el" href="bardecode_8c_source.html#l00349">barcodeDecode2of5()</a>, <a class="el" href="bardecode_8c_source.html#l00631">barcodeDecode39()</a>, <a class="el" href="bardecode_8c_source.html#l00518">barcodeDecode93()</a>, <a class="el" href="bardecode_8c_source.html#l00710">barcodeDecodeCodabar()</a>, <a class="el" href="bardecode_8c_source.html#l00909">barcodeDecodeEan13()</a>, <a class="el" href="bardecode_8c_source.html#l00425">barcodeDecodeI2of5()</a>, <a class="el" href="bardecode_8c_source.html#l00794">barcodeDecodeUpca()</a>, and <a class="el" href="bardecode_8c_source.html#l00132">barcodeFindFormat()</a>.</p>
</div>
</div>
<a class="anchor" id="adaac4e478c512e6c7a0e76eaa9f49b6b"></a><!-- doxytag: member="bardecode.c::barcodeDecode2of5" ref="adaac4e478c512e6c7a0e76eaa9f49b6b" args="(char *barstr, l_int32 debugflag)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static char * barcodeDecode2of5 </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>barstr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>debugflag</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bardecode_8c.html#adaac4e478c512e6c7a0e76eaa9f49b6b">barcodeDecode2of5()</a></p>
<p>Input: barstr (of widths, in set {1, 2}) debugflag Return: data (string of digits), or null if none found or on error</p>
<p>Notes: (1) Ref: <a href="http://en.wikipedia.org/wiki/Two-out-of-five_code">http://en.wikipedia.org/wiki/Two-out-of-five_code</a> (Note: the codes given here are wrong!) <a href="http://morovia.com/education/symbology/code25.asp">http://morovia.com/education/symbology/code25.asp</a> (2) This is a very low density encoding for the 10 digits. Each digit is encoded with 5 black bars, of which 2 are wide and 3 are narrow. No information is carried in the spaces between the bars, which are all equal in width, represented by a "1" in our encoding. (3) The mapping from the sequence of five bar widths to the digit is identical to the mapping used by the interleaved 2 of 5 code. The start code is 21211, representing two wide bars and a narrow bar, and the interleaved "1" spaces are explicit. The stop code is 21112. For all codes (including start and stop), the trailing space "1" is implicit -- there is no reason to represent it in the Code2of5[] array. </p>
<p>Definition at line <a class="el" href="bardecode_8c_source.html#l00349">349</a> of file <a class="el" href="bardecode_8c_source.html">bardecode.c</a>.</p>
<p>References <a class="el" href="bardecode_8c_source.html#l00191">barcodeVerifyFormat()</a>, <a class="el" href="environ_8h_source.html#l00214">CALLOC</a>, <a class="el" href="readbarcode_8h_source.html#l00074">Code2of5</a>, <a class="el" href="array_8h_source.html#l00103">L_Bytea::data</a>, <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00179">FALSE</a>, <a class="el" href="environ_8h_source.html#l00216">FREE</a>, <a class="el" href="readbarcode_8h_source.html#l00038">L_BF_CODE2OF5</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, <a class="el" href="utils_8c_source.html#l00735">stringNew()</a>, <a class="el" href="utils_8c_source.html#l00964">stringReverse()</a>, and <a class="el" href="environ_8h_source.html#l00175">TRUE</a>.</p>
<p>Referenced by <a class="el" href="bardecode_8c_source.html#l00085">barcodeDispatchDecoder()</a>.</p>
</div>
</div>
<a class="anchor" id="a06d0c6509b1846f4f8f2c1508627d2d6"></a><!-- doxytag: member="bardecode.c::barcodeDecodeI2of5" ref="a06d0c6509b1846f4f8f2c1508627d2d6" args="(char *barstr, l_int32 debugflag)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static char * barcodeDecodeI2of5 </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>barstr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>debugflag</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bardecode_8c.html#a06d0c6509b1846f4f8f2c1508627d2d6">barcodeDecodeI2of5()</a></p>
<p>Input: barstr (of widths, in set {1, 2}) debugflag Return: data (string of digits), or null if none found or on error</p>
<p>Notes: (1) Ref: <a href="http://en.wikipedia.org/wiki/Interleaved_2_of_5">http://en.wikipedia.org/wiki/Interleaved_2_of_5</a> (2) This always encodes an even number of digits. The start code is 1111; the stop code is 211. </p>
<p>Definition at line <a class="el" href="bardecode_8c_source.html#l00425">425</a> of file <a class="el" href="bardecode_8c_source.html">bardecode.c</a>.</p>
<p>References <a class="el" href="bardecode_8c_source.html#l00191">barcodeVerifyFormat()</a>, <a class="el" href="environ_8h_source.html#l00214">CALLOC</a>, <a class="el" href="readbarcode_8h_source.html#l00088">CodeI2of5</a>, <a class="el" href="array_8h_source.html#l00103">L_Bytea::data</a>, <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00179">FALSE</a>, <a class="el" href="environ_8h_source.html#l00216">FREE</a>, <a class="el" href="readbarcode_8h_source.html#l00039">L_BF_CODEI2OF5</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, <a class="el" href="utils_8c_source.html#l00735">stringNew()</a>, <a class="el" href="utils_8c_source.html#l00964">stringReverse()</a>, and <a class="el" href="environ_8h_source.html#l00175">TRUE</a>.</p>
<p>Referenced by <a class="el" href="bardecode_8c_source.html#l00085">barcodeDispatchDecoder()</a>.</p>
</div>
</div>
<a class="anchor" id="af62159776012bb43d4a2313a3d487fe9"></a><!-- doxytag: member="bardecode.c::barcodeDecode93" ref="af62159776012bb43d4a2313a3d487fe9" args="(char *barstr, l_int32 debugflag)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static char * barcodeDecode93 </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>barstr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>debugflag</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bardecode_8c.html#af62159776012bb43d4a2313a3d487fe9">barcodeDecode93()</a></p>
<p>Input: barstr (of widths, in set {1, 2, 3, 4}) debugflag Return: data (string of digits), or null if none found or on error</p>
<p>Notes: (1) Ref: <a href="http://en.wikipedia.org/wiki/Code93">http://en.wikipedia.org/wiki/Code93</a> <a href="http://morovia.com/education/symbology/code93.asp">http://morovia.com/education/symbology/code93.asp</a> (2) Each symbol has 3 black and 3 white bars. The start and stop codes are 111141; the stop code then is terminated with a final (1) bar. (3) The last two codes are check codes. We are checking them for correctness, and issuing a warning on failure. Should probably not return any data on failure. </p>
<p>Definition at line <a class="el" href="bardecode_8c_source.html#l00518">518</a> of file <a class="el" href="bardecode_8c_source.html">bardecode.c</a>.</p>
<p>References <a class="el" href="bardecode_8c_source.html#l00191">barcodeVerifyFormat()</a>, <a class="el" href="readbarcode_8h_source.html#l00118">C93_START</a>, <a class="el" href="environ_8h_source.html#l00214">CALLOC</a>, <a class="el" href="readbarcode_8h_source.html#l00101">Code93</a>, <a class="el" href="readbarcode_8h_source.html#l00115">Code93Val</a>, <a class="el" href="array_8h_source.html#l00103">L_Bytea::data</a>, <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00179">FALSE</a>, <a class="el" href="environ_8h_source.html#l00216">FREE</a>, <a class="el" href="readbarcode_8h_source.html#l00041">L_BF_CODE93</a>, <a class="el" href="environ_8h_source.html#l00257">L_WARNING</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, <a class="el" href="utils_8c_source.html#l00735">stringNew()</a>, <a class="el" href="utils_8c_source.html#l00964">stringReverse()</a>, and <a class="el" href="environ_8h_source.html#l00175">TRUE</a>.</p>
<p>Referenced by <a class="el" href="bardecode_8c_source.html#l00085">barcodeDispatchDecoder()</a>.</p>
</div>
</div>
<a class="anchor" id="a8a81ac7bdd9f8ee2b132926f8fc7a4cc"></a><!-- doxytag: member="bardecode.c::barcodeDecode39" ref="a8a81ac7bdd9f8ee2b132926f8fc7a4cc" args="(char *barstr, l_int32 debugflag)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static char * barcodeDecode39 </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>barstr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>debugflag</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bardecode_8c.html#a8a81ac7bdd9f8ee2b132926f8fc7a4cc">barcodeDecode39()</a></p>
<p>Input: barstr (of widths, in set {1, 2}) debugflag Return: data (string of digits), or null if none found or on error</p>
<p>Notes: (1) Ref: <a href="http://en.wikipedia.org/wiki/Code39">http://en.wikipedia.org/wiki/Code39</a> <a href="http://morovia.com/education/symbology/code39.asp">http://morovia.com/education/symbology/code39.asp</a> (2) Each symbol has 5 black and 4 white bars. The start and stop codes are 121121211 (the asterisk) (3) This decoder was contributed by Roger Hyde. </p>
<p>Definition at line <a class="el" href="bardecode_8c_source.html#l00631">631</a> of file <a class="el" href="bardecode_8c_source.html">bardecode.c</a>.</p>
<p>References <a class="el" href="bardecode_8c_source.html#l00191">barcodeVerifyFormat()</a>, <a class="el" href="readbarcode_8h_source.html#l00143">C39_START</a>, <a class="el" href="environ_8h_source.html#l00214">CALLOC</a>, <a class="el" href="readbarcode_8h_source.html#l00125">Code39</a>, <a class="el" href="readbarcode_8h_source.html#l00140">Code39Val</a>, <a class="el" href="array_8h_source.html#l00103">L_Bytea::data</a>, <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00179">FALSE</a>, <a class="el" href="environ_8h_source.html#l00216">FREE</a>, <a class="el" href="readbarcode_8h_source.html#l00040">L_BF_CODE39</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, <a class="el" href="utils_8c_source.html#l00735">stringNew()</a>, <a class="el" href="utils_8c_source.html#l00964">stringReverse()</a>, and <a class="el" href="environ_8h_source.html#l00175">TRUE</a>.</p>
<p>Referenced by <a class="el" href="bardecode_8c_source.html#l00085">barcodeDispatchDecoder()</a>.</p>
</div>
</div>
<a class="anchor" id="a1a27b92e8d4e3bc4e5f2bef0ab2fd393"></a><!-- doxytag: member="bardecode.c::barcodeDecodeCodabar" ref="a1a27b92e8d4e3bc4e5f2bef0ab2fd393" args="(char *barstr, l_int32 debugflag)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static char * barcodeDecodeCodabar </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>barstr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>debugflag</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bardecode_8c.html#a1a27b92e8d4e3bc4e5f2bef0ab2fd393">barcodeDecodeCodabar()</a></p>
<p>Input: barstr (of widths, in set {1, 2}) debugflag Return: data (string of digits), or null if none found or on error</p>
<p>Notes: (1) Ref: <a href="http://en.wikipedia.org/wiki/Codabar">http://en.wikipedia.org/wiki/Codabar</a> <a href="http://morovia.com/education/symbology/codabar.asp">http://morovia.com/education/symbology/codabar.asp</a> (2) Each symbol has 4 black and 3 white bars. They represent the 10 digits, and optionally 6 other characters. The start and stop codes can be any of four (typically denoted A,B,C,D). </p>
<p>Definition at line <a class="el" href="bardecode_8c_source.html#l00710">710</a> of file <a class="el" href="bardecode_8c_source.html">bardecode.c</a>.</p>
<p>References <a class="el" href="bardecode_8c_source.html#l00191">barcodeVerifyFormat()</a>, <a class="el" href="environ_8h_source.html#l00214">CALLOC</a>, <a class="el" href="readbarcode_8h_source.html#l00150">Codabar</a>, <a class="el" href="readbarcode_8h_source.html#l00159">CodabarVal</a>, <a class="el" href="array_8h_source.html#l00103">L_Bytea::data</a>, <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00179">FALSE</a>, <a class="el" href="environ_8h_source.html#l00216">FREE</a>, <a class="el" href="readbarcode_8h_source.html#l00042">L_BF_CODABAR</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, <a class="el" href="utils_8c_source.html#l00735">stringNew()</a>, <a class="el" href="utils_8c_source.html#l00964">stringReverse()</a>, and <a class="el" href="environ_8h_source.html#l00175">TRUE</a>.</p>
<p>Referenced by <a class="el" href="bardecode_8c_source.html#l00085">barcodeDispatchDecoder()</a>.</p>
</div>
</div>
<a class="anchor" id="a80728d8e22fae6d4fa758b0e320e122f"></a><!-- doxytag: member="bardecode.c::barcodeDecodeUpca" ref="a80728d8e22fae6d4fa758b0e320e122f" args="(char *barstr, l_int32 debugflag)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static char * barcodeDecodeUpca </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>barstr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>debugflag</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bardecode_8c.html#a80728d8e22fae6d4fa758b0e320e122f">barcodeDecodeUpca()</a></p>
<p>Input: barstr (of widths, in set {1, 2, 3, 4}) debugflag Return: data (string of digits), or null if none found or on error</p>
<p>Notes: (1) Ref: <a href="http://en.wikipedia.org/wiki/UniversalProductCode">http://en.wikipedia.org/wiki/UniversalProductCode</a> <a href="http://morovia.com/education/symbology/upc-a.asp">http://morovia.com/education/symbology/upc-a.asp</a> (2) Each symbol has 2 black and 2 white bars, and encodes a digit. The start and stop codes are 111 and 111. There are a total of 30 black bars, encoding 12 digits in two sets of 6, with 2 black bars separating the sets. (3) The last digit is a check digit. We check for correctness, and issue a warning on failure. Should probably not return any data on failure. </p>
<p>Definition at line <a class="el" href="bardecode_8c_source.html#l00794">794</a> of file <a class="el" href="bardecode_8c_source.html">bardecode.c</a>.</p>
<p>References <a class="el" href="bardecode_8c_source.html#l00191">barcodeVerifyFormat()</a>, <a class="el" href="environ_8h_source.html#l00214">CALLOC</a>, <a class="el" href="array_8h_source.html#l00103">L_Bytea::data</a>, <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00179">FALSE</a>, <a class="el" href="environ_8h_source.html#l00216">FREE</a>, <a class="el" href="readbarcode_8h_source.html#l00043">L_BF_UPCA</a>, <a class="el" href="environ_8h_source.html#l00257">L_WARNING</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, <a class="el" href="utils_8c_source.html#l00735">stringNew()</a>, <a class="el" href="utils_8c_source.html#l00964">stringReverse()</a>, <a class="el" href="environ_8h_source.html#l00175">TRUE</a>, and <a class="el" href="readbarcode_8h_source.html#l00165">Upca</a>.</p>
<p>Referenced by <a class="el" href="bardecode_8c_source.html#l00085">barcodeDispatchDecoder()</a>.</p>
</div>
</div>
<a class="anchor" id="af3c623d2c3b8718bdb9aa19371c3919e"></a><!-- doxytag: member="bardecode.c::barcodeDecodeEan13" ref="af3c623d2c3b8718bdb9aa19371c3919e" args="(char *barstr, l_int32 first, l_int32 debugflag)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static char * barcodeDecodeEan13 </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>barstr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>first</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>debugflag</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bardecode_8c.html#af3c623d2c3b8718bdb9aa19371c3919e">barcodeDecodeEan13()</a></p>
<p>Input: barstr (of widths, in set {1, 2, 3, 4}) first (first digit: 0 - 9) debugflag Return: data (string of digits), or null if none found or on error</p>
<p>Notes: (1) Ref: <a href="http://en.wikipedia.org/wiki/UniversalProductCode">http://en.wikipedia.org/wiki/UniversalProductCode</a> <a href="http://morovia.com/education/symbology/ean-13.asp">http://morovia.com/education/symbology/ean-13.asp</a> (2) The encoding is essentially the same as UPC-A, except there are 13 digits in total, of which 12 are encoded by bars (as with UPC-A) and the 13th is a leading digit that determines the encoding of the next 6 digits, selecting each digit from one of two tables. encoded in the bars (as with UPC-A). If the first digit is 0, the encoding is identical to UPC-A. (3) As with UPC-A, the last digit is a check digit. (4) For now, we assume the first digit is input to this function. Eventually, we will read it by pattern matching.</p>
<p>TODO: fix this for multiple tables, depending on the value of </p>
<p>Definition at line <a class="el" href="bardecode_8c_source.html#l00909">909</a> of file <a class="el" href="bardecode_8c_source.html">bardecode.c</a>.</p>
<p>References <a class="el" href="bardecode_8c_source.html#l00191">barcodeVerifyFormat()</a>, <a class="el" href="environ_8h_source.html#l00214">CALLOC</a>, <a class="el" href="array_8h_source.html#l00103">L_Bytea::data</a>, <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00179">FALSE</a>, <a class="el" href="environ_8h_source.html#l00216">FREE</a>, <a class="el" href="readbarcode_8h_source.html#l00043">L_BF_UPCA</a>, <a class="el" href="environ_8h_source.html#l00257">L_WARNING</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, <a class="el" href="utils_8c_source.html#l00735">stringNew()</a>, <a class="el" href="utils_8c_source.html#l00964">stringReverse()</a>, <a class="el" href="environ_8h_source.html#l00175">TRUE</a>, and <a class="el" href="readbarcode_8h_source.html#l00165">Upca</a>.</p>
<p>Referenced by <a class="el" href="bardecode_8c_source.html#l00085">barcodeDispatchDecoder()</a>.</p>
</div>
</div>
<a class="anchor" id="a938cd0be5104765e5c6bc7625580f080"></a><!-- doxytag: member="bardecode.c::barcodeDispatchDecoder" ref="a938cd0be5104765e5c6bc7625580f080" args="(char *barstr, l_int32 format, l_int32 debugflag)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* barcodeDispatchDecoder </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>barstr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>format</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>debugflag</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bardecode_8c.html#a938cd0be5104765e5c6bc7625580f080">barcodeDispatchDecoder()</a></p>
<p>Input: barstr (string of integers in set {1,2,3,4} of bar widths) format (L_BF_ANY, L_BF_CODEI2OF5, L_BF_CODE93, ...) debugflag (use 1 to generate debug output) Return: data (string of decoded barcode data), or null on error </p>
<p>Definition at line <a class="el" href="bardecode_8c_source.html#l00085">85</a> of file <a class="el" href="bardecode_8c_source.html">bardecode.c</a>.</p>
<p>References <a class="el" href="bardecode_8c_source.html#l00349">barcodeDecode2of5()</a>, <a class="el" href="bardecode_8c_source.html#l00631">barcodeDecode39()</a>, <a class="el" href="bardecode_8c_source.html#l00518">barcodeDecode93()</a>, <a class="el" href="bardecode_8c_source.html#l00710">barcodeDecodeCodabar()</a>, <a class="el" href="bardecode_8c_source.html#l00909">barcodeDecodeEan13()</a>, <a class="el" href="bardecode_8c_source.html#l00425">barcodeDecodeI2of5()</a>, <a class="el" href="bardecode_8c_source.html#l00794">barcodeDecodeUpca()</a>, <a class="el" href="bardecode_8c_source.html#l00132">barcodeFindFormat()</a>, <a class="el" href="array_8h_source.html#l00103">L_Bytea::data</a>, <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00179">FALSE</a>, <a class="el" href="readbarcode_8h_source.html#l00034">L_BF_ANY</a>, <a class="el" href="readbarcode_8h_source.html#l00042">L_BF_CODABAR</a>, <a class="el" href="readbarcode_8h_source.html#l00038">L_BF_CODE2OF5</a>, <a class="el" href="readbarcode_8h_source.html#l00040">L_BF_CODE39</a>, <a class="el" href="readbarcode_8h_source.html#l00041">L_BF_CODE93</a>, <a class="el" href="readbarcode_8h_source.html#l00039">L_BF_CODEI2OF5</a>, <a class="el" href="readbarcode_8h_source.html#l00037">L_BF_EAN13</a>, <a class="el" href="readbarcode_8h_source.html#l00043">L_BF_UPCA</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, and <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>.</p>
<p>Referenced by <a class="el" href="readbarcode_8c_source.html#l00245">pixReadBarcodes()</a>.</p>
</div>
</div>
<a class="anchor" id="af373697803c55e6ed25a1235ac80f5e7"></a><!-- doxytag: member="bardecode.c::barcodeFormatIsSupported" ref="af373697803c55e6ed25a1235ac80f5e7" args="(l_int32 format)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> barcodeFormatIsSupported </td>
<td>(</td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>format</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bardecode_8c.html#af373697803c55e6ed25a1235ac80f5e7">barcodeFormatIsSupported()</a></p>
<p>Input: format Return: 1 if format is one of those supported; 0 otherwise </p>
<p>Definition at line <a class="el" href="bardecode_8c_source.html#l00162">162</a> of file <a class="el" href="bardecode_8c_source.html">bardecode.c</a>.</p>
<p>References <a class="el" href="readbarcode_8h_source.html#l00068">NumSupportedBarcodeFormats</a>, and <a class="el" href="readbarcode_8h_source.html#l00050">SupportedBarcodeFormat</a>.</p>
<p>Referenced by <a class="el" href="readbarcode_8c_source.html#l00124">pixProcessBarcodes()</a>, and <a class="el" href="readbarcode_8c_source.html#l00245">pixReadBarcodes()</a>.</p>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="bardecode_8c.html">bardecode.c</a> </li>
<li class="footer">Generated by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Defines</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</body>
</html>