在Android的相机零快门时滞 [英] Zero shutter lag in Android camera

查看:432
本文介绍了在Android的相机零快门时滞的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在正常的快门时滞,传感器司机给caputured图像缓冲区V4L2层,这里JPEG(硬件)头增加了一些额外的数据(EXIF信息和缩略图),这层赋予图像缓冲区preVIEW堆(在HAL层),用于进一步处理。
但什么是拍照零快门的情况下,这个过程lag.Is同样正常的快门时滞?如何降低取图象呼叫和图像处理之间的时间。如果不是解释。

In normal shutter lag,sensor driver give the caputured image buffer to v4l2 layer and here jpeg(hardware) header adds some extra data(exif info and thumbnail) and this layer give the image buffer to preview heap(In HAL layer) for further processing. but what is the process of taking picture in case of zero shutter lag.Is this same as normal shutter lag? How to reduce the time between take picture call and image processing. if not than explain .

推荐答案

要实现零快门时滞,摄像头驱动程序必须保持含全分辨率帧的小圆形缓冲池。图像在传感器率捕获并发送至preVIEW和循环缓冲池(无论是作为原始Bayer或处理/半加工YUV)。当使用presses快门,在圆形水池最新的缓冲提取,加工和COM pressed为JPEG。在旧的手机摄像头,传感器是不能以足够高的帧率捕捉全分辨率帧,因此ZSL无法实施。

To achieve zero shutter lag, the camera driver must maintain a small circular buffer pool containing full resolution frames. Images are captured at sensor rate and are sent to preview and to the circular buffer pool (either as raw Bayer or as processed/semi-processed YUV). When the use presses the shutter, the newest buffer in the circular pool is extracted, processed and compressed as JPEG. On older mobile phone cameras, the sensor is not able to capture full resolution frames at a high enough frame rate, and therefore ZSL cannot be implemented.

这篇关于在Android的相机零快门时滞的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆