webrtc/modules/rtp_rtcp/source/rtp_video_layers_allocation_extension.h
Danil Chapovalov 5f798736e5 Delete stale TODOs related to VideoLayersAllocation extension
No-Try: true
Bug: webrtc:12000
Change-Id: I1ed3ece0eb000fe012ce5e26a6abaf640b422481
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/292880
Reviewed-by: Per Kjellander <perkj@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39291}
2023-02-10 08:59:59 +00:00

37 lines
1.4 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 "absl/strings/string_view.h"
#include "api/rtp_parameters.h"
#include "api/video/video_layers_allocation.h"
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
namespace webrtc {
class RtpVideoLayersAllocationExtension {
public:
using value_type = VideoLayersAllocation;
static constexpr RTPExtensionType kId = kRtpExtensionVideoLayersAllocation;
static constexpr absl::string_view Uri() {
return RtpExtension::kVideoLayersAllocationUri;
}
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_