Search code examples
androidyuvrgbaandroid-renderscript

Management with RenderScrip


I would like to handle the frame from YUV to RGB using the ScriptIntrinsecYUVtoRGB in the method ImageReader.OnImageAvailableListener().

It can be done? Until now I have done so:

I remaining with image white and the preview does not start anymore.

Suggestions?


Solution

  • You're not adding your TextureView surface to the capture session or the capture request anymore. Only the ImageReader Surface is being added to the outputSurfaces list and to captureRequestBuilder.addTarget().

    So the camera is not drawing anything to the TextureView. Add it back in to both.