Created
May 3, 2015 19:50
-
-
Save gekkehenkie11/1e83d61ac752f0097912 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static Camera.Size a(List<Camera.Size> paramList, int paramInt1, int paramInt2, int paramInt3) | |
| { | |
| int i = 0; | |
| if (paramList == null) { | |
| return null; | |
| } | |
| float f1 = paramInt2 / paramInt1; | |
| Iterator localIterator = paramList.iterator(); | |
| paramList = null; | |
| Object localObject2 = null; | |
| int k = 0; | |
| label32: | |
| Object localObject1; | |
| int j; | |
| while (localIterator.hasNext()) | |
| { | |
| Camera.Size localSize = (Camera.Size)localIterator.next(); | |
| float f2 = localSize.height / localSize.width; | |
| int m = localSize.width * localSize.height; | |
| if ((paramInt3 != v.b) || ((localSize.width <= paramInt1) && (localSize.height <= paramInt2))) | |
| { | |
| localObject1 = localObject2; | |
| j = k; | |
| if (m > k) | |
| { | |
| localObject1 = localObject2; | |
| j = k; | |
| if (Math.abs(f2 - f1) <= 0.01F) | |
| { | |
| localObject1 = localSize; | |
| j = m; | |
| } | |
| } | |
| if (m <= i) { | |
| break label199; | |
| } | |
| i = m; | |
| paramList = localSize; | |
| } | |
| } | |
| label199: | |
| for (;;) | |
| { | |
| localObject2 = localObject1; | |
| k = j; | |
| break label32; | |
| if (localObject2 != null) { | |
| return (Camera.Size)localObject2; | |
| } | |
| if (paramList == null) { | |
| break; | |
| } | |
| a.d(a, "Can not find a size that respects the desired proportions"); | |
| return paramList; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment