Lines Matching refs:srcBuffer
87 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()
148 "size %" PRIu64 "", dstOffset, totalBytesInSubSamples, srcBuffer.size); in descramble()