Niels Möller | be682d4 | 2018-03-27 08:31:45 +0200 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2018 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 | |
| 11 | #include "api/video_codecs/sdp_video_format.h" |
| 12 | |
| 13 | namespace webrtc { |
| 14 | |
| 15 | SdpVideoFormat::SdpVideoFormat(const std::string& name) : name(name) {} |
| 16 | |
| 17 | SdpVideoFormat::SdpVideoFormat(const std::string& name, |
| 18 | const Parameters& parameters) |
| 19 | : name(name), parameters(parameters) {} |
| 20 | |
| 21 | SdpVideoFormat::SdpVideoFormat(const SdpVideoFormat&) = default; |
| 22 | SdpVideoFormat::SdpVideoFormat(SdpVideoFormat&&) = default; |
| 23 | |
| 24 | SdpVideoFormat::~SdpVideoFormat() = default; |
| 25 | |
| 26 | bool operator==(const SdpVideoFormat& a, const SdpVideoFormat& b) { |
| 27 | return a.name == b.name && a.parameters == b.parameters; |
| 28 | } |
| 29 | |
| 30 | } // namespace webrtc |