Home
last modified time | relevance | path

Searched refs:descriptorInfo (Results 1 – 25 of 40) sorted by relevance

12

/hardware/interfaces/graphics/mapper/2.1/utils/passthrough/include/mapper-passthrough/2.1/
DGralloc0Hal.h38 const IMapper::BufferDescriptorInfo& descriptorInfo, in validateBufferSize() argument
40 if (descriptorInfo.layerCount != 1) { in validateBufferSize()
49 mModule, bufferHandle, descriptorInfo.width, descriptorInfo.height, in validateBufferSize()
50 static_cast<int32_t>(descriptorInfo.format), in validateBufferSize()
51 static_cast<uint64_t>(descriptorInfo.usage), stride); in validateBufferSize()
71 Error createDescriptor_2_1(const IMapper::BufferDescriptorInfo& descriptorInfo, in createDescriptor_2_1() argument
75 descriptorInfo.width, in createDescriptor_2_1()
76 descriptorInfo.height, in createDescriptor_2_1()
77 descriptorInfo.layerCount, in createDescriptor_2_1()
78 static_cast<common::V1_0::PixelFormat>(descriptorInfo.format), in createDescriptor_2_1()
[all …]
DGralloc1Hal.h40 const IMapper::BufferDescriptorInfo& descriptorInfo, in validateBufferSize() argument
44 bufferDescriptorInfo.width = descriptorInfo.width; in validateBufferSize()
45 bufferDescriptorInfo.height = descriptorInfo.height; in validateBufferSize()
46 bufferDescriptorInfo.layerCount = descriptorInfo.layerCount; in validateBufferSize()
47 bufferDescriptorInfo.format = static_cast<android_pixel_format_t>(descriptorInfo.format); in validateBufferSize()
48 bufferDescriptorInfo.consumerUsage = toConsumerUsage(descriptorInfo.usage); in validateBufferSize()
49 bufferDescriptorInfo.producerUsage = toProducerUsage(descriptorInfo.usage); in validateBufferSize()
73 Error createDescriptor_2_1(const IMapper::BufferDescriptorInfo& descriptorInfo, in createDescriptor_2_1() argument
75 if (gralloc1UsageUnsupported(descriptorInfo.usage)) in createDescriptor_2_1()
79 descriptorInfo.width, descriptorInfo.height, descriptorInfo.layerCount, in createDescriptor_2_1()
[all …]
/hardware/interfaces/graphics/mapper/2.1/utils/hal/include/mapper-hal/2.1/
DMapperHal.h37 Error createDescriptor(const V2_0::IMapper::BufferDescriptorInfo& descriptorInfo, in createDescriptor() argument
41 descriptorInfo.width, descriptorInfo.height, descriptorInfo.layerCount, in createDescriptor()
42 static_cast<common::V1_1::PixelFormat>(descriptorInfo.format), descriptorInfo.usage, in createDescriptor()
50 const IMapper::BufferDescriptorInfo& descriptorInfo,
59 virtual Error createDescriptor_2_1(const IMapper::BufferDescriptorInfo& descriptorInfo,
DMapper.h42 const IMapper::BufferDescriptorInfo& descriptorInfo, in validateBufferSize() argument
49 return this->mHal->validateBufferSize(bufferHandle, descriptorInfo, stride); in validateBufferSize()
66 Return<void> createDescriptor_2_1(const IMapper::BufferDescriptorInfo& descriptorInfo, in createDescriptor_2_1() argument
69 Error error = this->mHal->createDescriptor_2_1(descriptorInfo, &descriptor); in createDescriptor_2_1()
/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/
DGrallocBufferDescriptor.h38 const IMapper::BufferDescriptorInfo& descriptorInfo) { in grallocEncodeBufferDescriptor() argument
42 descriptor[1] = descriptorInfo.width; in grallocEncodeBufferDescriptor()
43 descriptor[2] = descriptorInfo.height; in grallocEncodeBufferDescriptor()
44 descriptor[3] = descriptorInfo.layerCount; in grallocEncodeBufferDescriptor()
45 descriptor[4] = static_cast<uint32_t>(descriptorInfo.format); in grallocEncodeBufferDescriptor()
46 descriptor[5] = static_cast<uint32_t>(descriptorInfo.usage); in grallocEncodeBufferDescriptor()
47 descriptor[6] = static_cast<uint32_t>(descriptorInfo.usage >> 32); in grallocEncodeBufferDescriptor()
DGralloc0Hal.h51 Error createDescriptor(const IMapper::BufferDescriptorInfo& descriptorInfo, in createDescriptor() argument
53 if (!descriptorInfo.width || !descriptorInfo.height || !descriptorInfo.layerCount) { in createDescriptor()
57 if (descriptorInfo.layerCount != 1) { in createDescriptor()
61 if (descriptorInfo.format == static_cast<PixelFormat>(0)) { in createDescriptor()
66 if (descriptorInfo.usage & ~validUsageBits) { in createDescriptor()
68 descriptorInfo.usage & ~validUsageBits); in createDescriptor()
71 *outDescriptor = grallocEncodeBufferDescriptor(descriptorInfo); in createDescriptor()
DGralloc1Hal.h71 Error createDescriptor(const IMapper::BufferDescriptorInfo& descriptorInfo, in createDescriptor() argument
73 if (!descriptorInfo.width || !descriptorInfo.height || !descriptorInfo.layerCount) { in createDescriptor()
77 if (!mCapabilities.layeredBuffers && descriptorInfo.layerCount != 1) { in createDescriptor()
81 if (descriptorInfo.format == static_cast<PixelFormat>(0)) { in createDescriptor()
86 if (descriptorInfo.usage & ~validUsageBits) { in createDescriptor()
88 descriptorInfo.usage & ~validUsageBits); in createDescriptor()
91 *outDescriptor = grallocEncodeBufferDescriptor(descriptorInfo); in createDescriptor()
/hardware/google/gchips/gralloc4/src/hidl_common/
DBufferDescriptor.h53 static bool validateDescriptorInfo(const BufferDescriptorInfoT &descriptorInfo) in validateDescriptorInfo() argument
55 if (descriptorInfo.width == 0 || descriptorInfo.height == 0 || descriptorInfo.layerCount == 0) in validateDescriptorInfo()
60 if (static_cast<int32_t>(descriptorInfo.format) == 0) in validateDescriptorInfo()
122 …nst frameworks_vec<vecT> grallocEncodeBufferDescriptor(const BufferDescriptorInfoT &descriptorInfo) in grallocEncodeBufferDescriptor() argument
132 dynamic_size += strlen(descriptorInfo.name.c_str()) + 1; in grallocEncodeBufferDescriptor()
137 push_descriptor_uint32(&descriptor, &pos, descriptorInfo.width); in grallocEncodeBufferDescriptor()
138 push_descriptor_uint32(&descriptor, &pos, descriptorInfo.height); in grallocEncodeBufferDescriptor()
139 push_descriptor_uint32(&descriptor, &pos, descriptorInfo.layerCount); in grallocEncodeBufferDescriptor()
140 push_descriptor_uint32(&descriptor, &pos, static_cast<uint32_t>(descriptorInfo.format)); in grallocEncodeBufferDescriptor()
141 push_descriptor_uint64(&descriptor, &pos, static_cast<uint64_t>(descriptorInfo.usage)); in grallocEncodeBufferDescriptor()
[all …]
DMapper.cpp342 const IMapper::BufferDescriptorInfo& descriptorInfo, in validateBufferSize() argument
360 grallocDescriptor.width = descriptorInfo.width; in validateBufferSize()
361 grallocDescriptor.height = descriptorInfo.height; in validateBufferSize()
362 grallocDescriptor.layer_count = descriptorInfo.layerCount; in validateBufferSize()
363 grallocDescriptor.hal_format = static_cast<uint64_t>(descriptorInfo.format); in validateBufferSize()
364 grallocDescriptor.producer_usage = static_cast<uint64_t>(descriptorInfo.usage); in validateBufferSize()
/hardware/interfaces/graphics/mapper/4.0/utils/vts/include/mapper-vts/4.0/
DMapperVts.h94 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo,
97 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate() argument
99 return allocate(descriptorInfo, import, Tolerance::kToleranceStrict); in allocate()
102 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate() argument
104 return allocate(descriptorInfo, import, tolerance, nullptr); in allocate()
107 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate() argument
109 return allocate(descriptorInfo, import, Tolerance::kToleranceStrict, outStride); in allocate()
120 BufferDescriptor createDescriptor(const IMapper::BufferDescriptorInfo& descriptorInfo);
140 const IMapper::BufferDescriptorInfo& descriptorInfo, uint32_t stride);
144 bool isSupported(const IMapper::BufferDescriptorInfo& descriptorInfo);
[all …]
/hardware/interfaces/graphics/mapper/2.1/utils/vts/
DMapperVts.cpp70 const IMapper::BufferDescriptorInfo& descriptorInfo, in validateBufferSize() argument
74 Error error = mMapperV2_1->validateBufferSize(buffer, descriptorInfo, stride); in validateBufferSize()
95 BufferDescriptor Gralloc::createDescriptor(const IMapper::BufferDescriptorInfo& descriptorInfo) { in createDescriptor() argument
98 descriptorInfo, [&](const auto& tmpError, const auto& tmpDescriptor) { in createDescriptor()
106 const native_handle_t* Gralloc::allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate() argument
108 BufferDescriptor descriptor = createDescriptor(descriptorInfo); in allocate()
/hardware/google/gchips/include/
DGrallocWrapper.h44 const IMapper::BufferDescriptorInfo& descriptorInfo,
99 Error allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, uint32_t count, in allocate() argument
103 Error error = mMapper.createDescriptor(descriptorInfo, &descriptor); in allocate()
110 Error allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate() argument
113 return allocate(descriptorInfo, 1, outStride, outBufferHandle); in allocate()
/hardware/interfaces/graphics/mapper/2.1/utils/vts/include/mapper-vts/2.1/
DMapperVts.h42 const IMapper::BufferDescriptorInfo& descriptorInfo, uint32_t stride);
46 BufferDescriptor createDescriptor(const IMapper::BufferDescriptorInfo& descriptorInfo);
48 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo,
/hardware/interfaces/graphics/mapper/3.0/utils/vts/include/mapper-vts/3.0/
DMapperVts.h57 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo,
64 BufferDescriptor createDescriptor(const IMapper::BufferDescriptorInfo& descriptorInfo);
80 const IMapper::BufferDescriptorInfo& descriptorInfo, uint32_t stride);
84 bool isSupported(const IMapper::BufferDescriptorInfo& descriptorInfo);
/hardware/interfaces/graphics/mapper/4.0/utils/vts/
DMapperVts.cpp144 const native_handle_t* Gralloc::allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate() argument
147 BufferDescriptor descriptor = createDescriptor(descriptorInfo); in allocate()
180 BufferDescriptor Gralloc::createDescriptor(const IMapper::BufferDescriptorInfo& descriptorInfo) { in createDescriptor() argument
182 mMapper->createDescriptor(descriptorInfo, [&](const auto& tmpError, const auto& tmpDescriptor) { in createDescriptor()
302 const IMapper::BufferDescriptorInfo& descriptorInfo, in validateBufferSize() argument
306 Error error = mMapper->validateBufferSize(buffer, descriptorInfo, stride); in validateBufferSize()
327 bool Gralloc::isSupported(const IMapper::BufferDescriptorInfo& descriptorInfo) { in isSupported() argument
329 mMapper->isSupported(descriptorInfo, [&](const auto& tmpError, const auto& tmpSupported) { in isSupported()
336 bool Gralloc::isSupportedNoFailure(const IMapper::BufferDescriptorInfo& descriptorInfo) { in isSupportedNoFailure() argument
338 mMapper->isSupported(descriptorInfo, [&](const auto& tmpError, const auto& tmpSupported) { in isSupportedNoFailure()
[all …]
/hardware/interfaces/graphics/mapper/3.0/utils/vts/
DMapperVts.cpp128 const native_handle_t* Gralloc::allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate() argument
130 BufferDescriptor descriptor = createDescriptor(descriptorInfo); in allocate()
147 BufferDescriptor Gralloc::createDescriptor(const IMapper::BufferDescriptorInfo& descriptorInfo) { in createDescriptor() argument
149 mMapper->createDescriptor(descriptorInfo, [&](const auto& tmpError, const auto& tmpDescriptor) { in createDescriptor()
268 const IMapper::BufferDescriptorInfo& descriptorInfo, in validateBufferSize() argument
272 Error error = mMapper->validateBufferSize(buffer, descriptorInfo, stride); in validateBufferSize()
293 bool Gralloc::isSupported(const IMapper::BufferDescriptorInfo& descriptorInfo) { in isSupported() argument
295 mMapper->isSupported(descriptorInfo, [&](const auto& tmpError, const auto& tmpSupported) { in isSupported()
/hardware/interfaces/graphics/allocator/aidl/vts/
DVtsHalGraphicsAllocatorAidl_TargetTest.cpp165 BufferDescriptor createDescriptor(const BufferDescriptorInfo& descriptorInfo) { in createDescriptor() argument
168 convert(descriptorInfo), [&](const auto& tmpError, const auto& tmpDescriptor) { in createDescriptor()
177 std::unique_ptr<BufferHandle> allocate(const BufferDescriptorInfo& descriptorInfo) { in allocate() argument
181 status = mAllocator->allocate2(descriptorInfo, 1, &result); in allocate()
183 auto descriptor = createDescriptor(descriptorInfo); in allocate()
203 result.stride, descriptorInfo); in allocate()
207 bool isSupported(const BufferDescriptorInfo& descriptorInfo) { in isSupported() argument
210 EXPECT_TRUE(mAllocator->isSupported(descriptorInfo, &ret).isOk()); in isSupported()
212 EXPECT_TRUE(mMapper4->isSupported(convert(descriptorInfo), in isSupported()
/hardware/google/gchips/gralloc4/src/4.x/
DGrallocMapper.cpp44 Return<void> GrallocMapper::createDescriptor(const BufferDescriptorInfo &descriptorInfo, createDesc… in createDescriptor() argument
46 if (common::validateDescriptorInfo(descriptorInfo)) in createDescriptor()
48 hidl_cb(hidl::Error::NONE, common::grallocEncodeBufferDescriptor<uint8_t>(descriptorInfo)); in createDescriptor()
83 …:Error> GrallocMapper::validateBufferSize(void *buffer, const BufferDescriptorInfo &descriptorInfo, in validateBufferSize() argument
87 if (!common::validateDescriptorInfo<BufferDescriptorInfo>(descriptorInfo)) in validateBufferSize()
92 return static_cast<hidl::Error>(common::validateBufferSize(buffer, descriptorInfo, in_stride)); in validateBufferSize()
DGrallocMapper.h49 …Return<void> createDescriptor(const BufferDescriptorInfo &descriptorInfo, createDescriptor_cb hidl…
55 …<hidl::Error> validateBufferSize(void *buffer, const IMapper::BufferDescriptorInfo &descriptorInfo,
/hardware/interfaces/graphics/allocator/2.0/utils/passthrough/include/allocator-passthrough/2.0/
DGralloc0Hal.h76 mapper::V2_0::IMapper::BufferDescriptorInfo descriptorInfo; in allocateBuffers() local
77 if (!grallocDecodeBufferDescriptor(descriptor, &descriptorInfo)) { in allocateBuffers()
90 error = allocateOneBuffer(descriptorInfo, &tmpBuffer, &tmpStride); in allocateBuffers()
DGralloc1Hal.h86 mapper::V2_0::IMapper::BufferDescriptorInfo descriptorInfo; in allocateBuffers() local
87 if (!grallocDecodeBufferDescriptor(descriptor, &descriptorInfo)) { in allocateBuffers()
92 Error error = createDescriptor(descriptorInfo, &desc); in allocateBuffers()
/hardware/interfaces/graphics/mapper/2.0/utils/vts/include/mapper-vts/2.0/
DMapperVts.h56 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo,
63 BufferDescriptor createDescriptor(const IMapper::BufferDescriptorInfo& descriptorInfo);
/hardware/interfaces/graphics/mapper/2.1/
DIMapper.hal62 * the specified descriptorInfo and stride. This must at least validate
67 * @param descriptorInfo specifies the attributes of the buffer.
74 BufferDescriptorInfo descriptorInfo,
111 * @param descriptorInfo specifies the attributes of the descriptor.
121 createDescriptor_2_1(BufferDescriptorInfo descriptorInfo)
/hardware/interfaces/graphics/mapper/2.0/utils/vts/
DMapperVts.cpp107 const native_handle_t* Gralloc::allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate() argument
109 BufferDescriptor descriptor = createDescriptor(descriptorInfo); in allocate()
126 BufferDescriptor Gralloc::createDescriptor(const IMapper::BufferDescriptorInfo& descriptorInfo) { in createDescriptor() argument
128 mMapper->createDescriptor(descriptorInfo, [&](const auto& tmpError, const auto& tmpDescriptor) { in createDescriptor()
/hardware/interfaces/graphics/mapper/2.0/utils/hal/include/mapper-hal/2.0/
DMapperHal.h34 virtual Error createDescriptor(const IMapper::BufferDescriptorInfo& descriptorInfo,

12