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.
精彩评论