安卓:不可能从相机获取RAW图像数据?不可能、图像、相机、数据

由网友(独钓一江月)分享简介:目前打算做一个摄影的应用程序使用的Andr​​oid设备提供的相机拍摄的RAW数据。Currently planning on doing a photography app utilizing RAW data provided by the camera in Android devices.我写了一个快速的骨...

目前打算做一个摄影的应用程序使用的Andr​​oid设备提供的相机拍摄的RAW数据。

Currently planning on doing a photography app utilizing RAW data provided by the camera in Android devices.

我写了一个快速的骨架使用的照相机API,发现与原始图像数据的回调,给出的数据缓冲区总是NULL,无论我多么大或小使形象,但我能够访问该JPG缓冲区。

I wrote a quick skeleton using the camera API and noticed that in the callback with the RAW image data, the data buffer given is always NULL, regardless of how large or small I make the image, but I'm able to access the JPG buffer.

我做了一些搜索,发现这个线程: http://markmail.org/message/sraudbyrsi2hjqfr#query:I%27m%20talking%20about%20de$p$pcating%20the%20raw%20picture%20callback%20that%20has%20never+page:1+mid:sraudbyrsi2hjqfr+state:results

I did some searching and found this thread: http://markmail.org/message/sraudbyrsi2hjqfr#query:I%27m%20talking%20about%20deprecating%20the%20raw%20picture%20callback%20that%20has%20never+page:1+mid:sraudbyrsi2hjqfr+state:results

,其中提到,在写作(2009年2月)的时候,从来没有过。所以,我是正确的,今天它仍然无法正常工作承担,还是我可能设置的东西了不正确?

Which mentions that at the time of that writing (February 2009), it "had never worked". So, am I right to assume that today it still doesn't work, or am I perhaps setting something up incorrectly?

我使用与调试电话是Droid X的。

The phone I'm using to debug with is a Droid X.

只是困惑,因为我看到API提到,在回调的RAW数据缓冲区可以为空,如果没有在设备上有足够的可用内存,但即使当我设置图像极其它被返回为空小尺寸(100×100)

Just confused because I do see that the API mentions that the RAW data buffer in the callback can be null if there isn't enough memory available on the device, but it's being returned as null even when I set the image to extremely small sizes(100x100)

感谢

编辑:

添加一些调试输出这是我从LogCat中获得:

Adding some debug output which I get from LogCat:

DEBUG / CameraHal(1156):初始化捕获内存原料:0x42d39000(155648),JPG:0x429c4000(57856),PV 0x42d5f000(276736)

DEBUG/CameraHal(1156): Initializing capture memory raw: 0x42d39000 (155648), jpg: 0x429c4000 (57856), pv 0x42d5f000 (276736)

DEBUG / CameraHal(1156):接收到的原始YUV 0x4119f000大小153600   DEBUG / CameraHal(1156):接收到的JPG 0x429c4000尺寸57584

DEBUG/CameraHal(1156): Received raw yuv 0x4119f000 size 153600 DEBUG/CameraHal(1156): Received jpg 0x429c4000 size 57584

DEBUG / CamTest(4716):RAW callback-数据为NULL   DEBUG / CamTest(4716):JPEG callback-数据是有效的。

DEBUG/CamTest(4716): RAW callback- data is NULL DEBUG/CamTest(4716): JPEG callback- data is valid

CamTest是我的自定义调试输出。

"CamTest" is my custom debug output.

推荐答案

它看起来的确具有的从来没有做过。从您的其他线程看起来它永远不会任。

It looks like it indeed has never worked. From your other thread it looks like it never will either.

阅读全文

相关推荐

最新文章