Home
last modified time | relevance | path

Searched refs:orient (Results 1 – 25 of 70) sorted by relevance

123

/hardware/invensense/6515/libsensors_iio/
DCompassSensor.AKM.cpp182 void CompassSensor::getOrientationMatrix(signed char *orient) in getOrientationMatrix() argument
186 orient[0] = 1; in getOrientationMatrix()
187 orient[1] = 0; in getOrientationMatrix()
188 orient[2] = 0; in getOrientationMatrix()
189 orient[3] = 0; in getOrientationMatrix()
190 orient[4] = 1; in getOrientationMatrix()
191 orient[5] = 0; in getOrientationMatrix()
192 orient[6] = 0; in getOrientationMatrix()
193 orient[7] = 0; in getOrientationMatrix()
194 orient[8] = 1; in getOrientationMatrix()
/hardware/invensense/65xx/libsensors_iio/
DCompassSensor.AKM.cpp182 void CompassSensor::getOrientationMatrix(signed char *orient) in getOrientationMatrix() argument
186 orient[0] = 1; in getOrientationMatrix()
187 orient[1] = 0; in getOrientationMatrix()
188 orient[2] = 0; in getOrientationMatrix()
189 orient[3] = 0; in getOrientationMatrix()
190 orient[4] = 1; in getOrientationMatrix()
191 orient[5] = 0; in getOrientationMatrix()
192 orient[6] = 0; in getOrientationMatrix()
193 orient[7] = 0; in getOrientationMatrix()
194 orient[8] = 1; in getOrientationMatrix()
/hardware/ti/omap4xxx/camera/
DSensorListener.cpp54 int tilt = 0, orient = 0; in sensor_events_listener() local
65 orient = (int) atan2f(-x, y) * RADIANS_2_DEG; in sensor_events_listener()
67 if (orient < 0) { in sensor_events_listener()
68 orient += 360; in sensor_events_listener()
71 if (orient >= DEGREES_270_THRESH) { in sensor_events_listener()
72 orient = 270; in sensor_events_listener()
73 } else if (orient >= DEGREES_180_THRESH) { in sensor_events_listener()
74 orient = 180; in sensor_events_listener()
75 } else if (orient >= DEGREES_90_THRESH) { in sensor_events_listener()
76 orient = 90; in sensor_events_listener()
[all …]
/hardware/ti/omap4-aah/camera/
DSensorListener.cpp52 int tilt = 0, orient = 0; in sensor_events_listener() local
63 orient = (int) atan2f(-x, y) * RADIANS_2_DEG; in sensor_events_listener()
65 if (orient < 0) { in sensor_events_listener()
66 orient += 360; in sensor_events_listener()
69 if (orient >= DEGREES_270_THRESH) { in sensor_events_listener()
70 orient = 270; in sensor_events_listener()
71 } else if (orient >= DEGREES_180_THRESH) { in sensor_events_listener()
72 orient = 180; in sensor_events_listener()
73 } else if (orient >= DEGREES_90_THRESH) { in sensor_events_listener()
74 orient = 90; in sensor_events_listener()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/gesture_test/
Dinv_gesture_test.c445 int orient; in display_orientation_handler() local
456 fscanf(fp, "%d\n", &orient); in display_orientation_handler()
459 printf("Screen Orient-> %d\n", orient); in display_orientation_handler()
469 int orient; in host_orientation_handler() local
472 fscanf(fp, "%d\n", &orient); in host_orientation_handler()
479 if (orient & 0x01) in host_orientation_handler()
481 if (orient & 0x02) in host_orientation_handler()
483 if (orient & 0x04) in host_orientation_handler()
485 if (orient & 0x08) in host_orientation_handler()
487 if (orient & 0x10) in host_orientation_handler()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
Dand_constructor.c69 unsigned short orient; in inv_constructor_setup() local
77 orient = inv_orientation_matrix_to_scalar(g_gyro_orientation); in inv_constructor_setup()
78 inv_set_gyro_orientation_and_scale(orient, 2000L << 15); in inv_constructor_setup()
81 orient = inv_orientation_matrix_to_scalar(g_accel_orientation); in inv_constructor_setup()
84 inv_set_accel_orientation_and_scale(orient, sens); in inv_constructor_setup()
87 orient = inv_orientation_matrix_to_scalar(g_compass_orientation); in inv_constructor_setup()
91 inv_set_compass_orientation_and_scale(orient, sens); in inv_constructor_setup()
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc_utils.cpp478 float& rightCutRatio, float& bottomCutRatio, int orient) { in calc_cut() argument
479 if(orient & HAL_TRANSFORM_FLIP_H) { in calc_cut()
482 if(orient & HAL_TRANSFORM_FLIP_V) { in calc_cut()
485 if(orient & HAL_TRANSFORM_ROT_90) { in calc_cut()
556 const hwc_rect_t& scissor, int orient) { in calculate_crop_rects() argument
602 calc_cut(leftCutRatio, topCutRatio, rightCutRatio, bottomCutRatio, orient); in calculate_crop_rects()
843 const eTransform& orient, in configRotator() argument
847 rot->setTransform(orient); in configRotator()
896 const eTransform& orient, const hwc_rect_t& crop, in configMdp() argument
900 ov->setTransform(orient, dest); in configMdp()
[all …]
Dhwc_fbupdate.cpp104 ovutils::eTransform orient = in configure() local
106 ov.setTransform(orient, dest); in configure()
232 ovutils::eTransform orient = in configure() local
234 ov.setTransform(orient, destL); in configure()
235 ov.setTransform(orient, destR); in configure()
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_fbupdate.cpp90 ovutils::eTransform orient = static_cast<ovutils::eTransform >(extOrient); in preRotateExtDisplay() local
100 if(configRotator(mRot, info, sourceCrop, mdpFlags, orient, 0) < 0) { in preRotateExtDisplay()
106 updateSource(orient, info, sourceCrop); in preRotateExtDisplay()
179 ovutils::eTransform orient = in configure() local
201 transform, orient); in configure()
213 orient = ovutils::OVERLAY_TRANSFORM_0; in configure()
221 if(configMdp(ctx->mOverlay, parg, orient, sourceCrop, displayFrame, in configure()
295 ovutils::eTransform orient = in configure() local
340 if (configMdp(ctx->mOverlay, pargL, orient, cropL, in configure()
380 if (configMdp(ctx->mOverlay, pargR, orient, cropR, in configure()
[all …]
Dhwc_utils.cpp600 ovutils::eTransform& orient) { in calcExtDisplayPosition() argument
656 orient = static_cast<ovutils::eTransform >(extOrient); in calcExtDisplayPosition()
955 double& rightCutRatio, double& bottomCutRatio, int orient) { in calc_cut() argument
956 if(orient & HAL_TRANSFORM_FLIP_H) { in calc_cut()
959 if(orient & HAL_TRANSFORM_FLIP_V) { in calc_cut()
962 if(orient & HAL_TRANSFORM_ROT_90) { in calc_cut()
1045 const hwc_rect_t& scissor, int orient) { in calculate_crop_rects() argument
1089 calc_cut(leftCutRatio, topCutRatio, rightCutRatio, bottomCutRatio, orient); in calculate_crop_rects()
1495 const eTransform& orient, const int& downscale) { in configRotator() argument
1523 rot->setTransform(orient); in configRotator()
[all …]
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_fbupdate.cpp97 ovutils::eTransform orient = static_cast<ovutils::eTransform >(extOrient); in preRotateExtDisplay() local
107 if(configRotator(mRot, info, sourceCrop, mdpFlags, orient, 0) < 0) { in preRotateExtDisplay()
112 updateSource(orient, info, sourceCrop, mRot); in preRotateExtDisplay()
185 ovutils::eTransform orient = in configure() local
207 transform, orient); in configure()
219 orient = ovutils::OVERLAY_TRANSFORM_0; in configure()
227 if(configMdp(ctx->mOverlay, parg, orient, sourceCrop, displayFrame, in configure()
301 ovutils::eTransform orient = in configure() local
346 if (configMdp(ctx->mOverlay, pargL, orient, cropL, in configure()
386 if (configMdp(ctx->mOverlay, pargR, orient, cropR, in configure()
[all …]
Dhwc_utils.cpp587 ovutils::eTransform& orient) { in calcExtDisplayPosition() argument
643 orient = static_cast<ovutils::eTransform >(extOrient); in calcExtDisplayPosition()
915 double& rightCutRatio, double& bottomCutRatio, int orient) { in calc_cut() argument
916 if(orient & HAL_TRANSFORM_FLIP_H) { in calc_cut()
919 if(orient & HAL_TRANSFORM_FLIP_V) { in calc_cut()
922 if(orient & HAL_TRANSFORM_ROT_90) { in calc_cut()
1031 const hwc_rect_t& scissor, int orient) { in calculate_crop_rects() argument
1075 calc_cut(leftCutRatio, topCutRatio, rightCutRatio, bottomCutRatio, orient); in calculate_crop_rects()
1516 const eTransform& orient, const int& downscale) { in configRotator() argument
1534 rot->setTransform(orient); in configRotator()
[all …]
/hardware/qcom/display/msm8974/libhwcomposer/
Dhwc_utils.cpp428 double& rightCutRatio, double& bottomCutRatio, int orient) { in calc_cut() argument
429 if(orient & HAL_TRANSFORM_FLIP_H) { in calc_cut()
432 if(orient & HAL_TRANSFORM_FLIP_V) { in calc_cut()
435 if(orient & HAL_TRANSFORM_ROT_90) { in calc_cut()
506 const hwc_rect_t& scissor, int orient) { in calculate_crop_rects() argument
552 calc_cut(leftCutRatio, topCutRatio, rightCutRatio, bottomCutRatio, orient); in calculate_crop_rects()
800 const eTransform& orient, const int& downscale) { in configRotator() argument
821 rot->setTransform(orient); in configRotator()
828 const eTransform& orient, const hwc_rect_t& crop, in configMdp() argument
832 ov->setTransform(orient, dest); in configMdp()
[all …]
Dhwc_fbupdate.cpp125 ovutils::eTransform orient = in configure() local
127 ov.setTransform(orient, dest); in configure()
280 ovutils::eTransform orient = in configure() local
282 ov.setTransform(orient, destL); in configure()
283 ov.setTransform(orient, destR); in configure()
Dhwc_utils.h184 const hwc_rect_t& scissor, int orient);
220 const ovutils::eTransform& orient, const int& downscale);
223 const ovutils::eTransform& orient, const hwc_rect_t& crop,
227 void updateSource(ovutils::eTransform& orient, ovutils::Whf& whf,
/hardware/invensense/60xx/mlsdk/mllite/
Dml.c110 inv_error_t inv_freescale_sensor_fusion_16bit(unsigned short orient);
111 inv_error_t inv_freescale_sensor_fusion_8bit(unsigned short orient);
814 unsigned short orient; in inv_set_accel_calibration() local
821 orient = inv_orientation_matrix_to_scalar(orientation); in inv_set_accel_calibration()
822 regs[0] = tmp[orient & 3]; in inv_set_accel_calibration()
823 regs[1] = tmp[(orient >> 3) & 3]; in inv_set_accel_calibration()
824 regs[2] = tmp[(orient >> 6) & 3]; in inv_set_accel_calibration()
842 if (orient & 4) in inv_set_accel_calibration()
844 if (orient & 0x20) in inv_set_accel_calibration()
846 if (orient & 0x100) in inv_set_accel_calibration()
[all …]
/hardware/qcom/display/msm8960/liboverlay/pipes/
DoverlayGenPipe.cpp106 void GenericPipe::setTransform(const utils::eTransform& orient) { in setTransform() argument
109 mRotUsed |= ((orient & utils::OVERLAY_TRANSFORM_ROT_90) && !mPreRotated); in setTransform()
110 mRot->setTransform(orient); in setTransform()
111 mCtrlData.ctrl.setTransform(orient); in setTransform()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Dmpu_iio.c336 void handle_display_orientation(int orient) in handle_display_orientation() argument
338 printf("display_orientation=%x\n", orient); in handle_display_orientation()
346 void handle_orientation(int orient) in handle_orientation() argument
349 if (orient & 0x01) in handle_orientation()
351 if (orient & 0x02) in handle_orientation()
353 if (orient & 0x04) in handle_orientation()
355 if (orient & 0x08) in handle_orientation()
357 if (orient & 0x10) in handle_orientation()
359 if (orient & 0x20) in handle_orientation()
361 if (orient & 0x40) in handle_orientation()
/hardware/qcom/display/msm8974/liboverlay/
DoverlayCtrl.cpp59 bool Ctrl::setTransform(const utils::eTransform& orient) in setTransform() argument
61 if(!mMdp.setTransform(orient)) { in setTransform()
/hardware/qcom/display/msm8226/liboverlay/
DoverlayCtrl.cpp59 bool Ctrl::setTransform(const utils::eTransform& orient) in setTransform() argument
61 if(!mMdp.setTransform(orient)) { in setTransform()
/hardware/qcom/display/msm8960/liboverlay/
DoverlayCtrl.cpp59 bool Ctrl::setTransform(const utils::eTransform& orient) in setTransform() argument
61 if(!mMdp.setTransform(orient)) { in setTransform()
/hardware/qcom/display/msm8226/liboverlay/pipes/
DoverlayGenPipe.cpp56 void GenericPipe::setTransform(const utils::eTransform& orient) { in setTransform() argument
57 mCtrl->setTransform(orient); in setTransform()
/hardware/qcom/display/msm8084/liboverlay/pipes/
DoverlayGenPipe.cpp58 void GenericPipe::setTransform(const utils::eTransform& orient) { in setTransform() argument
59 mCtrl->setTransform(orient); in setTransform()
/hardware/qcom/display/msm8974/liboverlay/pipes/
DoverlayGenPipe.cpp96 void GenericPipe::setTransform(const utils::eTransform& orient) { in setTransform() argument
97 mCtrlData.ctrl.setTransform(orient); in setTransform()
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/
Ddata_builder.h230 inv_error_t inv_get_gyro_orient(int *orient);
231 inv_error_t inv_get_accel_orient(int *orient);

123