V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  lijun20020229  ›  全部回复第 1 页 / 共 6 页
回复总数  104
1  2  3  4  5  6  
稍微看了下, google sample 里是用 Matrix 转换成 preview 合适的,它大小和角度都要调整
@pursll 那看来应该不是这条的问题
但为什么这条没起作用
是否是 api level 设置过低让这条没起作用
KEY_ROTATION

Added in API level 23
String KEY_ROTATION
A key describing the desired clockwise rotation on an output surface. This key is only used when the codec is configured using an output surface. The associated value is an integer, representing degrees. Supported values are 0, 90, 180 or 270. This is an optional field; if not specified, rotation defaults to 0.
没猜错的话应该是 format.setInteger(MediaFormat.KEY_ROTATION, 90);转了 90 度的原因
这条不用转 preview 的时候转 90 度就行了
可以参考楼上的 Sample Camera2RawFragment.java 文件 1109 行
// Initially, output stream images from the Camera2 API will be rotated to the native
// device orientation from the sensor's orientation 。。。
看错了 上面那条是调整 preview 的 rawdata 会不会影响没测试过
先要 camera.setDisplayOrientation(90);
2016-04-29 14:35:18 +08:00
回复了 MetaD 创建的主题 前端开发 利用 Echarts 能否实现历史最大/小值统计
数据肯定是要自己用 Js 统计的
2016-04-29 14:27:59 +08:00
回复了 MetaD 创建的主题 前端开发 利用 Echarts 能否实现历史最大/小值统计
可以把图例(legend)的文字改一下,需要用到 legend.formatter
http://echarts.baidu.com/option.html#legend.formatter
2015-12-31 12:26:43 +08:00
回复了 Ley 创建的主题 Android 支付宝 Android 客户端强行更改/占据了 NFC 功能怎么办?
要看 app 有没有在 AndroidManifest 注册 nfc.action ,如果多个应用同时注册会让你选,这个时候可以设置一个默认的打开。可以自己写个 app 然后把默认的设置成它就行了。
2015-12-24 11:14:41 +08:00
回复了 syhsyh9696 创建的主题 编程 求最短路
旅行商是遍历并回到原点,最短路是寻找两点之间的最短路径。
没看出这个有什么特殊的地方,用常规算法不行么?
2015-11-10 17:18:47 +08:00
回复了 emitvoice 创建的主题 求职 [上海] V2Android, 找一份 Android 开发工作
lz 的求职信息该说的点都说的比较到位的,找份工作还是不太难的。
2015-11-04 12:21:44 +08:00
回复了 way2explore2 创建的主题 上海 [上海]求合租?
同求杨浦区 hhys851990 @鸡妹
2015-11-01 13:56:05 +08:00
回复了 wwjvtwoex 创建的主题 程序员 用 HTML 开发 Android 应用
lz 的意思是就用 webview 加载本地文件?
这一条的槽点至少有 3 个———孔乙己
2015-10-13 05:52:53 +08:00
回复了 g8287694 创建的主题 职场话题 野路子程序员 有转正常的 机会 少点工资可以接受吗?
@mozkoe lz 千里马急需伯乐
2015-07-14 13:17:35 +08:00
回复了 langyu 创建的主题 Bitcoin 有在从事区块链技术开发或者学习的人吗?
原来是招聘的啊。。
2015-07-14 11:29:59 +08:00
回复了 langyu 创建的主题 Bitcoin 有在从事区块链技术开发或者学习的人吗?
https://en.bitcoin.it/wiki/Data_directory

默认位置
Windows
C:\Documents and Settings\YourUserName\Application data\Bitcoin (XP)
C:\Users\YourUserName\Appdata\Roaming\Bitcoin (Vista and 7)

Linux
~/.bitcoin/

Mac
~/Library/Application Support/Bitcoin/

像1l说的,最简单的方法就是搜索文件夹了
清理的话如果你指的是卸载软件直接删除就可以了
2015-01-28 18:32:24 +08:00
回复了 guguai 创建的主题 程序员 从来没有通宵写代码的人算不算程序员?
贵有恒,何必三更眠五更起,最无益,只怕一日暴十日寒。 与君共勉。
2014-12-24 12:04:02 +08:00
回复了 codu 创建的主题 程序员 跪求懂 Python 的同学帮忙,两年的心血眼看就这么挂了!
歪楼问个问题,为什么google新出的ReCAPTCHA没人用呢,有什么缺陷么?
1  2  3  4  5  6  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2670 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 39ms · UTC 02:00 · PVG 10:00 · LAX 19:00 · JFK 22:00
Developed with CodeLauncher
♥ Do have faith in what you're doing.