gpt4 book ai didi

ios - 在 Xamarin.iOS 中实现 AVCapturePhotoCaptureDelegate

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:30:14 27 4
gpt4 key购买 nike

我已尝试实现 AVCapturePhotoCaptureDelegate在针对 iOS 11 的 Xamarin.iOS 中,但我还没有找到一个有效的例子。

大多数示例使用缓冲区实现已弃用的方法,但目前唯一支持的方法是:

void DidFinishProcessingPhoto(AVCapturePhotoOutput output,
AVCapturePhoto photo, Foundation.NSError error);

我找到了一些针对 iOS 11 的更新教程,但他们通常建议使用 AVCapturePhoto.fileDataRepresentation method ,但由于某种原因,这在 Xamarin 中似乎不可用。

能否请您指出如何从 AVCapturePhoto 检索 JPEG 和 RAW 数据的方向?在 Xamarin 中?

更新

我检查了 Apple documentation对于 AVCapturePhoto似乎Xamarin.iOS class缺少许多其他成员,例如 bracketSettings , 但只有 imageRepresentation相关方法实际上代码中没有。

我将非常感谢对此原因的解释,因为如果没有数据表示方法,似乎没有任何方便的方法来检索 UIImage来自 AVCapturePhoto除了使用已弃用的委托(delegate)方法。

最佳答案

这是为 Xcode 9.3 支持/里程碑计划的开放错误/问题:

回复:https://github.com/xamarin/xamarin-macios/blob/4da8016db4330bde0a09b4a5453a26427ca6685d/tests/xtro-sharpie/iOS-AVFoundation.ignore

!missing-selector! +AVCapturePhotoBracketSettings::photoBracketSettingsWithRawPixelFormatType:rawFileType:processedFormat:processedFileType:bracketedSettings: not bound
!missing-selector! AVCapturePhoto::fileDataRepresentationWithReplacementMetadata:replacementEmbeddedThumbnailPhotoFormat:replacementEmbeddedThumbnailPixelBuffer:replacementDepthData: not bound
!missing-selector! AVCapturePhotoOutput::availableLivePhotoVideoCodecTypes not bound
!missing-selector! AVCapturePhotoOutput::isCameraCalibrationDataDeliverySupported not bound
!missing-selector! AVCapturePhotoOutput::isDualCameraDualPhotoDeliveryEnabled not bound
!missing-selector! AVCapturePhotoOutput::isDualCameraDualPhotoDeliverySupported not bound
!missing-selector! AVCapturePhotoOutput::setDualCameraDualPhotoDeliveryEnabled: not bound
!missing-selector! AVCaptureResolvedPhotoSettings::embeddedThumbnailDimensions not bound
!missing-selector! AVCaptureResolvedPhotoSettings::expectedPhotoCount not bound

关于ios - 在 Xamarin.iOS 中实现 AVCapturePhotoCaptureDelegate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48842931/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com