Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(943)

Side by Side Diff: webrtc/api/video_codecs/sdp_video_format.h

Issue 3005363002: Reland of Prepare for injectable SW decoders (Closed)
Patch Set: Address comments. Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/api/video_codecs/BUILD.gn ('k') | webrtc/media/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
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
11 #ifndef WEBRTC_API_VIDEO_CODECS_SDP_VIDEO_FORMAT_H_
12 #define WEBRTC_API_VIDEO_CODECS_SDP_VIDEO_FORMAT_H_
13
14 #include <map>
15 #include <string>
16
17 namespace webrtc {
18
19 // SDP specification for a single video codec.
20 // NOTE: This class is still under development and may change without notice.
21 struct SdpVideoFormat {
22 using Parameters = std::map<std::string, std::string>;
23
24 explicit SdpVideoFormat(const std::string& name) : name(name) {}
25 SdpVideoFormat(const std::string& name, const Parameters& parameters)
26 : name(name), parameters(parameters) {}
27
28 friend bool operator==(const SdpVideoFormat& a, const SdpVideoFormat& b) {
29 return a.name == b.name && a.parameters == b.parameters;
30 }
31
32 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
42 #endif // WEBRTC_API_VIDEO_CODECS_SDP_VIDEO_FORMAT_H_
OLDNEW
« no previous file with comments | « webrtc/api/video_codecs/BUILD.gn ('k') | webrtc/media/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698