我试图了解ZSL功能/功能支持在Android5.0,从相机应用程序,相机框架和libcameraservice实现,以及相机HAL v3.2规范。
据我所知,在android中实现ZSL是可能的,有两种方式:
- In Kitkat, only framework implemented ZSL was supported, and it was pretty straightforward. (Using bidirectional streams for ZSL)
- In Lollipop,they have documented framework implemented ZSL very clearly, [http://androidxref.com/5.0.0\_r2/xref/hardware/libhardware/include/hardware/camera3.h#1076](http://androidxref.com/5.0.0_r2/xref/hardware/libhardware/include/hardware/camera3.h#1076)
- In Lollipop, they have introduced the concept of application implemented ZSL. ZSL has been exposed as a capability to the application, as per the available documentation [http://androidxref.com/5.0.0\_r2/xref/system/media/camera/docs/docs.html](http://androidxref.com/5.0.0_r2/xref/system/media/camera/docs/docs.html)
- Under _android.request.availableCapabilities_, it says that:用于ZSL,"RAW_OPAQUE支持作为输出/输入格式“。
在Lollipop中,使用Camera1 API应用程序,框架实现了与Kitkat相同的工作方式。
但是,我在Camera2 API应用程序代码中找不到任何地方,如何启用应用程序/框架实现的ZSL。R2/xref/packages/app/Camera2 2/
因此,问题是:
任何帮助都很感激。
发布于 2015-02-09 19:19:30
更长的答案是,ZSL后处理API必须从最初的camera2实现中删除,因此目前应用程序无法以任何格式(RAW_OPAQUE或其他格式)将缓冲区发送回照相机设备。
与实际的框架实现相比,camera3.h中的一些文档具有误导性,而且框架支持只有IMPLEMENTATION_DEFINED双向的ZSL,而且在任何地方都不使用RAW_OPAQUE。
编辑:从Android6.0Marshmlow开始,再处理在camera2 API中是可用的,支持它的设备(比如Nexus6P/5X)。
https://stackoverflow.com/questions/28314531
复制相似问题