webrtc_m130/pc/rtp_parameters_conversion.h
Harald Alvestrand dd493e56a4 Remove functions from rtp_parameters_conversion.
These functions seem to have been unused except for tests.
It seems to have been added in 2017.

Bug: None
Change-Id: I01983f4b72456b1df27ec2d346014e0de1b5cae7
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/366943
Reviewed-by: Florent Castelli <orphis@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43332}
2024-10-30 11:28:11 +00:00

49 lines
1.6 KiB
C++

/*
* Copyright 2017 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 PC_RTP_PARAMETERS_CONVERSION_H_
#define PC_RTP_PARAMETERS_CONVERSION_H_
#include <optional>
#include <vector>
#include "api/rtc_error.h"
#include "api/rtp_parameters.h"
#include "media/base/codec.h"
#include "media/base/stream_params.h"
#include "pc/session_description.h"
namespace webrtc {
//*****************************************************************************
// Functions for converting from old cricket:: structures to new webrtc::
// structures. These are permissive with regards to
// input validation; it's assumed that any necessary validation already
// occurred.
//
// These are expected to be used to convert from audio/video engine
// capabilities to RtpCapabilities.
//*****************************************************************************
// Returns empty value if `cricket_feedback` is a feedback type not
// supported/recognized.
std::optional<RtcpFeedback> ToRtcpFeedback(
const cricket::FeedbackParam& cricket_feedback);
RtpCodecCapability ToRtpCodecCapability(const cricket::Codec& cricket_codec);
RtpCapabilities ToRtpCapabilities(
const std::vector<cricket::Codec>& cricket_codecs,
const cricket::RtpHeaderExtensions& cricket_extensions);
} // namespace webrtc
#endif // PC_RTP_PARAMETERS_CONVERSION_H_