/device/google/contexthub/firmware/src/algos/ |
D | quat.c | 24 void initQuat(Quat *q, const struct Mat33 *R) { in initQuat() argument 29 q->x = sqrtf(clamp(Hx - My - Az + 1.0f) * 0.25f); in initQuat() 30 q->y = sqrtf(clamp(-Hx + My - Az + 1.0f) * 0.25f); in initQuat() 31 q->z = sqrtf(clamp(-Hx - My + Az + 1.0f) * 0.25f); in initQuat() 32 q->w = sqrtf(clamp(Hx + My + Az + 1.0f) * 0.25f); in initQuat() 33 q->x = copysignf(q->x, R->elem[1][2] - R->elem[2][1]); in initQuat() 34 q->y = copysignf(q->y, R->elem[2][0] - R->elem[0][2]); in initQuat() 35 q->z = copysignf(q->z, R->elem[0][1] - R->elem[1][0]); in initQuat() 38 void quatToMatrix(struct Mat33 *R, const Quat *q) { in quatToMatrix() argument 39 float q0 = q->w; in quatToMatrix() [all …]
|
D | fusion.c | 257 Quat q = fusion->x0; in fusionPredict() local 337 mat44Apply(&fusion->x0, &O, &q); in fusionPredict() 416 static void getF(struct Vec4 F[3], const struct Vec4 *q) { in getF() argument 417 F[0].x = q->w; F[1].x = -q->z; F[2].x = q->y; in getF() 418 F[0].y = q->z; F[1].y = q->w; F[2].y = -q->x; in getF() 419 F[0].z = -q->y; F[1].z = q->x; F[2].z = q->w; in getF() 420 F[0].w = -q->x; F[1].w = -q->y; F[2].w = -q->z; in getF() 482 struct Vec4 q; in fusionUpdate() local 483 q.x = fusion->x0.x + 0.5f * (F[0].x * dq.x + F[1].x * dq.y + F[2].x * dq.z); in fusionUpdate() 484 q.y = fusion->x0.y + 0.5f * (F[0].y * dq.x + F[1].y * dq.y + F[2].y * dq.z); in fusionUpdate() [all …]
|
/device/google/contexthub/firmware/src/ |
D | eventQ.c | 48 struct EvtQueue *q = heapAlloc(sizeof(struct EvtQueue)); in evtQueueAlloc() local 51 if (q && slab) { in evtQueueAlloc() 52 q->forceDiscardCbk = forceDiscardCbk; in evtQueueAlloc() 53 q->evtsSlab = slab; in evtQueueAlloc() 54 q->head = NULL; in evtQueueAlloc() 55 q->tail = NULL; in evtQueueAlloc() 56 return q; in evtQueueAlloc() 59 if (q) in evtQueueAlloc() 60 heapFree(q); in evtQueueAlloc() 67 void evtQueueFree(struct EvtQueue* q) in evtQueueFree() argument [all …]
|
/device/google/dragon/audio/hal/dsp/ |
D | eq.c | 47 struct biquad *q = &eq->biquad[i]; in eq_process1() local 48 float x1 = q->x1; in eq_process1() 49 float x2 = q->x2; in eq_process1() 50 float y1 = q->y1; in eq_process1() 51 float y2 = q->y2; in eq_process1() 52 float b0 = q->b0; in eq_process1() 53 float b1 = q->b1; in eq_process1() 54 float b2 = q->b2; in eq_process1() 55 float a1 = q->a1; in eq_process1() 56 float a2 = q->a2; in eq_process1() [all …]
|
D | crossover.c | 11 struct biquad q; in lr4_set() local 12 biquad_set(&q, type, freq, 0, 0); in lr4_set() 13 lr4->b0 = q.b0; in lr4_set() 14 lr4->b1 = q.b1; in lr4_set() 15 lr4->b2 = q.b2; in lr4_set() 16 lr4->a1 = q.a1; in lr4_set() 17 lr4->a2 = q.a2; in lr4_set()
|
D | crossover2.c | 12 struct biquad q; in lr42_set() local 13 biquad_set(&q, type, freq, 0, 0); in lr42_set() 15 lr42->b0 = q.b0; in lr42_set() 16 lr42->b1 = q.b1; in lr42_set() 17 lr42->b2 = q.b2; in lr42_set() 18 lr42->a1 = q.a1; in lr42_set() 19 lr42->a2 = q.a2; in lr42_set()
|
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg.h | 154 static inline void cirq_reset(mm_jpeg_cirq_t *q) in cirq_reset() argument 156 q->front = 0; in cirq_reset() 157 q->rear = 0; in cirq_reset() 158 q->count = 0; in cirq_reset() 159 pthread_mutex_init(&q->lock, NULL); in cirq_reset() 174 #define cirq_empty(q) (q->count == 0) argument 188 #define cirq_full(q) (q->count == MM_JPEG_CIRQ_SIZE) argument 203 #define cirq_enqueue(q, type, data) ({ \ argument 205 pthread_mutex_lock(&q->lock); \ 206 if (cirq_full(q)) { \ [all …]
|
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg.h | 154 static inline void cirq_reset(mm_jpeg_cirq_t *q) in cirq_reset() argument 156 q->front = 0; in cirq_reset() 157 q->rear = 0; in cirq_reset() 158 q->count = 0; in cirq_reset() 159 pthread_mutex_init(&q->lock, NULL); in cirq_reset() 174 #define cirq_empty(q) (q->count == 0) argument 188 #define cirq_full(q) (q->count == MM_JPEG_CIRQ_SIZE) argument 203 #define cirq_enqueue(q, type, data) ({ \ argument 205 pthread_mutex_lock(&q->lock); \ 206 if (cirq_full(q)) { \ [all …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg.h | 153 static inline void cirq_reset(mm_jpeg_cirq_t *q) in cirq_reset() argument 155 q->front = 0; in cirq_reset() 156 q->rear = 0; in cirq_reset() 157 q->count = 0; in cirq_reset() 158 pthread_mutex_init(&q->lock, NULL); in cirq_reset() 173 #define cirq_empty(q) (q->count == 0) argument 187 #define cirq_full(q) (q->count == MM_JPEG_CIRQ_SIZE) argument 202 #define cirq_enqueue(q, type, data) ({ \ argument 204 pthread_mutex_lock(&q->lock); \ 205 if (cirq_full(q)) { \ [all …]
|
/device/generic/goldfish/qemu-props/ |
D | qemu-props.c | 84 char* q; in main() local 97 q = strchr(temp, '='); in main() 98 if (q == NULL) { in main() 102 *q++ = '\0'; in main() 104 if (property_set(temp, q) < 0) { in main() 105 DD("could not set property '%s' to '%s'", temp, q); in main()
|
/device/google/contexthub/firmware/inc/algos/ |
D | quat.h | 30 void initQuat(Quat *q, const struct Mat33 *R); 31 void quatToMatrix(struct Mat33 *R, const Quat *q); 32 void quatNormalize(Quat *q);
|
/device/google/contexthub/firmware/inc/ |
D | eventQ.h | 35 void evtQueueFree(struct EvtQueue* q); 36 bool evtQueueEnqueue(struct EvtQueue* q, uint32_t evtType, void *evtData, uintptr_t evtFreeData, bo… 37 bool evtQueueDequeue(struct EvtQueue* q, uint32_t *evtTypeP, void **evtDataP, uintptr_t *evtFreeDat…
|
/device/google/contexthub/lib/libm/ |
D | kf_rem_pio2.c | 63 float z,fw,f[20],fq[20],q[20]; local 80 for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; q[i] = fw; 86 for(i=0,j=jz,z=q[jz];j>0;i++,j--) { 89 z = q[j-1]+fw; 140 q[i] = fw; 164 q[i] = fw*(float)iq[i]; fw*=twon8; 169 for(fw=0.0,k=0;k<=jp&&k<=jz-i;k++) fw += PIo2[k]*q[i+k];
|
/device/generic/goldfish/gps/ |
D | gps_qemu.c | 74 char* q; in nmea_tokenizer_init() local 93 const char* q = p; in nmea_tokenizer_init() local 95 q = memchr(p, ',', end-p); in nmea_tokenizer_init() 96 if (q == NULL) in nmea_tokenizer_init() 97 q = end; in nmea_tokenizer_init() 101 t->tokens[count].end = q; in nmea_tokenizer_init() 104 if (q < end) in nmea_tokenizer_init() 105 q += 1; in nmea_tokenizer_init() 107 p = q; in nmea_tokenizer_init()
|
/device/generic/goldfish/opengl/system/egl/ |
D | eglDisplay.cpp | 284 const char* q = strchr(p, ' '); in findExtInList() local 285 if (q == NULL) { in findExtInList() 289 if (tokenlen == (q - p) && !memcmp(token, p, tokenlen)) { in findExtInList() 292 p = q+1; in findExtInList()
|
/device/lge/bullhead/ |
D | init.bullhead.diag.rc.userdebug | 10 service cnss_diag /system/bin/cnss_diag --q
|
/device/htc/flounder/VolantisKeyboard/res/raw/ |
D | keyboard_layout_volantis_japanese.kcm | 106 label: 'q' 107 base: 'q'
|
D | keyboard_layout_volantis_english_us.kcm | 104 label: 'q' 105 base: 'q'
|
D | keyboard_layout_volantis_english_uk.kcm | 106 label: 'q' 107 base: 'q'
|
D | keyboard_layout_volantis_spanish.kcm | 113 label: 'q' 114 base: 'q'
|
/device/google/dragon/DragonKeyboard/res/raw/ |
D | keyboard_layout_dragon_english_us.kcm | 95 label: 'q' 96 base: 'q'
|
D | keyboard_layout_dragon_french.kcm | 183 label: 'q' 184 base: 'q'
|
D | keyboard_layout_dragon_spanish_latin.kcm | 97 label: 'q' 98 base: 'q'
|
D | keyboard_layout_dragon_spanish.kcm | 101 label: 'q' 102 base: 'q'
|
D | keyboard_layout_dragon_english_uk.kcm | 97 label: 'q' 98 base: 'q'
|