@ -94,6 +94,7 @@ public class CameraUtils {
stream.flush();
return file;
} catch (IOException e) {
LOG.e("writeToFile:", "could not write file.", e);
return null;
}
@ -29,7 +29,7 @@ cameraView.addFrameProcessor(new FrameProcessor() {
// Process android.media.Image...
});
```
For your convenience, the `FrameProcessor` method is run in a background thread so you can do your job