mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Modify the api definition in the ImsMedia HAL for AV sync
For more accurate calculation of incoming packet latency and improved inter-media synchronization, modify the AVSync API's request to use the RTCP-SR report's NTP timestamp. This absolute timestamp facilitates cross-media comparisons. Bug: 321878340 Test: mm Change-Id: I9980ac832095d1caf82c42e17307c83522de4b3e
This commit is contained in:
@@ -35,8 +35,8 @@ package android.hardware.radio.ims.media;
|
||||
@VintfStability
|
||||
parcelable RtpReceptionStats {
|
||||
int rtpTimestamp;
|
||||
int rtpSequenceNumber;
|
||||
int timeDurationMs;
|
||||
int rtcpSrTimestamp;
|
||||
long rtcpSrNtpTimestamp;
|
||||
int jitterBufferMs;
|
||||
int roundTripTimeMs;
|
||||
}
|
||||
|
||||
@@ -110,8 +110,7 @@ oneway interface IImsMediaSession {
|
||||
* Adjust the delay in the jitter buffer to synchronize the audio with the time of video
|
||||
* frames
|
||||
*
|
||||
* @param delayMs The delay to apply to the jitter buffer. If it is positive, the jitter
|
||||
* buffer increases the delay, if it is negative, the jitter buffer decreases the delay.
|
||||
* @param delayMs The additional delay to the jitter buffer in milliseconds.
|
||||
*
|
||||
* This is available when android.hardware.telephony.ims is defined.
|
||||
*/
|
||||
|
||||
@@ -20,12 +20,19 @@ package android.hardware.radio.ims.media;
|
||||
parcelable RtpReceptionStats {
|
||||
/** The timestamp of the latest RTP packet received */
|
||||
int rtpTimestamp;
|
||||
/** The sequence number of latest RTP packet received */
|
||||
int rtpSequenceNumber;
|
||||
/** The system clock time in millisecond of latest RTP packet received */
|
||||
int timeDurationMs;
|
||||
/** The jitter buffer size in millisecond when latest RTP packet received */
|
||||
|
||||
/** The timestamp of the latest RTCP-SR packet received */
|
||||
int rtcpSrTimestamp;
|
||||
|
||||
/** The NTP timestamp of latest RTCP-SR packet received */
|
||||
long rtcpSrNtpTimestamp;
|
||||
|
||||
/**
|
||||
* The mean jitter buffer delay of a media stream from received to playback, measured in
|
||||
* milliseconds, within the reporting interval
|
||||
*/
|
||||
int jitterBufferMs;
|
||||
|
||||
/** The round trip time delay in millisecond when latest RTP packet received */
|
||||
int roundTripTimeMs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user