Revert of Simplify and extend RtpHeaderExtensionMap (patchset #12 id:260001 of https://codereview.webrtc.org/2452293004/ )
Reason for revert: breaks downstream project Original issue's description: > Simplify and extend RtpHeaderExtensionMap > Add register functions for various codepaths. > Add initialize-list constructor to create usable const RtpHeaderExtensionMap > Optimize implementation for GetId/GetType. > > BUG=webrtc:1994 > > Committed: https://crrev.com/d1d26fbeb37a69471a34004c6ac2d3fafde5d404 > Cr-Commit-Position: refs/heads/master@{#14986} TBR=sprang@webrtc.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=webrtc:1994 Review-Url: https://codereview.webrtc.org/2484863007 Cr-Commit-Position: refs/heads/master@{#14988}
This commit is contained in:
@ -20,8 +20,7 @@ class AbsoluteSendTime {
|
||||
public:
|
||||
static constexpr RTPExtensionType kId = kRtpExtensionAbsoluteSendTime;
|
||||
static constexpr uint8_t kValueSizeBytes = 3;
|
||||
static constexpr const char* kUri =
|
||||
"http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time";
|
||||
static const char* const kUri;
|
||||
|
||||
static bool Parse(const uint8_t* data, uint32_t* time_24bits);
|
||||
static bool Write(uint8_t* data, int64_t time_ms);
|
||||
@ -35,8 +34,7 @@ class AudioLevel {
|
||||
public:
|
||||
static constexpr RTPExtensionType kId = kRtpExtensionAudioLevel;
|
||||
static constexpr uint8_t kValueSizeBytes = 1;
|
||||
static constexpr const char* kUri =
|
||||
"urn:ietf:params:rtp-hdrext:ssrc-audio-level";
|
||||
static const char* const kUri;
|
||||
|
||||
static bool Parse(const uint8_t* data,
|
||||
bool* voice_activity,
|
||||
@ -48,7 +46,7 @@ class TransmissionOffset {
|
||||
public:
|
||||
static constexpr RTPExtensionType kId = kRtpExtensionTransmissionTimeOffset;
|
||||
static constexpr uint8_t kValueSizeBytes = 3;
|
||||
static constexpr const char* kUri = "urn:ietf:params:rtp-hdrext:toffset";
|
||||
static const char* const kUri;
|
||||
|
||||
static bool Parse(const uint8_t* data, int32_t* rtp_time);
|
||||
static bool Write(uint8_t* data, int32_t rtp_time);
|
||||
@ -58,9 +56,8 @@ class TransportSequenceNumber {
|
||||
public:
|
||||
static constexpr RTPExtensionType kId = kRtpExtensionTransportSequenceNumber;
|
||||
static constexpr uint8_t kValueSizeBytes = 2;
|
||||
static constexpr const char* kUri =
|
||||
"http://www.ietf.org/id/"
|
||||
"draft-holmer-rmcat-transport-wide-cc-extensions-01";
|
||||
static const char* const kUri;
|
||||
|
||||
static bool Parse(const uint8_t* data, uint16_t* value);
|
||||
static bool Write(uint8_t* data, uint16_t value);
|
||||
};
|
||||
@ -69,7 +66,7 @@ class VideoOrientation {
|
||||
public:
|
||||
static constexpr RTPExtensionType kId = kRtpExtensionVideoRotation;
|
||||
static constexpr uint8_t kValueSizeBytes = 1;
|
||||
static constexpr const char* kUri = "urn:3gpp:video-orientation";
|
||||
static const char* const kUri;
|
||||
|
||||
static bool Parse(const uint8_t* data, VideoRotation* value);
|
||||
static bool Write(uint8_t* data, VideoRotation value);
|
||||
@ -81,8 +78,7 @@ class PlayoutDelayLimits {
|
||||
public:
|
||||
static constexpr RTPExtensionType kId = kRtpExtensionPlayoutDelay;
|
||||
static constexpr uint8_t kValueSizeBytes = 3;
|
||||
static constexpr const char* kUri =
|
||||
"http://www.webrtc.org/experiments/rtp-hdrext/playout-delay";
|
||||
static const char* const kUri;
|
||||
|
||||
// Playout delay in milliseconds. A playout delay limit (min or max)
|
||||
// has 12 bits allocated. This allows a range of 0-4095 values which
|
||||
|
||||
Reference in New Issue
Block a user