Ali_RS
November 6, 2021, 8:21pm
1
Hi
Does anybody know why AndroidBufferImageLoader is deprecated?
import java.io.InputStream;
import java.nio.ByteBuffer;
/**
* Loads textures using Android's Bitmap class, but does not have the
* RGBA8 alpha bug.
*
* @author Kirill Vainer
*/
@Deprecated
public class AndroidBufferImageLoader implements AssetLoader {
private final byte[] tempData = new byte[16 * 1024];
private static void convertARGBtoABGR(int[] src, int srcOff, int[] dst, int dstOff, int length) {
for (int i = 0; i < length; i++) {
int argb = src[srcOff + i];
int a = (argb & 0xFF000000);
int b = (argb & 0x000000FF) << 16;
int g = (argb & 0x0000FF00);
int r = (argb & 0x00FF0000) >> 16;
Should we undeprecate it?
opened 08:52AM - 29 Oct 21 UTC
question
Android
Hi
`AndroidBufferImageLoader` which internally uses the Android Bitmap class … to load images, supports loading a variety of texture formats (such as WebP images) that are not supported by the `AndroidNativeImageLoader`.
I am not sure why it is deprecated, should we un-deprecate it for v3.5?
1 Like
The commit that deprecated it is Android Images: deprecate classes that won't be used in 3.1 · jMonkeyEngine/jmonkeyengine@bbbcd8e · GitHub
Just says “Android Images: deprecate classes that won’t be used in 3.1”. Not sure if that’s that conclusive
Pavl_G
November 6, 2021, 10:35pm
3
Seems to be the reason why :
3 Likes
pspeed
November 6, 2021, 10:35pm
4
It’s not, unfortunately. Nothing we’ve found says why it won’t be used in 3.1… and we’re even assuming a bit that “3.1” refers to JME 3.1. I mean, it probably does but who really knows?
Perhaps kirill remembers but we’ve been unable to summon his apparition. I don’t know if the @Momoko_Fan tag will still work.
sgold
November 22, 2021, 6:08am
5
It will be un-deprecated in v3.5:
jMonkeyEngine:master
← Ali-RS:android-bitmap-patch
opened 06:45PM - 17 Nov 21 UTC
2 Likes