Searched refs:mediaBuffer (Results 1 – 7 of 7) 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/ |
D | MediaMuxer.cpp | 192 MediaBuffer* mediaBuffer = new MediaBuffer(buffer); in writeSampleData() local 194 mediaBuffer->add_ref(); // Released in MediaAdapter::signalBufferReturned(). in writeSampleData() 195 mediaBuffer->set_range(buffer->offset(), buffer->size()); in writeSampleData() 197 MetaDataBase &sampleMetaData = mediaBuffer->meta_data(); in writeSampleData() 212 return currentTrack->pushBuffer(mediaBuffer); in writeSampleData()
|
D | FrameDecoder.cpp | 299 MediaBufferBase *mediaBuffer = NULL; in extractInternal() local 301 err = mSource->read(&mediaBuffer, &mReadOptions); in extractInternal() 315 if (mediaBuffer->range_length() > codecBuffer->capacity()) { in extractInternal() 317 mediaBuffer->range_length(), codecBuffer->capacity()); in extractInternal() 321 codecBuffer->setRange(0, mediaBuffer->range_length()); in extractInternal() 323 CHECK(mediaBuffer->meta_data().findInt64(kKeyTime, &ptsUs)); in extractInternal() 325 (const uint8_t*)mediaBuffer->data() + mediaBuffer->range_offset(), in extractInternal() 326 mediaBuffer->range_length()); in extractInternal() 328 onInputReceived(codecBuffer, mediaBuffer->meta_data(), mFirstSample, &flags); in extractInternal() 332 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/libstagefright/mpeg2ts/ |
D | AnotherPacketSource.cpp | 205 MediaBufferBase *mediaBuffer = new MediaBuffer(buffer); in read() local 206 MetaDataBase &bufmeta = mediaBuffer->meta_data(); in read() 267 *out = mediaBuffer; in read()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoder.cpp | 1075 static_cast<MediaBufferHolder*>(holder.get())->mediaBuffer() : nullptr; in onInputBufferFetched()
|