/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 | 97 void pushBuffer(MediaBufferBase *mbuf); 127 void MediaCodecSource::Puller::Queue::pushBuffer(MediaBufferBase *mbuf) { in pushBuffer() argument 128 mReadBuffers.push_back(mbuf); in pushBuffer() 131 bool MediaCodecSource::Puller::Queue::readBuffer(MediaBufferBase **mbuf) { in readBuffer() argument 133 *mbuf = NULL; in readBuffer() 136 *mbuf = *mReadBuffers.begin(); in readBuffer() 142 MediaBufferBase *mbuf; in flush() local 143 while (readBuffer(&mbuf)) { in flush() 145 mbuf->release(); in flush() 149 bool MediaCodecSource::Puller::readBuffer(MediaBufferBase **mbuf) { in readBuffer() argument [all …]
|
D | NuMediaExtractor.cpp | 508 MediaBufferBase *mbuf = NULL; in fetchTrackSamples() local 509 err = info->mSource->read(&mbuf, &options); in fetchTrackSamples() 510 if (err == OK && mbuf != NULL) { in fetchTrackSamples() 511 mediaBuffers.push_back(mbuf); in fetchTrackSamples() 524 MediaBufferBase *mbuf = mediaBuffers[id]; in fetchTrackSamples() local 525 if (mbuf == NULL) { in fetchTrackSamples() 529 mbuf->release(); in fetchTrackSamples() 532 if (mbuf->meta_data().findInt64(kKeyTime, &timeUs)) { in fetchTrackSamples() 533 info->mSamples.emplace_back(mbuf, timeUs); in fetchTrackSamples() 535 mbuf->meta_data().dumpToLog(); in fetchTrackSamples() [all …]
|
/frameworks/av/media/extractors/mkv/ |
D | MatroskaExtractor.cpp | 178 status_t setWebmBlockCryptoInfo(MediaBufferHelper *mbuf); 646 status_t MatroskaSource::setWebmBlockCryptoInfo(MediaBufferHelper *mbuf) { in setWebmBlockCryptoInfo() argument 647 if (mbuf->range_length() < 1 || mbuf->range_length() - 1 > INT32_MAX) { in setWebmBlockCryptoInfo() 652 const uint8_t *data = (const uint8_t *)mbuf->data() + mbuf->range_offset(); in setWebmBlockCryptoInfo() 655 if (encrypted && mbuf->range_length() < 9) { in setWebmBlockCryptoInfo() 660 AMediaFormat *meta = mbuf->meta_data(); in setWebmBlockCryptoInfo() 692 if (mbuf->range_length() < 10) { in setWebmBlockCryptoInfo() 696 if (mbuf->range_length() - 10 < numPartitions * sizeof(uint32_t)) { in setWebmBlockCryptoInfo() 706 : (mbuf->range_length() - frameOffset); in setWebmBlockCryptoInfo() 727 mbuf->set_range(frameOffset, mbuf->range_length() - frameOffset); in setWebmBlockCryptoInfo() [all …]
|
/frameworks/av/media/extractors/mpeg2/ |
D | MPEG2PSExtractor.cpp | 698 MediaBufferBase *mbuf; in read() local 699 mSource->read(&mbuf, (MediaTrack::ReadOptions*) options); in read() 700 size_t length = mbuf->range_length(); in read() 703 memcpy(outbuf->data(), mbuf->data(), length); in read() 706 MetaDataBase &inMeta = mbuf->meta_data(); in read() 740 mbuf->release(); in read()
|
D | MPEG2TSExtractor.cpp | 187 MediaBufferBase *mbuf; in read() local 188 mImpl->read(&mbuf, (MediaTrack::ReadOptions*) options); in read() 189 size_t length = mbuf->range_length(); in read() 192 memcpy(outbuf->data(), mbuf->data(), length); in read() 195 MetaDataBase &inMeta = mbuf->meta_data(); in read() 230 mbuf->release(); in read()
|
/frameworks/av/cmds/stagefright/ |
D | stagefright.cpp | 155 MediaBufferBase *mbuf; in dumpSource() local 156 err = source->read(&mbuf); in dumpSource() 165 MetaDataBase &meta = mbuf->meta_data(); in dumpSource() 170 fwrite((const uint8_t *)mbuf->data() + mbuf->range_offset(), in dumpSource() 172 mbuf->range_length(), in dumpSource() 174 mbuf->range_length()); in dumpSource() 176 mbuf->release(); in dumpSource() 177 mbuf = NULL; in dumpSource()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | GenericSource.cpp | 1391 MediaBufferBase *mbuf = NULL; in readBuffer() local 1392 err = source->read(&mbuf, &options); in readBuffer() 1393 if (err == OK && mbuf != NULL) { in readBuffer() 1394 mediaBuffers.push_back(mbuf); in readBuffer() 1414 MediaBufferBase *mbuf = mediaBuffers[id]; in readBuffer() local 1415 if (!mbuf->meta_data().findInt64(kKeyTime, &timeUs)) { in readBuffer() 1416 mbuf->meta_data().dumpToLog(); in readBuffer() 1428 sp<ABuffer> buffer = mediaBufferToABuffer(mbuf, trackType); in readBuffer()
|
D | GenericSource.h | 205 MediaBufferBase *mbuf,
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | NuMediaExtractor.h | 157 status_t appendVorbisNumPageSamples(MediaBufferBase *mbuf, const sp<ABuffer> &buffer);
|
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
D | GenericSource2.h | 205 MediaBufferBase *mbuf,
|