Home
last modified time | relevance | path

Searched refs:q (Results 1 – 25 of 39) sorted by relevance

12

/hardware/qcom/media/mm-video/vidc/vdec/src/
Dqueue.c52 Queue *q = (Queue *) malloc(sizeof(Queue)); in alloc_queue() local
53 if (q) in alloc_queue()
55 q->head = q->tail = NULL; in alloc_queue()
56 q->current_size = 0; in alloc_queue()
58 return q; in alloc_queue()
61 void free_queue(Queue *q) in free_queue() argument
63 while (q->current_size) in free_queue()
65 pop(q); in free_queue()
69 void free_queue_and_qelement(Queue *q) in free_queue_and_qelement() argument
71 while (q->current_size) in free_queue_and_qelement()
[all …]
/hardware/invensense/mlsdk/mllite/
DmlMathFunc.c123 void inv_q_normalize(long *q) in inv_q_normalize() argument
129 normSF += ((double)q[i]) / 1073741824L * ((double)q[i]) / 1073741824L; in inv_q_normalize()
134 q[i] = (int)((double)q[i] * normSF); in inv_q_normalize()
137 q[0] = 1073741824L; in inv_q_normalize()
138 q[1] = 0; in inv_q_normalize()
139 q[2] = 0; in inv_q_normalize()
140 q[3] = 0; in inv_q_normalize()
144 void inv_q_invert(const long *q, long *qInverted) in inv_q_invert() argument
147 qInverted[0] = q[0]; in inv_q_invert()
148 qInverted[1] = -q[1]; in inv_q_invert()
[all …]
DmlMathFunc.h47 void inv_q_normalize(long *q);
48 void inv_q_invert(const long *q, long *qInverted);
51 void inv_q_normalizef(float *q);
52 void inv_q_norm4(float *q);
53 void inv_q_invertf(const float *q, float *qInverted);
/hardware/invensense/libsensors_iio/software/core/mllite/
Dml_math_func.c219 void inv_q_normalize(long *q) in inv_q_normalize() argument
222 inv_vector_normalize(q, 4); in inv_q_normalize()
225 void inv_q_invert(const long *q, long *qInverted) in inv_q_invert() argument
228 qInverted[0] = q[0]; in inv_q_invert()
229 qInverted[1] = -q[1]; in inv_q_invert()
230 qInverted[2] = -q[2]; in inv_q_invert()
231 qInverted[3] = -q[3]; in inv_q_invert()
247 void inv_q_rotate(const long *q, const long *in, long *out) in inv_q_rotate() argument
255 inv_q_mult(q, in4, q_temp1); in inv_q_rotate()
256 inv_q_invert(q, q_temp2); in inv_q_rotate()
[all …]
Dml_math_func.h73 void inv_q_normalize(long *q);
74 void inv_q_invert(const long *q, long *qInverted);
77 void inv_q_normalizef(float *q);
78 void inv_q_norm4(float *q);
79 void inv_q_invertf(const float *q, float *qInverted);
97 void inv_q_rotate(const long *q, const long *in, long *out);
/hardware/broadcom/wlan/bcmdhd/dhdutil/
Dbcmutils.c216 struct pktq_prec *q; in pktq_penq() local
224 q = &pq->q[prec]; in pktq_penq()
226 if (q->head) in pktq_penq()
227 PKTSETLINK(q->tail, p); in pktq_penq()
229 q->head = p; in pktq_penq()
231 q->tail = p; in pktq_penq()
232 q->len++; in pktq_penq()
245 struct pktq_prec *q; in pktq_penq_head() local
253 q = &pq->q[prec]; in pktq_penq_head()
255 if (q->head == NULL) in pktq_penq_head()
[all …]
/hardware/broadcom/wlan/bcm4329/dhdutil/
Dbcmutils.c163 struct pktq_prec *q; in pktq_penq() local
171 q = &pq->q[prec]; in pktq_penq()
173 if (q->head) in pktq_penq()
174 PKTSETLINK(q->tail, p); in pktq_penq()
176 q->head = p; in pktq_penq()
178 q->tail = p; in pktq_penq()
179 q->len++; in pktq_penq()
192 struct pktq_prec *q; in pktq_penq_head() local
200 q = &pq->q[prec]; in pktq_penq_head()
202 if (q->head == NULL) in pktq_penq_head()
[all …]
/hardware/qcom/camera/mm-camera-interface/
Dmm_camera_stream.c46 int mm_camera_stream_init_q(mm_camera_frame_queue_t *q) in mm_camera_stream_init_q() argument
48 pthread_mutex_init(&q->mutex, NULL); in mm_camera_stream_init_q()
51 int mm_camera_stream_deinit_q(mm_camera_frame_queue_t *q) in mm_camera_stream_deinit_q() argument
53 pthread_mutex_destroy(&q->mutex); in mm_camera_stream_deinit_q()
57 int mm_camera_stream_frame_get_q_cnt(mm_camera_frame_queue_t *q) in mm_camera_stream_frame_get_q_cnt() argument
60 pthread_mutex_lock(&q->mutex); in mm_camera_stream_frame_get_q_cnt()
61 cnt = q->cnt; in mm_camera_stream_frame_get_q_cnt()
62 pthread_mutex_unlock(&q->mutex); in mm_camera_stream_frame_get_q_cnt()
66 mm_camera_frame_t *mm_camera_stream_frame_deq_no_lock(mm_camera_frame_queue_t *q) in mm_camera_stream_frame_deq_no_lock() argument
70 tmp = q->head; in mm_camera_stream_frame_deq_no_lock()
[all …]
Dmm_camera_notify.c573 mm_camera_frame_queue_t *q; in mm_camera_read_snapshot_main_frame() local
578 q = &my_obj->ch[MM_CAMERA_CH_SNAPSHOT].snapshot.main.frame.readyq; in mm_camera_read_snapshot_main_frame()
594 mm_camera_stream_frame_enq(q, &stream->frame.frame[idx]); in mm_camera_read_snapshot_main_frame()
605 mm_camera_frame_queue_t *q; in mm_camera_read_snapshot_thumbnail_frame() local
611 q = &my_obj->ch[MM_CAMERA_CH_SNAPSHOT].snapshot.thumbnail.frame.readyq; in mm_camera_read_snapshot_thumbnail_frame()
617 mm_camera_stream_frame_enq(q, &stream->frame.frame[idx]); in mm_camera_read_snapshot_thumbnail_frame()
630 mm_camera_frame_queue_t *q; in mm_camera_read_video_frame() local
698 mm_camera_frame_queue_t *q; in mm_camera_read_zsl_main_frame() local
702 q = &my_obj->ch[MM_CAMERA_CH_SNAPSHOT].snapshot.main.frame.readyq; in mm_camera_read_zsl_main_frame()
709 mm_camera_stream_frame_enq(q, &stream->frame.frame[idx]); in mm_camera_read_zsl_main_frame()
[all …]
Dmm_camera.h332 extern int mm_camera_stream_frame_get_q_cnt(mm_camera_frame_queue_t *q);
333 extern mm_camera_frame_t *mm_camera_stream_frame_deq(mm_camera_frame_queue_t *q);
334 extern mm_camera_frame_t *mm_camera_stream_frame_deq_no_lock(mm_camera_frame_queue_t *q);
335 extern void mm_camera_stream_frame_enq(mm_camera_frame_queue_t *q, mm_camera_frame_t *node);
336 extern void mm_camera_stream_frame_enq_no_lock(mm_camera_frame_queue_t *q, mm_camera_frame_t *node);
337 extern void mm_camera_stream_frame_refill_q(mm_camera_frame_queue_t *q, mm_camera_frame_t *node, in…
/hardware/qcom/media/mm-video/vidc/vdec/inc/
Dqueue.h34 void free_queue(Queue *q);
35 void free_queue_and_qelement(Queue *q);
36 int push(Queue *q, void * element);
37 void *pop(Queue *q);
/hardware/libhardware/tests/camera2/
Dcamera2_utils.h79 static MetadataQueue* getInstance(const camera2_frame_queue_dst_ops_t *q);
80 static MetadataQueue* getInstance(const camera2_request_queue_src_ops_t *q);
82 static int consumer_buffer_count(const camera2_request_queue_src_ops_t *q);
84 static int consumer_dequeue(const camera2_request_queue_src_ops_t *q,
87 static int consumer_free(const camera2_request_queue_src_ops_t *q,
90 static int producer_dequeue(const camera2_frame_queue_dst_ops_t *q,
94 static int producer_cancel(const camera2_frame_queue_dst_ops_t *q,
97 static int producer_enqueue(const camera2_frame_queue_dst_ops_t *q,
Dcamera2_utils.cpp185 const camera2_request_queue_src_ops_t *q) { in getInstance() argument
186 const MetadataQueue* cmq = static_cast<const MetadataQueue*>(q); in getInstance()
191 const camera2_frame_queue_dst_ops_t *q) { in getInstance() argument
192 const MetadataQueue* cmq = static_cast<const MetadataQueue*>(q); in getInstance()
197 const camera2_request_queue_src_ops_t *q) { in consumer_buffer_count() argument
198 MetadataQueue *queue = getInstance(q); in consumer_buffer_count()
202 int MetadataQueue::consumer_dequeue(const camera2_request_queue_src_ops_t *q, in consumer_dequeue() argument
204 MetadataQueue *queue = getInstance(q); in consumer_dequeue()
208 int MetadataQueue::consumer_free(const camera2_request_queue_src_ops_t *q, in consumer_free() argument
210 MetadataQueue *queue = getInstance(q); in consumer_free()
[all …]
/hardware/libhardware/include/hardware/
Dcamera2.h214 int (*request_count)(const struct camera2_request_queue_src_ops *q);
223 int (*dequeue_request)(const struct camera2_request_queue_src_ops *q,
229 int (*free_request)(const struct camera2_request_queue_src_ops *q,
256 int (*dequeue_frame)(const struct camera2_frame_queue_dst_ops *q,
264 int (*cancel_frame)(const struct camera2_frame_queue_dst_ops *q,
270 int (*enqueue_frame)(const struct camera2_frame_queue_dst_ops *q,
/hardware/ril/mock-ril/src/cpp/
Dexperiments.cpp38 std::queue<int *> q; in testStlPort() local
42 ALOGD("before push q.size=%d", q.size()); in testStlPort()
43 q.push(param); in testStlPort()
44 ALOGD("after push q.size=%d", q.size()); in testStlPort()
45 void *p = q.front(); in testStlPort()
51 q.pop(); in testStlPort()
52 ALOGD("after pop q.size=%d", q.size()); in testStlPort()
/hardware/ril/rild/
Drild.c146 char buffer[1024], *p, *q; in main() local
219 q = strpbrk( p, " \t\n\r" ); in main()
220 if (q != NULL) in main()
221 *q = 0; in main()
/hardware/broadcom/wlan/bcm4329/dhdutil/include/
Dbcmutils.h109 struct pktq_prec q[PKTQ_MAX_PREC]; member
119 struct pktq_prec q[1]; member
192 void *q[PKTPOOL_LEN_MAX + 1]; member
242 #define pktq_psetmax(pq, prec, _max) ((pq)->q[prec].max = (_max))
243 #define pktq_plen(pq, prec) ((pq)->q[prec].len)
244 #define pktq_pavail(pq, prec) ((pq)->q[prec].max - (pq)->q[prec].len)
245 #define pktq_pfull(pq, prec) ((pq)->q[prec].len >= (pq)->q[prec].max)
246 #define pktq_pempty(pq, prec) ((pq)->q[prec].len == 0)
248 #define pktq_ppeek(pq, prec) ((pq)->q[prec].head)
249 #define pktq_ppeek_tail(pq, prec) ((pq)->q[prec].tail)
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
Dbcmutils.h132 struct pktq_prec q[PKTQ_MAX_PREC]; member
142 struct pktq_prec q[1]; member
218 void *q[PKTPOOL_LEN_MAX + 1]; member
272 #define pktq_psetmax(pq, prec, _max) ((pq)->q[prec].max = (_max))
273 #define pktq_pmax(pq, prec) ((pq)->q[prec].max)
274 #define pktq_plen(pq, prec) ((pq)->q[prec].len)
275 #define pktq_pavail(pq, prec) ((pq)->q[prec].max - (pq)->q[prec].len)
276 #define pktq_pfull(pq, prec) ((pq)->q[prec].len >= (pq)->q[prec].max)
277 #define pktq_pempty(pq, prec) ((pq)->q[prec].len == 0)
279 #define pktq_ppeek(pq, prec) ((pq)->q[prec].head)
[all …]
/hardware/ti/omap3/omx/system/src/openmax_il/common/inc/
DOMX_TI_Debug.h585 int q; in myfree() local
586 for(q=0;q<mem_array_size;q++){ in myfree()
587 if(arr[q]==dp){ in myfree()
589 bytes[q],dp, line, s); in myfree()
592 lines[q]=0; in myfree()
593 strcpy(file[q],""); in myfree()
597 if(mem_array_size==q){ in myfree()
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_dec/tests/
DG711DecTest.c1708 int q = 0; in myfree() local
1709 for(q=0;q<500;q++){ in myfree()
1710 if(arr[q]==dp){ in myfree()
1711 printf("Deleting %d bytes on address %p, line %d file %s\n", bytes[q],dp, line, s); in myfree()
1714 lines[q]=0; in myfree()
1715 strcpy(file[q],""); in myfree()
1719 if(500==q) in myfree()
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_enc/tests/
DG726EncTest.c190 int q = 0; in DebugFree() local
195 for(q=0;q<500;q++){ in DebugFree()
196 if(arr[q]==dp){ in DebugFree()
197 printf("__ Deleting %d bytes on address %p, line %d file %s\n", bytes[q],dp, line, s); in DebugFree()
200 lines[q]=0; in DebugFree()
201 strcpy(file[q],""); in DebugFree()
205 if(500==q) in DebugFree()
/hardware/ti/omap3/omx/audio/src/openmax_il/wma_dec/tests/
DWmaDecTest.c1909 int q; in myfree() local
1910 for(q=0;q<500;q++){ in myfree()
1911 if(arr[q]==dp){ in myfree()
1912 printf("Deleting %d bytes on address %p, line %d file %s\n", bytes[q],dp, line, s); in myfree()
1915 lines[q]=0; in myfree()
1916 strcpy(file[q],""); in myfree()
1920 if(500==q) in myfree()
/hardware/ti/omap3/omx/audio/src/openmax_il/wbamr_dec/tests/
DWBAmrDecTest.c2092 int q; local
2098 for(q=0;q<500;q++){
2099 if(arr[q]==dp){
2100 printf("Deleting %d bytes on address %p, line %d file %s\n", bytes[q],dp, line, s);
2103 lines[q]=0;
2104 strcpy(file[q],"");
2108 if(500==q)
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_dec/src/
DOMX_G711Decoder.c2027 int q = 0; in myfree() local
2028 for(q=0;q<500;q++){ in myfree()
2029 if(arr[q]==dp){ in myfree()
2030 … G711DEC_PRINT("Deleting %d bytes on address %p, line %d file %s\n", bytes[q],dp, line, s); in myfree()
2033 lines[q]=0; in myfree()
2034 strcpy(file[q],""); in myfree()
2038 if(500==q) in myfree()
/hardware/ti/omap3/omx/audio/src/openmax_il/wbamr_enc/tests/
DWbAmrEncTest.c204 int q; in mynewfree() local
211 for (q = 0; q < 500; q++) { in mynewfree()
212 if (arr[q] == dp) { in mynewfree()
213 APP_IPRINT("Deleting %d bytes on address %p, line %d file %s\n", bytes[q], dp, line, s); in mynewfree()
216 lines[q] = 0; in mynewfree()
217 strcpy(file[q], ""); in mynewfree()
222 if (500 == q) in mynewfree()

12