如何.raw文件转换为图像文件中的Andr​​oid设备扎根编程 [英] How to convert .raw file to image file in android rooted device programmatically

查看:141
本文介绍了如何.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.

这篇关于如何.raw文件转换为图像文件中的Andr​​oid设备扎根编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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