开发者

takePicture callback data is null

开发者 https://www.devze.com 2023-04-07 13:59 出处:网络
Is the Camera.takePicture callback for raw data null when running in emulator environment? I got the CameraSurface method out of the WWW, so开发者_C百科 it should be correct.Before calling takePicture

Is the Camera.takePicture callback for raw data null when running in emulator environment? I got the CameraSurface method out of the WWW, so开发者_C百科 it should be correct.


Before calling takePicture you have to provide a buffer large enough to hold the raw image data. (detailed here). For setting the buffer, use the addCallbackBuffer method.


This issue seems to be related to the raw-data callback only. Using the picture callback which retrieves a jpeg solves the issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消