ndk-samples icon indicating copy to clipboard operation
ndk-samples copied to clipboard

native-plasma doesn't work

Open sistr22 opened this issue 10 years ago • 6 comments

Native-plasma currently doesn't work on devices like samsung galaxy s2, nexus 6, ...

sistr22 avatar Dec 10 '15 15:12 sistr22

closing https://github.com/googlesamples/android-ndk/issues/166 ( I opened ) and using this one as a holder to debug

ggfan avatar May 04 '16 23:05 ggfan

We should have merged the code I submitted months ago :P It would be fixed ^^

sistr22 avatar May 05 '16 07:05 sistr22

Ok, I did not realize there is a fix on the way and I was there before too :-(. Let me look through to see what this sample does and go from there.

ggfan avatar May 05 '16 15:05 ggfan

Ok, the problem is that: on my android 5X, the window format is 8888 ( RGBA ), the fill_plasma code is for 565 format ( 16 bit format ). fixable :-) just need to understand the original algorithm.

ggfan avatar May 05 '16 17:05 ggfan

this one https://github.com/googlesamples/android-ndk/pull/190 will fix it: request the 565 format before drawing on it. There got to be something similar for the same thing inside androidManifest.xml, not found it yet...

ggfan avatar May 05 '16 18:05 ggfan

merged, it should be fixed and the functionality matches the one inside bitmap-plasma Whiteseeker@, let's process your improvement for this sample inside the pull: https://github.com/googlesamples/android-ndk/pull/133

The styles are common to: bitmap-plasma native-plasma native-audio

ggfan avatar May 05 '16 19:05 ggfan