Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
CIImage image = CIImage.FromImageBuffer ( sampleBuffer.GetImageBuffer () );
<Error>: +[CIImage imageWithCVImageBuffer:options:]: unrecognized selector sent to class 0x3f4944d0
IOS 5.0 Documentation:
Creates and returns an image object from the contents of CVPixelBuffer object.
+ (CIImage *)imageWithCVPixelBuffer:(CVPixelBufferRef)buffer
A CVPixelBuffer object.
An image object initialized with the contents of the image buffer object.
Available in iOS 5.0 and later.
It looks like 'imageWithCVImageBuffer' exists in Mac OSX, while 'imageWithCVPixelBuffer' exists in iOS5.
I have this fixed in 'master' but I can get you an updated monotouch.dll based on 5.0.1 if this can help you. Interested ?
Created attachment 813 [details]
updated monotouch.dll (for testing)
To use the attached assembly (on top of MonoTouch 5.0.1) do:
1) backup your /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll and /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll.mdb files
2) copy the attached file to /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll
3) remove the /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll.mdb symbols (they won't match anymore)
4) clean, rebuild and test your application
If you test it please let me know if it solved your issue :)
Thank you for the fast support, this works now, but please have a look at the cast:
CIImage image = CIImage.FromImageBuffer ( (CVPixelBuffer)sampleBuffer.GetImageBuffer() );
GetImageBuffer obviously returns an instance of CVPixelBuffer. IMHO the following would be more elegant for IOS:
CIImage image = CIImage.FromPixelBuffer ( sampleBuffer.GetPixelBuffer() );
I had doubts, naming-wise. According to Apple iOS documentation CMSampleBuffer can return a CVImageBuffer (or a CVPixelBuffer) under iOS too - so renaming that part would not be right.
It also makes it harder to share code between OSX and iOS.
I have considered renaming them to GetBuffer and FromBuffer... maybe I could do that and mark the old (OSX) ones as [Obsolete]