Recover camera session failures once with low-resolution native YUV

This commit is contained in:
zenord
2026-10-13 17:50:57 +08:00
parent ddd75fc571
commit e5a7e87f25
32 changed files with 519 additions and 73 deletions
+12
View File
@@ -0,0 +1,12 @@
package android.graphics
object ImageFormat {const val YUV_420_888=35}
class Matrix {fun postRotate(f: Float) {}}
class Rect(val left: Int,val top: Int,val right: Int,val bottom: Int) {fun width()=right-left;fun height()=bottom-top}
class Bitmap(val width: Int,val height: Int) {
enum class Config {ARGB_8888}
fun recycle() {}
companion object {
fun createBitmap(p: IntArray,w: Int,h: Int,c: Config)=Bitmap(w,h)
fun createBitmap(b: Bitmap,x: Int,y: Int,w: Int,h: Int,m: Matrix,f: Boolean)=Bitmap(w,h)
}
}