Recently busy with the camera of the project, because most of the interested in the exchange of Android developers on the simulator, in the context of hardware-related practical content, (for example, I will be recorded at this moment on the camera zoom problem), the Internet can be queried and reference the information is really little pitiful. But think about it, the project of specific hardware related information debugging process is also inconvenient to public. I don't write the details, talk about ideas.
The camera zoom problem I've encountered is this:
Zoom value is satisfied with the interval: [0,28], the average corresponding smooth zoom effect is magnified 1 time times to 8 times times.
I dragged smoothzoom from *1 to *8 's log:
V/camera (30714): Zoom changed:value=1. Stopped=true D/camera (30714): ^_^ zoom_stopping V/camera (30714): ZOOM changed:value=2. Stopped=true D/camera (30714): ^_^ zoom_stopping V/camera (30714): ZOOM changed:value=3. Stopped=true D/camera (30714): ^_^ zoom_stopping V/camera (30714): ZOOM changed:value=4. Stopped=true D/camera (30714): ^_^ zoom_stopping V/camera (30714): ZOOM changed:value=5. Stopped=true D/camera (30714): ^_^ zoom_stopping V/camera (30714): ZOOM changed:value=7. Stopped=false D/camera (30714): ^_^ Zoom_start V/camera (30714): ZOOM changed:value=8. Stopped=false D/camera (30714): ^_^ Zoom_start V/camera (30714): ZOOM changed:value=10. Stopped=false D/camera (30714): ^_^ Zoom_start V/camera (30714): ZOOM changed:value=12. Stopped=false D/camera (30714): ^_^ Zoom_start V/camera (30714): ZOOM changed:value=15. Stopped=false D/camera (30714): ^_^ Zoom_start V/camera (30714): ZOOM changed:value=18. Stopped=false
D/camera (30714): ^_^ Zoom_start V/camera (30714): ZOOM changed:value=21. Stopped=false D/camera (30714): ^_^ Zoom_start V/camera (30714): ZOOM changed:value=24. Stopped=false D/camera (30714): ^_^ Zoom_start V/camera (30714): ZOOM changed:value=28. Stopped=true D/camera (30714): ^_^ Zoom_start
(Note: value=28 does not represent 28 times times, but 8 times times)
According to the above log analysis, the logic is very confused, according to the truth that the stopped parameter is true, zoom to stop. The true value of value 1-5 makes me puzzled. The real effect of this on the real machine is that you see a scene a times in the framing screen, but the shot is really B-fold ...
More frightening is, when the automatic test zoom n back and forth, repeated start camera, full screen I2C ERROR told me camera hung up ... If I can't find the problem, I'll hang up ...
Camera part of the large number of documents, the same name also many, had to do a comb, to clarify the idea.