Lines Matching refs:srcBuffer
94 const SharedBuffer& srcBuffer, in descramble() argument
104 if (srcBuffer.heapBase.size() > SIZE_MAX) { in descramble()
105 ALOGE("Invalid hidl_memory size: %" PRIu64 "", srcBuffer.heapBase.size()); in descramble()
111 sp<IMemory> srcMem = mapMemory(srcBuffer.heapBase); in descramble()
121 srcBuffer.offset, srcBuffer.size, (uint64_t)srcMem->getSize())) { in descramble()
123 "size %" PRIu64 "", srcBuffer.offset, srcBuffer.size, (uint64_t)srcMem->getSize()); in descramble()
137 if (!validateRangeForSize(srcOffset, totalBytesInSubSamples, srcBuffer.size)) { in descramble()
140 "size %" PRIu64 "", srcOffset, totalBytesInSubSamples, srcBuffer.size); in descramble()
146 void *srcPtr = (uint8_t *)(void *)srcMem->getPointer() + srcBuffer.offset; in descramble()
155 if (!validateRangeForSize(dstOffset, totalBytesInSubSamples, srcBuffer.size)) { in descramble()
158 "size %" PRIu64 "", dstOffset, totalBytesInSubSamples, srcBuffer.size); in descramble()