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

Side by Side Diff: media/base/android/java/src/org/chromium/media/CodecProfileLevelList.java

Issue 2697033003: [Chromecast] Fix IsSupportedVideoConfig() on Android. (Closed)
Patch Set: Created 3 years, 10 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 | « chromecast/media/base/supported_codec_profile_levels_memo.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.media; 5 package org.chromium.media;
6 6
7 import android.media.MediaCodecInfo.CodecProfileLevel; 7 import android.media.MediaCodecInfo.CodecProfileLevel;
8 8
9 import org.chromium.base.annotations.CalledByNative; 9 import org.chromium.base.annotations.CalledByNative;
10 import org.chromium.base.annotations.JNINamespace; 10 import org.chromium.base.annotations.JNINamespace;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 switch (codec) { 172 switch (codec) {
173 case CODEC_AVC: 173 case CODEC_AVC:
174 switch (level) { 174 switch (level) {
175 case CodecProfileLevel.AVCLevel1: 175 case CodecProfileLevel.AVCLevel1:
176 return 10; 176 return 10;
177 case CodecProfileLevel.AVCLevel11: 177 case CodecProfileLevel.AVCLevel11:
178 return 11; 178 return 11;
179 case CodecProfileLevel.AVCLevel12: 179 case CodecProfileLevel.AVCLevel12:
180 return 12; 180 return 12;
181 case CodecProfileLevel.AVCLevel13: 181 case CodecProfileLevel.AVCLevel13:
182 return 14; 182 return 13;
183 case CodecProfileLevel.AVCLevel2: 183 case CodecProfileLevel.AVCLevel2:
184 return 20; 184 return 20;
185 case CodecProfileLevel.AVCLevel21: 185 case CodecProfileLevel.AVCLevel21:
186 return 21; 186 return 21;
187 case CodecProfileLevel.AVCLevel22: 187 case CodecProfileLevel.AVCLevel22:
188 return 22; 188 return 22;
189 case CodecProfileLevel.AVCLevel3: 189 case CodecProfileLevel.AVCLevel3:
190 return 30; 190 return 30;
191 case CodecProfileLevel.AVCLevel31: 191 case CodecProfileLevel.AVCLevel31:
192 return 31; 192 return 31;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 case CodecProfileLevel.HEVCMainTierLevel62: 282 case CodecProfileLevel.HEVCMainTierLevel62:
283 return 186; 283 return 186;
284 default: 284 default:
285 throw new UnsupportedCodecProfileException(); 285 throw new UnsupportedCodecProfileException();
286 } 286 }
287 default: 287 default:
288 throw new UnsupportedCodecProfileException(); 288 throw new UnsupportedCodecProfileException();
289 } 289 }
290 } 290 }
291 } 291 }
OLDNEW
« no previous file with comments | « chromecast/media/base/supported_codec_profile_levels_memo.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698