123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- #ifndef PC_RTP_PARAMETERS_CONVERSION_H_
- #define PC_RTP_PARAMETERS_CONVERSION_H_
- #include <iosfwd>
- #include <vector>
- #include "absl/types/optional.h"
- #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 {
- RTCErrorOr<cricket::FeedbackParam> ToCricketFeedbackParam(
- const RtcpFeedback& feedback);
- template <typename C>
- RTCErrorOr<C> ToCricketCodec(const RtpCodecParameters& codec);
- template <typename C>
- RTCErrorOr<std::vector<C>> ToCricketCodecs(
- const std::vector<RtpCodecParameters>& codecs);
- RTCErrorOr<cricket::StreamParamsVec> ToCricketStreamParamsVec(
- const std::vector<RtpEncodingParameters>& encodings);
- absl::optional<RtcpFeedback> ToRtcpFeedback(
- const cricket::FeedbackParam& cricket_feedback);
- std::vector<RtpEncodingParameters> ToRtpEncodings(
- const cricket::StreamParamsVec& stream_params);
- template <typename C>
- RtpCodecParameters ToRtpCodecParameters(const C& cricket_codec);
- template <typename C>
- RtpCodecCapability ToRtpCodecCapability(const C& cricket_codec);
- template <class C>
- RtpCapabilities ToRtpCapabilities(
- const std::vector<C>& cricket_codecs,
- const cricket::RtpHeaderExtensions& cricket_extensions);
- template <class C>
- RtpParameters ToRtpParameters(
- const std::vector<C>& cricket_codecs,
- const cricket::RtpHeaderExtensions& cricket_extensions,
- const cricket::StreamParamsVec& stream_params);
- }
- #endif
|