Home
last modified time | relevance | path

Searched refs:currentDisplayOrientation (Results 1 – 2 of 2) sorted by relevance

/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraDeviceInfo.java90 public int getPreviewOrientation(int currentDisplayOrientation) { in getPreviewOrientation() argument
92 return getRelativeImageOrientation(currentDisplayOrientation, true); in getPreviewOrientation()
106 public int getJpegOrientation(int currentDisplayOrientation) { in getJpegOrientation() argument
108 return getRelativeImageOrientation(currentDisplayOrientation, false); in getJpegOrientation()
123 protected int getRelativeImageOrientation(int currentDisplayOrientation, in getRelativeImageOrientation() argument
125 if (!orientationIsValid(currentDisplayOrientation)) { in getRelativeImageOrientation()
131 result = (getSensorOrientation() + currentDisplayOrientation) % 360; in getRelativeImageOrientation()
136 result = (getSensorOrientation() - currentDisplayOrientation + 360) % 360; in getRelativeImageOrientation()
157 public Matrix getPreviewTransform(int currentDisplayOrientation, RectF surfaceDimensions) { in getPreviewTransform() argument
158 return getPreviewTransform(currentDisplayOrientation, surfaceDimensions, in getPreviewTransform()
[all …]
DAndroidCamera2AgentImpl.java1375 public Matrix getPreviewTransform(int currentDisplayOrientation, in getPreviewTransform() argument
1378 if (!orientationIsValid(currentDisplayOrientation)) { in getPreviewTransform()
1387 2 * currentDisplayOrientation / 90); in getPreviewTransform()