Alexander Alekhin
7dfe68cac6
imgcodecs: lazy on-demand codecs initialization
2020-09-13 11:14:56 +00:00
Florian Jung
f66fc199a2
Fix build of grfmt_jpeg2000.cpp
...
libjasper has recently changed `jas_matrix_get` from a macro to an inline function
(389951d071 in https://github.com/jasper-software/jasper ), causing the build to fail.
2020-07-30 19:23:52 +02:00
Alexander Alekhin
3f13339071
Merge pull request #17728 from sturkmen72:patch-4
2020-07-06 23:01:27 +00:00
Maksim Shabunin
e8129429e9
imgcodecs: fix test build with disabled JPEG and PNG libs
2020-07-06 14:52:52 +03:00
Suleyman TURKMEN
2566d13100
Update documentation of imwrite()
2020-07-06 11:02:50 +03:00
okamotoR
0e69cddda2
add if block for indexed color images
2020-06-23 21:36:47 +09:00
Chris Ballinger
d81ac52ce2
Remove linking against AssetsLibrary framework
2020-05-16 12:47:50 -07:00
tpoisonooo
b11a3a0820
Update grfmt_pxm.cpp
...
remove comment in .ppm
2020-04-11 17:41:51 +03:00
Alexander Alekhin
6d85fa3fd2
imgcodecs(test): rework common I/O test, added grayscale mode
2020-03-27 21:34:51 +00:00
Alexander Alekhin
e9655cf646
Merge pull request #16697 from alalek:imgcodecs_jpeg_drop_unnecessary_code
2020-03-06 19:03:43 +00:00
Alexander Alekhin
4a39b12a78
imgcodecs(jpeg): drop unnecessary code
...
- standard huffman tables are handled by modern libjpeg-turbo
2020-02-28 18:55:14 +03:00
jshiwam
1f48940a93
bug fix to Inconsistent comment for EXIF issue id #15706 stream added final
...
removed all the changes occured while trying to resolve conflicts
2020-02-28 15:01:17 +05:30
Collin Brake
d4a28f3bf6
improved documentation for imread()
2020-02-07 08:54:34 -05:00
Collin Brake
3cc07a4411
improved documentation for IMREAD_UNCHANGED flag
2020-02-06 17:49:14 -05:00
Omar Hassan
8dd0fd8a13
If applied, this commit will describe permission denied message in imwrite_ function when user does not have write permission
2020-02-05 22:23:10 +05:00
Ganesh Kathiresan
80ade96c8c
Merge pull request #16309 from ganesh-k13:bugfix/imdecode-resize
...
* Added flag handlers for imread and imdecode | Issue 16203
Undo imread change
Added Imread resize tests
Added imdecode flags check
Added imdecode tests for resize
Removed trailing whitespace
Removed IMREAD_IGNORE_ORIENTATION check
Added else condition
Removed IMREAD_IGNORE_ORIENTATION check in decode
Added HAVE_JPEG guards
Added static_cast for Win32
Added resize for non jpegs
Added tests for non jpeg resize case
Fixed resize value in assert
Changed tests to Value-Parameterized Tests
Changed tests to Value-Parameterized Tests | handled >> in cpp
Changed tests to Value-Parameterized Tests | removed trailing whitespace
* imgcodecs: update test
2020-01-20 14:00:45 +03:00
Janusz Lisiecki
178c4810e6
Fix swapped channels in BGR* conversion utility function
...
- some of `icvCvt_BGR*` functions have R with B channels
swapped what leads to the wrong conversion
- renames misleading `rgb` variable name to `bgr`
- swap back the conversion coefficients, `cB` should be the first
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
2020-01-05 00:06:36 +01:00
Alexander Alekhin
f8b16fa293
Merge pull request #16188 from saskatchewancatch:issue-13551
2019-12-18 10:30:35 +00:00
Rajkiran Natarajan
af04b422c9
Change program type in hdr format files to modern value: RADIANCE so
...
modern readers that expect RADIANCE will read it
2019-12-17 20:17:32 -08:00
Alexander Alekhin
d1c35e7b61
imgcodecs(bmp): make happy UBSAN with enum value range check
2019-12-13 18:51:46 +03:00
Suleyman TURKMEN
d88d1c9935
Update loadsave.cpp
2019-09-28 23:24:17 +03:00
Alexander Alekhin
ad2854c8b3
imgcodecs: add check image.empty() in imwrite()/imencode()
2019-09-22 10:45:00 +00:00
luz.paz
fcc7d8dd4e
Fix modules/ typos
...
Found using `codespell -q 3 -S ./3rdparty -L activ,amin,ang,atleast,childs,dof,endwhile,halfs,hist,iff,nd,od,uint`
backporting of commit: ec43292e1e
2019-08-16 17:34:29 +03:00
yaohai [姚海]
cadb4dee14
fix exif bug
2019-08-05 16:41:07 +03:00
Alexander Alekhin
eedbd1ad59
imgcodecs: force reshaping of imdecode() input into a single row
...
OpenCV upstream stuff may reinterpret vector as column.
2019-07-06 10:11:29 +00:00
Alexander Alekhin
db7f689728
imgcodecs(tiff): add more checks
...
backporting of commit: f6230ae019
2019-06-11 19:22:24 +00:00
Alexander Alekhin
d2f9cfcf81
Merge pull request #14760 from ChipKerchner:3.4
2019-06-09 17:43:02 +00:00
Alexander Alekhin
02bfd20760
imgcodecs(test): add OpenEXR I/O test
2019-06-08 21:30:26 +00:00
Chip Kerchner Chip.Kerchner@ibm.com
058367f34c
Rewrite code in BGR2Gray functions so that auto vectorizer does a better job.
2019-06-07 11:48:05 -05:00
Alexander Alekhin
94ec0e9b74
Merge pull request #14724 from asashour:typos
2019-06-06 10:01:03 +00:00
Alexander Alekhin
a2445c44cb
imgcodecs: sanitize PAM decoding
...
backporting of commit: 76fca0e755
2019-06-05 18:12:43 +03:00
Ahmed Ashour
1aca1d582e
Fix some typos
2019-06-05 12:24:13 +02:00
Alexander Alekhin
d73261844e
Merge pull request #14622 from asashour:junit
2019-05-27 14:55:45 +00:00
Ahmed Ashour
f9564e053d
java: test: use assertNotNull and assertFalse
2019-05-24 10:45:09 +02:00
Jan Starzynski
fb9c083a51
handle all orientations properly
2019-05-23 16:51:25 +02:00
Alexander Alekhin
f7856a0f35
imgcodecs(tiff): update tile size checks
...
backporting of commit: 25247b9f6e
2019-04-21 18:36:39 +00:00
Alexander Alekhin
0d747daf47
cmake: use absolute library paths from 'pkgconfig'
...
- drop legacy check_module() macro
- drop 'ALIASOF_'
2019-04-15 22:11:49 +00:00
Alexander Alekhin
0c490accae
imgcodecs(tiff): check TIFF tile size
...
oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13280
oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13283
2019-04-05 18:13:15 +03:00
Alexander Alekhin
ba5ddd6499
imgcodecs(tiff): sanitize tiff decoder
...
- more checks
- drop separate branches for 32FC1/32FC3(read) handling
- added for 32F/64F non-compressed
- added tests for 32FC3 (RAW + hdr SGILOG compression)
- added test 64FC1
- dump tiff errors on stderr
2019-04-04 14:16:53 +03:00
Alexander Alekhin
c4ec46c195
imgcodecs(sunras): avoid undefined shift
...
backporting of commit: f2803aba07
2019-04-02 18:38:01 +03:00
Alexander Alekhin
7d2118e324
Merge pull request #14223 from alalek:backport_14201
2019-04-02 14:33:57 +00:00
Alexander Alekhin
341e2fa72d
Merge pull request #14214 from alalek:backport_14202
2019-04-01 14:39:25 +00:00
Alexander Alekhin
2ece029fe0
imgcodecs(tiff): avoid leak of helper struct on malformed inputs
...
backporting of commit: 45428b897f
2019-04-01 14:08:40 +00:00
Alexander Alekhin
6dfb6a3016
imgcodecs: fix RBaseStream::setPos() outside of current block
...
Seeking outside of the current block doesn't update actual data,
so getByte()/etc will get wrong data from stalled buffer.
2019-03-31 12:55:32 +00:00
Alexander Alekhin
ccb89a889a
imgcodecs(bmp): limit size of processed images
...
2Gb+ images can't be handled properly by current implementation
backporting of commit: 50a6f9d251
2019-03-31 10:52:33 +00:00
Alexander Alekhin
43c68d1864
imgcodecs: OPENCV_IO_ENABLE_JASPER runtime parameter
2019-03-14 21:43:24 +00:00
rpici
9cca066ee8
Fix bug in test_tiff.cpp
...
The big endian data in the tiff_sample_data array was never being tested. This could be observed by e.g. changing the 9th byte in the big endian data from 0xde to something that should fail the test, e.g. 0xdd, and the test would still pass even though it should fail.
2019-03-13 09:42:47 -05:00
Rajkiran Natarajan
40af53b1d6
issue-13921: Support setting compression setting for writing tiff images
2019-03-09 15:48:21 -05:00
LaurentBerger
f1dc26d7ce
Merge pull request #13382 from LaurentBerger:imreadsize
...
* try to solve #13381
* Add note
2018-12-09 15:05:27 +03:00
Alexander Alekhin
b74b05d1b3
Revert CV_TRY/CV_CATCH macros
...
This reverts commit 7349b8f5ce
(partially).
2018-11-08 19:56:52 +03:00