Home
last modified time | relevance | path

Searched refs:mag (Results 1 – 16 of 16) sorted by relevance

/hardware/akm/AK8975_FS/akmdfs/AKFS_APIs_8975/
DAKFS_AK8975.c25 const int16 mag[3], in AKFS_DecompAK8975()
39 hdata[0].u.x = mag[0] * (((asa->u.x)/256.0f) + 0.5f); in AKFS_DecompAK8975()
40 hdata[0].u.y = mag[1] * (((asa->u.y)/256.0f) + 0.5f); in AKFS_DecompAK8975()
41 hdata[0].u.z = mag[2] * (((asa->u.z)/256.0f) + 0.5f); in AKFS_DecompAK8975()
DAKFS_AK8975.h42 const int16 mag[3],
/hardware/akm/AK8975_FS/akmdfs/
DAKFS_Measure.c237 const AKSENSOR_DATA* mag, in AKFS_OutputResult() argument
249 buf[5] = CONVERT_MAG(mag->x); /* Mx */ in AKFS_OutputResult()
250 buf[6] = CONVERT_MAG(mag->y); /* My */ in AKFS_OutputResult()
251 buf[7] = CONVERT_MAG(mag->z); /* Mz */ in AKFS_OutputResult()
252 buf[8] = mag->status; /* Mag status */ in AKFS_OutputResult()
272 int16 mag[3]; in AKFS_MeasureLoop() local
343 mag[0] = (int)((int16_t)(i2cData[2]<<8)+((int16_t)i2cData[1])); in AKFS_MeasureLoop()
344 mag[1] = (int)((int16_t)(i2cData[4]<<8)+((int16_t)i2cData[3])); in AKFS_MeasureLoop()
345 mag[2] = (int)((int16_t)(i2cData[6]<<8)+((int16_t)i2cData[5])); in AKFS_MeasureLoop()
354 if (AKFS_Get_MAGNETIC_FIELD(mag, mstat, &tmpx, &tmpy, &tmpz, &tmp_accuracy) == AKM_SUCCESS) { in AKFS_MeasureLoop()
DAKFS_APIs.c153 const int16 mag[3], in AKFS_Get_MAGNETIC_FIELD()
166 __FUNCTION__, mag[0], mag[1], mag[2], status); in AKFS_Get_MAGNETIC_FIELD()
171 mag, in AKFS_Get_MAGNETIC_FIELD()
DAKFS_Measure.h64 const AKSENSOR_DATA* mag,
DAKFS_APIs.h45 const int16 mag[3],
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
Dsuperframe_test.cc52 const int mag = ((marker >> 3) & 3) + 1; in MutateEncoderOutputHook() local
53 const unsigned int index_sz = 2 + mag * frames; in MutateEncoderOutputHook()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dml_math_func.c313 float mag; in inv_q_norm4() local
314 mag = sqrtf(q[0] * q[0] + q[1] * q[1] + q[2] * q[2] + q[3] * q[3]); in inv_q_norm4()
315 if (mag) { in inv_q_norm4()
316 q[0] /= mag; in inv_q_norm4()
317 q[1] /= mag; in inv_q_norm4()
318 q[2] /= mag; in inv_q_norm4()
319 q[3] /= mag; in inv_q_norm4()
Dhal_outputs.c405 long mag[3]; in inv_get_sensor_type_magnetic_field_raw() local
409 inv_get_compass_set_raw(mag, accuracy, timestamp); in inv_get_sensor_type_magnetic_field_raw()
416 values[i] = (float)mag[i] * COMPASS_CONVERSION; in inv_get_sensor_type_magnetic_field_raw()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dml_math_func.c313 float mag; in inv_q_norm4() local
314 mag = sqrtf(q[0] * q[0] + q[1] * q[1] + q[2] * q[2] + q[3] * q[3]); in inv_q_norm4()
315 if (mag) { in inv_q_norm4()
316 q[0] /= mag; in inv_q_norm4()
317 q[1] /= mag; in inv_q_norm4()
318 q[2] /= mag; in inv_q_norm4()
319 q[3] /= mag; in inv_q_norm4()
Dhal_outputs.c359 long mag[3]; in inv_get_sensor_type_magnetic_field_raw() local
363 inv_get_compass_set_raw(mag, accuracy, timestamp); in inv_get_sensor_type_magnetic_field_raw()
370 values[i] = (float)mag[i] * COMPASS_CONVERSION; in inv_get_sensor_type_magnetic_field_raw()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/
Dvp9_dx_iface.c286 const uint32_t mag = ((marker >> 3) & 0x3) + 1; in parse_superframe_index() local
287 const size_t index_sz = 2 + mag * frames; in parse_superframe_index()
297 for (j = 0; j < mag; j++) in parse_superframe_index()
327 const uint32_t mag = ((marker >> 3) & 0x3) + 1; in vp9_decode() local
328 const uint32_t index_sz = 2 + mag * frames; in vp9_decode()
Dvp9_cx_iface.c618 int mag, index_sz; in write_superframe_index() local
627 for (mag = 0, mask = 0xff; mag < 4; mag++) { in write_superframe_index()
633 marker |= mag << 3; in write_superframe_index()
636 index_sz = 2 + (mag + 1) * ctx->pending_frame_count; in write_superframe_index()
645 for (j = 0; j <= mag; j++) { in write_superframe_index()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/src/
Dsvc_encodeframe.c182 uint32_t mag, mask; in sf_create_index() local
191 for (mag = 0, mask = 0xff; mag < 4; ++mag) { in sf_create_index()
196 marker |= mag << 3; in sf_create_index()
199 sf->index_size = 2 + (mag + 1) * sf->count; in sf_create_index()
207 for (j = 0; j <= mag; ++j) { in sf_create_index()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/
Dvp9_decodemv.c206 int mag, d, fr, hp; in read_mv_component() local
233 mag = vp9_get_mv_mag(mv_class, (d << 3) | (fr << 1) | hp) + 1; in read_mv_component()
234 return sign ? -mag : mag; in read_mv_component()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_encodemv.c36 const int mag = sign ? -comp : comp; in encode_mv_component() local
37 const int mv_class = vp9_get_mv_class(mag - 1, &offset); in encode_mv_component()