2021-02-19 20:41:49 +01:00
|
|
|
package com.mrousavy.camera.utils
|
2021-02-19 16:28:14 +01:00
|
|
|
|
|
|
|
import android.graphics.ImageFormat
|
|
|
|
import androidx.camera.core.ImageProxy
|
|
|
|
|
|
|
|
val ImageProxy.isRaw: Boolean
|
2021-02-26 10:56:20 +01:00
|
|
|
get() {
|
|
|
|
return when (format) {
|
|
|
|
ImageFormat.RAW_SENSOR, ImageFormat.RAW10, ImageFormat.RAW12, ImageFormat.RAW_PRIVATE -> true
|
|
|
|
else -> false
|
2021-02-19 16:28:14 +01:00
|
|
|
}
|
2021-02-26 10:56:20 +01:00
|
|
|
}
|