lijun20020229 |
lijun20020229 最近回复了
| 回复了 pursll 创建的主题 › Camera2 获取摄像头数据,使用 MediaCodec 编码,图像旋转 90 度,怎么解决?2016 年 10 月 31 日 |
稍微看了下, google sample 里是用 Matrix 转换成 preview 合适的,它大小和角度都要调整
| 回复了 pursll 创建的主题 › Camera2 获取摄像头数据,使用 MediaCodec 编码,图像旋转 90 度,怎么解决?2016 年 10 月 31 日 |
@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.
但为什么这条没起作用
是否是 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.
| 回复了 pursll 创建的主题 › Camera2 获取摄像头数据,使用 MediaCodec 编码,图像旋转 90 度,怎么解决?2016 年 10 月 31 日 |
没猜错的话应该是 format.setInteger(MediaFormat.KEY_ROTATION, 90);转了 90 度的原因
这条不用转 preview 的时候转 90 度就行了
这条不用转 preview 的时候转 90 度就行了
| 回复了 pursll 创建的主题 › Camera2 获取摄像头数据,使用 MediaCodec 编码,图像旋转 90 度,怎么解决?2016 年 10 月 31 日 |
可以参考楼上的 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 。。。
// Initially, output stream images from the Camera2 API will be rotated to the native
// device orientation from the sensor's orientation 。。。
| 回复了 pursll 创建的主题 › Camera2 获取摄像头数据,使用 MediaCodec 编码,图像旋转 90 度,怎么解决?2016 年 10 月 31 日 |
看错了 上面那条是调整 preview 的 rawdata 会不会影响没测试过
| 回复了 pursll 创建的主题 › Camera2 获取摄像头数据,使用 MediaCodec 编码,图像旋转 90 度,怎么解决?2016 年 10 月 31 日 |
先要 camera.setDisplayOrientation(90);
| 回复了 MetaD 创建的主题 › 利用 Echarts 能否实现历史最大/小值统计2016 年 4 月 29 日 |
数据肯定是要自己用 Js 统计的
| 回复了 MetaD 创建的主题 › 利用 Echarts 能否实现历史最大/小值统计2016 年 4 月 29 日 |
可以把图例(legend)的文字改一下,需要用到 legend.formatter
http://echarts.baidu.com/option.html#legend.formatter
http://echarts.baidu.com/option.html#legend.formatter
| 回复了 Ley 创建的主题 › 支付宝 Android 客户端强行更改/占据了 NFC 功能怎么办?2015 年 12 月 31 日 |
要看 app 有没有在 AndroidManifest 注册 nfc.action ,如果多个应用同时注册会让你选,这个时候可以设置一个默认的打开。可以自己写个 app 然后把默认的设置成它就行了。
| 回复了 syhsyh9696 创建的主题 › 求最短路2015 年 12 月 24 日 |
旅行商是遍历并回到原点,最短路是寻找两点之间的最短路径。
没看出这个有什么特殊的地方,用常规算法不行么?
没看出这个有什么特殊的地方,用常规算法不行么?
