Remove raw extensions accessors from rtp packet
These accessors were introduced in https://codereview.webrtc.org/2789773004 for dynamic size extensions. They are now implemented without need of these raw functions Bug: None Change-Id: Id43f0bcbf951d60ebeece49556b093956c5ad2bf Reviewed-on: https://webrtc-review.googlesource.com/92626 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24242}
This commit is contained in:
committed by
Commit Bot
parent
8d2995b865
commit
527ff1eec2
@ -102,21 +102,6 @@ class RtpPacket {
|
||||
template <typename Extension>
|
||||
bool ReserveExtension();
|
||||
|
||||
// Following 4 helpers identify rtp header extension by |id| negotiated with
|
||||
// remote peer and written in an rtp packet.
|
||||
bool HasRawExtension(int id) const;
|
||||
|
||||
// Returns place where extension with |id| is stored.
|
||||
// Returns empty arrayview if extension is not present.
|
||||
rtc::ArrayView<const uint8_t> GetRawExtension(int id) const;
|
||||
|
||||
// Allocates and store header extension. Returns true on success.
|
||||
bool SetRawExtension(int id, rtc::ArrayView<const uint8_t> data);
|
||||
|
||||
// Allocates and returns place to store rtp header extension.
|
||||
// Returns empty arrayview on failure.
|
||||
rtc::ArrayView<uint8_t> AllocateRawExtension(int id, size_t length);
|
||||
|
||||
// Reserve size_bytes for payload. Returns nullptr on failure.
|
||||
uint8_t* SetPayloadSize(size_t size_bytes);
|
||||
// Same as SetPayloadSize but doesn't guarantee to keep current payload.
|
||||
@ -138,6 +123,10 @@ class RtpPacket {
|
||||
// Returns view of the raw extension or empty view on failure.
|
||||
rtc::ArrayView<const uint8_t> FindExtension(ExtensionType type) const;
|
||||
|
||||
// Allocates and returns place to store rtp header extension.
|
||||
// Returns empty arrayview on failure.
|
||||
rtc::ArrayView<uint8_t> AllocateRawExtension(int id, size_t length);
|
||||
|
||||
// Find or allocate an extension |type|. Returns view of size |length|
|
||||
// to write raw extension to or an empty view on failure.
|
||||
rtc::ArrayView<uint8_t> AllocateExtension(ExtensionType type, size_t length);
|
||||
|
||||
Reference in New Issue
Block a user