Reputation: 1215
I am trying to get the image meta data which is in sample buffer, following is the code snippet:
stillImageOutput.CaptureStillImageAsynchronously (requiredConnection, (CMSampleBuffer imageDataSampleBuffer, NSError error) => {
//Retrieving the image
NSData imageData = AVCaptureStillImageOutput.JpegStillToNSData (imageDataSampleBuffer);
stillImage = new UIImage (imageData);
// Not able to get alternative for the following Code, need to get exif/orientation metadata of the image
// CFDictionaryRef exifAttachments = CMGetAttachment(imageSampleBuffer, kCGImagePropertyExifDictionary, NULL);
} );
Please be specific to Mono. Thanks
Upvotes: 0
Views: 757
Reputation: 1215
Thanks to Taylor for answering. Must say its not a very neat approach.
Leaving it unanswered incase a better approach is available...
Upvotes: 1