1
ffmpeg -s 640x480  -i image.yuv  image.png
  • -s 宽x高、图像实际大小
  • -i 输入文件 yuv 格式
  • 输出文件 .png 输出图像格式

1
2
Android Debug Bridge version 1.0.41
Version 30.0.5-6877874

global options

1
2
3
4
5
6
7
8
-a         listen on all network interfaces, not just localhost
-d use USB device (error if multiple devices connected)
-e use TCP/IP device (error if multiple TCP/IP devices available)
-s SERIAL use device with given serial (overrides $ANDROID_SERIAL)
-t ID use device with given transport id
-H name of adb server host [default=localhost]
-P port of adb server [default=5037]
-L SOCKET listen on given socket for adb server [default=tcp:localhost:5037]

general commands

1
2
3
devices [-l]             list connected devices (-l for long output)
help show this help message
version show version num
阅读全文 »

gradle 参数传递默认为 string 类型

1
./gradlew -Pflag=false

参数为字符串类型时,这里判断为始终为真

1
2
3
4
5
6
7
8
9
10
//错误
if (flag) {
//todo
}


//正确
if (Boolean.valueOf(flag)) {
//todo
}

本地帮助手册

1
file:///Users/barry/Library/Android/sdk/tools/proguard/docs/index.html

本地proguard-android.txt文件路径

1
file:///Users/barry/Library/Android/sdk/tools/proguard/proguard-android.txt

掘金文档地址

https://juejin.cn/post/6844903474740592647#heading-11

0%