Home
last modified time | relevance | path

Searched refs:hardwareBuffer (Results 1 – 13 of 13) sorted by relevance

/hardware/interfaces/neuralnetworks/aidl/utils/src/
DUtils.cpp82 case Memory::Tag::hardwareBuffer: { in clone()
83 const auto& hardwareBuffer = memory.get<Memory::Tag::hardwareBuffer>(); in clone() local
85 .description = hardwareBuffer.description, in clone()
86 .handle = NN_TRY(clone(hardwareBuffer.handle)), in clone()
88 return Memory::make<Memory::Tag::hardwareBuffer>(std::move(handle)); in clone()
DConversions.cpp384 case Tag::hardwareBuffer: { in unvalidatedConvert()
385 const auto& hardwareBuffer = memory.get<Tag::hardwareBuffer>(); in unvalidatedConvert() local
388 NN_TRY(nativeHandleFromAidlHandle(hardwareBuffer.handle)); in unvalidatedConvert()
392 .width = static_cast<uint32_t>(hardwareBuffer.description.width), in unvalidatedConvert()
393 .height = static_cast<uint32_t>(hardwareBuffer.description.height), in unvalidatedConvert()
394 .layers = static_cast<uint32_t>(hardwareBuffer.description.layers), in unvalidatedConvert()
395 .format = static_cast<uint32_t>(hardwareBuffer.description.format), in unvalidatedConvert()
396 .usage = static_cast<uint64_t>(hardwareBuffer.description.usage), in unvalidatedConvert()
397 .stride = static_cast<uint32_t>(hardwareBuffer.description.stride), in unvalidatedConvert()
719 auto hardwareBuffer = graphics::common::HardwareBuffer{ in unvalidatedConvert()
[all …]
/hardware/interfaces/automotive/sv/1.0/vts/functional/
DSurroundViewStreamHandler.cpp65 if (svFramesDesc.svBuffers[i].hardwareBuffer.nativeHandle == nullptr) { in receiveFrames()
80 mLastReceivedFrames.svBuffers[i].hardwareBuffer.description = in receiveFrames()
81 svFramesDesc.svBuffers[i].hardwareBuffer.description; in receiveFrames()
DVtsHalSurroundViewV1_0TargetTest.cpp215 reinterpret_cast<const AHardwareBuffer_Desc *>(&svBuffer2d.hardwareBuffer.description); in TEST_P()
280 reinterpret_cast<const AHardwareBuffer_Desc *>(&svBuffer2d.hardwareBuffer.description); in TEST_P()
319 reinterpret_cast<const AHardwareBuffer_Desc *>(&svBuffer2d.hardwareBuffer.description); in TEST_P()
377 reinterpret_cast<const AHardwareBuffer_Desc *>(&svBuffer2d.hardwareBuffer.description); in TEST_P()
646 EXPECT_EQ(frames.svBuffers[0].hardwareBuffer.description[0], in TEST_P()
647 frames.svBuffers[1].hardwareBuffer.description[0]); in TEST_P()
648 EXPECT_EQ(frames.svBuffers[0].hardwareBuffer.description[1], in TEST_P()
649 frames.svBuffers[1].hardwareBuffer.description[1]); in TEST_P()
650 EXPECT_EQ(frames.svBuffers[1].hardwareBuffer.description[0], in TEST_P()
651 frames.svBuffers[2].hardwareBuffer.description[0]); in TEST_P()
[all …]
/hardware/interfaces/automotive/sv/1.0/default/
DSurroundView2dSession.cpp38 framesRecord.frames.svBuffers[0].hardwareBuffer.nativeHandle = in SurroundView2dSession()
40 framesRecord.frames.svBuffers[0].hardwareBuffer.description[0] = in SurroundView2dSession()
42 framesRecord.frames.svBuffers[0].hardwareBuffer.description[1] = in SurroundView2dSession()
204 framesRecord.frames.svBuffers[0].hardwareBuffer.description[0] = in generateFrames()
206 framesRecord.frames.svBuffers[0].hardwareBuffer.description[1] = in generateFrames()
DSurroundView3dSession.cpp48 framesRecord.frames.svBuffers[0].hardwareBuffer.nativeHandle = new native_handle_t(); in SurroundView3dSession()
49 framesRecord.frames.svBuffers[0].hardwareBuffer.description[0] = mConfig.width; in SurroundView3dSession()
50 framesRecord.frames.svBuffers[0].hardwareBuffer.description[1] = mConfig.height; in SurroundView3dSession()
281 framesRecord.frames.svBuffers[i].hardwareBuffer.nativeHandle = new native_handle_t(); in generateFrames()
282 framesRecord.frames.svBuffers[i].hardwareBuffer.description[0] = mConfig.width; // width in generateFrames()
283 … framesRecord.frames.svBuffers[i].hardwareBuffer.description[1] = mConfig.height; // height in generateFrames()
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
DMemory.aidl39 android.hardware.graphics.common.HardwareBuffer hardwareBuffer;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/
DMemory.aidl39 android.hardware.graphics.common.HardwareBuffer hardwareBuffer;
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
DMemory.aidl39 HardwareBuffer hardwareBuffer;
/hardware/interfaces/neuralnetworks/utils/common/src/
DCommonUtils.cpp370 AHardwareBuffer* hardwareBuffer = nullptr; in createSharedMemoryFromHidlMemory() local
384 &hardwareBuffer); in createSharedMemoryFromHidlMemory()
394 return nn::createSharedMemoryFromAHWB(hardwareBuffer, /*takeOwnership=*/true); in createSharedMemoryFromHidlMemory()
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DMemoryDomainTests.cpp672 case Memory::Tag::hardwareBuffer: { in getSize()
673 const auto& hardwareBuffer = memory.get<Memory::Tag::hardwareBuffer>(); in getSize() local
675 hardwareBuffer.description.format == graphics::common::PixelFormat::BLOB; in getSize()
676 return isBlob ? hardwareBuffer.description.width : 0; in getSize()
DValidateModel.cpp267 if (memory.getTag() == Memory::Tag::hardwareBuffer) { in sizeForBinder()
268 const NativeHandle& handle = memory.get<Memory::Tag::hardwareBuffer>().handle; in sizeForBinder()
/hardware/interfaces/automotive/sv/1.0/
Dtypes.hal136 HardwareBuffer hardwareBuffer;