/packages/apps/Camera2/src/com/android/camera/app/ |
H A D | OrientationManager.java | 27 private DeviceOrientation(int degrees) { argument 28 mDegrees = degrees; 44 public static DeviceOrientation from(int degrees) { argument 45 switch (degrees) { 58 int normalizedDegrees = (Math.abs(degrees / 360) * 360 + 360 + degrees) % 360;
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
H A D | Image.java | 59 protected void setDegreesRotated(int degrees) { argument 60 if (mRotation == degrees) return; 61 mRotation = degrees; 105 private void setExifRotation(int degrees) { argument 107 degrees %= 360; 108 if (degrees < 0) degrees += 360; 111 switch (degrees) { 137 * @param degrees 139 public boolean rotateImageBy(int degrees) { argument [all...] |
H A D | IImage.java | 78 public abstract boolean rotateImageBy(int degrees); argument
|
H A D | VideoObject.java | 100 public boolean rotateImageBy(int degrees) { argument
|
H A D | UriImage.java | 171 public boolean rotateImageBy(int degrees) { argument
|
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | JpegUtilNative.java | 62 * 90-degrees are suppored, so the parameter 'rot90' specifies which 116 * @param rot90 the multiple of 90 degrees to rotate counterclockwise, one 185 * @param degrees the amount to rotate the image clockwise, in degrees. 189 int degrees) { 191 img.getHeight()), degrees); 203 * @param degrees The number of degrees to rotate the image *after* 211 Rect crop, int degrees) { 212 Preconditions.checkState((degrees 188 compressJpegFromYUV420Image(ImageProxy img, ByteBuffer outBuf, int quality, int degrees) argument 210 compressJpegFromYUV420Image(ImageProxy img, ByteBuffer outBuf, int quality, Rect crop, int degrees) argument [all...] |
H A D | CameraUtil.java | 92 /** Orientation hysteresis amount used in rounding, in degrees. */ 141 public static Bitmap rotate(Bitmap b, int degrees) { argument 142 return rotateAndMirror(b, degrees, false); 149 public static Bitmap rotateAndMirror(Bitmap b, int degrees, boolean mirror) { argument 150 if ((degrees != 0 || mirror) && b != null) { 156 degrees = (degrees + 360) % 360; 157 if (degrees == 0 || degrees == 180) { 159 } else if (degrees [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | Util.java | 76 // Orientation hysteresis amount used in rounding, in degrees 114 public static Bitmap rotate(Bitmap b, int degrees) { argument 115 return rotateAndMirror(b, degrees, false); 120 public static Bitmap rotateAndMirror(Bitmap b, int degrees, boolean mirror) { argument 121 if ((degrees != 0 || mirror) && b != null) { 127 degrees = (degrees + 360) % 360; 128 if (degrees == 0 || degrees == 180) { 130 } else if (degrees 338 getDisplayOrientation(int degrees, int cameraId) argument [all...] |
H A D | EffectsRecorder.java | 342 public void setOrientationHint(int degrees) { argument 350 if (mLogVerbose) Log.v(TAG, "Setting orientation hint to: " + degrees); 351 mOrientationHint = degrees;
|
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
H A D | VideoChatTestActivity.java | 118 int degrees = 0; 121 degrees = 0; 124 degrees = 90; 127 degrees = 180; 130 degrees = 270; 133 return degrees; 142 int degrees = getDisplayOrientation(); 143 new CameraTestRunner().execute(new Integer[] { degrees });
|
/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
H A D | MockImage.java | 97 public boolean rotateImageBy(int degrees) { argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | Paper.java | 81 float degrees = 85 Matrix.rotateM(mMatrix, 0, degrees, 0, 1, 0);
|
H A D | GLRootView.java | 444 private void rotateCanvas(int degrees) { argument 445 if (degrees == 0) return; 451 mCanvas.rotate(degrees, 0, 0, 1); 452 if (degrees % 180 != 0) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | MediaObject.java | 104 public void rotate(int degrees) { argument
|
H A D | LocalMergeAlbum.java | 207 public void rotate(int degrees) { argument 209 set.rotate(degrees);
|
H A D | DataManager.java | 256 public void rotate(Path path, int degrees) { argument 257 getMediaObject(path).rotate(degrees);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | VideoUtils.java | 178 int degrees = Integer.parseInt(degreesString); 179 if (degrees >= 0) { 180 muxer.setOrientationHint(degrees);
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
H A D | CameraManager.java | 670 int degrees = 0; 672 case Surface.ROTATION_0: degrees = 0; break; 673 case Surface.ROTATION_90: degrees = 90; break; 674 case Surface.ROTATION_180: degrees = 180; break; 675 case Surface.ROTATION_270: degrees = 270; break; 685 orientation = (mCameraInfo.orientation + degrees) % 360; 690 orientation = (mCameraInfo.orientation - degrees + 360) % 360; 968 // Rotate the camera orientation 90 degrees to compensate for the rotated display
|
/packages/apps/Camera2/src/com/android/camera/exif/ |
H A D | ExifInterface.java | 1835 * Returns the Orientation ExifTag value for a given number of degrees. 1837 * @param degrees the amount an image is rotated in degrees. 1839 public static short getOrientationValueForRotation(int degrees) { argument 1840 degrees %= 360; 1841 if (degrees < 0) { 1842 degrees += 360; 1844 if (degrees < 90) { 1845 return Orientation.TOP_LEFT; // 0 degrees 1846 } else if (degrees < 18 [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | Util.java | 64 public static Bitmap rotate(Bitmap b, int degrees) { argument 65 if (degrees != 0 && b != null) { 67 m.setRotate(degrees,
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
H A D | ExifInterface.java | 1856 * Returns the Orientation ExifTag value for a given number of degrees. 1858 * @param degrees the amount an image is rotated in degrees. 1860 public static short getOrientationValueForRotation(int degrees) { argument 1861 degrees %= 360; 1862 if (degrees < 0) { 1863 degrees += 360; 1865 if (degrees < 90) { 1866 return Orientation.TOP_LEFT; // 0 degrees 1867 } else if (degrees < 18 [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | IndicatorControlWheel.java | 398 double degrees = CLOSE_ICON_DEFAULT_DEGREES; 403 mChildRadians[startIndex + i] = Math.toRadians(degrees); 404 degrees += sectorDegrees;
|
/packages/apps/Messaging/src/com/android/messaging/util/exif/ |
H A D | ExifInterface.java | 1856 * Returns the Orientation ExifTag value for a given number of degrees. 1858 * @param degrees the amount an image is rotated in degrees. 1860 public static short getOrientationValueForRotation(int degrees) { argument 1861 degrees %= 360; 1862 if (degrees < 0) { 1863 degrees += 360; 1865 if (degrees < 90) { 1866 return Orientation.TOP_LEFT; // 0 degrees 1867 } else if (degrees < 18 [all...] |
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
H A D | OneCameraZslImpl.java | 613 int degrees = CameraUtil.getJpegRotation(captureParams.orientation, mCharacteristics); 619 degrees); 640 acquireJpegBytes(image, degrees), 989 * @param orientation the rotation to apply, in degrees. 1009 * @param degrees the angle to rotate the image clockwise, in degrees. Rotation is 1013 private byte[] acquireJpegBytes(Image img, int degrees) { argument 1032 degrees);
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
H A D | TaskCompressImageToJpeg.java | 86 Rect crop, int degrees) { 87 return JpegUtilNative.compressJpegFromYUV420Image(img, outBuf, quality, crop, degrees); 431 * @param orientation the rotation to apply, in degrees. 85 compressJpegFromYUV420Image(ImageProxy img, ByteBuffer outBuf, int quality, Rect crop, int degrees) argument
|