实现了热量值计算
This commit is contained in:
@@ -55,6 +55,8 @@ val Float.sp: Float
|
||||
Resources.getSystem().displayMetrics
|
||||
)
|
||||
|
||||
fun Double.format2String(): String = "%.1f".format(this)
|
||||
|
||||
// 添加扩展函数
|
||||
fun ImageProxy.toSafeBitmap(): Bitmap {
|
||||
val yBuffer = planes[0].buffer // Y
|
||||
|
||||
Reference in New Issue
Block a user