如何.raw文件转换为图像文件中的Andr​​oid设备扎根编程

如何.raw文件转换为图像文件中的Andr​​oid设备扎根编程

问题描述:

我想通过编程方式使用ADB命令在android系统创建截图捕捉应用程序的设备屏幕捕捉屏幕截图。我试图从堆栈溢出和其他网站,但没有太多尚未成功的每一个环节。任何机构可以帮助我在这里。我按照扎根设备上的这个链接 Android的截图拿创建.RAW文件,但现在我停留在如何将原始文件转换为图像中的机器人。

I am trying to create a screenshot capturing app in android which capture screen shot of device screen by using adb command programmatically. I have tried every link from stack overflow and other sites but not much successful yet. can any body help me out here. I have followed this link Android take screenshot on rooted device to create the .raw file but now i am stuck on how to convert raw file to image in android.

Android的不能做到这一点本身。你需要一个外部去$ C $铬。有哪些可以去code,去马赛克,最大光圈等,并转换为RGB库。这是一个数字负,需要大量的图像处理其在Android中可见之前。

Android cannot do that by itself. You need a external decoder. There are libraries which can decode, demosaicing, whitebalance etc and convert to RGB. This is a digital negative and needs a lot of image processing before its viewable in Android.

查看dcraw的,它是一个库解码所有类型的RAW文件。

Check out dcraw, its a library for decoding all types of RAW-files.