Question

I have some large JPG files that need to be downsampled in an android service. BitmapFactory (i.e. skia libray) can handle this but probably does not get any GPU support. Is there any portable way to get hardware acceleration for scaling ?

Could a service create a hidden View and then use OpenGL ES to do the scaling part or is that only feasible in activities ?

Was it helpful?

Solution

You may get hardware accelerated scaling this way, but you'll have to read the result back from the GPU which may or may not be faster than just scaling in software. You will also run into GPU-specific limitations like maximum texture dimensions (4096x4096 on NexusOne for instance.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top