Reputation: 6281
Is the Camera.takePicture
callback for raw data null when running in emulator environment?
I got the CameraSurface
method out of the WWW, so it should be correct.
Upvotes: 2
Views: 2067
Reputation: 5702
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.
Upvotes: 3
Reputation: 6281
This issue seems to be related to the raw-data callback only. Using the picture callback which retrieves a jpeg solves the issue.
Upvotes: 1