Recover camera session failures once with low-resolution native YUV
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user