aboutsummaryrefslogtreecommitdiff
path: root/api/video_codecs/sdp_video_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'api/video_codecs/sdp_video_format.h')
-rw-r--r--api/video_codecs/sdp_video_format.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/api/video_codecs/sdp_video_format.h b/api/video_codecs/sdp_video_format.h
index 97bb75489d..a1e23f4f9c 100644
--- a/api/video_codecs/sdp_video_format.h
+++ b/api/video_codecs/sdp_video_format.h
@@ -14,6 +14,7 @@
#include <map>
#include <string>
+#include "api/array_view.h"
#include "rtc_base/system/rtc_export.h"
namespace webrtc {
@@ -32,6 +33,13 @@ struct RTC_EXPORT SdpVideoFormat {
~SdpVideoFormat();
+ // Returns true if the SdpVideoFormats have the same names as well as codec
+ // specific parameters. Please note that two SdpVideoFormats can represent the
+ // same codec even though not all parameters are the same.
+ bool IsSameCodec(const SdpVideoFormat& other) const;
+ bool IsCodecInList(
+ rtc::ArrayView<const webrtc::SdpVideoFormat> formats) const;
+
std::string ToString() const;
friend RTC_EXPORT bool operator==(const SdpVideoFormat& a,