Home
last modified time | relevance | path

Searched refs:neededSize (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/media/jni/
Dandroid_media_MediaDescrambler.cpp78 bool ensureBufferCapacity(size_t neededSize);
173 bool JDescrambler::ensureBufferCapacity(size_t neededSize) { in ensureBufferCapacity() argument
174 if (mMem != NULL && mMem->size() >= neededSize) { in ensureBufferCapacity()
179 mMem == NULL ? 0 : mMem->size(), neededSize); in ensureBufferCapacity()
182 neededSize = (neededSize + (alignment - 1)) & ~(alignment - 1); in ensureBufferCapacity()
184 neededSize = (neededSize + 65535) & ~65535; in ensureBufferCapacity()
185 mDealer = new MemoryDealer(neededSize, "JDescrambler"); in ensureBufferCapacity()
186 mMem = mDealer->allocate(neededSize); in ensureBufferCapacity()
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp972 bool ATSParser::Stream::ensureBufferCapacity(size_t neededSize) { in ensureBufferCapacity() argument
973 if (mBuffer != NULL && mBuffer->capacity() >= neededSize) { in ensureBufferCapacity()
978 mBuffer == NULL ? 0 : mBuffer->capacity(), neededSize, mScrambled); in ensureBufferCapacity()
994 neededSize, in ensureBufferCapacity()
1031 mDescramblerSrcBuffer.size = (uint64_t)neededSize; in ensureBufferCapacity()
1034 mElementaryPID, neededSize); in ensureBufferCapacity()
1037 neededSize = (neededSize + 65535) & ~65535; in ensureBufferCapacity()
1040 newBuffer = new ABuffer(neededSize); in ensureBufferCapacity()
1121 size_t neededSize = mBuffer->size() + payloadSizeBits / 8; in parse() local
1122 if (!ensureBufferCapacity(neededSize)) { in parse()
/frameworks/av/media/libstagefright/omx/
DSoftVideoEncoderOMXComponent.cpp585 size_t neededSize = in extractGraphicBuffer() local
588 if (dstSize < neededSize) { in extractGraphicBuffer()
589 ALOGE("destination buffer is too small (%zu vs %zu)", dstSize, neededSize); in extractGraphicBuffer()