blob: eae06cded1cb64548c8d46e3b19940f098f0aaac [file] [log] [blame]
andersc063f0c02017-09-11 11:50:51 -07001/*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef API_VIDEO_CODECS_SDP_VIDEO_FORMAT_H_
12#define API_VIDEO_CODECS_SDP_VIDEO_FORMAT_H_
andersc063f0c02017-09-11 11:50:51 -070013
14#include <map>
15#include <string>
16
17namespace webrtc {
18
19// SDP specification for a single video codec.
20// NOTE: This class is still under development and may change without notice.
21struct SdpVideoFormat {
22 using Parameters = std::map<std::string, std::string>;
23
Niels Möllerbe682d42018-03-27 08:31:45 +020024 explicit SdpVideoFormat(const std::string& name);
25 SdpVideoFormat(const std::string& name, const Parameters& parameters);
26 SdpVideoFormat(const SdpVideoFormat&);
27 SdpVideoFormat(SdpVideoFormat&&);
andersc063f0c02017-09-11 11:50:51 -070028
Niels Möllerbe682d42018-03-27 08:31:45 +020029 ~SdpVideoFormat();
andersc063f0c02017-09-11 11:50:51 -070030
Niels Möllerbe682d42018-03-27 08:31:45 +020031 friend bool operator==(const SdpVideoFormat& a, const SdpVideoFormat& b);
andersc063f0c02017-09-11 11:50:51 -070032 friend bool operator!=(const SdpVideoFormat& a, const SdpVideoFormat& b) {
33 return !(a == b);
34 }
35
36 std::string name;
37 Parameters parameters;
38};
39
40} // namespace webrtc
41
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020042#endif // API_VIDEO_CODECS_SDP_VIDEO_FORMAT_H_