I tested with original camera application (video mode) comes with Samsung Galaxy Tab 8.9. The saved front camera video able to achieve 24 fps, 640x480. (By looking at the properties of video file after transfer to Windows machine)
However, while I write front Camera
code to test.
mCamera2.setPreviewCallbackWithBuffer(new PreviewCallback() {
public void onPreviewFrame(byte[] data, Camera camera) {
// image processing code placed here.
}
});
The maximum result I can achieve is (without saving video to disk. I merely measure the callback function onPreviewFrame triggered rate)
- 15 fps
- 320x240, 800x600
I would like to have performance same as Samsung original camera app. May I know am I missing certain technique?