mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-16 23:30:48 +01:00

The extension is suggested to be used for signaling per target bitrate, resolution and frame rate to a SFU to allow a SFU to know what video layers a client is currently targeting. It is hoped to replace the current Target bitrate RTCP XR message currently used only for screen share. Bug: webrtc:12000 Change-Id: Id7b55e7ddaf6304e31839fd0482b096e1dbe8925 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/185980 Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Per Kjellander <perkj@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32313}
35 lines
1.5 KiB
C++
35 lines
1.5 KiB
C++
/*
|
|
* Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef MODULES_RTP_RTCP_SOURCE_RTP_VIDEO_LAYERS_ALLOCATION_EXTENSION_H_
|
|
#define MODULES_RTP_RTCP_SOURCE_RTP_VIDEO_LAYERS_ALLOCATION_EXTENSION_H_
|
|
|
|
#include "api/video/video_layers_allocation.h"
|
|
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
|
|
|
namespace webrtc {
|
|
|
|
// TODO(bugs.webrtc.org/12000): Note that this extensions is being developed and
|
|
// the wire format will likely change.
|
|
class RtpVideoLayersAllocationExtension {
|
|
public:
|
|
using value_type = VideoLayersAllocation;
|
|
static constexpr RTPExtensionType kId = kRtpExtensionVideoLayersAllocation;
|
|
static constexpr const char kUri[] =
|
|
"http://www.webrtc.org/experiments/rtp-hdrext/video-layers-allocation00";
|
|
static bool Parse(rtc::ArrayView<const uint8_t> data,
|
|
VideoLayersAllocation* allocation);
|
|
static size_t ValueSize(const VideoLayersAllocation& allocation);
|
|
static bool Write(rtc::ArrayView<uint8_t> data,
|
|
const VideoLayersAllocation& allocation);
|
|
};
|
|
|
|
} // namespace webrtc
|
|
#endif // MODULES_RTP_RTCP_SOURCE_RTP_VIDEO_LAYERS_ALLOCATION_EXTENSION_H_
|