Lines Matching full:degrees
945 int CameraClient::getOrientation(int degrees, bool mirror) {
947 if (degrees == 0) return 0;
948 else if (degrees == 90) return HAL_TRANSFORM_ROT_90;
949 else if (degrees == 180) return HAL_TRANSFORM_ROT_180;
950 else if (degrees == 270) return HAL_TRANSFORM_ROT_270;
952 if (degrees == 0) { // FLIP_H and ROT_0
954 } else if (degrees == 90) { // FLIP_H and ROT_90
956 } else if (degrees == 180) { // FLIP_H and ROT_180
958 } else if (degrees == 270) { // FLIP_H and ROT_270
962 ALOGE("Invalid setDisplayOrientation degrees=%d", degrees);