Re: sending continues NSImage data to iPhone
Re: sending continues NSImage data to iPhone
- Subject: Re: sending continues NSImage data to iPhone
- From: Andrew Farmer <email@hidden>
- Date: Fri, 29 May 2009 00:34:59 -0700
On 28 May 2009, at 06:31, sheen mac wrote:
I am doing a screen sharing app for iPhone and Mac.I captured the
Mac Screen as NSImage using OpenGL and send it to iPod as Gif data.
But sending and restoring to UIImage process make delay because of
Image size.The image size of capture is 320 x 388.
Is any better way available for compressing the Image data?.
Yes, there are a number of better compression algorithms out there.
(See [1] for a comprehensive list.) However, you will find it
impossible to write a screen sharing application which works in the
way you're proposing - in order to make it use a reasonable amount of
bandwidth, you'll need to limit it to transferring changing regions of
the screen, rather than the whole thing every time. You can do this
using the Quartz Display Services API (CGRegisterScreenRefreshCallback
et. al).
You may also want to look at the Quartz Window Services (CGWindow) API
for taking screenshots. It's supposed to be considerably faster than
the old OpenGL method, as well as more flexible.
[1]: http://en.wikipedia.org/wiki/Comparison_of_graphics_file_formats
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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