Android 14 (U, API level 34) adds DataSpace support to ImageReader with a new constructor and a getter, and finally switches to the regular HardwareBufferFormat instead of the restricted ImageFormat enum to select the underlying buffer format. After all, an AImage can be turned into a HardwareBuffer which supports a wider range of formats.
Android 14 (U, API level 34) adds
DataSpace
support toImageReader
with a new constructor and a getter, and finally switches to the regularHardwareBufferFormat
instead of the restrictedImageFormat
enum to select the underlying buffer format. After all, anAImage
can be turned into aHardwareBuffer
which supports a wider range of formats.