Archiving a CIImage
Archiving a CIImage
- Subject: Archiving a CIImage
- From: Martin Redington <email@hidden>
- Date: Mon, 12 Mar 2007 16:11:58 +0000
I have a CIImage that was obtained from an sequence grabber. I would
like to encapsulate this in an NSData object, and send this over the
network to another computer, for display.
I noticed that CIImage implements NSCoding, so I tried calling
NSData *data = [NSKeyedArchiver archivedDataWithRootObject:ciImage];
However, when I unarchive the NSData on the other side, and either
try and render the CIImage into an NSCoreImageView, or to convert it
into an NSImage, I get a crash.
I know that the original CIImage is fine, because I can render it
locally with no problem.
If I convert the CIImage into a NSImage before sending, and then
archive and despatch the NSImage, that works fine (but sucks CPU).
Should I be able to archive the CIImage and unarchive and use it
elsewhere?
If not, is there any efficient way to convert from the CIImage to a
portable representation.
cheers,
m.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden