Home
last modified time | relevance | path

Searched refs:mediaBuffer (Results 1 – 7 of 7) sorted by relevance

/frameworks/av/media/libstagefright/
DMediaMuxer.cpp168 MediaBuffer* mediaBuffer = new MediaBuffer(buffer); in writeSampleData() local
170 mediaBuffer->add_ref(); // Released in MediaAdapter::signalBufferReturned(). in writeSampleData()
171 mediaBuffer->set_range(buffer->offset(), buffer->size()); in writeSampleData()
173 sp<MetaData> sampleMetaData = mediaBuffer->meta_data(); in writeSampleData()
184 return currentTrack->pushBuffer(mediaBuffer); in writeSampleData()
DStagefrightMetadataRetriever.cpp268 MediaBuffer *mediaBuffer = NULL; in extractVideoFrame() local
270 err = source->read(&mediaBuffer, &options); in extractVideoFrame()
278 if (mediaBuffer->range_length() > codecBuffer->capacity()) { in extractVideoFrame()
280 mediaBuffer->range_length(), codecBuffer->capacity()); in extractVideoFrame()
283 codecBuffer->setRange(0, mediaBuffer->range_length()); in extractVideoFrame()
285 CHECK(mediaBuffer->meta_data()->findInt64(kKeyTime, &ptsUs)); in extractVideoFrame()
287 (const uint8_t*)mediaBuffer->data() + mediaBuffer->range_offset(), in extractVideoFrame()
288 mediaBuffer->range_length()); in extractVideoFrame()
296 mediaBuffer->release(); in extractVideoFrame()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDecoder.cpp783 MediaBuffer *mediaBuffer = NULL; in onInputBufferFetched() local
785 mediaBuffer = (MediaBuffer *)(buffer->getMediaBufferBase()); in onInputBufferFetched()
786 if (mediaBuffer != NULL) { in onInputBufferFetched()
791 if (buf->data() == mediaBuffer->data()) { in onInputBufferFetched()
796 mediaBuffer->release(); in onInputBufferFetched()
805 mediaBuffer->range_offset(), in onInputBufferFetched()
806 mediaBuffer->range_length()); in onInputBufferFetched()
884 if (mediaBuffer != NULL) { in onInputBufferFetched()
885 mediaBuffer->release(); in onInputBufferFetched()
892 if (mediaBuffer != NULL) { in onInputBufferFetched()
[all …]
/frameworks/av/media/libstagefright/foundation/
DABuffer.cpp95 void ABuffer::setMediaBufferBase(MediaBufferBase *mediaBuffer) { in setMediaBufferBase() argument
99 mMediaBufferBase = mediaBuffer; in setMediaBufferBase()
/frameworks/av/media/libstagefright/mpeg2ts/
DAnotherPacketSource.cpp205 MediaBuffer *mediaBuffer = new MediaBuffer(buffer); in read() local
207 mediaBuffer->meta_data()->setInt64(kKeyTime, timeUs); in read()
211 mediaBuffer->meta_data()->setInt32(kKeyIsSyncFrame, isSync); in read()
216 mediaBuffer->meta_data()->setData(kKeySEI, 0, sei->data(), sei->size()); in read()
221 mediaBuffer->meta_data()->setData( in read()
225 *out = mediaBuffer; in read()
/frameworks/av/include/media/stagefright/foundation/
DABuffer.h53 void setMediaBufferBase(MediaBufferBase *mediaBuffer);
/frameworks/av/media/libstagefright/wifi-display/source/
DConverter.cpp627 MediaBuffer *mediaBuffer = in feedEncoderInputBuffers() local
629 if (mediaBuffer != NULL) { in feedEncoderInputBuffers()
631 mediaBuffer); in feedEncoderInputBuffers()