Fang Hui f097c4d9bc Camera: Fix processCaptureRequestBurstISO
android_convertGralloc1To0Usage() is used to convert gralloc1_usage(uint64_t) to gralloc_usage (int32_t),
then passed as a para in allocateGraphicBuffer(). But definition of allocateGraphicBuffer() is as
void CameraAidlTest::allocateGraphicBuffer(uint32_t width, uint32_t height, uint64_t usage, PixelFormat format, buffer_handle_t* buffer_handle).
The type of "usage" is uint64_t. So the convert (uint64_t -> int32_t -> uint64_t) will change usages(31 bit is 1)
such as 0x0000000080020b00 to 0xffffffff80020b00. It's unexpected.

Use ANDROID_NATIVE_UNSIGNED_CAST to fix the issue.

Bug: https://issuetracker.google.com/issues/330051542

Change-Id: I23dfd603be0da6864d1021a57c3c3ce76cb78bda
Signed-off-by: Fang Hui <hui.fang@nxp.com>
2024-05-07 16:49:45 +00:00
2023-09-13 21:18:46 +00:00
2023-09-08 20:25:29 +00:00
2023-10-10 10:30:03 +09:00
2024-02-06 17:36:03 +00:00
2023-04-07 23:41:20 +00:00
2023-10-16 15:02:54 -07:00
2023-09-19 23:48:35 +09:00
2023-04-07 23:41:20 +00:00
2023-12-12 18:06:34 +09:00
2023-10-16 19:12:21 +00:00
2023-09-15 13:16:28 +09:00
2023-09-08 21:06:03 +00:00
2023-09-11 17:03:06 +00:00
2023-09-11 16:32:19 +00:00
2016-08-30 11:28:36 -07:00
2022-08-01 16:19:14 +00:00
Description
No description provided
134 MiB
Languages
C++ 56.3%
AIDL 41.2%
C 1.5%
Rust 0.4%
Java 0.4%
Other 0.1%