mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
commit
5874bce144
@ -824,7 +824,7 @@ CvCaptureFile::CvCaptureFile(const char* filename) {
|
|||||||
|
|
||||||
// Available since iOS 15
|
// Available since iOS 15
|
||||||
#if TARGET_OS_VISION || (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 150000)
|
#if TARGET_OS_VISION || (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 150000)
|
||||||
if (@available(iOS 15, visionOS 1, *)) {
|
if (@available(iOS 15, *)) {
|
||||||
[mAsset loadTracksWithMediaType:AVMediaTypeVideo completionHandler:^(NSArray<AVAssetTrack *>* tracks, NSError* err) {
|
[mAsset loadTracksWithMediaType:AVMediaTypeVideo completionHandler:^(NSArray<AVAssetTrack *>* tracks, NSError* err) {
|
||||||
if (err != nil) {
|
if (err != nil) {
|
||||||
handleTracks(tracks, filename);
|
handleTracks(tracks, filename);
|
||||||
@ -1311,7 +1311,7 @@ CvVideoWriter_AVFoundation::CvVideoWriter_AVFoundation(const char* filename, int
|
|||||||
#if TARGET_OS_VISION || (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)
|
#if TARGET_OS_VISION || (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)
|
||||||
}else if(fourcc == CV_FOURCC('H','2','6','5') || fourcc == CV_FOURCC('h','v','c','1') ||
|
}else if(fourcc == CV_FOURCC('H','2','6','5') || fourcc == CV_FOURCC('h','v','c','1') ||
|
||||||
fourcc == CV_FOURCC('H','E','V','C') || fourcc == CV_FOURCC('h','e','v','c')){
|
fourcc == CV_FOURCC('H','E','V','C') || fourcc == CV_FOURCC('h','e','v','c')){
|
||||||
if (@available(iOS 11, visionOS 1, *)) {
|
if (@available(iOS 11, *)) {
|
||||||
codec = [AVVideoCodecTypeHEVC copy];
|
codec = [AVVideoCodecTypeHEVC copy];
|
||||||
} else {
|
} else {
|
||||||
codec = [AVVideoCodecTypeH264 copy];
|
codec = [AVVideoCodecTypeH264 copy];
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
<string>iPhoneOS</string>
|
<string>iPhoneOS</string>
|
||||||
</array>
|
</array>
|
||||||
<key>MinimumOSVersion</key>
|
<key>MinimumOSVersion</key>
|
||||||
<string>8.0</string>
|
<string>${IPHONEOS_DEPLOYMENT_TARGET}</string>
|
||||||
<key>UIDeviceFamily</key>
|
<key>UIDeviceFamily</key>
|
||||||
<array>
|
<array>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
|
Loading…
Reference in New Issue
Block a user