mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
fda05a3622
imgcodecs: fix Apple conversions build without AVFoundation #29138 Fixes #28553. This PR fixes Apple imgcodecs conversion builds when AVFoundation is disabled or unavailable on older macOS SDKs. Changes: - Guard AVFoundation import with HAVE_AVFOUNDATION. - Use older macOS-compatible framework imports when ImageIO is unavailable. - Add __bridge compatibility for older Objective-C++ compilers. - Use NSMakeSize for older macOS instead of passing CGSize to NSImage API. Testing: - Not tested locally: no macOS environment available. - Patch follows the fix confirmed in #28555 discussion.