From c0ae66a05e1a7b79697115e139e0f2e2d69d607f Mon Sep 17 00:00:00 2001 From: Leon Scroggins III Date: Mon, 22 Nov 2021 14:15:42 -0500 Subject: [PATCH] Add AIDL PixelFormat::R_8 Bug: 193170859 Bug: 209497983 Test: build and boot Test: TODO (b/209458105) Change-Id: I6f6b7f22e76609151a413ca6a6dbf55bd91911dd --- .../android/hardware/graphics/common/PixelFormat.aidl | 1 + .../aidl/android/hardware/graphics/common/PixelFormat.aidl | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/PixelFormat.aidl b/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/PixelFormat.aidl index 04a863be0a..512fecbd86 100644 --- a/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/PixelFormat.aidl +++ b/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/PixelFormat.aidl @@ -63,4 +63,5 @@ enum PixelFormat { STENCIL_8 = 53, YCBCR_P010 = 54, HSV_888 = 55, + R_8 = 56, } diff --git a/graphics/common/aidl/android/hardware/graphics/common/PixelFormat.aidl b/graphics/common/aidl/android/hardware/graphics/common/PixelFormat.aidl index eb87f8d04f..4e891f6f9d 100644 --- a/graphics/common/aidl/android/hardware/graphics/common/PixelFormat.aidl +++ b/graphics/common/aidl/android/hardware/graphics/common/PixelFormat.aidl @@ -498,4 +498,11 @@ enum PixelFormat { * interpretation is defined by the dataspace. */ HSV_888 = 0x37, + + /** + * 8 bit format with a single 8-bit component. + * + * The component values are unsigned normalized to the range [0, 1]. + */ + R_8 = 0x38, }