/frameworks/av/media/libstagefright/webm/ |
D | WebmFrame.cpp | 30 sp<ABuffer> toABuffer(MediaBufferBase *mbuf) { in toABuffer() argument 31 sp<ABuffer> abuf = new ABuffer(mbuf->range_length()); in toABuffer() 32 memcpy(abuf->data(), (uint8_t*) mbuf->data() + mbuf->range_offset(), mbuf->range_length()); in toABuffer() 49 WebmFrame::WebmFrame(int type, bool key, uint64_t absTimecode, MediaBufferBase *mbuf) in WebmFrame() argument 53 mData(toABuffer(mbuf)), in WebmFrame()
|
/frameworks/av/media/libstagefright/ |
D | MediaCodecSource.cpp | 98 void pushBuffer(MediaBufferBase *mbuf); 128 void MediaCodecSource::Puller::Queue::pushBuffer(MediaBufferBase *mbuf) { in pushBuffer() argument 129 mReadBuffers.push_back(mbuf); in pushBuffer() 132 bool MediaCodecSource::Puller::Queue::readBuffer(MediaBufferBase **mbuf) { in readBuffer() argument 134 *mbuf = NULL; in readBuffer() 137 *mbuf = *mReadBuffers.begin(); in readBuffer() 143 MediaBufferBase *mbuf; in flush() local 144 while (readBuffer(&mbuf)) { in flush() 146 mbuf->release(); in flush() 150 bool MediaCodecSource::Puller::readBuffer(MediaBufferBase **mbuf) { in readBuffer() argument [all …]
|
D | NuMediaExtractor.cpp | 579 MediaBufferBase *mbuf = NULL; in fetchTrackSamples() local 580 err = info->mSource->read(&mbuf, &options); in fetchTrackSamples() 581 if (err == OK && mbuf != NULL) { in fetchTrackSamples() 582 mediaBuffers.push_back(mbuf); in fetchTrackSamples() 595 MediaBufferBase *mbuf = mediaBuffers[id]; in fetchTrackSamples() local 596 if (mbuf == NULL) { in fetchTrackSamples() 600 mbuf->release(); in fetchTrackSamples() 603 if (mbuf->meta_data().findInt64(kKeyTime, &timeUs)) { in fetchTrackSamples() 604 info->mSamples.emplace_back(mbuf, timeUs); in fetchTrackSamples() 606 mbuf->meta_data().dumpToLog(); in fetchTrackSamples() [all …]
|
/frameworks/av/media/extractors/mkv/ |
D | MatroskaExtractor.cpp | 178 status_t setWebmBlockCryptoInfo(MediaBufferHelper *mbuf); 651 status_t MatroskaSource::setWebmBlockCryptoInfo(MediaBufferHelper *mbuf) { in setWebmBlockCryptoInfo() argument 652 if (mbuf->range_length() < 1 || mbuf->range_length() - 1 > INT32_MAX) { in setWebmBlockCryptoInfo() 657 const uint8_t *data = (const uint8_t *)mbuf->data() + mbuf->range_offset(); in setWebmBlockCryptoInfo() 660 if (encrypted && mbuf->range_length() < 9) { in setWebmBlockCryptoInfo() 665 AMediaFormat *meta = mbuf->meta_data(); in setWebmBlockCryptoInfo() 697 if (mbuf->range_length() < 10) { in setWebmBlockCryptoInfo() 701 if (mbuf->range_length() - 10 < numPartitions * sizeof(uint32_t)) { in setWebmBlockCryptoInfo() 711 : (mbuf->range_length() - frameOffset); in setWebmBlockCryptoInfo() 732 mbuf->set_range(frameOffset, mbuf->range_length() - frameOffset); in setWebmBlockCryptoInfo() [all …]
|
/frameworks/av/media/extractors/mpeg2/ |
D | MPEG2PSExtractor.cpp | 703 MediaBufferBase *mbuf; in read() local 704 mSource->read(&mbuf, (MediaTrack::ReadOptions*) options); in read() 705 size_t length = mbuf->range_length(); in read() 708 memcpy(outbuf->data(), mbuf->data(), length); in read() 711 MetaDataBase &inMeta = mbuf->meta_data(); in read() 745 mbuf->release(); in read()
|
D | MPEG2TSExtractor.cpp | 186 MediaBufferBase *mbuf; in read() local 187 mImpl->read(&mbuf, (MediaTrack::ReadOptions*) options); in read() 188 size_t length = mbuf->range_length(); in read() 191 memcpy(outbuf->data(), mbuf->data(), length); in read() 194 MetaDataBase &inMeta = mbuf->meta_data(); in read() 229 mbuf->release(); in read()
|
/frameworks/av/cmds/stagefright/ |
D | stagefright.cpp | 154 MediaBufferBase *mbuf; in dumpSource() local 155 err = source->read(&mbuf); in dumpSource() 164 MetaDataBase &meta = mbuf->meta_data(); in dumpSource() 169 fwrite((const uint8_t *)mbuf->data() + mbuf->range_offset(), in dumpSource() 171 mbuf->range_length(), in dumpSource() 173 mbuf->range_length()); in dumpSource() 175 mbuf->release(); in dumpSource() 176 mbuf = NULL; in dumpSource()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | GenericSource.cpp | 1381 MediaBufferBase *mbuf = NULL; in readBuffer() local 1382 err = source->read(&mbuf, &options); in readBuffer() 1383 if (err == OK && mbuf != NULL) { in readBuffer() 1384 mediaBuffers.push_back(mbuf); in readBuffer() 1404 MediaBufferBase *mbuf = mediaBuffers[id]; in readBuffer() local 1405 if (!mbuf->meta_data().findInt64(kKeyTime, &timeUs)) { in readBuffer() 1406 mbuf->meta_data().dumpToLog(); in readBuffer() 1418 sp<ABuffer> buffer = mediaBufferToABuffer(mbuf, trackType); in readBuffer()
|
D | GenericSource.h | 206 MediaBufferBase *mbuf,
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | NuMediaExtractor.h | 167 status_t appendVorbisNumPageSamples(MediaBufferBase *mbuf, const sp<ABuffer> &buffer);
|