Android Camera Learning: smoothzoom

Source: Internet
Author: User
Tags log

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.