• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Archiving a CIImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Adding bindings to a NSView descendant
  • Next by Date: Re: Adding bindings to a NSView descendant
  • Previous by thread: Re: Adding bindings to a NSView descendant
  • Next by thread: Weird app window behavior on PowerPC-based Mac
  • Index(es):
    • Date
    • Thread