What is the expected renderscript rsSample() performance? -


rssample() seems intended sampling mipmapped textures across multiple levels of detail avoid aliasing. fisheye example use case.

the implementation samples 8 pixels underlying mipmap , linear blend of them.

it seems can 15 mpixels/second on google pixel simple kernel:

uchar4 __attribute__((kernel)) rescaletest(uint32_t x, uint32_t y) {   float2 location = {x,y};    return convert_uchar4(rssample(ginput8888, gwraplinearmiplinear, location/2000.f, 1.5f)*255.f); } 

considering composited graphics presumably use mipmaps, , composite 1 texture @ 60fps needs 120mpixels/sec, doing wrong?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -