Android: how to display camera preview with callback?

前端 未结 6 1230
暖寄归人
暖寄归人 2020-12-03 00:18

What I need to do is quite simple, I want to manually display preview from camera using camera callback and I want to get at least 15fps on a real device. I don\'t even need

6条回答
  •  攒了一身酷
    2020-12-03 00:24

    Is there any special reason that you are forced to use GLES 1.0 ?

    Because if not, see the accepted answer here: Android SDK: Get raw preview camera image without displaying it

    Generally it mentions using Camera.setPreviewTexture() in combination with GLES 2.0. In GLES 2.0 you can render a full-screen-quad all over the screen, and create whatever effect you want.

    It's most likely the fastest way possible.

提交回复
热议问题