Home
last modified time | relevance | path

Searched refs:srcBuffer (Results 1 – 25 of 62) sorted by relevance

123

/hardware/interfaces/automotive/evs/1.0/vts/functional/
DFrameHandler.cpp220 const BufferDesc& srcBuffer) { in copyBufferContents() argument
225 srcBuffer.width); in copyBufferContents()
227 srcBuffer.height); in copyBufferContents()
234 srcBuffer.memHandle, android::GraphicBuffer::CLONE_HANDLE, in copyBufferContents()
235 srcBuffer.width, srcBuffer.height, srcBuffer.format, 1, srcBuffer.usage, in copyBufferContents()
236 srcBuffer.stride); in copyBufferContents()
249 if (srcBuffer.format == HAL_PIXEL_FORMAT_YCRCB_420_SP) { // 420SP == NV21 in copyBufferContents()
253 } else if (srcBuffer.format == HAL_PIXEL_FORMAT_YV12) { // YUV_420P == YV12 in copyBufferContents()
257 } else if (srcBuffer.format == HAL_PIXEL_FORMAT_YCBCR_422_I) { // YUYV in copyBufferContents()
259 srcPixels, srcBuffer.stride, in copyBufferContents()
[all …]
DFrameHandler.h71 bool copyBufferContents(const BufferDesc& tgtBuffer, const BufferDesc& srcBuffer);
/hardware/interfaces/cas/aidl/default/
DDescramblerImpl.cpp84 const SharedBuffer& srcBuffer, int64_t srcOffset, in descramble() argument
92 if (srcBuffer.heapBase.size > SIZE_MAX) { in descramble()
93 ALOGE("Invalid memory size: %" PRIu64 "", srcBuffer.heapBase.size); in descramble()
98 void* srcPtr = mmap(NULL, srcBuffer.heapBase.size, PROT_READ | PROT_WRITE, MAP_SHARED, in descramble()
99 srcBuffer.heapBase.fd.get(), 0); in descramble()
107 if (!validateRangeForSize(srcBuffer.offset, srcBuffer.size, srcBuffer.heapBase.size)) { in descramble()
111 srcBuffer.offset, srcBuffer.size, srcBuffer.heapBase.size); in descramble()
125 if (!validateRangeForSize(srcOffset, totalBytesInSubSamples, srcBuffer.size)) { in descramble()
130 srcOffset, totalBytesInSubSamples, srcBuffer.size); in descramble()
134 srcPtr = (uint8_t*)srcPtr + srcBuffer.offset; in descramble()
[all …]
/hardware/interfaces/cas/1.1/default/
DDescramblerImpl.cpp87 const SharedBuffer& srcBuffer, uint64_t srcOffset, in descramble() argument
95 if (srcBuffer.heapBase.size() > SIZE_MAX) { in descramble()
96 ALOGE("Invalid hidl_memory size: %" PRIu64 "", srcBuffer.heapBase.size()); in descramble()
102 sp<IMemory> srcMem = mapMemory(srcBuffer.heapBase); in descramble()
111 if (!validateRangeForSize(srcBuffer.offset, srcBuffer.size, (uint64_t)srcMem->getSize())) { in descramble()
113 "size %" PRIu64 "", srcBuffer.offset, srcBuffer.size, (uint64_t)srcMem->getSize()); in descramble()
127 if (!validateRangeForSize(srcOffset, totalBytesInSubSamples, srcBuffer.size)) { in descramble()
130 "size %" PRIu64 "", srcOffset, totalBytesInSubSamples, srcBuffer.size); in descramble()
136 void* srcPtr = (uint8_t*)(void*)srcMem->getPointer() + srcBuffer.offset; in descramble()
145 if (!validateRangeForSize(dstOffset, totalBytesInSubSamples, srcBuffer.size)) { in descramble()
[all …]
DDescramblerImpl.h48 const SharedBuffer& srcBuffer, uint64_t srcOffset,
/hardware/interfaces/cas/1.2/default/
DDescramblerImpl.cpp87 const SharedBuffer& srcBuffer, uint64_t srcOffset, in descramble() argument
95 if (srcBuffer.heapBase.size() > SIZE_MAX) { in descramble()
96 ALOGE("Invalid hidl_memory size: %" PRIu64 "", srcBuffer.heapBase.size()); in descramble()
102 sp<IMemory> srcMem = mapMemory(srcBuffer.heapBase); in descramble()
111 if (!validateRangeForSize(srcBuffer.offset, srcBuffer.size, (uint64_t)srcMem->getSize())) { in descramble()
113 "size %" PRIu64 "", srcBuffer.offset, srcBuffer.size, (uint64_t)srcMem->getSize()); in descramble()
127 if (!validateRangeForSize(srcOffset, totalBytesInSubSamples, srcBuffer.size)) { in descramble()
130 "size %" PRIu64 "", srcOffset, totalBytesInSubSamples, srcBuffer.size); in descramble()
136 void* srcPtr = (uint8_t*)(void*)srcMem->getPointer() + srcBuffer.offset; in descramble()
145 if (!validateRangeForSize(dstOffset, totalBytesInSubSamples, srcBuffer.size)) { in descramble()
[all …]
DDescramblerImpl.h48 const SharedBuffer& srcBuffer, uint64_t srcOffset,
/hardware/interfaces/cas/1.0/default/
DDescramblerImpl.cpp93 const SharedBuffer& srcBuffer, in descramble() argument
103 if (srcBuffer.heapBase.size() > SIZE_MAX) { in descramble()
104 ALOGE("Invalid hidl_memory size: %" PRIu64 "", srcBuffer.heapBase.size()); in descramble()
110 sp<IMemory> srcMem = mapMemory(srcBuffer.heapBase); in descramble()
120 srcBuffer.offset, srcBuffer.size, (uint64_t)srcMem->getSize())) { in descramble()
122 "size %" PRIu64 "", srcBuffer.offset, srcBuffer.size, (uint64_t)srcMem->getSize()); in descramble()
136 if (!validateRangeForSize(srcOffset, totalBytesInSubSamples, srcBuffer.size)) { in descramble()
139 "size %" PRIu64 "", srcOffset, totalBytesInSubSamples, srcBuffer.size); in descramble()
145 void *srcPtr = (uint8_t *)(void *)srcMem->getPointer() + srcBuffer.offset; in descramble()
154 if (!validateRangeForSize(dstOffset, totalBytesInSubSamples, srcBuffer.size)) { in descramble()
[all …]
DDescramblerImpl.h48 const SharedBuffer& srcBuffer,
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/commonvalidity/
Dcopy_buffer_common.adoc9 less than the size of pname:srcBuffer
15 than or equal to the size of pname:srcBuffer minus pname:srcOffset
23 * [[VUID-{refpage}-srcBuffer-00118]]
24 pname:srcBuffer must: have been created with
26 * [[VUID-{refpage}-srcBuffer-00119]]
27 If pname:srcBuffer is non-sparse then it must: be bound completely and
Dcopy_buffer_to_image_common.adoc8 pname:srcBuffer must: be large enough to contain all buffer locations
15 * [[VUID-{refpage}-srcBuffer-00174]]
16 pname:srcBuffer must: have been created with
23 * [[VUID-{refpage}-srcBuffer-00176]]
24 If pname:srcBuffer is non-sparse then it must: be bound completely and
46 depth aspect, the data in pname:srcBuffer must: be in the range
Dcopy_buffer_command_buffer_common.adoc11 pname:srcBuffer must: not be a protected buffer
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/reflow-tests/
Dexpect-common-validity-noreflow.adoc8 pname:srcBuffer must: be large enough to contain all buffer locations
15 * [[VUID-{refpage}-srcBuffer-10001]]
16 pname:srcBuffer must: have been created with ename:VK_BUFFER_USAGE_TRANSFER_SRC_BIT usage flag
22 * [[VUID-{refpage}-srcBuffer-00176]]
23 …If pname:srcBuffer is non-sparse then it must: be bound completely and contiguously to a single sn…
Dexpect-common-validity-default.adoc8 pname:srcBuffer must: be large enough to contain all buffer locations
15 * [[VUID-{refpage}-srcBuffer-10001]]
16 pname:srcBuffer must: have been created with
23 * [[VUID-{refpage}-srcBuffer-00176]]
24 If pname:srcBuffer is non-sparse then it must: be bound completely and
Dsrc-common-validity.adoc8 pname:srcBuffer must: be large enough to contain all buffer locations
14 * pname:srcBuffer must: have been created with ename:VK_BUFFER_USAGE_TRANSFER_SRC_BIT usage flag
19 * [[VUID-{refpage}-srcBuffer-00176]]
20 …If pname:srcBuffer is non-sparse then it must: be bound completely and contiguously to a single sn…
Dexpect-common-validity-novuid.adoc8 pname:srcBuffer must: be large enough to contain all buffer locations
14 * pname:srcBuffer must: have been created with
20 * [[VUID-{refpage}-srcBuffer-00176]]
21 If pname:srcBuffer is non-sparse then it must: be bound completely and
Dexpect-common-validity-noreflow-novuid.adoc8 pname:srcBuffer must: be large enough to contain all buffer locations
14 * pname:srcBuffer must: have been created with ename:VK_BUFFER_USAGE_TRANSFER_SRC_BIT usage flag
19 * [[VUID-{refpage}-srcBuffer-00176]]
20 …If pname:srcBuffer is non-sparse then it must: be bound completely and contiguously to a single sn…
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_cmd_copy.c30 VkBuffer srcBuffer, in vk_common_CmdCopyBuffer() argument
53 .srcBuffer = srcBuffer, in vk_common_CmdCopyBuffer()
108 VkBuffer srcBuffer, in vk_common_CmdCopyBufferToImage() argument
135 .srcBuffer = srcBuffer, in vk_common_CmdCopyBufferToImage()
/hardware/interfaces/cas/aidl/aidl_api/android.hardware.cas/1/android/hardware/cas/
DIDescrambler.aidl38 …rdware.cas.SubSample[] subSamples, in android.hardware.cas.SharedBuffer srcBuffer, in long srcOffs… in descramble() argument
/hardware/interfaces/cas/aidl/aidl_api/android.hardware.cas/current/android/hardware/cas/
DIDescrambler.aidl38 …rdware.cas.SubSample[] subSamples, in android.hardware.cas.SharedBuffer srcBuffer, in long srcOffs… in descramble() argument
/hardware/interfaces/cas/aidl/android/hardware/cas/
DIDescrambler.aidl46 in SharedBuffer srcBuffer, in long srcOffset, in DestinationBuffer dstBuffer, in descramble() argument
/hardware/interfaces/cas/native/1.0/
DIDescrambler.hal34 * @param srcBuffer the SharedBuffer containing the source scrambled data.
44 SharedBuffer srcBuffer, uint64_t srcOffset, DestinationBuffer dstBuffer, uint64_t dstOffset)
/hardware/interfaces/cas/1.1/vts/functional/
DVtsHalCasV1_1TargetTest.cpp381 SharedBuffer srcBuffer = { in descrambleTestInputBuffer() local
386 dstBuffer.nonsecureMemory = srcBuffer; in descrambleTestInputBuffer()
391 ScramblingControl::EVENKEY /*2*/, hidlSubSamples, srcBuffer, 0, dstBuffer, 0, in descrambleTestInputBuffer()
435 SharedBuffer srcBuffer = { in descrambleTestOobInput() local
443 dstBuffer.nonsecureMemory = srcBuffer; in descrambleTestOobInput()
448 ScramblingControl::EVENKEY /*2*/, hidlSubSamples, srcBuffer, params.srcOffset, in descrambleTestOobInput()
/hardware/interfaces/cas/1.2/vts/functional/
DVtsHalCasV1_2TargetTest.cpp415 SharedBuffer srcBuffer = { in descrambleTestInputBuffer() local
420 dstBuffer.nonsecureMemory = srcBuffer; in descrambleTestInputBuffer()
425 ScramblingControl::EVENKEY /*2*/, hidlSubSamples, srcBuffer, 0, dstBuffer, 0, in descrambleTestInputBuffer()
469 SharedBuffer srcBuffer = { in descrambleTestOobInput() local
477 dstBuffer.nonsecureMemory = srcBuffer; in descrambleTestOobInput()
482 ScramblingControl::EVENKEY /*2*/, hidlSubSamples, srcBuffer, params.srcOffset, in descrambleTestOobInput()
/hardware/interfaces/automotive/evs/1.1/vts/functional/
DFrameHandler.cpp242 const BufferDesc_1_1& srcBuffer) { in copyBufferContents() argument
245 reinterpret_cast<const AHardwareBuffer_Desc *>(&srcBuffer.buffer.description); in copyBufferContents()
261 sp<android::GraphicBuffer> src = new android::GraphicBuffer(srcBuffer.buffer.nativeHandle, in copyBufferContents()

123