mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-17 15:47:53 +01:00

TBR=aleloi@webrtc.org Bug: webrtc:10342 Change-Id: I9d321ec47ed748ccfac2be6793923c46d0a88d16 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/144032 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28415}
41 lines
1.5 KiB
C++
41 lines
1.5 KiB
C++
/*
|
|
* Copyright (c) 2019 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_DEPENDENCY_DESCRIPTOR_READER_H_
|
|
#define MODULES_RTP_RTCP_SOURCE_RTP_DEPENDENCY_DESCRIPTOR_READER_H_
|
|
|
|
#include <cstdint>
|
|
|
|
#include "api/array_view.h"
|
|
#include "common_video/generic_frame_descriptor/generic_frame_info.h"
|
|
|
|
namespace webrtc {
|
|
// Keeps and updates state required to deserialize DependencyDescriptor
|
|
// rtp header extension.
|
|
class RtpDependencyDescriptorReader {
|
|
public:
|
|
// Parses the dependency descriptor. Returns false on failure.
|
|
// Updates frame dependency structures if parsed descriptor has a new one.
|
|
// Doesn't update own state when Parse fails.
|
|
bool Parse(rtc::ArrayView<const uint8_t> raw_data,
|
|
DependencyDescriptor* descriptor) {
|
|
// TODO(bugs.webrtc.org/10342): Implement.
|
|
return false;
|
|
}
|
|
|
|
// Returns latest valid parsed structure or nullptr if none was parsed so far.
|
|
const FrameDependencyStructure* GetStructure() const {
|
|
// TODO(bugs.webrtc.org/10342): Implement.
|
|
return nullptr;
|
|
}
|
|
};
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // MODULES_RTP_RTCP_SOURCE_RTP_DEPENDENCY_DESCRIPTOR_READER_H_
|