Posts

Post not yet marked as solved
9 Replies
Thanks Quinn, it finally works. Copying the logic from the swiftinterface for macOS I replaced viErr = vImagePiecewiseGamma_Planar8( &sourceVImageBuffer, &destinationVImageBuffer, expoCoeffs, gamma, linearCoeffs, boundary, kvImageNoFlags ); if (viErr == kvImageNoError) { CGImageRef newImgRef = vImageCreateCGImageFromBuffer( &destinationVImageBuffer, &invIFormat, nil, nil, kvImageNoFlags, &viErr ); with vImage_Buffer bufSrc; vImage_Buffer bufDest; bufSrc.data = sourceVImageBuffer.data; bufSrc.width = sourceVImageBuffer.width * img_bPP / img_bPC; bufSrc.height = sourceVImageBuffer.height; bufSrc.rowBytes = sourceVImageBuffer.rowBytes; bufDest.data = destinationVImageBuffer.data; bufDest.width = destinationVImageBuffer.width * img_bPP / img_bPC; bufDest.height = destinationVImageBuffer.height; bufDest.rowBytes = destinationVImageBuffer.rowBytes; viErr = vImagePiecewiseGamma_Planar8( &bufSrc, &bufDest, expoCoeffs, gamma, linearCoeffs, boundary, kvImageNoFlags ); if (viErr == kvImageNoError) { CGImageRef newImgRef = vImageCreateCGImageFromBuffer( &destinationVImageBuffer, &invIFormat, nil, nil, kvImageNoFlags, &viErr ); and it works for both monochrome and RGB images. Interesting trick to know. Many thanks again.
Post not yet marked as solved
9 Replies
In case it helps: Stepping my app and the swift sample under the debugger I noticed something: for an 800x600 RGB image the function vImageBuffer_InitWithCGImage returns a vImage_Buffer with rowBytes=2400 in my obj-c app, instead of the expected 2432 that I get with the swift version. Inquiring about the imageAlignment I get the correct value of 64 in both apps.
Post not yet marked as solved
9 Replies
Correct. The original uses: source.applyGamma(linearParameters: linearCoefficients, exponentialParameters: exponentialCoefficients, boundary: preset.boundary, destination: destination)
Post not yet marked as solved
9 Replies
Post not yet marked as solved
9 Replies
The original works without problem but it is written in swift. It is the sample code from "Adjusting the brightness and contrast of an image" . I translated the code to obj-c myself, since I couldn't find an obj-c version.
Post marked as solved
1 Replies
To answer my own question, you have to provide the Screenshot and Review Notes in the Review Information for the In-App purchase to be eligible for preview. Once I filled both these fields, I was able to add them for Review. My mistake was that I didn't understand that these fields were mandatory.
Post not yet marked as solved
3 Replies
Please discard this thread.Running our app under Xcode revealed an error in some @available check in one of our libraries that ended with a call to error(0). We fixed it and everything is peachy again.I am sorry for the noise.Christos 😊
Post not yet marked as solved
3 Replies
Unfortunately no crash report (nothing shows in Console). Only the Gatekeeper message in system.log.Christos