Define the JPEG XL decode bound for the local Android image pipeline
This commit is contained in:
@@ -30,6 +30,8 @@ import java.util.concurrent.ConcurrentHashMap
|
||||
import java.util.concurrent.Executors
|
||||
|
||||
private const val MAX_PREALLOC_BYTES = 128 * 1024 * 1024
|
||||
// Match the upstream GPU texture bound without depending on a newer local image decoder.
|
||||
private const val MAX_JXL_PIXEL_SIZE = 16384
|
||||
|
||||
private class RemoteRequest(val cancellationSignal: CancellationSignal)
|
||||
|
||||
@@ -109,7 +111,7 @@ class RemoteImagesImpl(context: Context) : RemoteImageApi {
|
||||
buffer.offset,
|
||||
width?.toInt() ?: 0,
|
||||
height?.toInt() ?: 0,
|
||||
MAX_PIXEL_SIZE,
|
||||
MAX_JXL_PIXEL_SIZE,
|
||||
cancelled,
|
||||
info
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user