/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 | RTPSource.cpp | 246 bool audio, sp<ABuffer> *accessUnit) { in dequeueAccessUnit() argument 299 finalResult = source->dequeueAccessUnit(accessUnit); in dequeueAccessUnit() 305 if ((*accessUnit) != NULL && (*accessUnit)->meta()->findInt32("cvo", &cvo) && in dequeueAccessUnit() 419 sp<ABuffer> accessUnit; in onMessageReceived() local 420 if (msg->findBuffer("access-unit", &accessUnit) == false) { in onMessageReceived() 425 if (accessUnit->meta()->findInt32("damaged", &damaged) in onMessageReceived() 438 CHECK(accessUnit->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in onMessageReceived() 456 accessUnit->meta()->setInt64("timeUs", ALooper::GetNowUs()); in onMessageReceived() 458 source->queueAccessUnit(accessUnit); in onMessageReceived() 550 sp<ABuffer> accessUnit = *trackInfo->mPackets.begin(); in onTimeUpdate() local [all …]
|
D | NuPlayerCCDecoder.cpp | 224 bool NuPlayer::CCDecoder::extractFromSEI(const sp<ABuffer> &accessUnit) { in extractFromSEI() argument 226 if (!accessUnit->meta()->findBuffer("sei", &sei) || sei == NULL) { in extractFromSEI() 231 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractFromSEI() 239 timeUs, accessUnit->data() + nal->nalOffset, nal->nalSize); in extractFromSEI() 316 bool NuPlayer::CCDecoder::extractFromMPEGUserData(const sp<ABuffer> &accessUnit) { in extractFromMPEGUserData() argument 318 if (!accessUnit->meta()->findBuffer("mpeg-user-data", &mpegUserData) in extractFromMPEGUserData() 324 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractFromMPEGUserData() 331 if (accessUnit->size() < userData[i]) { in extractFromMPEGUserData() 337 timeUs, accessUnit->data() + userData[i], accessUnit->size() - userData[i]); in extractFromMPEGUserData() 531 void NuPlayer::CCDecoder::decode(const sp<ABuffer> &accessUnit) { in decode() argument [all …]
|
D | NuPlayerCCDecoder.h | 43 void decode(const sp<ABuffer> &accessUnit); 82 bool extractFromSEI(const sp<ABuffer> &accessUnit); 86 bool extractFromMPEGUserData(const sp<ABuffer> &accessUnit);
|
D | RTSPSource.cpp | 213 bool audio, sp<ABuffer> *accessUnit) { in dequeueAccessUnit() argument 261 return source->dequeueAccessUnit(accessUnit); in dequeueAccessUnit() 599 sp<ABuffer> accessUnit; in onMessageReceived() local 600 CHECK(msg->findBuffer("accessUnit", &accessUnit)); in onMessageReceived() 603 if (accessUnit->meta()->findInt32("damaged", &damaged) in onMessageReceived() 612 while (offset + 188 <= accessUnit->size()) { in onMessageReceived() 614 accessUnit->data() + offset, 188); in onMessageReceived() 622 if (offset < accessUnit->size()) { in onMessageReceived() 639 CHECK(accessUnit->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in onMessageReceived() 644 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 | RTPSource.h | 67 virtual status_t dequeueAccessUnit(bool audio, sp<ABuffer> *accessUnit); 192 const sp<ABuffer> &accessUnit); 194 void postQueueAccessUnit(size_t trackIndex, 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 | 89 sp<ABuffer> accessUnit = new ABuffer(totalSize); in MakeADTSCompoundFromAACFrames() local 94 uint8_t *dst = accessUnit->data() + offset; in MakeADTSCompoundFromAACFrames() 121 CopyTimes(accessUnit, *frames.begin()); in MakeADTSCompoundFromAACFrames() 123 return accessUnit; in MakeADTSCompoundFromAACFrames() 135 sp<ABuffer> accessUnit = new ABuffer(totalSize); in MakeCompoundFromPackets() local 140 memcpy(accessUnit->data() + offset, nal->data(), nal->size()); in MakeCompoundFromPackets() 144 CopyTimes(accessUnit, *packets.begin()); in MakeCompoundFromPackets() 146 return accessUnit; in MakeCompoundFromPackets()
|
D | AMPEG4ElementaryAssembler.cpp | 379 sp<ABuffer> accessUnit = new ABuffer(header.mSize); in addPacket() local 380 memcpy(accessUnit->data(), buffer->data() + offset, header.mSize); in addPacket() 384 CopyTimes(accessUnit, buffer); in addPacket() 385 mPackets.push_back(accessUnit); in addPacket() 405 sp<ABuffer> accessUnit; in submitAccessUnit() local 408 accessUnit = MakeADTSCompoundFromAACFrames( in submitAccessUnit() 414 accessUnit = MakeCompoundFromPackets(mPackets); in submitAccessUnit() 423 accessUnit->meta()->setInt32("damaged", true); in submitAccessUnit() 430 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 | AMPEG4AudioAssembler.cpp | 553 sp<ABuffer> accessUnit = MakeCompoundFromPackets(mPackets); in submitAccessUnit() local 554 accessUnit = removeLATMFraming(accessUnit); in submitAccessUnit() 555 CopyTimes(accessUnit, *mPackets.begin()); in submitAccessUnit() 563 accessUnit->meta()->setInt32("damaged", true); in submitAccessUnit() 570 msg->setBuffer("access-unit", accessUnit); in submitAccessUnit()
|
D | AHEVCAssembler.cpp | 594 sp<ABuffer> accessUnit = new ABuffer(totalSize); in submitAccessUnit() local 599 memcpy(accessUnit->data() + offset, "\x00\x00\x00\x01", 4); in submitAccessUnit() 603 memcpy(accessUnit->data() + offset, nal->data(), nal->size()); in submitAccessUnit() 608 CopyTimes(accessUnit, *mNALUnits.begin()); in submitAccessUnit() 615 accessUnit->meta()->setInt32("cvo", cvo); in submitAccessUnit() 619 accessUnit->meta()->setInt32("damaged", true); in submitAccessUnit() 626 msg->setBuffer("access-unit", accessUnit); in submitAccessUnit()
|
D | AAVCAssembler.cpp | 578 sp<ABuffer> accessUnit = new ABuffer(totalSize); in submitAccessUnit() local 583 memcpy(accessUnit->data() + offset, "\x00\x00\x00\x01", 4); in submitAccessUnit() 587 memcpy(accessUnit->data() + offset, nal->data(), nal->size()); in submitAccessUnit() 593 CopyTimes(accessUnit, *mNALUnits.begin()); in submitAccessUnit() 600 accessUnit->meta()->setInt32("cvo", cvo); in submitAccessUnit() 604 accessUnit->meta()->setInt32("damaged", true); in submitAccessUnit() 611 msg->setBuffer("access-unit", accessUnit); in submitAccessUnit()
|
D | MyHandler.h | 1079 sp<ABuffer> accessUnit; in onMessageReceived() local 1080 CHECK(msg->findBuffer("access-unit", &accessUnit)); in onMessageReceived() 1081 onAccessUnitComplete(trackIndex, accessUnit); in onMessageReceived() 1841 sp<ABuffer> accessUnit = *track->mPackets.begin(); in processAccessUnitQueue() local 1844 uint32_t seqNum = (uint32_t)accessUnit->int32Data(); in processAccessUnitQueue() 1887 if (addMediaTimestamp(trackIndex, track, accessUnit)) { in processAccessUnitQueue() 1888 postQueueAccessUnit(trackIndex, accessUnit); in processAccessUnitQueue() 1895 int32_t trackIndex, const sp<ABuffer> &accessUnit) { in onAccessUnitComplete() 1897 track->mPackets.push_back(accessUnit); in onAccessUnitComplete() 1899 uint32_t seqNum = (uint32_t)accessUnit->int32Data(); in onAccessUnitComplete() [all …]
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | ESQueue.cpp | 893 sp<ABuffer> accessUnit = new ABuffer(info.mLength); in dequeueAccessUnit() local 894 memcpy(accessUnit->data(), mBuffer->data(), info.mLength); in dequeueAccessUnit() 895 accessUnit->meta()->setInt64("timeUs", info.mTimestampUs); in dequeueAccessUnit() 905 if (!MakeAVCCodecSpecificData(*mFormat, accessUnit->data(), accessUnit->size())) { in dequeueAccessUnit() 910 return accessUnit; in dequeueAccessUnit() 996 sp<ABuffer> accessUnit = new ABuffer(syncStartPos + payloadSize); in dequeueAccessUnitEAC3() local 997 memcpy(accessUnit->data(), mBuffer->data(), syncStartPos + payloadSize); in dequeueAccessUnitEAC3() 999 accessUnit->meta()->setInt64("timeUs", timeUs); in dequeueAccessUnitEAC3() 1000 accessUnit->meta()->setInt32("isSync", 1); in dequeueAccessUnitEAC3() 1009 return accessUnit; in dequeueAccessUnitEAC3() [all …]
|
/frameworks/av/media/libstagefright/foundation/tests/AVCUtils/ |
D | AVCUtilsUnitTest.cpp | 285 sp<ABuffer> accessUnit = new ABuffer(accessUnitLength); in TEST_P() local 286 ASSERT_NE(accessUnit, nullptr) in TEST_P() 289 memcpy(accessUnit->data(), accessUnitData, accessUnitLength); in TEST_P() 290 sp<ABuffer> csdDataBuffer = MakeAVCCodecSpecificData(accessUnit, &avcWidth, &avcHeight); in TEST_P() 310 accessUnit.clear(); in TEST_P() 338 sp<ABuffer> accessUnit = new ABuffer(chunkLength); in TEST_P() local 339 ASSERT_NE(accessUnit, nullptr) << "Unable to create access Unit"; in TEST_P() 341 memcpy(accessUnit->data(), data, chunkLength); in TEST_P() 342 bool isReferenceFrame = IsAVCReferenceFrame(accessUnit); in TEST_P() 345 accessUnit.clear(); in TEST_P()
|
/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 | MetaDataUtils.cpp | 41 sp<ABuffer> accessUnit = new ABuffer((void*)data, size); in MakeAVCCodecSpecificData() local 42 sp<ABuffer> csd = MakeAVCCodecSpecificData(accessUnit, &width, &height, &sarWidth, &sarHeight); in MakeAVCCodecSpecificData() 67 sp<ABuffer> accessUnit = new ABuffer((void*)data, size); in MakeAVCCodecSpecificData() local 68 sp<ABuffer> csd = MakeAVCCodecSpecificData(accessUnit, &width, &height, &sarWidth, &sarHeight); in MakeAVCCodecSpecificData()
|
/frameworks/av/media/libstagefright/foundation/ |
D | avc_utils.cpp | 400 const sp<ABuffer> &accessUnit, int32_t *width, int32_t *height, in MakeAVCCodecSpecificData() argument 402 const uint8_t *data = accessUnit->data(); in MakeAVCCodecSpecificData() 403 size_t size = accessUnit->size(); in MakeAVCCodecSpecificData() 502 bool IsAVCReferenceFrame(const sp<ABuffer> &accessUnit) { in IsAVCReferenceFrame() argument 503 const uint8_t *data = accessUnit->data(); in IsAVCReferenceFrame() 504 size_t size = accessUnit->size(); in IsAVCReferenceFrame() 506 ALOGE("IsAVCReferenceFrame: called on NULL data (%p, %zu)", accessUnit.get(), size); in IsAVCReferenceFrame() 514 ALOGE("IsAVCReferenceFrame: invalid nalSize: 0 (%p, %zu)", accessUnit.get(), size); in IsAVCReferenceFrame()
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
D | avc_utils.h | 84 const sp<ABuffer> &accessUnit, int32_t *width, int32_t *height, 88 bool IsAVCReferenceFrame(const sp<ABuffer> &accessUnit);
|
/frameworks/av/media/libstagefright/httplive/ |
D | PlaylistFetcher.cpp | 1672 const sp<ABuffer> &accessUnit, const sp<AnotherPacketSource> &source, bool discard) { in setAccessUnitProperties() argument 1676 accessUnit->meta()->setObject("format", format); in setAccessUnitProperties() 1680 accessUnit->meta()->setInt32("discard", discard); in setAccessUnitProperties() 1683 accessUnit->meta()->setInt32("discontinuitySeq", mDiscontinuitySeq); in setAccessUnitProperties() 1684 accessUnit->meta()->setInt64("segmentStartTimeUs", getSegmentStartTimeUs(mSeqNumber)); in setAccessUnitProperties() 1685 accessUnit->meta()->setInt64("segmentFirstTimeUs", mSegmentFirstPTS); in setAccessUnitProperties() 1686 accessUnit->meta()->setInt64("segmentDurationUs", getSegmentDurationUs(mSeqNumber)); in setAccessUnitProperties() 1688 accessUnit->meta()->setInt64("playlistTimeUs", mPlaylistTimeUs); in setAccessUnitProperties() 1690 return accessUnit; in setAccessUnitProperties() 1840 sp<ABuffer> accessUnit; in extractAndQueueAccessUnitsFromTs() local [all …]
|
D | LiveSession.cpp | 340 StreamType stream, sp<ABuffer> *accessUnit) { in dequeueAccessUnit() argument 369 status_t err = packetSource->dequeueAccessUnit(accessUnit); in dequeueAccessUnit() 374 CHECK((*accessUnit)->meta()->findInt32("discontinuity", &type)); in dequeueAccessUnit() 377 if (!(*accessUnit)->meta()->findMessage("extra", &extra)) { in dequeueAccessUnit() 391 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); in dequeueAccessUnit() 393 (*accessUnit)->meta()->findInt32("discontinuitySeq", &discontinuitySeq); in dequeueAccessUnit() 427 } else if ((*accessUnit)->meta()->findInt32("discard", &discard) && discard) { in dequeueAccessUnit() 439 (*accessUnit)->meta()->setInt64("timeUs", timeUs); in dequeueAccessUnit() 444 if ((*accessUnit)->meta()->findInt32("subtitleGeneration", &subtitleGeneration) in dequeueAccessUnit() 448 (*accessUnit)->meta()->setInt32( in dequeueAccessUnit() [all …]
|