Fixed jpeg-turbo diagnostics and build options in default configuration.#25388
Fixed jpeg-turbo diagnostics and build options in default configuration.#25388asmorkalov merged 1 commit intoopencv:4.xfrom
Conversation
|
@asmorkalov, can you maybe provide imread() performance numbers before and after your patch? to make sure that the change fixes the problem |
|
Yes, I'm working on it right now. |
|
Platform: AMD Ryzen 7 2700X, 64g GB RAM. The test was done in OpenCV-Python build container (mamylinux2014 based) to reproduce package build settings. |
| endif() | ||
|
|
||
| OCV_OPTION(ENABLE_LIBJPEG_TURBO_SIMD "Include SIMD extensions for libjpeg-turbo, if available for this platform" (NOT CV_DISABLE_OPTIMIZATION) | ||
| VISIBLE_IF BUILD_JPEG) |
There was a problem hiding this comment.
Maybe we should add BUILD_JPEG_TURBO variable instead and check it here? Currently logic is not very obvious, i.e. in order to disable own JPEG library users must provide BUILD_JPEG=OFF and BUILD_JPEG_TURBO_DISABLE=ON.
|
The PR has been discussed on the Core team meeting. Decided to merge as is without modifications for now to presume backward compatibility with existing scripts. Also BUILD_XXX variables are not set automatically for JPEG and some other 3rdparties. It's need to be fixed with dedicated PR. |
cmake /opencv.Before:
After:
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.