Trying to get camera working from native code in Android ICS:
most manuals refer to startPreview() method . But browsing AOSP code I've found also 'startRecording()' method in <Camera.h>
. Here said that it is from interface ICameraRecordingProxy
"that allows the recorder to receive video frames during recording"
So the question is - in terms of performance is 'startRecording' approach more efficient than 'startPreview'?
The only one goal of going into native code is performace, Java 'Camera' is too slow, and OpenCV does not provide required level of FPS as well..
EDIT: target platform is: API level=17, device Allwinner A31 development board, 1280x720x30FPS. The task is to capture frames from camera, modify them, encode (H264) and store to SD card. pure java MediaRecorder write mp4 file with 1280x720x30. Show live preview on screen is not needed.
OpenCV-demo1 in native mode gives 1920x1080x2 (same in java mode). Simple java approach with empty PreviewCallback maximal FPS is 15.
Thank you in advance..