Home
last modified time | relevance | path

Searched refs:accessUnit (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDecoderPassThrough.cpp133 status_t NuPlayer::DecoderPassThrough::dequeueAccessUnit(sp<ABuffer> *accessUnit) { in dequeueAccessUnit() argument
138 *accessUnit = mPendingAudioAccessUnit; in dequeueAccessUnit()
143 err = mSource->dequeueAccessUnit(true /* audio */, accessUnit); in dequeueAccessUnit()
150 mPendingAudioAccessUnit = *accessUnit; in dequeueAccessUnit()
151 (*accessUnit).clear(); in dequeueAccessUnit()
161 const sp<ABuffer> &accessUnit) { in aggregateBuffer() argument
164 if (accessUnit == NULL) { in aggregateBuffer()
172 size_t smallSize = accessUnit->size(); in aggregateBuffer()
184 bool smallTimestampValid = accessUnit->meta()->findInt64("timeUs", &timeUs); in aggregateBuffer()
195 mPendingAudioAccessUnit = accessUnit; in aggregateBuffer()
[all …]
DNuPlayerCCDecoder.cpp210 bool NuPlayer::CCDecoder::extractFromSEI(const sp<ABuffer> &accessUnit) { in extractFromSEI() argument
212 if (!accessUnit->meta()->findBuffer("sei", &sei) || sei == NULL) { in extractFromSEI()
217 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractFromSEI()
225 timeUs, accessUnit->data() + nal->nalOffset, nal->nalSize); in extractFromSEI()
296 bool NuPlayer::CCDecoder::extractFromMPEGUserData(const sp<ABuffer> &accessUnit) { in extractFromMPEGUserData() argument
298 if (!accessUnit->meta()->findBuffer("mpegUserData", &mpegUserData) in extractFromMPEGUserData()
304 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractFromMPEGUserData()
312 timeUs, accessUnit->data() + userData[i], accessUnit->size() - userData[i]); in extractFromMPEGUserData()
489 void NuPlayer::CCDecoder::decode(const sp<ABuffer> &accessUnit) { in decode() argument
490 if (extractFromMPEGUserData(accessUnit) || extractFromSEI(accessUnit)) { in decode()
DRTSPSource.cpp189 bool audio, sp<ABuffer> *accessUnit) { in dequeueAccessUnit() argument
243 return source->dequeueAccessUnit(accessUnit); in dequeueAccessUnit()
492 sp<ABuffer> accessUnit; in onMessageReceived() local
493 CHECK(msg->findBuffer("accessUnit", &accessUnit)); in onMessageReceived()
496 if (accessUnit->meta()->findInt32("damaged", &damaged) in onMessageReceived()
505 while (offset + 188 <= accessUnit->size()) { in onMessageReceived()
507 accessUnit->data() + offset, 188); in onMessageReceived()
515 if (offset < accessUnit->size()) { in onMessageReceived()
538 CHECK(accessUnit->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in onMessageReceived()
543 source->queueAccessUnit(accessUnit); in onMessageReceived()
[all …]
DNuPlayerCCDecoder.h42 void decode(const sp<ABuffer> &accessUnit);
81 bool extractFromSEI(const sp<ABuffer> &accessUnit);
85 bool extractFromMPEGUserData(const sp<ABuffer> &accessUnit);
DNuPlayerDecoderPassThrough.h73 status_t dequeueAccessUnit(sp<ABuffer> *accessUnit);
74 sp<ABuffer> aggregateBuffer(const sp<ABuffer> &accessUnit);
DStreamingSource.cpp240 bool audio, sp<ABuffer> *accessUnit) { in dequeueAccessUnit() argument
256 status_t err = source->dequeueAccessUnit(accessUnit); in dequeueAccessUnit()
261 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); in dequeueAccessUnit()
/frameworks/av/media/libstagefright/rtsp/
DARTPSession.cpp148 sp<ABuffer> accessUnit; in onMessageReceived() local
149 CHECK(msg->findBuffer("access-unit", &accessUnit)); in onMessageReceived()
152 CHECK(accessUnit->meta()->findInt64( in onMessageReceived()
158 accessUnit->size(), ntpTime); in onMessageReceived()
161 accessUnit->size(), ntpTime); in onMessageReceived()
162 hexdump(accessUnit->data(), accessUnit->size()); in onMessageReceived()
167 CHECK_GE(accessUnit->size(), 5u); in onMessageReceived()
168 CHECK(!memcmp("\x00\x00\x00\x01", accessUnit->data(), 4)); in onMessageReceived()
169 unsigned x = accessUnit->data()[4]; in onMessageReceived()
175 accessUnit->meta()->setInt64("ntp-time", ntpTime); in onMessageReceived()
[all …]
DARTPAssembler.cpp84 sp<ABuffer> accessUnit = new ABuffer(totalSize); in MakeADTSCompoundFromAACFrames() local
89 uint8_t *dst = accessUnit->data() + offset; in MakeADTSCompoundFromAACFrames()
116 CopyTimes(accessUnit, *frames.begin()); in MakeADTSCompoundFromAACFrames()
118 return accessUnit; in MakeADTSCompoundFromAACFrames()
130 sp<ABuffer> accessUnit = new ABuffer(totalSize); in MakeCompoundFromPackets() local
135 memcpy(accessUnit->data() + offset, nal->data(), nal->size()); in MakeCompoundFromPackets()
139 CopyTimes(accessUnit, *packets.begin()); in MakeCompoundFromPackets()
141 return accessUnit; in MakeCompoundFromPackets()
DAMPEG4ElementaryAssembler.cpp353 sp<ABuffer> accessUnit = new ABuffer(header.mSize); in addPacket() local
354 memcpy(accessUnit->data(), buffer->data() + offset, header.mSize); in addPacket()
358 CopyTimes(accessUnit, buffer); in addPacket()
359 mPackets.push_back(accessUnit); in addPacket()
379 sp<ABuffer> accessUnit; in submitAccessUnit() local
382 accessUnit = MakeADTSCompoundFromAACFrames( in submitAccessUnit()
388 accessUnit = MakeCompoundFromPackets(mPackets); in submitAccessUnit()
397 accessUnit->meta()->setInt32("damaged", true); in submitAccessUnit()
404 msg->setBuffer("access-unit", accessUnit); in submitAccessUnit()
DAH263Assembler.cpp168 sp<ABuffer> accessUnit = new ABuffer(totalSize); in submitAccessUnit() local
174 memcpy((uint8_t *)accessUnit->data() + offset, in submitAccessUnit()
182 CopyTimes(accessUnit, *mPackets.begin()); in submitAccessUnit()
190 accessUnit->meta()->setInt32("damaged", true); in submitAccessUnit()
197 msg->setBuffer("access-unit", accessUnit); in submitAccessUnit()
DAAMRAssembler.cpp186 sp<ABuffer> accessUnit = new ABuffer(totalSize); in addPacket() local
187 CopyTimes(accessUnit, buffer); in addPacket()
204 accessUnit->data()[dstOffset++] = toc; in addPacket()
205 memcpy(accessUnit->data() + dstOffset, in addPacket()
213 msg->setBuffer("access-unit", accessUnit); in addPacket()
DAAVCAssembler.cpp328 sp<ABuffer> accessUnit = new ABuffer(totalSize); in submitAccessUnit() local
332 memcpy(accessUnit->data() + offset, "\x00\x00\x00\x01", 4); in submitAccessUnit()
336 memcpy(accessUnit->data() + offset, nal->data(), nal->size()); in submitAccessUnit()
340 CopyTimes(accessUnit, *mNALUnits.begin()); in submitAccessUnit()
348 accessUnit->meta()->setInt32("damaged", true); in submitAccessUnit()
355 msg->setBuffer("access-unit", accessUnit); in submitAccessUnit()
DMyHandler.h1050 sp<ABuffer> accessUnit; in onMessageReceived() local
1051 CHECK(msg->findBuffer("access-unit", &accessUnit)); in onMessageReceived()
1052 onAccessUnitComplete(trackIndex, accessUnit); in onMessageReceived()
1797 sp<ABuffer> accessUnit = *trackInfo->mPackets.begin(); in onTimeUpdate() local
1800 if (addMediaTimestamp(i, trackInfo, accessUnit)) { in onTimeUpdate()
1801 postQueueAccessUnit(i, accessUnit); in onTimeUpdate()
1816 int32_t trackIndex, const sp<ABuffer> &accessUnit) { in onAccessUnitComplete()
1821 uint32_t seqNum = (uint32_t)accessUnit->int32Data(); in onAccessUnitComplete()
1823 track->mPackets.push_back(accessUnit); in onAccessUnitComplete()
1831 track->mPackets.push_back(accessUnit); in onAccessUnitComplete()
[all …]
DAMPEG4AudioAssembler.cpp548 sp<ABuffer> accessUnit = MakeCompoundFromPackets(mPackets); in submitAccessUnit() local
549 accessUnit = removeLATMFraming(accessUnit); in submitAccessUnit()
550 CopyTimes(accessUnit, *mPackets.begin()); in submitAccessUnit()
558 accessUnit->meta()->setInt32("damaged", true); in submitAccessUnit()
565 msg->setBuffer("access-unit", accessUnit); in submitAccessUnit()
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp475 sp<ABuffer> accessUnit = new ABuffer(info.mLength); in dequeueAccessUnit() local
476 memcpy(accessUnit->data(), mBuffer->data(), info.mLength); in dequeueAccessUnit()
477 accessUnit->meta()->setInt64("timeUs", info.mTimestampUs); in dequeueAccessUnit()
486 mFormat = MakeAVCCodecSpecificData(accessUnit); in dequeueAccessUnit()
489 return accessUnit; in dequeueAccessUnit()
544 sp<ABuffer> accessUnit = new ABuffer(syncStartPos + payloadSize); in dequeueAccessUnitAC3() local
545 memcpy(accessUnit->data(), mBuffer->data(), syncStartPos + payloadSize); in dequeueAccessUnitAC3()
552 accessUnit->meta()->setInt64("timeUs", timeUs); in dequeueAccessUnitAC3()
553 accessUnit->meta()->setInt32("isSync", 1); in dequeueAccessUnitAC3()
562 return accessUnit; in dequeueAccessUnitAC3()
[all …]
/frameworks/av/media/libstagefright/wifi-display/
DMediaSender.cpp205 size_t trackIndex, const sp<ABuffer> &accessUnit) { in queueAccessUnit() argument
216 info->mAccessUnits.push_back(accessUnit); in queueAccessUnit()
234 const sp<ABuffer> &accessUnit = *info.mAccessUnits.begin(); in queueAccessUnit() local
235 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in queueAccessUnit()
248 sp<ABuffer> accessUnit = *info->mAccessUnits.begin(); in queueAccessUnit() local
253 minTrackIndex, accessUnit, &tsPackets); in queueAccessUnit()
261 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in queueAccessUnit()
279 accessUnit, in queueAccessUnit()
390 sp<ABuffer> accessUnit, in packetizeAccessUnit() argument
403 && IsIDR(accessUnit); in packetizeAccessUnit()
[all …]
DMediaSender.h71 size_t trackIndex, const sp<ABuffer> &accessUnit);
123 sp<ABuffer> accessUnit,
/frameworks/av/media/libstagefright/wifi-display/source/
DTSPacketizer.cpp54 sp<ABuffer> prependCSD(const sp<ABuffer> &accessUnit) const;
55 sp<ABuffer> prependADTSHeader(const sp<ABuffer> &accessUnit) const;
177 const sp<ABuffer> &accessUnit) const { in prependCSD()
183 sp<ABuffer> dup = new ABuffer(accessUnit->size() + size); in prependCSD()
192 memcpy(dup->data() + offset, accessUnit->data(), accessUnit->size()); in prependCSD()
198 const sp<ABuffer> &accessUnit) const { in prependADTSHeader()
203 const uint32_t aac_frame_length = accessUnit->size() + 7; in prependADTSHeader()
236 memcpy(ptr, accessUnit->data(), accessUnit->size()); in prependADTSHeader()
460 sp<ABuffer> accessUnit = _accessUnit; in packetize() local
463 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in packetize()
[all …]
DConverter.cpp279 bool Converter::IsSilence(const sp<ABuffer> &accessUnit) { in IsSilence() argument
280 const uint8_t *ptr = accessUnit->data(); in IsSilence()
281 const uint8_t *end = ptr + accessUnit->size(); in IsSilence()
304 sp<ABuffer> accessUnit; in onMessageReceived() local
305 CHECK(msg->findBuffer("accessUnit", &accessUnit)); in onMessageReceived()
307 accessUnit->setMediaBufferBase(NULL); in onMessageReceived()
321 sp<ABuffer> accessUnit; in onMessageReceived() local
322 CHECK(msg->findBuffer("accessUnit", &accessUnit)); in onMessageReceived()
330 accessUnit->setMediaBufferBase(NULL); in onMessageReceived()
336 (MediaBuffer *)(accessUnit->getMediaBufferBase()); in onMessageReceived()
[all …]
DMediaPuller.cpp168 sp<ABuffer> accessUnit = new ABuffer(mbuf->range_length()); in onMessageReceived() local
170 memcpy(accessUnit->data(), in onMessageReceived()
174 accessUnit->meta()->setInt64("timeUs", timeUs); in onMessageReceived()
182 accessUnit->setMediaBufferBase(mbuf); in onMessageReceived()
188 notify->setBuffer("accessUnit", accessUnit); in onMessageReceived()
DPlaybackSession.cpp82 void queueAccessUnit(const sp<ABuffer> &accessUnit);
86 void queueOutputBuffer(const sp<ABuffer> &accessUnit);
263 const sp<ABuffer> &accessUnit) { in queueAccessUnit() argument
264 mQueuedAccessUnits.push_back(accessUnit); in queueAccessUnit()
272 sp<ABuffer> accessUnit = *mQueuedAccessUnits.begin(); in dequeueAccessUnit() local
273 CHECK(accessUnit != NULL); in dequeueAccessUnit()
277 return accessUnit; in dequeueAccessUnit()
313 const sp<ABuffer> &accessUnit) { in queueOutputBuffer() argument
314 mQueuedOutputBuffers.push_back(accessUnit); in queueOutputBuffer()
497 sp<ABuffer> accessUnit; in onMessageReceived() local
[all …]
DConverter.h60 void feedAccessUnit(const sp<ABuffer> &accessUnit);
147 static bool IsSilence(const sp<ABuffer> &accessUnit);
149 sp<ABuffer> prependCSD(const sp<ABuffer> &accessUnit) const;
DTSPacketizer.h51 size_t trackIndex, const sp<ABuffer> &accessUnit,
62 size_t trackIndex, const sp<ABuffer> &accessUnit) const;
/frameworks/av/media/libstagefright/
DMPEG2TSWriter.cpp56 void setLastAccessUnit(const sp<ABuffer> &accessUnit);
444 const sp<ABuffer> &accessUnit) { in setLastAccessUnit() argument
445 mLastAccessUnit = accessUnit; in setLastAccessUnit()
822 int32_t sourceIndex, const sp<ABuffer> &accessUnit) { in writeAccessUnit() argument
872 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in writeAccessUnit()
876 size_t PES_packet_length = accessUnit->size() + 8; in writeAccessUnit()
877 bool padding = (accessUnit->size() < (188 - 18)); in writeAccessUnit()
893 int paddingSize = 188 - accessUnit->size() - 18; in writeAccessUnit()
916 size_t copy = accessUnit->size(); in writeAccessUnit()
921 memcpy(ptr, accessUnit->data(), copy); in writeAccessUnit()
[all …]
/frameworks/av/media/libstagefright/include/
Davc_utils.h84 sp<MetaData> MakeAVCCodecSpecificData(const sp<ABuffer> &accessUnit);
86 bool IsIDR(const sp<ABuffer> &accessUnit);
87 bool IsAVCReferenceFrame(const sp<ABuffer> &accessUnit);

12