/frameworks/base/media/java/android/media/ |
MediaRecorder.java | 569 * @param degrees the angle to be rotated clockwise in degrees. 570 * The supported angles are 0, 90, 180, and 270 degrees. 574 public void setOrientationHint(int degrees) { 575 if (degrees != 0 && 576 degrees != 90 && 577 degrees != 180 && 578 degrees != 270) { 579 throw new IllegalArgumentException("Unsupported angle: " + degrees); 581 setParameter("video-param-rotation-angle-degrees=" + degrees) [all...] |
/device/generic/goldfish/camera/ |
Exif.cpp | 234 // GPS coordinates comprised of <degrees> <minutes>' <seconds>" 235 static void convertGpsCoordinate(float degrees, float (*result)[3]) { 236 float absDegrees = fabs(degrees); 237 // First value is degrees without any decimal digits 240 // Subtract degrees so we only have the fraction left, then multiply by 287 int64_t degrees; local 309 °rees)) { 322 switch (degrees) {
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
CameraAgent.java | 724 * @param degrees The counterclockwise rotation in degrees, relative to the device's natural 727 public void setDisplayOrientation(final int degrees) { 728 setDisplayOrientation(degrees, true); 737 * @param degrees The counterclockwise rotation in degrees, relative to the device's natural 741 public void setDisplayOrientation(final int degrees, final boolean capture) { 747 .obtainMessage(CameraActions.SET_DISPLAY_ORIENTATION, degrees, 756 public void setJpegOrientation(final int degrees) { 762 .obtainMessage(CameraActions.SET_JPEG_ORIENTATION, degrees, 0 [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
CameraUtil.java | 92 /** Orientation hysteresis amount used in rounding, in degrees. */ 141 public static Bitmap rotate(Bitmap b, int degrees) { 142 return rotateAndMirror(b, degrees, false); 149 public static Bitmap rotateAndMirror(Bitmap b, int degrees, boolean mirror) { 150 if ((degrees != 0 || mirror) && b != null) { 156 degrees = (degrees + 360) % 360; 157 if (degrees == 0 || degrees == 180) { 159 } else if (degrees == 90 || degrees == 270) [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
MediaMuxerTest.java | 262 int expectedTrackCount, int degrees, int fmt) throws IOException { 294 if (degrees >= 0) { 295 muxer.setOrientationHint(degrees); 361 int expectedTrackCount, int degrees, int fmt) throws IOException { 364 degrees, fmt); 367 verifyAttributesMatch(srcMedia, outputMediaFile, degrees); 383 int degrees) { 396 assertEquals("Different degrees", degrees,
|
/frameworks/base/graphics/java/android/graphics/ |
ColorMatrix.java | 144 public void setRotate(int axis, float degrees) { 146 double radians = degrees * Math.PI / 180d;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
Paper.java | 81 float degrees = local 85 Matrix.rotateM(mMatrix, 0, degrees, 0, 1, 0);
|
GLRootView.java | 444 private void rotateCanvas(int degrees) { 445 if (degrees == 0) return; 451 mCanvas.rotate(degrees, 0, 0, 1); 452 if (degrees % 180 != 0) {
|
/toolchain/binutils/binutils-2.25/libiberty/ |
random.c | 163 static int degrees[MAX_TYPES] = { DEG_0, DEG_1, DEG_2, DEG_3, DEG_4 }; variable 347 rand_deg = degrees[type];
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
VideoObject.java | 100 public boolean rotateImageBy(int degrees) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
MediaObject.java | 104 public void rotate(int degrees) {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
PhotoCaptureActivity.java | 526 int degrees = 0; local 528 case Surface.ROTATION_0: degrees = 0; break; 529 case Surface.ROTATION_90: degrees = 90; break; 530 case Surface.ROTATION_180: degrees = 180; break; 531 case Surface.ROTATION_270: degrees = 270; break; 535 mJpegOrientation = (info.orientation + degrees) % 360; 538 mJpegOrientation = (info.orientation - degrees + 360) % 360;
|
DetermineFovActivity.java | 133 float degrees = mFovMinDegrees + (float) progress / SEEKBAR_MAX_VALUE local 136 return (int) (degrees * 100) / 100.0f; 221 canvas.drawText(mMeasuredText + " " + mFovDegrees + " degrees.", textSize, 223 canvas.drawText(mReportedText + " " + mReportedFovDegrees + " degrees.",
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/ |
CameraVideoActivity.java | 654 int degrees = 0; local 656 case Surface.ROTATION_0: degrees = 0; break; 657 case Surface.ROTATION_90: degrees = 90; break; 658 case Surface.ROTATION_180: degrees = 180; break; 659 case Surface.ROTATION_270: degrees = 270; break; 663 mVideoRotation = (info.orientation + degrees) % 360; 666 mVideoRotation = (info.orientation - degrees + 360) % 360;
|
/frameworks/av/services/camera/libcameraservice/api1/ |
CameraClient.cpp | [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
CameraOrientationActivity.java | 268 int degrees = mPreviewOrientations.get(mNextPreviewOrientation); local 269 mCamera.setDisplayOrientation(degrees); 498 int degrees = mPreviewOrientations.get(mNextPreviewOrientation); 506 degrees = (360 - degrees) % 360; // compensate the mirror 516 mat.postRotate(degrees);
|
/external/skia/include/core/ |
SkMatrix.h | 85 90 degrees, or mirrors in x or y. 234 /** Set the matrix to rotate by the specified number of degrees, with a 238 void setRotate(SkScalar degrees, SkScalar px, SkScalar py); 239 /** Set the matrix to rotate about (0,0) by the specified number of degrees. 241 void setRotate(SkScalar degrees); 281 M' = M * R(degrees, px, py) 283 void preRotate(SkScalar degrees, SkScalar px, SkScalar py); 285 M' = M * R(degrees) 287 void preRotate(SkScalar degrees); 318 M' = R(degrees, px, py) * [all...] |
SkScalar.h | 142 #define SkDegreesToRadians(degrees) ((degrees) * (SK_ScalarPI / 180))
|
/frameworks/base/location/java/android/location/ |
Location.java | 44 * in the form "[+-]DDD.DDDDD where D indicates degrees. 50 * in the form "[+-]DDD:MM.MMMMM" where D indicates degrees and 57 * in the form "DDD:MM:SS.SSSSS" where D indicates degrees, M 236 int degrees = (int) Math.floor(coordinate); local 237 sb.append(degrees); 239 coordinate -= degrees; 282 String degrees = st.nextToken(); local 285 val = Double.parseDouble(degrees); 290 int deg = Integer.parseInt(degrees); 307 // deg must be in [0, 179] except for the case of -180 degrees [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
VideoUtils.java | 178 int degrees = Integer.parseInt(degreesString); local 179 if (degrees >= 0) { 180 muxer.setOrientationHint(degrees);
|
/cts/apps/CameraITS/tests/scene0/ |
test_metadata.py | 100 fov = 2 * math.degrees(math.atan(diag / (2 * fl))) 101 print "Assert field of view: %.1f degrees" % fov
|
/frameworks/base/libs/hwui/ |
CanvasState.h | 110 void rotate(float degrees);
|
/bionic/libc/upstream-netbsd/common/lib/libc/stdlib/ |
random.c | 174 static const int degrees[MAX_TYPES] = { DEG_0, DEG_1, DEG_2, DEG_3, DEG_4 }; variable 434 rand_deg = degrees[type];
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/regression/ |
SimpleRegression.java | 116 * @param degrees Number of degrees of freedom of the distribution 120 public SimpleRegression(int degrees) { 121 setDistribution(new TDistributionImpl(degrees)); 417 * Returns the sum of squared errors divided by the degrees of freedom, 634 // modify degrees of freedom
|
/external/skia/samplecode/ |
SampleBitmapRect.cpp | 43 static SkPoint unit_vec(int degrees) { 44 SkScalar rad = SkDegreesToRadians(SkIntToScalar(degrees));
|