/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoderPassThrough.cpp | 129 status_t NuPlayer::DecoderPassThrough::dequeueAccessUnit(sp<ABuffer> *accessUnit) { in dequeueAccessUnit() argument 134 *accessUnit = mPendingAudioAccessUnit; in dequeueAccessUnit() 139 err = mSource->dequeueAccessUnit(true /* audio */, accessUnit); in dequeueAccessUnit() 146 mPendingAudioAccessUnit = *accessUnit; in dequeueAccessUnit() 147 (*accessUnit).clear(); in dequeueAccessUnit() 157 const sp<ABuffer> &accessUnit) { in aggregateBuffer() argument 160 if (accessUnit == NULL) { in aggregateBuffer() 168 size_t smallSize = accessUnit->size(); in aggregateBuffer() 180 bool smallTimestampValid = accessUnit->meta()->findInt64("timeUs", &timeUs); in aggregateBuffer() 191 mPendingAudioAccessUnit = accessUnit; in aggregateBuffer() [all …]
|
D | NuPlayerCCDecoder.cpp | 210 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() 302 bool NuPlayer::CCDecoder::extractFromMPEGUserData(const sp<ABuffer> &accessUnit) { in extractFromMPEGUserData() argument 304 if (!accessUnit->meta()->findBuffer("mpegUserData", &mpegUserData) in extractFromMPEGUserData() 310 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractFromMPEGUserData() 318 timeUs, accessUnit->data() + userData[i], accessUnit->size() - userData[i]); in extractFromMPEGUserData() 495 void NuPlayer::CCDecoder::decode(const sp<ABuffer> &accessUnit) { in decode() argument 496 if (extractFromMPEGUserData(accessUnit) || extractFromSEI(accessUnit)) { in decode()
|
D | NuPlayerCCDecoder.h | 42 void decode(const sp<ABuffer> &accessUnit); 81 bool extractFromSEI(const sp<ABuffer> &accessUnit); 85 bool extractFromMPEGUserData(const sp<ABuffer> &accessUnit);
|
D | RTSPSource.cpp | 219 bool audio, sp<ABuffer> *accessUnit) { in dequeueAccessUnit() argument 267 return source->dequeueAccessUnit(accessUnit); in dequeueAccessUnit() 626 sp<ABuffer> accessUnit; in onMessageReceived() local 627 CHECK(msg->findBuffer("accessUnit", &accessUnit)); in onMessageReceived() 630 if (accessUnit->meta()->findInt32("damaged", &damaged) in onMessageReceived() 639 while (offset + 188 <= accessUnit->size()) { in onMessageReceived() 641 accessUnit->data() + offset, 188); in onMessageReceived() 649 if (offset < accessUnit->size()) { in onMessageReceived() 666 CHECK(accessUnit->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in onMessageReceived() 671 source->queueAccessUnit(accessUnit); in onMessageReceived() [all …]
|
D | NuPlayerDecoderPassThrough.h | 72 status_t dequeueAccessUnit(sp<ABuffer> *accessUnit); 73 sp<ABuffer> aggregateBuffer(const sp<ABuffer> &accessUnit);
|
D | StreamingSource.cpp | 259 bool audio, sp<ABuffer> *accessUnit) { in dequeueAccessUnit() argument 275 status_t err = source->dequeueAccessUnit(accessUnit); in dequeueAccessUnit() 280 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); in dequeueAccessUnit()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | ARTPSession.cpp | 148 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 …]
|
D | ARTPAssembler.cpp | 84 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()
|
D | AMPEG4ElementaryAssembler.cpp | 353 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()
|
D | AH263Assembler.cpp | 168 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()
|
D | AAMRAssembler.cpp | 186 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()
|
D | AAVCAssembler.cpp | 328 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()
|
D | AMPEG4AudioAssembler.cpp | 548 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/wifi-display/ |
D | MediaSender.cpp | 205 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 …]
|
D | MediaSender.h | 71 size_t trackIndex, const sp<ABuffer> &accessUnit); 123 sp<ABuffer> accessUnit,
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | ESQueue.cpp | 625 sp<ABuffer> accessUnit = new ABuffer(info.mLength); in dequeueAccessUnit() local 626 memcpy(accessUnit->data(), mBuffer->data(), info.mLength); in dequeueAccessUnit() 627 accessUnit->meta()->setInt64("timeUs", info.mTimestampUs); in dequeueAccessUnit() 636 mFormat = MakeAVCCodecSpecificData(accessUnit); in dequeueAccessUnit() 639 return accessUnit; in dequeueAccessUnit() 714 sp<ABuffer> accessUnit = new ABuffer(syncStartPos + payloadSize); in dequeueAccessUnitAC3() local 715 memcpy(accessUnit->data(), mBuffer->data(), syncStartPos + payloadSize); in dequeueAccessUnitAC3() 717 accessUnit->meta()->setInt64("timeUs", timeUs); in dequeueAccessUnitAC3() 718 accessUnit->meta()->setInt32("isSync", 1); in dequeueAccessUnitAC3() 727 return accessUnit; in dequeueAccessUnitAC3() [all …]
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
D | TSPacketizer.cpp | 54 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 …]
|
D | Converter.cpp | 280 bool Converter::IsSilence(const sp<ABuffer> &accessUnit) { in IsSilence() argument 281 const uint8_t *ptr = accessUnit->data(); in IsSilence() 282 const uint8_t *end = ptr + accessUnit->size(); in IsSilence() 305 sp<ABuffer> accessUnit; in onMessageReceived() local 306 CHECK(msg->findBuffer("accessUnit", &accessUnit)); in onMessageReceived() 308 accessUnit->setMediaBufferBase(NULL); in onMessageReceived() 322 sp<ABuffer> accessUnit; in onMessageReceived() local 323 CHECK(msg->findBuffer("accessUnit", &accessUnit)); in onMessageReceived() 331 accessUnit->setMediaBufferBase(NULL); in onMessageReceived() 337 (MediaBuffer *)(accessUnit->getMediaBufferBase()); in onMessageReceived() [all …]
|
D | MediaPuller.cpp | 168 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()
|
D | PlaybackSession.cpp | 81 void queueAccessUnit(const sp<ABuffer> &accessUnit); 85 void queueOutputBuffer(const sp<ABuffer> &accessUnit); 262 const sp<ABuffer> &accessUnit) { in queueAccessUnit() argument 263 mQueuedAccessUnits.push_back(accessUnit); in queueAccessUnit() 271 sp<ABuffer> accessUnit = *mQueuedAccessUnits.begin(); in dequeueAccessUnit() local 272 CHECK(accessUnit != NULL); in dequeueAccessUnit() 276 return accessUnit; in dequeueAccessUnit() 312 const sp<ABuffer> &accessUnit) { in queueOutputBuffer() argument 313 mQueuedOutputBuffers.push_back(accessUnit); in queueOutputBuffer() 496 sp<ABuffer> accessUnit; in onMessageReceived() local [all …]
|
D | Converter.h | 61 void feedAccessUnit(const sp<ABuffer> &accessUnit); 148 static bool IsSilence(const sp<ABuffer> &accessUnit); 150 sp<ABuffer> prependCSD(const sp<ABuffer> &accessUnit) const;
|
D | TSPacketizer.h | 51 size_t trackIndex, const sp<ABuffer> &accessUnit, 62 size_t trackIndex, const sp<ABuffer> &accessUnit) const;
|
/frameworks/av/media/libstagefright/include/ |
D | avc_utils.h | 85 sp<MetaData> MakeAVCCodecSpecificData(const sp<ABuffer> &accessUnit); 87 bool IsIDR(const sp<ABuffer> &accessUnit); 88 bool IsIDR(const sp<MediaCodecBuffer> &accessUnit); 89 bool IsAVCReferenceFrame(const sp<ABuffer> &accessUnit);
|
/frameworks/av/media/libstagefright/ |
D | MPEG2TSWriter.cpp | 56 void setLastAccessUnit(const sp<ABuffer> &accessUnit); 421 const sp<ABuffer> &accessUnit) { in setLastAccessUnit() argument 422 mLastAccessUnit = accessUnit; in setLastAccessUnit() 793 int32_t sourceIndex, const sp<ABuffer> &accessUnit) { in writeAccessUnit() argument 843 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in writeAccessUnit() 847 size_t PES_packet_length = accessUnit->size() + 8; in writeAccessUnit() 848 bool padding = (accessUnit->size() < (188 - 18)); in writeAccessUnit() 864 int paddingSize = 188 - accessUnit->size() - 18; in writeAccessUnit() 887 size_t copy = accessUnit->size(); in writeAccessUnit() 892 memcpy(ptr, accessUnit->data(), copy); in writeAccessUnit() [all …]
|
D | avc_utils.cpp | 365 sp<MetaData> MakeAVCCodecSpecificData(const sp<ABuffer> &accessUnit) { in MakeAVCCodecSpecificData() argument 366 const uint8_t *data = accessUnit->data(); in MakeAVCCodecSpecificData() 367 size_t size = accessUnit->size(); in MakeAVCCodecSpecificData() 484 bool IsAVCReferenceFrame(const sp<ABuffer> &accessUnit) { in IsAVCReferenceFrame() argument 485 const uint8_t *data = accessUnit->data(); in IsAVCReferenceFrame() 486 size_t size = accessUnit->size(); in IsAVCReferenceFrame() 488 ALOGE("IsAVCReferenceFrame: called on NULL data (%p, %zu)", accessUnit.get(), size); in IsAVCReferenceFrame() 496 ALOGE("IsAVCReferenceFrame: invalid nalSize: 0 (%p, %zu)", accessUnit.get(), size); in IsAVCReferenceFrame()
|