Searched refs:sPadding (Results 1 – 2 of 2) sorted by relevance
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorIon.cpp | 391 static size_t sPadding = in Alloc() local 393 if (sPadding > SIZE_MAX - size) { in Alloc() 394 ALOGD("ion_alloc: size %#zx cannot accommodate padding %#zx", size, sPadding); in Alloc() 399 size_t allocSize = size + sPadding; in Alloc() 403 size, sPadding, align); in Alloc() 426 return new Impl(ionFd, allocSize - sPadding, bufferFd, buffer, id, ret); in Alloc() 434 return new ImplV2(ionFd, allocSize - sPadding, bufferFd, id, ret); in Alloc()
|
D | C2DmaBufAllocator.cpp | 396 static size_t sPadding = in newLinearAllocation() local 398 if (sPadding > SIZE_MAX - capacity) { in newLinearAllocation() 400 ALOGD("dmabuf_alloc: size #%x cannot accommodate padding #%zx", capacity, sPadding); in newLinearAllocation() 404 size_t allocSize = (size_t)capacity + sPadding; in newLinearAllocation() 407 mBufferAllocator, allocSize, allocSize - sPadding, heap_name, flags, getId()); in newLinearAllocation()
|