From 6d1dcd309a00685f04836b1bd50afb7e5dc46db8 Mon Sep 17 00:00:00 2001 From: Eino-Ville Talvala Date: Wed, 1 Mar 2017 13:37:49 -0800 Subject: camera/device/3.2: Add custom vendor operating modes This fixes a perf/feature regression from the legacy HAL definitions; previously, vendor implementations could use custom values with this field to implement custom features on their devices. Add several enum values that can be used for this purpose. Test: New CTS test passes Bug: 34853980 Change-Id: I1b37a9511326178b8eb7536ff99e14d83be3b0c2 --- camera/device/3.2/types.hal | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'camera') diff --git a/camera/device/3.2/types.hal b/camera/device/3.2/types.hal index c07a67022..fe1edbffe 100644 --- a/camera/device/3.2/types.hal +++ b/camera/device/3.2/types.hal @@ -161,8 +161,21 @@ enum StreamConfigurationMode : uint32_t { * CONSTRAINED_HIGH_SPEED_VIDEO in the android.request.availableCapabilities * static metadata. */ - CONSTRAINED_HIGH_SPEED_MODE = 1 + CONSTRAINED_HIGH_SPEED_MODE = 1, + /** + * A set of vendor-defined operating modes, for custom default camera + * application features that can't be implemented in the fully flexible fashion + * required for NORMAL_MODE. + */ + VENDOR_MODE_0 = 0x8000, + VENDOR_MODE_1, + VENDOR_MODE_2, + VENDOR_MODE_3, + VENDOR_MODE_4, + VENDOR_MODE_5, + VENDOR_MODE_6, + VENDOR_MODE_7 }; /** -- cgit v1.2.3