想要实现在Android HDR软糖 [英] Trying to implement HDR on Android jellybean

查看:231
本文介绍了想要实现在Android HDR软糖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关项目中,我需要实现我的设备上有Android的果冻豆HDR功能。从code我看到,当HDR(高动态范围)被选择的应用程序发送SCENE_MODE_HDR到HAL层。我从相机HAL层的开发人员。那我该怎么当我拿到场景模式= SCENE_MODE_HDR做。我需要请求司机给3图像以不同的曝光补偿值,应用程序将采取拼接图像,使HDR图像的照顾?
或像全景模式,在Android应用程序和框架层可以自己照顾HDR的?

For my project I need to implement HDR feature in my device that has Android Jelly bean on it. From the code I see that when HDR (High Dynamic Range) is selected the application is sending SCENE_MODE_HDR to the HAL layer. I am the developer from Camera HAL layer. What am I supposed to do when I get scene mode = SCENE_MODE_HDR. Do I need to request driver to give 3 images with different exposure compensation value and the application will take care of stitching the images to make the HDR image? Or like panorama mode, the android application and framework layer can take care of HDR by themselves ?

推荐答案

场景模式= SCENE_MODE_HDR似乎是从Android的果冻豆4.2推出,而据我所知,HDR在此间表示硬件HDR,这意味着通过实施摄像头供应商。

The scene mode = SCENE_MODE_HDR seems to be introduced from Android Jelly Bean 4.2, and as i know, HDR at here indicates the Hardware HDR which means to be implemented by Camera Vendor.

我觉得司机需要解决这个问题,不仅给3图像以不同的曝光补偿值,也需要做的构图和色调映射。

I think the driver need handle this, not only give 3 images with different exposure compensation value, but also need do image composition and tone mapping.

因此​​,从应用的角度,摄像头应用程序只是设置场景模式SCENE_MODE_HDR和拍照,然后,HDR图像将在onPictureTaken()输出回调函数。

So from the view of application, camera application just set the scene mode with SCENE_MODE_HDR and take picture, then, the HDR image will be output at onPictureTaken() callback function.

这篇关于想要实现在Android HDR软糖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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