Move Offset constants from VideoSendTiming value to VideoTimingExtension class
These constants describes how value should be put on the wire and thus belong to the extension builder/writer class rather than extension value class Bug: None Change-Id: I65ca3923eddcc2e48563ad69b98356c159ad86be Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/166461 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30305}
This commit is contained in:
committed by
Commit Bot
parent
274cc7fadf
commit
df2c601616
@ -192,6 +192,16 @@ class VideoTimingExtension {
|
||||
static constexpr const char kUri[] =
|
||||
"http://www.webrtc.org/experiments/rtp-hdrext/video-timing";
|
||||
|
||||
// Offsets of the fields in the RTP header extension, counting from the first
|
||||
// byte after the one-byte header.
|
||||
static constexpr uint8_t kFlagsOffset = 0;
|
||||
static constexpr uint8_t kEncodeStartDeltaOffset = 1;
|
||||
static constexpr uint8_t kEncodeFinishDeltaOffset = 3;
|
||||
static constexpr uint8_t kPacketizationFinishDeltaOffset = 5;
|
||||
static constexpr uint8_t kPacerExitDeltaOffset = 7;
|
||||
static constexpr uint8_t kNetworkTimestampDeltaOffset = 9;
|
||||
static constexpr uint8_t kNetwork2TimestampDeltaOffset = 11;
|
||||
|
||||
static bool Parse(rtc::ArrayView<const uint8_t> data,
|
||||
VideoSendTiming* timing);
|
||||
static size_t ValueSize(const VideoSendTiming&) { return kValueSizeBytes; }
|
||||
@ -204,7 +214,7 @@ class VideoTimingExtension {
|
||||
// Writes only single time delta to position idx.
|
||||
static bool Write(rtc::ArrayView<uint8_t> data,
|
||||
uint16_t time_delta_ms,
|
||||
uint8_t idx);
|
||||
uint8_t offset);
|
||||
};
|
||||
|
||||
class FrameMarkingExtension {
|
||||
|
||||
Reference in New Issue
Block a user