Home
last modified time | relevance | path

Searched refs:neededSize (Results 1 – 4 of 4) 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/
DESQueue.cpp670 size_t neededSize = (mBuffer == NULL ? 0 : mBuffer->size()) + size; in appendData() local
671 if (mBuffer == NULL || neededSize > mBuffer->capacity()) { in appendData()
672 neededSize = (neededSize + 65535) & ~65535; in appendData()
674 ALOGV("resizing buffer to size %zu", neededSize); in appendData()
676 sp<ABuffer> buffer = new ABuffer(neededSize); in appendData()
716 size_t neededSize = (mScrambledBuffer == NULL ? 0 : mScrambledBuffer->size()) + size; in appendScrambledData() local
717 if (mScrambledBuffer == NULL || neededSize > mScrambledBuffer->capacity()) { in appendScrambledData()
718 neededSize = (neededSize + 65535) & ~65535; in appendScrambledData()
720 ALOGI("resizing scrambled buffer to size %zu", neededSize); in appendScrambledData()
722 sp<ABuffer> buffer = new ABuffer(neededSize); in appendScrambledData()
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()