fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Add support for RGB_565 bitmaps to use less memory

Open nat-e opened this issue 11 years ago • 5 comments

Hey, I'd like to be able to force decoding bitmap in RGB_565 to use less memory but didn't find anything in the doc, is there any way I can do this? Thanks!

nat-e avatar Apr 01 '15 00:04 nat-e

you can see Modifying The Image

blackiedm avatar Apr 01 '15 02:04 blackiedm

We don't currently support this. We are considering adding RGB_565 for images that don't use alpha.

tyronen avatar Apr 01 '15 15:04 tyronen

@blackiedm Using a Postprocessor wouldn't provide much, because the version of the image stored in the memory cache is the one before post processing from what I understand, so you will end up having to transform it back every time, and keep both versions in memory. Plus I don't even know if changing the config of a bitmap instance is possible at all, as it changes the size of the underlying byte array @tyronen I really hope this gets in soon, this would be super helpful for apps using a lot of images. The library looks pretty good so far, keep up the good work!

nat-e avatar Apr 01 '15 15:04 nat-e

We really need this feature for images without alpha. It will free 50% of its memory usage.

nikslushkin avatar Aug 31 '15 13:08 nikslushkin

This was added in v0.8.0.

tyronen avatar Nov 01 '15 22:11 tyronen