diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2012-09-13 16:32:14 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2012-09-13 16:32:14 -0700 |
commit | 9633d506b798cfd44172f467b59b2305b19b9b00 (patch) | |
tree | 519b0b1494653852f4272a99db7a322db60a2e11 | |
parent | 1df8c7a52b15a6f39116ec0a6ef7d42979cf1976 (diff) | |
download | hardware_libhardware-9633d506b798cfd44172f467b59b2305b19b9b00.zip hardware_libhardware-9633d506b798cfd44172f467b59b2305b19b9b00.tar.gz hardware_libhardware-9633d506b798cfd44172f467b59b2305b19b9b00.tar.bz2 |
Camera2: Add CAMERA2_HAL_PIXEL_FORMAT_ZSL temporarily.
Until all HAL implementations move to the new gralloc format selection
scheme, define FORMAT_ZSL for indicating ZSL streams.
Bug: 6243944
Change-Id: I90249beaaca5da80c9464eedd6aa9d3648bb56cc
-rw-r--r-- | include/hardware/camera2.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/hardware/camera2.h b/include/hardware/camera2.h index 8b789ec..e6b99b7 100644 --- a/include/hardware/camera2.h +++ b/include/hardware/camera2.h @@ -97,10 +97,20 @@ typedef struct camera2_stream_ops { } camera2_stream_ops_t; /** - * Temporary definition during transition. TODO: Remove once HALs no longer - * reference this */ + * Temporary definition during transition. + * + * These formats will be removed and replaced with + * HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED. To maximize forward compatibility, + * HAL implementations are strongly recommended to treat FORMAT_OPAQUE and + * FORMAT_ZSL as equivalent to HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED, and + * return HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED in the format_actual output + * parameter of allocate_stream, allowing the gralloc module to select the + * specific format based on the usage flags from the camera and the stream + * consumer. + */ enum { - CAMERA2_HAL_PIXEL_FORMAT_OPAQUE = HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED + CAMERA2_HAL_PIXEL_FORMAT_OPAQUE = HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED, + CAMERA2_HAL_PIXEL_FORMAT_ZSL = -1 }; /** |