/frameworks/av/media/libstagefright/rtsp/ |
D | JitterCalculator.cpp | 31 void JitterCalc::init(uint32_t rtpTime, int64_t arrivalTimeUs, int32_t base, int32_t inter) { in init() argument 32 mFirstTimeStamp = rtpTime; in init() 33 mLastTimeStamp = rtpTime; in init() 41 void JitterCalc::putBaseData(int64_t rtpTime, int64_t arrivalTimeUs) { in putBaseData() argument 44 int64_t overflowMask = (mFirstTimeStamp & UINT32_MSB & ~rtpTime) << 1; in putBaseData() 45 int64_t tempRtpTime = overflowMask | rtpTime; in putBaseData() 56 void JitterCalc::putInterArrivalData(int64_t rtpTime, int64_t arrivalTimeUs) { in putInterArrivalData() argument 58 int64_t tempRtpTime = rtpTime; in putInterArrivalData() 62 int64_t overflowMask = (mLastTimeStamp ^ rtpTime) & UINT32_MSB; in putInterArrivalData() 63 tempRtpTime |= ((overflowMask & ~rtpTime) << 1); in putInterArrivalData() [all …]
|
D | AHEVCAssembler.cpp | 143 int64_t rtpTime = findRTPTime(firstRTPTime, buffer); in addNALUnit() local 145 if (rtpTime != mLastRtpTimeJitterDataUs) { in addNALUnit() 146 source->putBaseJitterData(rtpTime, nowTimeUs); in addNALUnit() 147 mLastRtpTimeJitterDataUs = rtpTime; in addNALUnit() 149 source->putInterArrivalJitterData(rtpTime, nowTimeUs); in addNALUnit() 185 int64_t expiredTimeRtp = rtpTime + jitterTimeRtp; // When does this buffer expire ? (T) in addNALUnit() 201 printRTPTime(rtpTime, playedTimeRtp, expiredTimeRtp, isExpired); in addNALUnit() 228 printRTPTime(rtpTime, playedTimeRtp, expiredTimeRtp, isExpired); in addNALUnit() 337 uint32_t rtpTime; in checkIFrameProvided() local 338 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in checkIFrameProvided() [all …]
|
D | AAVCAssembler.cpp | 133 int64_t rtpTime = findRTPTime(firstRTPTime, buffer); in addNALUnit() local 135 if (rtpTime != mLastRtpTimeJitterDataUs) { in addNALUnit() 136 source->putBaseJitterData(rtpTime, nowTimeUs); in addNALUnit() 137 mLastRtpTimeJitterDataUs = rtpTime; in addNALUnit() 139 source->putInterArrivalJitterData(rtpTime, nowTimeUs); in addNALUnit() 175 int64_t expiredTimeRtp = rtpTime + jitterTimeRtp; // When does this buffer expire ? (T) in addNALUnit() 191 printRTPTime(rtpTime, playedTimeRtp, expiredTimeRtp, isExpired); in addNALUnit() 218 printRTPTime(rtpTime, playedTimeRtp, expiredTimeRtp, isExpired); in addNALUnit() 323 uint32_t rtpTime; in checkIFrameProvided() local 324 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in checkIFrameProvided() [all …]
|
D | JitterCalculator.h | 42 void init(uint32_t rtpTime, int64_t arrivalTimeUs, int32_t base, int32_t inter); 43 void putInterArrivalData(int64_t rtpTime, int64_t arrivalTime); 44 void putBaseData(int64_t rtpTime, int64_t arrivalTimeUs);
|
D | ARTPWriter.cpp | 677 uint32_t rtpTime = getRtpTime(ALooper::GetNowUs()); in addSR() local 678 data[16] = (rtpTime >> 24) & 0xff; in addSR() 679 data[17] = (rtpTime >> 16) & 0xff; in addSR() 680 data[18] = (rtpTime >> 8) & 0xff; in addSR() 681 data[19] = rtpTime & 0xff; in addSR() 805 int64_t rtpTime = mRTPTimeBase + (timeUs * clockPerMs / 1000LL); in getRtpTime() local 807 return (uint32_t)rtpTime; in getRtpTime() 1011 uint32_t rtpTime = getRtpTime(timeUs); in sendHEVCData() local 1040 data[4] = rtpTime >> 24; in sendHEVCData() 1041 data[5] = (rtpTime >> 16) & 0xff; in sendHEVCData() [all …]
|
D | ARTPAssembler.h | 83 int64_t rtpTime = 0; in findRTPTime() local 84 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in findRTPTime() 86 int64_t overflowMask = (firstRTPTime & 0x80000000 & ~rtpTime) << 1; in findRTPTime() 87 return rtpTime | overflowMask; in findRTPTime()
|
D | ARTPSource.cpp | 135 void ARTPSource::timeUpdate(uint32_t rtpTime, uint64_t ntpTime) { in timeUpdate() argument 136 mLastSrRtpTime = rtpTime; in timeUpdate() 142 notify->setInt32("rtp-time", rtpTime); in timeUpdate() 182 uint32_t rtpTime; in calcTimeGapRtpRtcp() local 183 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in calcTimeGapRtpRtcp() 186 int64_t rtpTimeGap = anchorRtpTime - rtpTime; in calcTimeGapRtpRtcp() 215 int32_t rtpTime; in calcUnderlineDelay() local 216 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in calcUnderlineDelay() 217 int32_t delayMs = (expectedRtpTime - rtpTime) / (mClockRate / 1000); in calcUnderlineDelay() 245 int32_t ssrc = 0, rtpTime = 0; in queuePacket() local [all …]
|
D | AH263Assembler.cpp | 88 uint32_t rtpTime; in addPacket() local 89 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in addPacket() 91 if (mPackets.size() > 0 && rtpTime != mAccessUnitRTPTime) { in addPacket() 94 mAccessUnitRTPTime = rtpTime; in addPacket()
|
D | ARTPAssembler.cpp | 67 uint32_t rtpTime; in CopyTimes() local 68 CHECK(from->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in CopyTimes() 70 to->meta()->setInt32("rtp-time", rtpTime); in CopyTimes()
|
D | AMPEG4ElementaryAssembler.cpp | 248 uint32_t rtpTime; in addPacket() local 249 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in addPacket() 251 if (mPackets.size() > 0 && rtpTime != mAccessUnitRTPTime) { in addPacket() 254 mAccessUnitRTPTime = rtpTime; in addPacket()
|
D | MyHandler.h | 1020 uint32_t rtpTime; in onMessageReceived() local 1022 CHECK(msg->findInt32("rtp-time", (int32_t *)&rtpTime)); in onMessageReceived() 1025 onTimeUpdate(trackIndex, rtpTime, ntpTime); in onMessageReceived() 1528 uint32_t rtpTime = strtoul(val.c_str(), &end, 10); in parsePlayResponse() local 1530 ALOGV("track #%d: rtpTime=%u <=> npt=%.2f", n, rtpTime, npt1); in parsePlayResponse() 1532 info->mNormalPlayTimeRTP = rtpTime; in parsePlayResponse() 1789 void onTimeUpdate(int32_t trackIndex, uint32_t rtpTime, uint64_t ntpTime) { in onTimeUpdate() 1791 trackIndex, rtpTime, (long long)ntpTime); in onTimeUpdate() 1797 track->mRTPAnchor = rtpTime; in onTimeUpdate() 1929 uint32_t rtpTime; in addMediaTimestamp() local [all …]
|
D | AMPEG4AudioAssembler.cpp | 530 uint32_t rtpTime; in addPacket() local 531 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in addPacket() 533 if (mPackets.size() > 0 && rtpTime != mAccessUnitRTPTime) { in addPacket() 536 mAccessUnitRTPTime = rtpTime; in addPacket()
|
D | MyTransmitter.h | 644 uint32_t rtpTime = mRTPTimeBase + (timeUs * 9 / 100ll); in onMessageReceived() local 661 uint32_t rtpTime = mRTPTimeBase + mNumRTPSent * 128; in onMessageReceived() local 666 data[4] = rtpTime >> 24; in onMessageReceived() 667 data[5] = (rtpTime >> 16) & 0xff; in onMessageReceived() 668 data[6] = (rtpTime >> 8) & 0xff; in onMessageReceived() 669 data[7] = rtpTime & 0xff; in onMessageReceived() 683 mLastRTPTime = rtpTime; in onMessageReceived()
|
D | ARTPConnection.cpp | 742 uint32_t rtpTime = u32at(&data[4]); in parseRTP() local 746 meta->setInt32("rtp-time", rtpTime); in parseRTP() 762 notify->setInt32("rtp-time", (int32_t)rtpTime); in parseRTP() 946 uint32_t rtpTime = u32at(&data[16]); in parseSR() local 951 rtpTime, in parseSR() 957 source->timeUpdate(rtpTime, ntpTime); in parseSR()
|
D | ARTPSource.h | 63 void timeUpdate(uint32_t rtpTime, uint64_t ntpTime);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | RTPSource.cpp | 392 uint32_t rtpTime; in onMessageReceived() local 394 CHECK(msg->findInt32("rtp-time", (int32_t *)&rtpTime)); in onMessageReceived() 397 onTimeUpdate(trackIndex, rtpTime, ntpTime); in onMessageReceived() 437 uint32_t rtpTime; in onMessageReceived() local 438 CHECK(accessUnit->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in onMessageReceived() 513 void NuPlayer::RTPSource::onTimeUpdate(int32_t trackIndex, uint32_t rtpTime, uint64_t ntpTime) { in onTimeUpdate() argument 515 trackIndex, rtpTime, (long long)ntpTime); in onTimeUpdate() 523 track->mRTPAnchor = rtpTime; in onTimeUpdate() 565 uint32_t rtpTime; in addMediaTimestamp() local 567 "rtp-time", (int32_t *)&rtpTime)); in addMediaTimestamp() [all …]
|
D | RTSPSource.cpp | 638 uint32_t rtpTime; in onMessageReceived() local 639 CHECK(accessUnit->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in onMessageReceived() 649 ((double)rtpTime - (double)info->mRTPTime) in onMessageReceived() 709 uint32_t rtpTime; in onMessageReceived() local 710 CHECK(msg->findInt32("rtpTime", (int32_t *)&rtpTime)); in onMessageReceived() 716 info->mRTPTime = rtpTime; in onMessageReceived()
|
D | RTPSource.h | 190 void onTimeUpdate(int32_t trackIndex, uint32_t rtpTime, uint64_t ntpTime);
|
D | NuPlayer.cpp | 2859 int32_t rtpSeq = 0, rtpTime = 0; in sendIMSRxNotice() local 2868 CHECK(msg->findInt32("rtp-time", &rtpTime)); in sendIMSRxNotice() 2871 in.writeInt32(rtpTime); in sendIMSRxNotice() 2886 CHECK(msg->findInt32("rtp-time", &rtpTime)); in sendIMSRxNotice() 2889 in.writeInt32(rtpTime); in sendIMSRxNotice()
|