OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 package org.webrtc; | 11 package org.webrtc; |
12 | 12 |
13 import java.util.Map; | 13 import java.util.Map; |
14 | 14 |
15 /** | 15 /** |
16 * Represent a video codec as encoded in SDP. | 16 * Represent a video codec as encoded in SDP. |
17 */ | 17 */ |
18 public class VideoCodecInfo { | 18 public class VideoCodecInfo { |
| 19 // Keys for H264 VideoCodecInfo properties. |
| 20 public static final String H264_FMTP_PROFILE_LEVEL_ID = "profile-level-id"; |
| 21 public static final String H264_FMTP_LEVEL_ASYMMETRY_ALLOWED = "level-asymmetr
y-allowed"; |
| 22 public static final String H264_FMTP_PACKETIZATION_MODE = "packetization-mode"
; |
| 23 |
| 24 public static final String H264_PROFILE_CONSTRAINED_BASELINE = "4200"; |
| 25 public static final String H264_PROFILE_CONSTRAINED_HIGH = "640c"; |
| 26 public static final String H264_LEVEL_3_1 = "1f"; // 31 in hex. |
| 27 public static final String H264_CONSTRAINED_HIGH_3_1 = |
| 28 H264_PROFILE_CONSTRAINED_HIGH + H264_LEVEL_3_1; |
| 29 public static final String H264_CONSTRAINED_BASELINE_3_1 = |
| 30 H264_PROFILE_CONSTRAINED_BASELINE + H264_LEVEL_3_1; |
| 31 |
19 public final int payload; | 32 public final int payload; |
20 public final String name; | 33 public final String name; |
21 public final Map<String, String> params; | 34 public final Map<String, String> params; |
22 | 35 |
23 public VideoCodecInfo(int payload, String name, Map<String, String> params) { | 36 public VideoCodecInfo(int payload, String name, Map<String, String> params) { |
24 this.payload = payload; | 37 this.payload = payload; |
25 this.name = name; | 38 this.name = name; |
26 this.params = params; | 39 this.params = params; |
27 } | 40 } |
28 } | 41 } |
OLD | NEW |