platform_hardware_interfaces/camera/provider
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
..
2.4 Merge "[DON'T BLOCK] Test ownership migration rules" into main am: 27e97308c4 2024-02-07 01:45:21 +00:00
2.5 [DON'T BLOCK] Test ownership migration rules 2024-02-05 15:45:22 +00:00
2.6 [DON'T BLOCK] Test ownership migration rules 2024-02-05 15:45:22 +00:00
2.7 Merge "[DON'T BLOCK] Test ownership migration rules" into main am: 27e97308c4 2024-02-07 01:45:21 +00:00
aidl Camera: Fix processCaptureRequestBurstISO 2024-05-07 16:49:45 +00:00
default Merge "[DON'T BLOCK] Test ownership migration rules" into main am: 27e97308c4 2024-02-07 01:45:21 +00:00
README.md Add pointer to default AIDL Camera HAL Implementation in README.md 2022-11-13 04:29:49 +00:00

Camera Provider HAL


Overview:

The camera.provider HAL is used by the Android camera service to discover, query, and open individual camera devices.

It also allows for direct control of the flash unit of camera devices that have one, for turning on/off torch mode.

More complete information about the Android camera HAL and subsystem can be found at source.android.com.

Version history:

types.hal:

@0.0:

Common enum and struct definitions for all camera HAL interfaces. Does not define any interfaces of its own.

ICameraProvider.hal:

@2.4:

First HIDL version of the camera provider HAL, closely matching the feature set and operation of the pre-HIDL camera HAL module v2.4.

ICameraProviderCallback.hal:

@2.4:

First HIDL version of the camara provider HAL callback interface, closely matching the feature set and operation of the pre-HIDL camera HAL module callbacks v2.4.

AIDL Camera HAL Default Implementation

The default implementation can be found at $ANDROID_BUILD_TOP/hardware/google/camera/common/hal/aidl_service and $ANDROID_BUILD_TOP/hardware/google/camera/devices/EmulatedCamera