1 #ifndef HIDL_COMMON 2 #define HIDL_COMMON 3 4 #include "mali_fourcc.h" 5 #include <gralloctypes/Gralloc4.h> 6 #include <aidl/android/hardware/graphics/common/BufferUsage.h> 7 #include <aidl/android/hardware/graphics/common/PixelFormat.h> 8 #include <aidl/android/hardware/graphics/common/StandardMetadataType.h> 9 10 using aidl::android::hardware::graphics::common::BufferUsage; 11 using aidl::android::hardware::graphics::common::PixelFormat; 12 using aidl::android::hardware::graphics::common::StandardMetadataType; 13 using aidl::android::hardware::graphics::common::ExtendableType; 14 using aidl::android::hardware::graphics::common::PlaneLayout; 15 using aidl::android::hardware::graphics::common::PlaneLayoutComponent; 16 using aidl::android::hardware::graphics::common::Rect; 17 using aidl::android::hardware::graphics::common::BlendMode; 18 using aidl::android::hardware::graphics::common::Dataspace; 19 20 namespace hidl { 21 using PixelFormat = android::hardware::graphics::common::V1_2::PixelFormat; 22 } // namespace hidl 23 24 25 template <typename T> 26 using frameworks_vec = android::hardware::hidl_vec<T>; 27 28 #ifdef GRALLOC_MAPPER_4 29 30 #include <android/hardware/graphics/mapper/4.0/IMapper.h> 31 32 namespace hidl { 33 using android::hardware::graphics::mapper::V4_0::Error; 34 } // namespace hidl 35 using android::hardware::graphics::mapper::V4_0::BufferDescriptor; 36 using android::hardware::graphics::mapper::V4_0::IMapper; 37 38 using frameworks_handle = android::hardware::hidl_handle; 39 40 #elif defined(GRALLOC_MAPPER_5) 41 42 #include <android/hardware/graphics/mapper/IMapper.h> 43 #include <android/hardware/graphics/mapper/utils/IMapperMetadataTypes.h> 44 #include <android/hardware/graphics/mapper/utils/IMapperProvider.h> 45 using android::hardware::graphics::mapper::StandardMetadata; 46 47 #endif // GRALLOC_MAPPER_4 or GRALLOC_MAPPER_5 48 49 #endif // HIDL_COMMON 50