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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -