calling accelerate framework

Mac OSX specific forum
mrbungle
Enthusiast
Enthusiast
Posts: 112
Joined: Wed Dec 30, 2020 3:18 am

calling accelerate framework

Post by mrbungle »

I came across this bit of code from the forum and got a compile error (says its not found) when running on Big Sur (it worked in Catalina):

Code: Select all

ImportC "/System/Library/Frameworks/Accelerate.framework/Accelerate"
  vImageUnpremultiplyData_RGBA8888 (*src, *dest, flags)
EndImport
Is there a different way of calling it on Big Sur?

Thank you.
mrbungle
Enthusiast
Enthusiast
Posts: 112
Joined: Wed Dec 30, 2020 3:18 am

Re: calling accelerate framework

Post by mrbungle »

Never mind. I tried:

Code: Select all

ImportC "-framework Accelerate"
And it worked correctly.
Post Reply