Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/wifi-display/source/
DMediaPuller.cpp141 MediaBuffer *mbuf; in onMessageReceived() local
142 status_t err = mSource->read(&mbuf); in onMessageReceived()
146 mbuf->release(); in onMessageReceived()
147 mbuf = NULL; in onMessageReceived()
166 CHECK(mbuf->meta_data()->findInt64(kKeyTime, &timeUs)); in onMessageReceived()
168 sp<ABuffer> accessUnit = new ABuffer(mbuf->range_length()); in onMessageReceived()
171 (const uint8_t *)mbuf->data() + mbuf->range_offset(), in onMessageReceived()
172 mbuf->range_length()); in onMessageReceived()
177 mbuf->release(); in onMessageReceived()
178 mbuf = NULL; in onMessageReceived()
[all …]
DConverter.cpp336 MediaBuffer *mbuf = in onMessageReceived()
338 if (mbuf != NULL) { in onMessageReceived()
339 ALOGI("queueing mbuf %p", mbuf); in onMessageReceived()
340 mbuf->release(); in onMessageReceived()
/frameworks/av/media/libstagefright/webm/
DWebmFrame.cpp30 sp<ABuffer> toABuffer(MediaBuffer *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, MediaBuffer *mbuf) in WebmFrame() argument
53 mData(toABuffer(mbuf)), in WebmFrame()
/frameworks/av/media/libstagefright/
DMediaCodecSource.cpp91 void pushBuffer(MediaBuffer *mbuf);
121 void MediaCodecSource::Puller::Queue::pushBuffer(MediaBuffer *mbuf) { in pushBuffer() argument
122 mReadBuffers.push_back(mbuf); in pushBuffer()
125 bool MediaCodecSource::Puller::Queue::readBuffer(MediaBuffer **mbuf) { in readBuffer() argument
127 *mbuf = NULL; in readBuffer()
130 *mbuf = *mReadBuffers.begin(); in readBuffer()
136 MediaBuffer *mbuf; in flush() local
137 while (readBuffer(&mbuf)) { in flush()
139 mbuf->release(); in flush()
143 bool MediaCodecSource::Puller::readBuffer(MediaBuffer **mbuf) { in readBuffer() argument
[all …]
DAVIExtractor.cpp350 MediaBuffer *mbuf = new MediaBuffer(frameSize); in read() local
351 memcpy(mbuf->data(), mBuffer->data(), frameSize); in read()
356 mbuf->meta_data()->setInt64(kKeyTime, timeUs); in read()
361 *out = mbuf; in read()
/frameworks/av/media/libstagefright/matroska/
DMatroskaExtractor.cpp156 status_t setWebmBlockCryptoInfo(MediaBuffer *mbuf);
540 status_t MatroskaSource::setWebmBlockCryptoInfo(MediaBuffer *mbuf) { in setWebmBlockCryptoInfo() argument
541 if (mbuf->range_length() < 1 || mbuf->range_length() - 1 > INT32_MAX) { in setWebmBlockCryptoInfo()
546 const uint8_t *data = (const uint8_t *)mbuf->data() + mbuf->range_offset(); in setWebmBlockCryptoInfo()
548 if (blockEncrypted && mbuf->range_length() < 9) { in setWebmBlockCryptoInfo()
553 sp<MetaData> meta = mbuf->meta_data(); in setWebmBlockCryptoInfo()
571 int32_t encryptedSizes[] = { static_cast<int32_t>(mbuf->range_length() - 9) }; in setWebmBlockCryptoInfo()
583 mbuf->set_range(9, mbuf->range_length() - 9); in setWebmBlockCryptoInfo()
596 int32_t plainSizes[] = { static_cast<int32_t>(mbuf->range_length() - 1) }; in setWebmBlockCryptoInfo()
600 mbuf->set_range(1, mbuf->range_length() - 1); in setWebmBlockCryptoInfo()
[all …]
/frameworks/av/cmds/stagefright/
Dstagefright.cpp151 MediaBuffer *mbuf; in dumpSource() local
152 err = source->read(&mbuf); in dumpSource()
161 fwrite((const uint8_t *)mbuf->data() + mbuf->range_offset(), in dumpSource()
163 mbuf->range_length(), in dumpSource()
165 (ssize_t)mbuf->range_length()); in dumpSource()
167 mbuf->release(); in dumpSource()
168 mbuf = NULL; in dumpSource()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp1438 MediaBuffer *mbuf = NULL; in readBuffer() local
1439 err = track->mSource->read(&mbuf, &options); in readBuffer()
1440 if (err == OK && mbuf != NULL) { in readBuffer()
1441 mediaBuffers.push_back(mbuf); in readBuffer()
1451 MediaBuffer *mbuf = mediaBuffers[id]; in readBuffer() local
1452 if (!mbuf->meta_data()->findInt64(kKeyTime, &timeUs)) { in readBuffer()
1453 mbuf->meta_data()->dumpToLog(); in readBuffer()
1467 sp<ABuffer> buffer = mediaBufferToABuffer(mbuf, trackType); in readBuffer()
DGenericSource.h294 MediaBuffer *mbuf,