Searched refs:neededSize (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/media/jni/ |
D | android_media_MediaDescrambler.cpp | 78 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/ |
D | ESQueue.cpp | 663 size_t neededSize = (mBuffer == NULL ? 0 : mBuffer->size()) + size; in appendData() local 664 if (mBuffer == NULL || neededSize > mBuffer->capacity()) { in appendData() 665 neededSize = (neededSize + 65535) & ~65535; in appendData() 667 ALOGV("resizing buffer to size %zu", neededSize); in appendData() 669 sp<ABuffer> buffer = new ABuffer(neededSize); in appendData() 709 size_t neededSize = (mScrambledBuffer == NULL ? 0 : mScrambledBuffer->size()) + size; in appendScrambledData() local 710 if (mScrambledBuffer == NULL || neededSize > mScrambledBuffer->capacity()) { in appendScrambledData() 711 neededSize = (neededSize + 65535) & ~65535; in appendScrambledData() 713 ALOGI("resizing scrambled buffer to size %zu", neededSize); in appendScrambledData() 715 sp<ABuffer> buffer = new ABuffer(neededSize); in appendScrambledData()
|
D | ATSParser.cpp | 972 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/ |
D | SoftVideoEncoderOMXComponent.cpp | 585 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()
|