Home
last modified time | relevance | path

Searched refs:newBuffer (Results 1 – 11 of 11) sorted by relevance

/frameworks/av/media/codec2/sfplugin/
DCCodecBuffers.cpp56 return localBufferPool->newBuffer(capacity); in AllocateGraphicBuffer()
171 sp<ABuffer> LocalBufferPool::newBuffer(size_t capacity) { in newBuffer() function in android::LocalBufferPool
499 sp<Codec2Buffer> newBuffer = createNewBuffer(); in requestNewBuffer() local
500 if (newBuffer == nullptr) { in requestNewBuffer()
503 *index = mImpl.assignSlot(newBuffer); in requestNewBuffer()
504 *buffer = newBuffer; in requestNewBuffer()
671 sp<Codec2Buffer> newBuffer = createNewBuffer(); in requestNewBuffer() local
672 if (newBuffer == nullptr) { in requestNewBuffer()
675 *index = mImpl.assignSlot(newBuffer); in requestNewBuffer()
676 *buffer = newBuffer; in requestNewBuffer()
[all …]
DCCodecBuffers.h257 sp<ABuffer> newBuffer(size_t capacity);
/frameworks/av/media/libstagefright/
DCameraSourceTimeLapse.cpp194 MediaBufferBase **newBuffer, in createMediaBufferCopy() argument
201 (*newBuffer) = new MediaBuffer(sourceSize); in createMediaBufferCopy()
202 memcpy((*newBuffer)->data(), sourcePointer, sourceSize); in createMediaBufferCopy()
204 (*newBuffer)->meta_data().setInt64(kKeyTime, frameTime); in createMediaBufferCopy()
207 ((VideoNativeHandleMetadata*)((*newBuffer)->data()))->pHandle = in createMediaBufferCopy()
/frameworks/rs/
DrsList.h59 LinkedBuffer* newBuffer = new LinkedBuffer(); in push_back() local
60 currentBuffer->next = newBuffer; in push_back()
61 currentBuffer = newBuffer; in push_back()
/frameworks/av/cmds/stagefright/
Dmuxer.cpp159 sp<ABuffer> newBuffer = new ABuffer(bufferSize); in muxing() local
176 err = extractor->readSampleData(newBuffer); in muxing()
208 err = muxer->writeSampleData(newBuffer, in muxing()
218 newBuffer.clear(); in muxing()
/frameworks/base/libs/hwui/renderthread/
DReliableSurface.cpp220 AHardwareBuffer* newBuffer = nullptr; in acquireFallbackBuffer() local
221 int err = AHardwareBuffer_allocate(&desc, &newBuffer); in acquireFallbackBuffer()
227 mScratchBuffer.reset(newBuffer); in acquireFallbackBuffer()
228 return AHardwareBuffer_to_ANativeWindowBuffer(newBuffer); in acquireFallbackBuffer()
/frameworks/base/media/java/android/media/
DMediaCodec.java3008 public void put(int index, @Nullable ByteBuffer newBuffer) { in put() argument
3014 buffer.setByteBuffer(newBuffer); in put()
3215 ByteBuffer newBuffer = getBuffer(true /* input */, index); in getInputBuffer() local
3218 mDequeuedInputBuffers.put(index, newBuffer); in getInputBuffer()
3220 return newBuffer; in getInputBuffer()
3273 ByteBuffer newBuffer = getBuffer(false /* input */, index); in getOutputBuffer() local
3276 mDequeuedOutputBuffers.put(index, newBuffer); in getOutputBuffer()
3278 return newBuffer; in getOutputBuffer()
/frameworks/av/media/extractors/mpeg2/
DMPEG2PSExtractor.cpp179 sp<ABuffer> newBuffer = new ABuffer(newCapacity); in feedMore() local
180 memcpy(newBuffer->data(), mBuffer->data(), mBuffer->size()); in feedMore()
181 newBuffer->setRange(0, mBuffer->size()); in feedMore()
182 mBuffer = newBuffer; in feedMore()
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp980 sp<ABuffer> newBuffer, newScrambledBuffer; in ensureBufferCapacity() local
1040 newBuffer = new ABuffer(neededSize); in ensureBufferCapacity()
1042 memcpy(newBuffer->data(), mBuffer->data(), mBuffer->size()); in ensureBufferCapacity()
1043 newBuffer->setRange(0, mBuffer->size()); in ensureBufferCapacity()
1045 newBuffer->setRange(0, 0); in ensureBufferCapacity()
1047 mBuffer = newBuffer; in ensureBufferCapacity()
2436 sp<ABuffer> newBuffer = new ABuffer(newCapacity); in append() local
2439 memcpy(newBuffer->data(), mBuffer->data(), mBuffer->size()); in append()
2440 newBuffer->setRange(0, mBuffer->size()); in append()
2442 newBuffer->setRange(0, 0); in append()
[all …]
/frameworks/av/camera/
DCameraMetadata.cpp65 camera_metadata_t *newBuffer = clone_camera_metadata(buffer); in operator =() local
67 mBuffer = newBuffer; in operator =()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp5778 bool newBuffer = false; in read() local
5780 newBuffer = true; in read()
5826 if (newBuffer) { in read()
6134 bool newBuffer = false; in fragmentedRead() local
6136 newBuffer = true; in fragmentedRead()
6216 if (newBuffer) { in fragmentedRead()