opencv/modules
Letu Ren 4546f40d8b Refine logic of parsing PNG version
Currently, if `PNG_FOUND`, cmake scripts will check include and parse
header while we can use `PNG_VERSION_STRING` conveniently. If
`BUILD_PNG`, parse version from `PNG_LIBPNG_VER_STRING` directly is more
convenient than parsing major, minor and patch and concatenate them.

The comment of png.h also supports this.
```
/* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
```
https://github.com/glennrp/libpng/blob/libpng16/png.h#L287

This patch also modifies `ocv_parse_header_version` macro to receive
another parameter to make it more general.

The reason why changing `PNG_VERSION` to `PNG_VERSION_STRING` is to be
consistent with cmake's FindPNG.

This patch removes `HAVE_LIBPNG_PNG_H` variable because `PNG_INCLUDE_DIR`
is where to find png.h, etc according to
https://cmake.org/cmake/help/latest/module/FindPNG.html.

This patch also removes `PNG_PNG_INCLUDE_DIR` variable which is an
advanced variable used in cmake's FindPNG and is not used in opencv.
2023-12-23 16:01:42 +08:00
..
calib3d Merge pull request #24546 from thewoz:checkerboard 2023-12-20 18:01:39 +03:00
core OCL: fix incompatibility with Mali ruintime 2023-12-21 00:30:44 +03:00
dnn Merge pull request #24747 from asmorkalov:as/tune_vitb_cuda 2023-12-22 17:04:46 +03:00
features2d Added Java bindings for BOWImgDescriptorExtractor constructor. 2023-10-31 11:23:47 +03:00
flann Merge pull request #23109 from seanm:misc-warnings 2023-10-06 13:33:21 +03:00
gapi Merge pull request #24576 from AsyaPronina:ot_to_python 2023-12-20 15:26:01 +03:00
highgui Update window_QT.cpp 2023-11-13 12:10:52 +03:00
imgcodecs Refine logic of parsing PNG version 2023-12-23 16:01:42 +08:00
imgproc ocl: fix kernels compilation 2023-12-21 14:29:23 +00:00
java Merge pull request #24685 from AleksandrPanov:fix_build_grandle 2023-12-12 09:11:22 +03:00
js Merge pull request #24458 from laolaolulu:4.x 2023-11-13 14:51:20 +03:00
ml Merge pull request #23109 from seanm:misc-warnings 2023-10-06 13:33:21 +03:00
objc Merge pull request #24136 from komakai:visionos_support 2023-12-20 15:35:10 +03:00
objdetect Get code to compile without DNN 2023-12-08 10:54:59 +01:00
photo Merge pull request #23109 from seanm:misc-warnings 2023-10-06 13:33:21 +03:00
python Enabled VAS OT in G-API Python interface 2023-12-19 17:51:59 +00:00
stitching fix: supress GCC13 warnings (#24434) 2023-10-26 09:00:58 +03:00
ts Merge pull request #23109 from seanm:misc-warnings 2023-10-06 13:33:21 +03:00
video Merge pull request #24461 from fengyuentau:tracker_vit_backend_target 2023-10-27 14:12:44 +03:00
videoio Merge pull request #24136 from komakai:visionos_support 2023-12-20 15:35:10 +03:00
world cmake: use /INCREMENTAL:NO with MSVS 2015 2023-12-07 19:46:27 +00:00