1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

3rdparty: integrate OpenJPEG build to the OpenCV CMake

- adopted build scripts
- OpenJPEG build warnings are suppressed
This commit is contained in:
Vadim Levin
2020-08-25 13:11:08 +03:00
committed by Alexander Alekhin
parent 0c84b91dde
commit 0384eb7d8c
5 changed files with 130 additions and 443 deletions
@@ -558,7 +558,7 @@ bool Jpeg2KOpjDecoder::readHeader()
CV_Error(Error::StsNotImplemented, cv::format("OpenJPEG2000: Component %d/%d is duplicate alpha channel", i, numcomps));
}
hasAlpha |= (bool)comp.alpha;
hasAlpha |= comp.alpha != 0;
if (comp.prec > 64)
{