Can you not just change the return value depending on the y position in the filter? Something like:

return y<pos1?
        (formula 1) :
        y<pos2?
        (formula 2):
        y<pos3?
        (formula 3) : (formula 4);
At least that's how I tend to do this kind of thing.. although I seem to remember conditionals being somewhat more limited in core image, so you have to plan a bit.


He was wanting to avoid the ternary operator, since it can force the filter to run in software mode. :/

That said, At this point, I'm all for "Just pick a stinking plan already" and then profile to see what needs to be accelerated. The Perfect is the enemy of the Good.

--
[ christopher wright ]
[email protected]
http://kineme.net/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to