Charles Li
84f315db6c
Update tesseract.1.asc
...
Minor typo in options section for --user-patterns
2018-07-02 13:27:45 -07:00
Stefan Weil
cbd7b15788
Remove unneeded macro definition for M_PI
...
There is already one in platform.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 21:59:16 +02:00
zdenop
a0291c7651
Merge pull request #1727 from stweil/pi
...
Replace macro PI by macro M_PI
2018-07-02 21:53:39 +02:00
Stefan Weil
f7b61891bc
Replace macro PI by macro M_PI
...
One definition for pi is sufficient.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 21:26:53 +02:00
zdenop
c323312c17
Merge pull request #1725 from stweil/doerror
...
Replace Efopen by fopen and remove efio.cpp, efio.h
2018-07-02 20:53:28 +02:00
zdenop
2227474331
Merge pull request #1726 from stweil/rand
...
Remove unused function long_rand
2018-07-02 20:51:21 +02:00
Stefan Weil
3840a769d6
Remove unused function long_rand
...
Remove also some old comments.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 20:11:42 +02:00
Stefan Weil
b57afc7c78
Replace Efopen by fopen and remove efio.cpp, efio.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 17:46:28 +02:00
zdenop
909af5d978
Merge pull request #1724 from stweil/float
...
Replace FLOAT32 by float data type and remove MAX_FLOAT32, MIN_FLOAT32
2018-07-02 13:57:16 +02:00
Stefan Weil
faae87beaa
Replace FLOAT32 by float data type
...
On most systems float is the IEEE 754 single-precision binary
floating-point format (32 bits). Tesseract does not support other systems.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 13:29:39 +02:00
Stefan Weil
f6c3c8cf4d
Replace MAX_FLOAT32 by standard FLT_MAX and remove unused MIN_FLOAT32
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 13:29:39 +02:00
zdenop
7ec337d9b8
Merge pull request #1723 from stweil/double
...
Replace FLOAT64 by double data type
2018-07-02 09:45:07 +02:00
Stefan Weil
919901eb19
Replace FLOAT64 by double data type
...
On most systems double is the IEEE 754 double-precision binary
floating-point format (64 bits). Tesseract does not support other systems.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 08:07:37 +02:00
zdenop
1a181a3150
Merge pull request #1722 from stweil/cov
...
Fix several issues reported by Coverity Scan
2018-07-01 21:03:42 +02:00
Stefan Weil
abbd78a053
Fix CID 1340271, 1340272, 1340273, 1340274 (Use after free)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 20:18:39 +02:00
Stefan Weil
52b44c5ebf
Fix CID 1164530 (Logically dead code)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 20:01:56 +02:00
Stefan Weil
57970443b4
Fix CID 1393661 (Arguments in wrong order)
...
It did not cause a problem as both arguments were 0.
Update also the function prototype of HistogramRectOCL to
accept a void pointer which allows removing a type cast.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:40:44 +02:00
Stefan Weil
09da044a77
Fix CID 1164553 (Division or modulo by float zero)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:27:01 +02:00
Stefan Weil
1b303e5d37
Fix CID 1393662 Resource leak
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:27:01 +02:00
Stefan Weil
d3c4642d8f
Fix CID 1393662 (Resource leak)
2018-07-01 19:27:01 +02:00
Stefan Weil
98758fb300
opencl: Use std::vector and clean code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:27:01 +02:00
Stefan Weil
53795a88b5
Fix CID 1158180 Argument cannot be negative
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:18:32 +02:00
Egor Pugin
13ec8a7444
Merge pull request #1720 from stweil/clang-format
...
Update rules for clang-format
2018-07-01 12:01:14 +03:00
Egor Pugin
a67dc13207
Merge pull request #1721 from stweil/pdfrenderer
...
pdfrenderer: Fix ClipBaseline and optimize code
2018-07-01 12:01:00 +03:00
Stefan Weil
6801085376
pdfrenderer: Fix ClipBaseline and optimize code
...
The division was made with integers, giving a wrong result.
* Avoid division and use pure integer operations.
* Add missing "static" attribute.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 08:33:56 +02:00
Stefan Weil
1011e001d8
Update rules for clang-format
...
Add indentation of preprocessor directives.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 08:11:22 +02:00
zdenop
a414443fc4
Merge pull request #1719 from stweil/cov-baseapi
...
Fix issues reported by Coverity Scan for baseapi
2018-07-01 08:10:54 +02:00
Stefan Weil
e8e94d372c
Fix CID 1340287 (Unchecked return value)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 07:54:11 +02:00
Stefan Weil
a49b8f1d21
Fix CID 1297960 (Dereference after null check)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 07:54:11 +02:00
Stefan Weil
86eb4dfcdc
Fix CID 1164646 (Uninitialized pointer field)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 07:54:11 +02:00
zdenop
b970fae201
Merge pull request #1559 from stweil/autoconf
...
Remove autoconf-archive dependency
2018-07-01 07:45:40 +02:00
Stefan Weil
6b250b5812
Remove autoconf-archive dependency
...
It creates much confusion and causes many issue reports,
so let us drop this dependency.
The two new files in the m4/ directory are current copies from GitHub
(https://github.com/autoconf-archive/autoconf-archive/ ).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 22:23:22 +02:00
zdenop
5b14121449
Merge pull request #1718 from stweil/opencl
...
Format OpenCL code
2018-06-30 20:14:04 +02:00
Stefan Weil
de072cc01e
Format OpenCL code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 18:32:53 +02:00
Egor Pugin
5bb0661858
Merge pull request #1716 from stweil/cov
...
Fix some issues in cjkpitch.cpp and in OpenCL code (reported by Coverity Scan)
2018-06-30 17:43:39 +03:00
Egor Pugin
ad5df5bc5b
Merge pull request #1717 from stweil/cov-java
...
Fix CID 1386106 (Explicit null dereferenced)
2018-06-30 17:43:00 +03:00
Stefan Weil
368fa189d1
Fix CID 1386106 (Explicit null dereferenced)
...
Handle also the case when the user closes the dialog
without selecting an answer.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 16:29:49 +02:00
Stefan Weil
740a821c76
Fix CID 1393673 (Ignoring number of bytes read)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:25:09 +02:00
Stefan Weil
075dc984e9
Fix CID 1393671 (Uninitialized scalar variable)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:10:25 +02:00
Stefan Weil
8f33d10bfb
Fix CID 1393670 (Resource leak)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:10:16 +02:00
Stefan Weil
12a601fffa
Fix CID 1393669 (Resource leak)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:21 +02:00
Stefan Weil
1de55c8604
Fix CID 1393668 (Uninitialized scalar variable)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:21 +02:00
Stefan Weil
1e1f35cd5c
Fix CID 1393667 (Copy into fixed size buffer)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:21 +02:00
Stefan Weil
85794ca188
Fix CID 1393666 (Big parameter passed by value)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:21 +02:00
Stefan Weil
3d2f73503e
Fix CID 1393665 (Uninitialized scalar variable)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:21 +02:00
Stefan Weil
a95917a6a4
Fix CID 1393664 (Uninitialized scalar variable)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:21 +02:00
Stefan Weil
c9737c7f93
Fix CID 1393663 (Big parameter passed by value)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:20 +02:00
Stefan Weil
53596f7837
Fix CID 1393662 (Resource leak)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:19 +02:00
Stefan Weil
fcff2f2ce2
Fix CID 1242849 (Unused value)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 11:46:19 +02:00
Stefan Weil
eabd10d8f2
Fix CID 1158180 (Argument cannot be negative) and clean code a bit
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 11:41:41 +02:00