lijun20020229's recent timeline updates
lijun20020229

lijun20020229

V2EX member #63025, joined on 2014-05-19 11:07:38 +08:00
Per lijun20020229's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
lijun20020229's recent replies
稍微看了下, 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);
Apr 29, 2016
Replied to a topic by MetaD 前端开发 利用 Echarts 能否实现历史最大/小值统计
数据肯定是要自己用 Js 统计的
Apr 29, 2016
Replied to a topic by MetaD 前端开发 利用 Echarts 能否实现历史最大/小值统计
可以把图例(legend)的文字改一下,需要用到 legend.formatter
http://echarts.baidu.com/option.html#legend.formatter
要看 app 有没有在 AndroidManifest 注册 nfc.action ,如果多个应用同时注册会让你选,这个时候可以设置一个默认的打开。可以自己写个 app 然后把默认的设置成它就行了。
Dec 24, 2015
Replied to a topic by syhsyh9696 编程 求最短路
旅行商是遍历并回到原点,最短路是寻找两点之间的最短路径。
没看出这个有什么特殊的地方,用常规算法不行么?
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5192 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 09:37 · PVG 17:37 · LAX 02:37 · JFK 05:37
♥ Do have faith in what you're doing.