multithreading - Background OpenGL ES thread with camera preview on Android -


is there way have background thread access camera preview using opengl es texture?

it fine access camera preview using opengl es within view visible user. need access camera frame within background thread in opengl context. download resulting data using glreadpixels after transformed shader , further processing in cpu. user view should not affected.

the supported way process frame after frame in background using onpreviewframe() callback. whatever there not effect user preview, surface or texture.

if want onpreviewframe() callbacks arrive on background thread, should opencamera() on thread, , must handler thread (i.e. have looper), see best use of handlerthread on other similar classes


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -