File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ file(GLOB imgcodecs_ext_hdrs
105
105
106
106
if (IOS )
107
107
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" )
109
109
endif ()
110
110
if (APPLE_FRAMEWORK )
111
111
list (APPEND IMGCODECS_LIBRARIES "-framework UIKit" )
Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ - (IplImage*)getOutput;
383
383
[mCaptureDecompressedVideoOutput setVideoSettings: pixelBufferOptions];
384
384
mCaptureDecompressedVideoOutput .alwaysDiscardsLateVideoFrames = YES ;
385
385
386
- #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
386
+ #if ( TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) && !TARGET_OS_MACCATALYST
387
387
mCaptureDecompressedVideoOutput .minFrameDuration = CMTimeMake (1 , 30 );
388
388
#endif
389
389
Original file line number Diff line number Diff line change @@ -299,11 +299,13 @@ - (void)createVideoPreviewLayer;
299
299
}
300
300
else
301
301
{
302
+ #if !TARGET_OS_MACCATALYST
302
303
// Deprecated in 6.0; here for backward compatibility
303
304
if ([self .captureVideoPreviewLayer isOrientationSupported ])
304
305
{
305
306
[self .captureVideoPreviewLayer setOrientation: self .defaultAVCaptureVideoOrientation];
306
307
}
308
+ #endif
307
309
}
308
310
309
311
if (parentView != nil ) {
You can’t perform that action at this time.
0 commit comments