Searched refs:mediaBuffer (Results 1 – 8 of 8) sorted by relevance
/frameworks/av/media/libstagefright/tests/writer/ |
D | WriterUtility.cpp | 52 MediaBuffer *mediaBuffer = new MediaBuffer(buffer); in sendBuffersToWriter() local 55 mediaBuffer->add_ref(); in sendBuffersToWriter() 56 mediaBuffer->set_range(buffer->offset(), buffer->size()); in sendBuffersToWriter() 58 MetaDataBase &sampleMetaData = mediaBuffer->meta_data(); in sendBuffersToWriter() 68 int status = currentTrack->pushBuffer(mediaBuffer); in sendBuffersToWriter()
|
/frameworks/av/media/libstagefright/writer_fuzzers/ |
D | WriterFuzzerBase.cpp | 216 MediaBuffer *mediaBuffer = new MediaBuffer(buffer); in sendBuffersToWriter() local 218 mediaBuffer->set_range(buffer->offset(), buffer->size()); in sendBuffersToWriter() 219 MetaDataBase &sampleMetaData = mediaBuffer->meta_data(); in sendBuffersToWriter() 229 mediaBuffer->add_ref(); in sendBuffersToWriter() 232 android::status_t pushStatus = currentTrack->pushBuffer(mediaBuffer); in sendBuffersToWriter() 237 mediaBuffer->setObserver(currentTrack.get()); in sendBuffersToWriter() 239 mediaBuffer->release(); in sendBuffersToWriter()
|
/frameworks/av/media/libstagefright/ |
D | MediaMuxer.cpp | 234 MediaBuffer* mediaBuffer = new MediaBuffer(buffer); in writeSampleData() local 236 mediaBuffer->add_ref(); // Released in MediaAdapter::signalBufferReturned(). in writeSampleData() 237 mediaBuffer->set_range(buffer->offset(), buffer->size()); in writeSampleData() 239 MetaDataBase &sampleMetaData = mediaBuffer->meta_data(); in writeSampleData() 275 return currentTrack->pushBuffer(mediaBuffer); in writeSampleData()
|
D | FrameDecoder.cpp | 407 MediaBufferBase *mediaBuffer = NULL; in extractInternal() local 409 err = mSource->read(&mediaBuffer, &mReadOptions); in extractInternal() 423 if (mediaBuffer->range_length() > codecBuffer->capacity()) { in extractInternal() 425 mediaBuffer->range_length(), codecBuffer->capacity()); in extractInternal() 429 codecBuffer->setRange(0, mediaBuffer->range_length()); in extractInternal() 431 CHECK(mediaBuffer->meta_data().findInt64(kKeyTime, &ptsUs)); in extractInternal() 433 (const uint8_t*)mediaBuffer->data() + mediaBuffer->range_offset(), in extractInternal() 434 mediaBuffer->range_length()); in extractInternal() 436 onInputReceived(codecBuffer, mediaBuffer->meta_data(), mFirstSample, &flags); in extractInternal() 440 mediaBuffer->release(); in extractInternal()
|
/frameworks/av/media/libstagefright/webm/tests/ |
D | WebmFrameThreadUnitTest.cpp | 228 MediaBuffer *mediaBuffer = new MediaBuffer(buffer); in writeFileData() local 229 ASSERT_NE(mediaBuffer, nullptr) << "MediaBuffer returned nullptr"; in writeFileData() 231 mediaBuffer->add_ref(); in writeFileData() 232 mediaBuffer->set_range(buffer->offset(), buffer->size()); in writeFileData() 234 MetaDataBase &sampleMetaData = mediaBuffer->meta_data(); in writeFileData() 244 status = mSource[idx]->pushBuffer(mediaBuffer); in writeFileData()
|
/frameworks/av/media/libmedia/include/media/ |
D | MediaBufferHolder.h | 40 MediaBufferBase* mediaBuffer() { return mMediaBuffer; } in mediaBuffer() function
|
/frameworks/av/media/module/mpeg2ts/ |
D | AnotherPacketSource.cpp | 207 MediaBufferBase *mediaBuffer = new MediaBuffer(buffer); in read() local 208 MetaDataBase &bufmeta = mediaBuffer->meta_data(); in read() 269 *out = mediaBuffer; in read()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoder.cpp | 1112 static_cast<MediaBufferHolder*>(holder.get())->mediaBuffer() : nullptr; in onInputBufferFetched()
|