no i didn't use Direct Buffers. however IIRC, i only called image.getPixels() once per full fade/transition.
this was for a proof of concept only, so i didn't dig too deep into optimising it. translation: i had some next-gen hardware to test on, and the native performance was just fine on that thanks, so i didn't need to go any further :-) >Thank you Jason. > >I was hoping it's possible with Java. >Do you use Direct Buffers to pass data from Java to C? >image.getPixels() probably creates a copy of actual image. And it also >seems as an area for improvements. > > >On Oct 21, 9:49 pm, Jason Proctor <[email protected]> >wrote: >> i implemented some full-screen fades and blurs for a recent project. >> doing it in Java resulted in, er, suboptimal performance, so i went >> native. i passed the results of image.getPixels() to the native >> function and did the transforms there. on the G1 and ADP, the >> performance was OK. >> >> >I want to try some fade/blur effect like in winamp visualization plug- >> >ins. >> >getPixel/setPixel way is very slow and do not allow to achieve decent >> >frame rate. Direct access to pixels array could speed up processing. >> >> -- >> jason.vp.engineering.particle > -- jason.vp.engineering.particle --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

