2017-09-11 11:50:51 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 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.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef API_VIDEO_CODECS_SDP_VIDEO_FORMAT_H_
|
|
|
|
|
#define API_VIDEO_CODECS_SDP_VIDEO_FORMAT_H_
|
2017-09-11 11:50:51 -07:00
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
// SDP specification for a single video codec.
|
|
|
|
|
// NOTE: This class is still under development and may change without notice.
|
|
|
|
|
struct SdpVideoFormat {
|
|
|
|
|
using Parameters = std::map<std::string, std::string>;
|
|
|
|
|
|
2018-03-27 08:31:45 +02:00
|
|
|
explicit SdpVideoFormat(const std::string& name);
|
|
|
|
|
SdpVideoFormat(const std::string& name, const Parameters& parameters);
|
|
|
|
|
SdpVideoFormat(const SdpVideoFormat&);
|
|
|
|
|
SdpVideoFormat(SdpVideoFormat&&);
|
2018-03-28 09:02:09 +02:00
|
|
|
SdpVideoFormat& operator=(const SdpVideoFormat&);
|
|
|
|
|
SdpVideoFormat& operator=(SdpVideoFormat&&);
|
2017-09-11 11:50:51 -07:00
|
|
|
|
2018-03-27 08:31:45 +02:00
|
|
|
~SdpVideoFormat();
|
2017-09-11 11:50:51 -07:00
|
|
|
|
2018-03-27 08:31:45 +02:00
|
|
|
friend bool operator==(const SdpVideoFormat& a, const SdpVideoFormat& b);
|
2017-09-11 11:50:51 -07:00
|
|
|
friend bool operator!=(const SdpVideoFormat& a, const SdpVideoFormat& b) {
|
|
|
|
|
return !(a == b);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string name;
|
|
|
|
|
Parameters parameters;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // API_VIDEO_CODECS_SDP_VIDEO_FORMAT_H_
|