Home
last modified time | relevance | path

Searched refs:sPadding (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/codec2/vndk/
DC2AllocatorIon.cpp391 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()
DC2DmaBufAllocator.cpp396 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()