Skip to content

Commit 2b2bcc9

Browse files
committed
Merge pull request opencv#17304 from chrisballinger:maccatalyst
2 parents de720ac + d81ac52 commit 2b2bcc9

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

modules/imgcodecs/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ file(GLOB imgcodecs_ext_hdrs
105105

106106
if(IOS)
107107
list(APPEND imgcodecs_srcs ${CMAKE_CURRENT_LIST_DIR}/src/ios_conversions.mm)
108-
list(APPEND IMGCODECS_LIBRARIES "-framework Accelerate" "-framework CoreGraphics" "-framework QuartzCore" "-framework AssetsLibrary")
108+
list(APPEND IMGCODECS_LIBRARIES "-framework Accelerate" "-framework CoreGraphics" "-framework QuartzCore")
109109
endif()
110110
if(APPLE_FRAMEWORK)
111111
list(APPEND IMGCODECS_LIBRARIES "-framework UIKit")

modules/videoio/src/cap_avfoundation.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ - (IplImage*)getOutput;
383383
[mCaptureDecompressedVideoOutput setVideoSettings:pixelBufferOptions];
384384
mCaptureDecompressedVideoOutput.alwaysDiscardsLateVideoFrames = YES;
385385

386-
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
386+
#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) && !TARGET_OS_MACCATALYST
387387
mCaptureDecompressedVideoOutput.minFrameDuration = CMTimeMake(1, 30);
388388
#endif
389389

modules/videoio/src/cap_ios_abstract_camera.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,13 @@ - (void)createVideoPreviewLayer;
299299
}
300300
else
301301
{
302+
#if !TARGET_OS_MACCATALYST
302303
// Deprecated in 6.0; here for backward compatibility
303304
if ([self.captureVideoPreviewLayer isOrientationSupported])
304305
{
305306
[self.captureVideoPreviewLayer setOrientation:self.defaultAVCaptureVideoOrientation];
306307
}
308+
#endif
307309
}
308310

309311
if (parentView != nil) {

0 commit comments

Comments
 (0)