OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 static const char kCpuUnderuseThreshold[]; // googCpuUnderuseThreshold | 126 static const char kCpuUnderuseThreshold[]; // googCpuUnderuseThreshold |
127 static const char kCpuOveruseThreshold[]; // googCpuOveruseThreshold | 127 static const char kCpuOveruseThreshold[]; // googCpuOveruseThreshold |
128 // Low cpu adaptation threshold for relative standard deviation of encode | 128 // Low cpu adaptation threshold for relative standard deviation of encode |
129 // time. | 129 // time. |
130 static const char kCpuUnderuseEncodeRsdThreshold[]; | 130 static const char kCpuUnderuseEncodeRsdThreshold[]; |
131 // High cpu adaptation threshold for relative standard deviation of encode | 131 // High cpu adaptation threshold for relative standard deviation of encode |
132 // time. | 132 // time. |
133 static const char kCpuOveruseEncodeRsdThreshold[]; | 133 static const char kCpuOveruseEncodeRsdThreshold[]; |
134 static const char kCpuOveruseEncodeUsage[]; // googCpuOveruseEncodeUsage | 134 static const char kCpuOveruseEncodeUsage[]; // googCpuOveruseEncodeUsage |
135 static const char kHighStartBitrate[]; // googHighStartBitrate | 135 static const char kHighStartBitrate[]; // googHighStartBitrate |
136 static const char kHighBitrate[]; // googHighBitrate | |
137 static const char kVeryHighBitrate[]; // googVeryHighBitrate | |
138 static const char kPayloadPadding[]; // googPayloadPadding | 136 static const char kPayloadPadding[]; // googPayloadPadding |
139 | 137 |
140 // The prefix of internal-only constraints whose JS set values should be | 138 // The prefix of internal-only constraints whose JS set values should be |
141 // stripped by Chrome before passed down to Libjingle. | 139 // stripped by Chrome before passed down to Libjingle. |
142 static const char kInternalConstraintPrefix[]; | 140 static const char kInternalConstraintPrefix[]; |
143 | 141 |
144 protected: | 142 protected: |
145 // Dtor protected as objects shouldn't be deleted via this interface | 143 // Dtor protected as objects shouldn't be deleted via this interface |
146 virtual ~MediaConstraintsInterface() {} | 144 virtual ~MediaConstraintsInterface() {} |
147 }; | 145 }; |
148 | 146 |
149 bool FindConstraint(const MediaConstraintsInterface* constraints, | 147 bool FindConstraint(const MediaConstraintsInterface* constraints, |
150 const std::string& key, bool* value, | 148 const std::string& key, bool* value, |
151 size_t* mandatory_constraints); | 149 size_t* mandatory_constraints); |
152 | 150 |
153 } // namespace webrtc | 151 } // namespace webrtc |
154 | 152 |
155 #endif // TALK_APP_WEBRTC_MEDIACONSTRAINTSINTERFACE_H_ | 153 #endif // TALK_APP_WEBRTC_MEDIACONSTRAINTSINTERFACE_H_ |
OLD | NEW |