OSDN Git Service

minigbm: add support for HAL_PIXEL_FORMAT_RGBA_FP16
[android-x86/external-minigbm.git] / cros_gralloc / cros_gralloc_helpers.h
index a55eebc..3e160ad 100644 (file)
 #include <system/graphics.h>
 #include <system/window.h>
 
+#if ANDROID_VERSION < 0x0900
+#define HAL_PIXEL_FORMAT_RGBA_FP16 0x16
+#endif
+
 constexpr uint32_t cros_gralloc_magic = 0xABCDDCBA;
 constexpr uint32_t handle_data_size =
     ((sizeof(struct cros_gralloc_handle) - offsetof(cros_gralloc_handle, fds[0])) / sizeof(int));