Android Camera 系列目录
- 搭建Camera开发项目
- Android Camera API
- Android Camera2 API
- Camera2 API使用指南
- Camera2硬件兼容级别
- Camera2拉伸问题
- Camera2高级特性
- Camera2源代码分析
- 相机模块设计
1. 前言
对焦可以说是相机最基本的功能。
Android Camera提供了多种对焦方式:
- FOCUS_MODE_AUTO:个人认为这个名字起的有点随意
- FOCUS_MODE_CONTINUOUS_PICTURE : 持续对焦模式,适用于拍照,此模式可调用autoFocus(AutoFocusCallback)
Applications can call autoFocus(AutoFocusCallback) in this mode. If the autofocus is in the middle of scanning, the focus callback will return when it completes. If the autofocus is not scanning, the focus callback will immediately return with a boolean that indicates whether the focus is sharp or not. The apps can then decide if they want to take a picture immediately or to change the focus mode to auto, and run a full autofocus cycle. The focus position is