Android 5.x快门速度 [英] Android 5.x Shutter Speed

查看:133
本文介绍了Android 5.x快门速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取受支持的快门速度参数,但现在确定如何获得这些范围.

I am trying to get supported shutter speed parameters but I am now sure how to get those ranges.

对于ISO值

支持的字符串IsoValues = camParams.get("iso-values");//支持的值,以逗号分隔的字符串 System.out.println("supportedIsoValues:" + supportIsoValues);

String supportedIsoValues = camParams.get("iso-values"); //supported values, comma separated String System.out.println("supportedIsoValues: " + supportedIsoValues);

但是我不知道如何获得支持的快门速度. 如何获得支持的快门速度?

But I have no idea how to get supported shutter speed. How can I get a supported shutter speed?

推荐答案

让我们以相机(来自Android Devs).他们告诉我们,从API 21开始,您应该转到 android .hardware.camera2.您可以问很多.似乎是从相机中获得的.非常有用,但不是您要找的答案.

Lets start with Camera from Android Devs. They tell us that starting with API 21 you should move over to android.hardware.camera2. There is a lot you can ask from a camera, it seems. Very informative, but not the answer you are looking for.

stackoverflow 帖子的答案中有您的答案想要.

This stackoverflow post's answer has the answer(s) you want.

为完整起见,这是您要查找的代码类型的 PkmX lcamera的示例.

To be complete, here is PkmX's lcamera's example for the kind of codes you are looking for.

这篇关于Android 5.x快门速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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