ImageReader makes Camera lag

后端 未结 1 1144
青春惊慌失措
青春惊慌失措 2021-01-03 08:11

I\'m facing a problem where I am using a ImageReader in addition to have a SurfaceView which is used to show the output of the camera. I have added the SurfaceView itself an

相关标签:
1条回答
  • 2021-01-03 08:33

    Turns out that the problem is the ImageFormat of the ImageReader. Changing the ImageFormat.JPEG to for example ImageFormat.YUV_420_888 fixed the lagging problem.

    0 讨论(0)
提交回复
热议问题