[MBS] Downsize large picture with yielding w/low memory usage?
I have a situation where I need to downsize a 1 x 1 pixel image down to roughly 4000 x 4000. Right now I can do this with RB picture objects, but the call to .drawPicture(...) blocks for about 5000msec. As I'm trying to maintain a 60fps openGL animation at the same time, this is a bit of a problem. :-) I set up a test with PictureMBS.Scale. I've tried ScaleFast(), and though it's very fast (about 21msec) the quality is too poor. Testing shows that the .ScaleBox mode, the quality is good. However, with the giant image this was failing as it looks like the temporary scale buffer is 4x the size of the source picture? (I'm seeing log messages about a 1.2 GB mmap call failing). Speed is critical here so I don't want to use the disk-based options. Q: is there any MBS call that will downsize a large image in the following way: * can handle a 1x1 pixel image * does not require tons of memory * has a multi-threaded option / OR a yield option that can yield every 10msec or so. (I think I need yielding more frequently than 1 tick, since I'm trying to maintain 60fps animation) * fast/fair quality (like .ScaleBox ) If not, I'm wondering if perhaps .scaleFast followed by a simple blur filter might do the trick? Does MBS have a super fast blur filter? ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] Growl: send notifications
Sugar, this doesn't do anything. Am I missing a step somewhere? I had downloaded the 1.3 SDK and placed the folder "Growl.framework" next to the example. On 22.11.2011, at 14:48, Christian Schmitz wrote: > I tried it today. > > I made an example. Get it here: > http://www.macsw.de/plugin/Prerelease/ Mit freundlichen Grüßen/Regards Trixi Willius http://www.mothsoftware.com Mail Archiver X: The email archiving solution for professionals ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] Growl: send notifications
I don't think that you can get this to work with both versions of Growl. You need to decide which version you include in your app. On 22.11.2011, at 15:02, Dean Davis wrote: > But I still need to test this on Snow Leopard and the old version of Growl. Mit freundlichen Grüßen/Regards Trixi Willius http://www.mothsoftware.com Mail Archiver X: The email archiving solution for professionals ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] Growl: send notifications
I got it to work last night using a registration plist file And the class methods of GrowlApplicationBridgeMBS Now me needs are simple. My app has a single notification event and I do not have to respond to click events. But this example is very helpful as well. So, my plist file that is in my resources folder takes care of "registering" my app with Growl Then when I start my program I just: GrowlApplicationBridgeMBS.LoadFramework(Framework) using the class method When I send a notification I just: GrowlApplicationBridgeMBS.notifyWithTitle("Title", "Description", "Test Notification") But I still need to test this on Snow Leopard and the old version of Growl. Dean Davis ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] Growl: send notifications
Am 19.11.2011 um 15:57 schrieb Beatrix Willius: > No, I didn't add anything. But when inspecting the dictionary the values have > been filled in. > > Just checked it again and yes, ApplicationID, ApplicationName, AppLocation > and ApplicationIcon are set and the first 3 have the correct value (can't > verify the icon). I tried it today. I made an example. Get it here: http://www.macsw.de/plugin/Prerelease/ You need to make a subclass of the GrowlApplicationBridgeMBS class. There you can return the registration dictionary and/or application name. When application starts, you first load the framework and then you init your subclass instance: dim framework as FolderItem = GetFolderItem("Growl.framework") if not GrowlApplicationBridgeMBS.LoadFramework(Framework) then MsgBox "Failed to load framework." quit end if m = new MyGrowlApplicationBridgeMBS Now you can send notifications // send a notification GrowlApplicationBridgeMBS.notifyWithTitle("Hello World", "Some test notification", "Test Notification", nil, 0, false, "HelloNormal") or // send a sticky notification GrowlApplicationBridgeMBS.notifyWithTitle("Hello World Sticky", "Some test notification", "Test Notification Sticky", nil, 0, true, "HelloSticky") Works here. Greetings Christian -- See you in Orlando, Florida for Real World 2012 More details and registration here: http://www.realsoftware.com/community/realworld.php ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] Growl: send notifications
I second this. A working example really would help. Growl is pretty much the last thing I need for my next release. Regards Beatrix Willius mbsplugins-boun...@monkeybreadsoftware.info schrieb am 22.11.2011 04:29:44: > Von: Dean Davis > An: MBS Real Studio Plugin List > Datum: 22.11.2011 04:30 > Betreff: Re: [MBS] Growl: send notifications > Gesendet von: mbsplugins-boun...@monkeybreadsoftware.info > > Does GrowlApplicationBridgeMBS only work with Cocoa builds? > > Any examples yet of how to do a simple setup with registration and > notification? -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info