1. 前言
Camera2是Google在Android 5.0中全新设计的框架,相机模块是和硬件紧密相关的,Camera2中引入很多的特性,厂商的支持情况各有差异,所以Google定义了硬件兼容级别,方便开发者参考。
Google想的很好,但现实是高通,MTK,厂商压根就没支持。
2. 定义
Android Camera2根据硬件的兼容情况定义四种级别:
硬件兼容性:LEGACY < LIMITED < FULL < LEVEL_3
- LEGACY devices operate in a backwards-compatibility mode for older Android devices, and have very limited capabilities.
- LIMITED devices represent the baseline feature set, and may also include additional capabilities that are subsets of FULL.
- FULL devices additionally support per-frame manual control of sensor, flash, lens and post-processing settings, and image capture at a high rate.
- LEVEL_3 devices additionally support YUV reprocessing and RAW image capture, along with additional output stream configurations.
具体定义如下: