Searched refs:degrees (Results 1 - 25 of 56) sorted by path

123

/frameworks/av/include/media/stagefright/
H A DMPEG4Writer.h196 void writeCompositionMatrix(int32_t degrees);
H A DMediaMuxer.h75 * @param degrees The rotation degrees. It has to be either 0,
79 status_t setOrientationHint(int degrees);
/frameworks/av/include/ndk/
H A DNdkMediaMuxer.h66 * Both values are specified in degrees.
81 * The angle is specified in degrees, clockwise.
82 * The supported angles are 0, 90, 180, and 270 degrees.
84 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer*, int degrees);
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp407 status_t StagefrightRecorder::setParamVideoRotation(int32_t degrees) { argument
408 ALOGV("setParamVideoRotation: %d", degrees);
409 if (degrees < 0 || degrees % 90 != 0) {
410 ALOGE("Unsupported video rotation angle: %d", degrees);
413 mRotationDegrees = degrees % 360;
685 } else if (key == "video-param-rotation-angle-degrees") {
686 int32_t degrees; local
687 if (safe_strtoi32(value.string(), &degrees)) {
688 return setParamVideoRotation(degrees);
[all...]
H A DStagefrightRecorder.h177 status_t setParamVideoRotation(int32_t degrees);
/frameworks/av/media/libstagefright/
H A DMPEG4Writer.cpp867 void MPEG4Writer::writeCompositionMatrix(int degrees) { argument
873 switch (degrees) {
1354 * latitudex10000 is latitude in degrees times 10000, and
1355 * longitudex10000 is longitude in degrees times 10000.
H A DMediaMuxer.cpp89 status_t MediaMuxer::setOrientationHint(int degrees) { argument
96 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) {
97 ALOGE("setOrientationHint() get invalid degrees");
101 mFileMeta->setInt32(kKeyRotation, degrees);
/frameworks/av/media/ndk/
H A DNdkMediaMuxer.cpp76 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer *muxer, int degrees) { argument
77 return translate_error(muxer->mImpl->setOrientationHint(degrees));
/frameworks/av/services/camera/libcameraservice/api1/
H A DCamera2Client.cpp1571 status_t Camera2Client::commandSetDisplayOrientationL(int degrees) { argument
1572 int transform = Parameters::degToTransform(degrees,
1576 __FUNCTION__, mCameraId, degrees);
H A DCamera2Client.h172 status_t commandSetDisplayOrientationL(int degrees);
H A DCameraClient.cpp1042 int CameraClient::getOrientation(int degrees, bool mirror) { argument
1044 if (degrees == 0) return 0;
1045 else if (degrees == 90) return HAL_TRANSFORM_ROT_90;
1046 else if (degrees == 180) return HAL_TRANSFORM_ROT_180;
1047 else if (degrees == 270) return HAL_TRANSFORM_ROT_270;
1049 if (degrees == 0) { // FLIP_H and ROT_0
1051 } else if (degrees == 90) { // FLIP_H and ROT_90
1053 } else if (degrees == 180) { // FLIP_H and ROT_180
1055 } else if (degrees == 270) { // FLIP_H and ROT_270
1059 ALOGE("Invalid setDisplayOrientation degrees
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp2575 int Parameters::degToTransform(int degrees, bool mirror) { argument
2577 if (degrees == 0) return 0;
2578 else if (degrees == 90) return HAL_TRANSFORM_ROT_90;
2579 else if (degrees == 180) return HAL_TRANSFORM_ROT_180;
2580 else if (degrees == 270) return HAL_TRANSFORM_ROT_270;
2582 if (degrees == 0) { // FLIP_H and ROT_0
2584 } else if (degrees == 90) { // FLIP_H and ROT_90
2586 } else if (degrees == 180) { // FLIP_H and ROT_180
2588 } else if (degrees == 270) { // FLIP_H and ROT_270
2592 ALOGE("%s: Bad input: %d", __FUNCTION__, degrees);
[all...]
H A DParameters.h321 static int degToTransform(int degrees, bool mirror);
/frameworks/base/core/java/android/hardware/
H A DCamera.java1471 * Set the clockwise rotation of preview display in degrees. This affects
1492 * int degrees = 0;
1494 * case Surface.ROTATION_0: degrees = 0; break;
1495 * case Surface.ROTATION_90: degrees = 90; break;
1496 * case Surface.ROTATION_180: degrees = 180; break;
1497 * case Surface.ROTATION_270: degrees = 270; break;
1502 * result = (info.orientation + degrees) % 360;
1505 * result = (info.orientation - degrees + 360) % 360;
1521 * @param degrees the angle that the picture will be rotated clockwise.
1525 public native final void setDisplayOrientation(int degrees); argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java615 int degrees = (int) value;
616 value = (value - degrees) * 60;
620 return new int[] { degrees, 1, minutes, 1, seconds, 100 };
/frameworks/base/core/java/android/util/
H A DMathUtils.java127 public static float radians(float degrees) { argument
128 return degrees * DEG_TO_RAD;
131 public static float degrees(float radians) { method in class:MathUtils
160 * Returns an interpolated angle in degrees between a set of start and end
169 * @param start the starting angle in degrees
170 * @param end the ending angle in degrees
173 * @return the interpolated angle in degrees
/frameworks/base/core/java/android/view/animation/
H A DRotateAnimation.java167 float degrees = mFromDegrees + ((mToDegrees - mFromDegrees) * interpolatedTime);
171 t.getMatrix().setRotate(degrees);
173 t.getMatrix().setRotate(degrees, mPivotX * scale, mPivotY * scale);
/frameworks/base/core/java/android/widget/
H A DRadialTimePickerView.java94 // Prepare mapping to snap touchable degrees to selectable degrees.
193 * Split up the 360 degrees of the circle among the 60 selectable values. Assigns a larger
196 * E.g. the output of 30 degrees should have a higher range of input associated with it than
197 * the output of 24 degrees, because 30 degrees corresponds to a visible number on the clock
202 // output will correspond to a range of 14 associated input degrees, and each non-visible
203 // output will correspond to a range of 4 associate input degrees, so visible numbers
207 // If an output of 30 degrees should correspond to a range of 14 associated degrees, the
252 snapPrefer30s(int degrees) argument
268 snapOnly30s(int degrees, int forceHigherOrLower) argument
499 getHourForDegrees(int degrees, boolean innerCircle) argument
558 getMinuteForDegrees(int degrees) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DCamera.cpp41 static void Camera_rotateX(JNIEnv* env, jobject obj, jfloat degrees) { argument
44 v->rotateX(degrees);
47 static void Camera_rotateY(JNIEnv* env, jobject obj, jfloat degrees) { argument
50 v->rotateY(degrees);
53 static void Camera_rotateZ(JNIEnv* env, jobject obj, jfloat degrees) { argument
56 v->rotateZ(degrees);
H A DMatrix.cpp82 static void setRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px, jfloat py) { argument
84 obj->setRotate(degrees, px, py);
86 static void setRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) { argument
88 obj->setRotate(degrees);
128 static void preRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px, jfloat py) { argument
130 obj->preRotate(degrees, px, py);
133 static void preRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) { argument
135 obj->preRotate(degrees);
169 static void postRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px, jfloat py) { argument
171 obj->postRotate(degrees, p
174 postRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp144 static void rotate(JNIEnv*, jobject, jlong canvasHandle, jfloat degrees) { argument
145 get_canvas(canvasHandle)->rotate(degrees);
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java588 * @param degrees The amount to rotate, in degrees
590 public void rotate(float degrees) { argument
591 native_rotate(mNativeCanvasWrapper, degrees);
597 * @param degrees The amount to rotate, in degrees
601 public final void rotate(float degrees, float px, float py) { argument
603 rotate(degrees);
1181 * <p>The arc is drawn clockwise. An angle of 0 degrees correspond to the
1182 * geometric angle of 0 degrees (
2021 native_rotate(long canvasHandle, float degrees) argument
[all...]
H A DColorMatrix.java144 public void setRotate(int axis, float degrees) { argument
146 double radians = degrees * Math.PI / 180d;
H A DMatrix.java69 public void setRotate(float degrees, float px, float py) {
74 public void setRotate(float degrees) {
123 public boolean preRotate(float degrees, float px, float py) {
129 public boolean preRotate(float degrees) {
171 public boolean postRotate(float degrees, float px, float py) {
177 public boolean postRotate(float degrees) {
260 * degrees.
321 * Set the matrix to rotate by the specified number of degrees, with a pivot
325 public void setRotate(float degrees, float px, float py) { argument
326 native_setRotate(native_instance, degrees, p
332 setRotate(float degrees) argument
411 preRotate(float degrees, float px, float py) argument
420 preRotate(float degrees) argument
483 postRotate(float degrees, float px, float py) argument
492 postRotate(float degrees) argument
853 native_setRotate(long native_object, float degrees, float px, float py) argument
855 native_setRotate(long native_object, float degrees) argument
874 native_preRotate(long native_object, float degrees, float px, float py) argument
876 native_preRotate(long native_object, float degrees) argument
890 native_postRotate(long native_object, float degrees, float px, float py) argument
892 native_postRotate(long native_object, float degrees) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DRotateDrawable.java162 * @param fromDegrees starting angle in degrees
174 * @return starting angle for rotation in degrees
185 * @param toDegrees ending angle in degrees
197 * @return ending angle for rotation in degrees
314 final float degrees = MathUtils.lerp(mState.mFromDegrees, mState.mToDegrees, value);
315 mState.mCurrentDegrees = degrees;

Completed in 486 milliseconds

123