feat: Add enableGpuBuffers property (#2557)
* Revert "fix: Fix VideoPipeline crash on Samsung (Disable `USAGE_GPU_SAMPLED_IMAGE` ImageReader) (#2555)"
This reverts commit ad33dd91b1.
* feat: Add `enableGpuBuffers` prop
* Create ImageWriter separately
This commit is contained in:
@@ -64,6 +64,7 @@ class CameraView(context: Context) :
|
||||
var videoHdr = false
|
||||
var photoHdr = false
|
||||
var lowLightBoost: Boolean? = null // nullable bool
|
||||
var enableGpuBuffers: Boolean = false
|
||||
|
||||
// other props
|
||||
var isActive = false
|
||||
@@ -160,7 +161,8 @@ class CameraView(context: Context) :
|
||||
CameraConfiguration.Video(
|
||||
videoHdr,
|
||||
pixelFormat,
|
||||
enableFrameProcessor
|
||||
enableFrameProcessor,
|
||||
enableGpuBuffers
|
||||
)
|
||||
)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user