I’m still in the middle of moving my core image processing to a separate background app that I can restart periodically to recover the large amounts of leaked memory. My test version of the app that still does it inline has been running for 4 days and is up to 1.2gig of memory allocated to the app ;) At the moment it’s still running but I can’t release it like that…
I’ve hit a snag in doing an NSAffineTransformMBS in the console app. The code that worked fine in the Desktop app is just: dim myFlipFilter as new CIFilterAffineTransformMBS myFlipFilter.SetDefaults dim myflipAffine as new NSAffineTransformMBS(-1.0,0.0,0.0,-1.0,0.0,0.0) myFlipFilter.inputTransform = myflipAffine myFlipFilter.inputImage = CIWorkImage CIWorkImage = myFlipFilter.outputImage That works perfectly to do a vertical/horizontal flip on an image with very few processing microseconds on a desktop app, but it somehow prevents the rendering of the image when compiled into a console app. As far as I can tell all the methods are listed as supported in the docs. If I replace the negative values in the constructor with positive values then everything will at least compile and run so the class itself is working I just can’t pass it any negative values like that. I convert it to a CGImage so I can get the bitmap out for sending back upstream to the main app by doing a: dim CGWork as CGImageMBS = CIWorkImage.CreateCGImage and that works fine for all the other filters in the chain that I’ve created, but if I add in the flip transform above then this returns nil. Any suggestions welcome ;) Thanks, James James Sentman http://www.PlanetaryGear.org http://MacHomeAutomation.com _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
