Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When should a CIImage be considered infinite?



Quartz Composer is able to determine when a CIImage that results from a patch has infinite dimensions. I assumed that it was doing so by calling -[CIImage extent] and comparing the width and height to INFINITY, or use the isnan() macro... but as it turns out, the actual "infinite" coordinates for my CIImages are:

x -170141173319264429905852091742258462720.000000 (0xFEFFFFFF)
y -170141173319264429905852091742258462720.000000 (0xFEFFFFFF)
width 340282346638528859811704183484516925440.000000 (0x7F7FFFFF) == MAXFLOAT
height 340282346638528859811704183484516925440.000000 (0x7F7FFFFF) == MAXFLOAT


Is it safe to always compare against MAXFLOAT then?

Thx
Gabe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.