+1
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
ImageReader/ImageWriter object. - Internally, we should deal with HardwareBuffer.BLOB format according to surface's dataSpace. Directly passing BLOB format to getEstimatedNativeAllocBytes function will throw exception because BLOB format is not handled inside. Instead, use their corresponding imageFormat to avoid such failure in this case. Bug: 244268240 Test: atest android.hardware.camera2.cts.ImageReaderTest, atest android.hardware.camera2.cts.ImageWriterTest, atest android.hardware.cts.DataSpaceTest Change-Id: I3f18b9d3550f88be82cde75372637a3ae528b5ec