Home
last modified time | relevance | path

Searched refs:mbuf (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/libstagefright/webm/
DWebmFrame.cpp30 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/
DMediaCodecSource.cpp98 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 …]
DNuMediaExtractor.cpp558 MediaBufferBase *mbuf = NULL; in fetchTrackSamples() local
559 err = info->mSource->read(&mbuf, &options); in fetchTrackSamples()
560 if (err == OK && mbuf != NULL) { in fetchTrackSamples()
561 mediaBuffers.push_back(mbuf); in fetchTrackSamples()
574 MediaBufferBase *mbuf = mediaBuffers[id]; in fetchTrackSamples() local
575 if (mbuf == NULL) { in fetchTrackSamples()
579 mbuf->release(); in fetchTrackSamples()
582 if (mbuf->meta_data().findInt64(kKeyTime, &timeUs)) { in fetchTrackSamples()
583 info->mSamples.emplace_back(mbuf, timeUs); in fetchTrackSamples()
585 mbuf->meta_data().dumpToLog(); in fetchTrackSamples()
[all …]
/frameworks/av/media/module/extractors/mkv/
DMatroskaExtractor.cpp178 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/module/extractors/mpeg2/
DMPEG2PSExtractor.cpp702 MediaBufferBase *mbuf = nullptr; in read() local
703 status_t err_read = mSource->read(&mbuf, (MediaTrack::ReadOptions*) options); in read()
704 if (mbuf == nullptr) { in read()
710 mbuf->release(); in read()
714 size_t length = mbuf->range_length(); in read()
719 mbuf->release(); in read()
722 memcpy(outbuf->data(), mbuf->data(), length); in read()
725 MetaDataBase &inMeta = mbuf->meta_data(); in read()
759 mbuf->release(); in read()
DMPEG2TSExtractor.cpp185 MediaBufferBase *mbuf = nullptr; in read() local
186 status_t err_read = mImpl->read(&mbuf, (MediaTrack::ReadOptions*) options); in read()
187 if (mbuf == nullptr) { in read()
193 mbuf->release(); in read()
197 size_t length = mbuf->range_length(); in read()
202 mbuf->release(); in read()
205 memcpy(outbuf->data(), mbuf->data(), length); in read()
208 MetaDataBase &inMeta = mbuf->meta_data(); in read()
243 mbuf->release(); in read()
/frameworks/av/cmds/stagefright/
Dstagefright.cpp164 MediaBufferBase *mbuf; in dumpSource() local
165 err = source->read(&mbuf); in dumpSource()
174 MetaDataBase &meta = mbuf->meta_data(); in dumpSource()
179 fwrite((const uint8_t *)mbuf->data() + mbuf->range_offset(), in dumpSource()
181 mbuf->range_length(), in dumpSource()
183 mbuf->range_length()); in dumpSource()
185 mbuf->release(); in dumpSource()
186 mbuf = NULL; in dumpSource()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp1386 MediaBufferBase *mbuf = NULL; in readBuffer() local
1387 err = source->read(&mbuf, &options); in readBuffer()
1388 if (err == OK && mbuf != NULL) { in readBuffer()
1389 mediaBuffers.push_back(mbuf); in readBuffer()
1409 MediaBufferBase *mbuf = mediaBuffers[id]; in readBuffer() local
1410 if (!mbuf->meta_data().findInt64(kKeyTime, &timeUs)) { in readBuffer()
1411 mbuf->meta_data().dumpToLog(); in readBuffer()
1423 sp<ABuffer> buffer = mediaBufferToABuffer(mbuf, trackType); in readBuffer()
/frameworks/av/media/libstagefright/include/media/stagefright/
DNuMediaExtractor.h168 status_t appendVorbisNumPageSamples(MediaBufferBase *mbuf, const sp<ABuffer> &buffer);
/frameworks/av/media/libmediaplayerservice/nuplayer/include/nuplayer/
DGenericSource.h205 MediaBufferBase *mbuf,