的Nexus 4相机闪光灯不会闪光时,对焦模式设定为连续画面 [英] Nexus 4 camera flash doesn't fire when focus mode is set to continuous-picture

查看:238
本文介绍了的Nexus 4相机闪光灯不会闪光时,对焦模式设定为连续画面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个奇怪的问题,特别是在一台Nexus 4(虽然它可能存在于其他设备),在相机闪光灯不会闪光时,对焦模式设置为 FOCUS_MODE_CONTINUOUS_PICTURE 。同样的code正常工作在Galaxy Nexus的运行Android的相同版本(4.2.1)。之前有没有人遇到过这个问题吗?我可以简单地切换对焦模式为 FOCUS_MODE_AUTO 解决这个问题。我希望有一个简单的工作,围绕这个问题,因为连续的图像对焦模式为pretty的关键。

I've encountered a strange issue, specifically on a Nexus 4 (though it may exist on other devices), where the camera flash won't fire when the focus mode is set to FOCUS_MODE_CONTINUOUS_PICTURE. The same code works fine on a Galaxy Nexus running the same version of Android (4.2.1). Has anyone encountered this problem before? I can fix the issue by simply switching the focus mode to FOCUS_MODE_AUTO. I'm hoping there is an easy work around for this issue, since the continuous picture focus mode is pretty crucial.

推荐答案

(对于它的价值只是结束了我的评论的答复。)

我之所以怀疑持续关注不上了Nexus 4的工作是我听到这个的吧code扫描仪的用户群(我是作者)的一些传言。 Nexus的4似乎不使用,或不启用持续关注的工作。

The reason I suspect that continuous focus doesn't work on the Nexus 4 is that I have heard some rumblings from the Barcode Scanner user base about this (I'm the author). The Nexus 4 doesn't seem to work with, or without continuous focus enabled.

我还没有看到更详细的确认/否认这一点,但是,我已经肯定在其他设备上看到了这一问题的确切形式。尤其是银河S2似乎有一些不好的焦点错误。

I haven't seen more detail to confirm/deny this, but, I have certainly seen this exact form of problem on other devices. In particular the Galaxy S2 seems to have some bad focus bugs.

这表现为一些稍有不同:有一定的第三的参数要设置应予以支持,或者说,它的支持,但实际上导致司机BARF。然后,它不接受焦点或火炬设置。它可能是连续的焦点,和火炬,工作。但是第三个设置跳闸起来。

It manifests as something slightly different: there is some third parameter you are setting which should be supported, or says it's supported, but actually causes the driver to barf. Then it doesn't honor the focus or torch setting. It may be that continuous focus, and torch, work. But a third setting is tripping it up.

窥视的logcat 输出。您应该看到从驱动程序调试消息。确切性质在很大程度上取决于固件。但是,在这样的情况下,你可能会看到在驱动程序中的错误。我平时看到的不支持的参数X和神秘的数字;有时它是更清楚什么是不喜欢的。

Look into the logcat output. You should see debug messages from the driver. The exact nature depends a lot on the firmware. But in cases like this you will likely see errors in the driver. I usually see "unsupported parameter X" and cryptic numbers; sometimes it's much clearer about what it didn't like.

这可能会给你一个铅,它实际上是在像场景模式或计量区域是问题。 (我所看到的每一个那些造成这个问题至少有一台设备上。)

This may give you a lead, that it is in fact something like scene mode or metering area that are the problem. (And I have seen each of those cause this problem on at least one device.)

我也有一个Galaxy Nexus的,从来没有观察到它的这种形式的任何问题。

I also have a Galaxy Nexus and have never observed any problems of this form on it.

我还会说,连续对焦的可以的某些设备上很好地工作;这是一些设备,如我的老Desire HD的,比简单的自动对​​焦模式更糟糕。情况因人而异;我得出的结论是不一定有帮助那么做定期自动对焦默认在酒吧code扫描仪。

I'll also say that continuous focus can work nicely on some devices; it is worse on some devices like my old Desire HD, than the simple auto-focus mode. YMMV; I concluded it wasn't necessarily helpful so made regular auto focus the default in Barcode Scanner.

这篇关于的Nexus 4相机闪光灯不会闪光时,对焦模式设定为连续画面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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