Searched defs:degrees (Results 1 - 22 of 22) sorted by path

/packages/apps/Camera2/src/com/android/camera/app/
H A DOrientationManager.java27 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/Camera2/src/com/android/camera/exif/
H A DExifInterface.java1835 * 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/Camera2/src/com/android/camera/one/v2/
H A DOneCameraZslImpl.java613 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 DTaskCompressImageToJpeg.java86 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
/packages/apps/Camera2/src/com/android/camera/util/
H A DCameraUtil.java92 /** 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...]
H A DJpegUtilNative.java62 * 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...]
/packages/apps/Gallery/src/com/android/camera/
H A DUtil.java64 public static Bitmap rotate(Bitmap b, int degrees) { argument
65 if (degrees != 0 && b != null) {
67 m.setRotate(degrees,
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DIImage.java78 public abstract boolean rotateImageBy(int degrees); argument
H A DImage.java59 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 DUriImage.java171 public boolean rotateImageBy(int degrees) { argument
H A DVideoObject.java100 public boolean rotateImageBy(int degrees) { argument
/packages/apps/Gallery/tests/src/com/android/camera/gallery/
H A DMockImage.java97 public boolean rotateImageBy(int degrees) { argument
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DExifInterface.java1856 * 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/Gallery2/src/com/android/gallery3d/data/
H A DDataManager.java256 public void rotate(Path path, int degrees) { argument
257 getMediaObject(path).rotate(degrees);
H A DLocalImage.java276 public void rotate(int degrees) { argument
280 int rotation = (this.rotation + degrees) % 360;
H A DLocalMergeAlbum.java207 public void rotate(int degrees) { argument
209 set.rotate(degrees);
H A DLocalVideo.java197 public void rotate(int degrees) { argument
H A DMediaObject.java104 public void rotate(int degrees) { argument
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGLRootView.java444 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/LegacyCamera/src/com/android/camera/
H A DEffectsRecorder.java342 public void setOrientationHint(int degrees) { argument
350 if (mLogVerbose) Log.v(TAG, "Setting orientation hint to: " + degrees);
351 mOrientationHint = degrees;
H A DUtil.java76 // 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...]
/packages/apps/Messaging/src/com/android/messaging/util/exif/
H A DExifInterface.java1856 * 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...]

Completed in 530 milliseconds