Android:支持原始图像回调的设备 [英] Android: Raw image callback supported devices

查看:14
本文介绍了Android:支持原始图像回调的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一些图像,我需要原始图像数据.但不幸的是,根据文档,这是可选的,取决于供应商.

I am working on some image processing and I am in need for the raw image data. But unfortunately this according to the documentation is optional and depends on the vendor.

我已经能够在 LG Optimus Maha(mac/lu3000) android dev 上获得原始图像,市场上还有其他支持它的设备吗?

I have been able to get the raw image on a LG Optimus Maha(mac / lu3000) android dev, are there any other devices out there in the market where it is supported?

不支持它的设备(来源 - 我的实验 + 谷歌问题 10910:无法捕获原始图像)-

Devices that do not support it (source - my experiments + google Issue 10910: Not able to Capture Raw Images)-

  • 搭载 Android 2.2.1 的摩托罗拉 DroidX
  • 三星银河
  • 使用 Android 2.2 的 HTC Desire
  • Nexus S
  • Nexus One

如果有人有不同的设备并且可以尝试一下就好了..

Would be great if someone has a different device and can try it..

有关为什么不支持回调的更多信息此处

More info on why the call back is not supported here

推荐答案

您列出的设备是主要设备.如果这些原始图像支持不可用,那么它会影响相当大的市场份额.我没有任何确切的数字,但根据我自己的市场统计数据和我一年多收到的邮件,我认为它至少 30%.

The devices that you list are major ones. If raw image support isn't available on these then it affects a rather large market share. I don't have any precise numbers but according to my own market stats and the mails I've received over a year, I think that it's at the very least 30%.

此外,它不仅是重要的市场份额,而且还是目前最强大的设备之一.正是高级用户手中的那些.如果我告诉您我的感受,那是 50% 的应用购买者(不一定是 50% 的设备),但这只是一种直觉.

Also, not only is it an important market share, but it is also some of the most powerful devices currently. Precisely the ones that power users have in their hands. If I tell you my feeling, it's 50% of app buyers (not necessarily 50% of devices), but it's just an intuition.

所以我的观点是你需要能够很好地处理 JPEG 数据,通过在图像处理之前即时解码.请注意并优化此 JPEG 回退.如果您担心质量,请尝试 Camera.Parameters.setJpegQuality()

So my opinion is that you need to be able to handle JPEG data nicely, by decoding on the fly prior to image processing. Pay good attention and optimize this JPEG fallback. If you are worried about quality, give a try to Camera.Parameters.setJpegQuality()

另外,我不确定您为什么要查找设备列表.也许这是为了您的个人/业务统计数据,但如果是关于兼容性,那么最好在首次访问相机时发现是否动态支持原始支持并缓存它,只要某些 android.os.Build 常量不改变.

Also, I'm not sure why you are looking for a device list. Maybe it's for your personal/business stats, but if it's about compatibility, then it's certainly better to discover if raw support is supported dynamically, when the camera is first accessed and cache this as long as some android.os.Build constants don't change.

也就是说,忘记原始图像并仅依赖 JPEG 可以简化您的管道并简化测试.这也值得考虑.我想我会走那条路,因为如果原始支持很少见,那么它就不会被许多应用程序使用,未经测试,因此原始"可以是任何东西.JPEG 的使用非常广泛,因此经过了适当的测试,这很重要.

That said, forgetting about raw image and relying only on JPEG could simplify your pipeline and ease testing. That's worth considering too. I think I would go that route, because if raw support is rare, then it's not used by many apps, poorly tested, and so "raw" could be anything. JPEG is very much used so it's properly tested, that's important.

这篇关于Android:支持原始图像回调的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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