• 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
Re: CoreAnimation: image is too large
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreAnimation: image is too large


  • Subject: Re: CoreAnimation: image is too large
  • From: David Duncan <email@hidden>
  • Date: Thu, 1 Oct 2009 14:31:54 -0700

On Oct 1, 2009, at 1:55 PM, Gabriel Zachmann wrote:

I am using Core Animation to display some images.

Is there an easy way to find out the following information?

1.
Query the properties GL_MAX_TEXTURE_SIZE and GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB from the current OpenGL context that Core Animation
must have acquired somewhere.
Well, it would suffice if I could get CA's current OpenGL context.

You can't get CA's GL context, so doing this directly is out (you could query all the hardware on the system if you wanted and use the min size of them all).


2. Find out the dimensions of an image on the disk, *before* actually loading it into memory.

This should be possible both via ImageIO and NSImage.

The reason is that I occasionally get an error message saying
"CoreAnimation: X by Y image is too large for GPU, ignoring".

Are you on 10.5? On 10.6 Core Animation will break images up for you so you should see this far less often (usually only when the image is impossibly large).


If #1 is not easily achievable, then I guess I could hard-wire the size to 2048x2048 for the moment. It's just not elegant.

This is actually more typical than you think :). -- David Duncan Apple DTS Animation and Printing

_______________________________________________

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


References: 
 >CoreAnimation: image is too large (From: Gabriel Zachmann <email@hidden>)

  • Prev by Date: Re: Bad stardardUserDeafaults
  • Next by Date: Re: NSValueTransformer problem with NSTextField update
  • Previous by thread: CoreAnimation: image is too large
  • Next by thread: IB webview oddity/question...
  • Index(es):
    • Date
    • Thread