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

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

问题描述

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

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

对于 ISO 值

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

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天全站免登陆