我正在尝试获取样本缓冲区中的图像元数据,以下是代码片段:
stillImageOutput.CaptureStillImageAsynchronously(requiredConnection,(CMSampleBuffer imageDataSampleBuffer,NSError 错误)=> {
//检索图像
NSData imageData = AVCaptureStillImageOutput.JpegStillToNSData (imageDataSampleBuffer);
stillImage = new UIImage (图像数据);
//无法获取以下代码的替代方法,需要获取图像的 exif/orientation 元数据
//CFDictionaryRef exifAttachments = CMGetAttachment(imageSampleBuffer, kCGImagePropertyExifDictionary, NULL); });
请具体到 Mono。 谢谢
最佳答案
关于ios - 无法从 CMSampleBuffer 获取图像元,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22024961/