Home
last modified time | relevance | path

Searched refs:rtpTime (Results 1 – 19 of 19) sorted by relevance

/frameworks/av/media/libstagefright/rtsp/
DJitterCalculator.cpp31 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 …]
DAHEVCAssembler.cpp143 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 …]
DAAVCAssembler.cpp133 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 …]
DJitterCalculator.h42 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);
DARTPWriter.cpp677 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 …]
DARTPAssembler.h83 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()
DARTPSource.cpp135 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 …]
DAH263Assembler.cpp88 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()
DARTPAssembler.cpp67 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()
DAMPEG4ElementaryAssembler.cpp248 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()
DMyHandler.h1020 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 …]
DAMPEG4AudioAssembler.cpp530 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()
DMyTransmitter.h644 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()
DARTPConnection.cpp742 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()
DARTPSource.h63 void timeUpdate(uint32_t rtpTime, uint64_t ntpTime);
/frameworks/av/media/libmediaplayerservice/nuplayer/
DRTPSource.cpp392 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 …]
DRTSPSource.cpp638 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()
DRTPSource.h190 void onTimeUpdate(int32_t trackIndex, uint32_t rtpTime, uint64_t ntpTime);
DNuPlayer.cpp2859 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()