Reputation: 151
I am not involved with progamming for Android yet, but I need to know in advance, if it is possible to take a full resolution picture (meaning maximum image resolution of the available camera), while recording video at full video resolution. The recorded video is not saved, but the video data is being processed. If this is not possible, how long does it take to switch from video recording mode to picture mode?
Upvotes: 2
Views: 1562
Reputation: 57203
It is the standard scenario to start camera in "preview" mode and then take a still picture at higher resolution. Actually, you cannot take a stil picture without first starting the Android camera in preview mode. And you can receive preview frames in your callback, to do some processing.
Switch takes time, which depends on the device and on external conditions (e.g. it may be much longer at night) and focusing logic (autofocus may be painfully slow in certain setups).
On modern phones, capture may take less than 100 ms.
Update: Here is a simple try on an Galaxy S4 device, with the original camera app, auto mode, photo size 3264x1836, ISO=auto...
time, ms
561 takePicture start
796 camera notification
836 CAMERA_MSG_COMPRESSED_IMAGE
901 previewEnabled (again)
Upvotes: 1