Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 64) sorted by relevance

123

/device/moto/shamu/camera/QCamera2/util/
DQCameraQueue.cpp142 camera_q_node *node = in enqueue() local
144 if (NULL == node) { in enqueue()
149 memset(node, 0, sizeof(camera_q_node)); in enqueue()
150 node->data = data; in enqueue()
154 cam_list_add_tail_node(&node->list, &m_head.list); in enqueue()
158 free(node); in enqueue()
179 camera_q_node *node = in enqueueWithPriority() local
181 if (NULL == node) { in enqueueWithPriority()
186 memset(node, 0, sizeof(camera_q_node)); in enqueueWithPriority()
187 node->data = data; in enqueueWithPriority()
[all …]
DQCameraCmdThread.cpp133 camera_cmd_t *node = (camera_cmd_t *)malloc(sizeof(camera_cmd_t)); in sendCmd() local
134 if (NULL == node) { in sendCmd()
138 memset(node, 0, sizeof(camera_cmd_t)); in sendCmd()
139 node->cmd = cmd; in sendCmd()
142 cmd_queue.enqueueWithPriority((void *)node); in sendCmd()
144 cmd_queue.enqueue((void *)node); in sendCmd()
167 camera_cmd_t *node = (camera_cmd_t *)cmd_queue.dequeue(); in getCmd() local
168 if (NULL == node) { in getCmd()
172 cmd = node->cmd; in getCmd()
173 free(node); in getCmd()
/device/lge/hammerhead/camera/QCamera2/util/
DQCameraQueue.cpp142 camera_q_node *node = in enqueue() local
144 if (NULL == node) { in enqueue()
149 memset(node, 0, sizeof(camera_q_node)); in enqueue()
150 node->data = data; in enqueue()
154 cam_list_add_tail_node(&node->list, &m_head.list); in enqueue()
158 free(node); in enqueue()
179 camera_q_node *node = in enqueueWithPriority() local
181 if (NULL == node) { in enqueueWithPriority()
186 memset(node, 0, sizeof(camera_q_node)); in enqueueWithPriority()
187 node->data = data; in enqueueWithPriority()
[all …]
DQCameraCmdThread.cpp133 camera_cmd_t *node = (camera_cmd_t *)malloc(sizeof(camera_cmd_t)); in sendCmd() local
134 if (NULL == node) { in sendCmd()
138 memset(node, 0, sizeof(camera_cmd_t)); in sendCmd()
139 node->cmd = cmd; in sendCmd()
142 cmd_queue.enqueueWithPriority((void *)node); in sendCmd()
144 cmd_queue.enqueue((void *)node); in sendCmd()
167 camera_cmd_t *node = (camera_cmd_t *)cmd_queue.dequeue(); in getCmd() local
168 if (NULL == node) { in getCmd()
172 cmd = node->cmd; in getCmd()
173 free(node); in getCmd()
/device/asus/flo/camera/QCamera2/util/
DQCameraQueue.cpp123 camera_q_node *node = in enqueue() local
125 if (NULL == node) { in enqueue()
130 memset(node, 0, sizeof(camera_q_node)); in enqueue()
131 node->data = data; in enqueue()
134 cam_list_add_tail_node(&node->list, &m_head.list); in enqueue()
153 camera_q_node *node = in enqueueWithPriority() local
155 if (NULL == node) { in enqueueWithPriority()
160 memset(node, 0, sizeof(camera_q_node)); in enqueueWithPriority()
161 node->data = data; in enqueueWithPriority()
166 m_head.list.next = &node->list; in enqueueWithPriority()
[all …]
DQCameraCmdThread.cpp113 camera_cmd_t *node = (camera_cmd_t *)malloc(sizeof(camera_cmd_t)); in sendCmd() local
114 if (NULL == node) { in sendCmd()
118 memset(node, 0, sizeof(camera_cmd_t)); in sendCmd()
119 node->cmd = cmd; in sendCmd()
122 cmd_queue.enqueueWithPriority((void *)node); in sendCmd()
124 cmd_queue.enqueue((void *)node); in sendCmd()
147 camera_cmd_t *node = (camera_cmd_t *)cmd_queue.dequeue(); in getCmd() local
148 if (NULL == node) { in getCmd()
152 cmd = node->cmd; in getCmd()
153 free(node); in getCmd()
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c44 mm_jpeg_q_node_t* node = in mm_jpeg_queue_enq() local
46 if (NULL == node) { in mm_jpeg_queue_enq()
51 memset(node, 0, sizeof(mm_jpeg_q_node_t)); in mm_jpeg_queue_enq()
52 node->data = data; in mm_jpeg_queue_enq()
55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq()
67 mm_jpeg_q_node_t* node = in mm_jpeg_queue_enq_head() local
69 if (NULL == node) { in mm_jpeg_queue_enq_head()
74 memset(node, 0, sizeof(mm_jpeg_q_node_t)); in mm_jpeg_queue_enq_head()
75 node->data = data; in mm_jpeg_queue_enq_head()
81 cam_list_insert_before_node(&node->list, pos); in mm_jpeg_queue_enq_head()
[all …]
Dmm_jpeg.c1513 mm_jpeg_job_q_node_t *node = NULL; in mm_jpeg_process_encoding_job() local
1621 mm_jpeg_job_q_node_t* node = NULL; in mm_jpeg_jobmgr_thread() local
1644 node = (mm_jpeg_job_q_node_t*)mm_jpeg_queue_deq(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread()
1645 if (node != NULL) { in mm_jpeg_jobmgr_thread()
1646 switch (node->type) { in mm_jpeg_jobmgr_thread()
1648 rc = mm_jpeg_process_encoding_job(my_obj, node); in mm_jpeg_jobmgr_thread()
1651 rc = mm_jpegdec_process_decoding_job(my_obj, node); in mm_jpeg_jobmgr_thread()
1656 free(node); in mm_jpeg_jobmgr_thread()
1712 mm_jpeg_job_q_node_t* node = in mm_jpeg_jobmgr_thread_release() local
1714 if (NULL == node) { in mm_jpeg_jobmgr_thread_release()
[all …]
Dmm_jpegdec.c92 mm_jpeg_job_q_node_t *node = NULL; in mm_jpegdec_job_done() local
98 node = mm_jpeg_queue_remove_job_by_job_id(&my_obj->ongoing_job_q, in mm_jpegdec_job_done()
100 if (node) { in mm_jpegdec_job_done()
101 free(node); in mm_jpegdec_job_done()
680 mm_jpeg_job_q_node_t *node = NULL; in mm_jpegdec_process_decoding_job() local
752 mm_jpeg_job_q_node_t* node = NULL; in mm_jpegdec_start_decode_job() local
785 node = (mm_jpeg_job_q_node_t *)malloc(sizeof(mm_jpeg_job_q_node_t)); in mm_jpegdec_start_decode_job()
786 if (NULL == node) { in mm_jpegdec_start_decode_job()
794 memset(node, 0, sizeof(mm_jpeg_job_q_node_t)); in mm_jpegdec_start_decode_job()
795 node->dec_info.decode_job = job->decode_job; in mm_jpegdec_start_decode_job()
[all …]
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_data.c60 mm_camera_q_node_t* node = in mm_camera_queue_enq() local
62 if (NULL == node) { in mm_camera_queue_enq()
67 memset(node, 0, sizeof(mm_camera_q_node_t)); in mm_camera_queue_enq()
68 node->data = data; in mm_camera_queue_enq()
71 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_camera_queue_enq()
81 mm_camera_q_node_t* node = NULL; in mm_camera_queue_deq() local
90 node = member_of(pos, mm_camera_q_node_t, list); in mm_camera_queue_deq()
91 cam_list_del_node(&node->list); in mm_camera_queue_deq()
96 if (NULL != node) { in mm_camera_queue_deq()
97 data = node->data; in mm_camera_queue_deq()
[all …]
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c44 mm_jpeg_q_node_t* node = in mm_jpeg_queue_enq() local
46 if (NULL == node) { in mm_jpeg_queue_enq()
51 memset(node, 0, sizeof(mm_jpeg_q_node_t)); in mm_jpeg_queue_enq()
52 node->data = data; in mm_jpeg_queue_enq()
55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq()
65 mm_jpeg_q_node_t* node = NULL; in mm_jpeg_queue_deq() local
74 node = member_of(pos, mm_jpeg_q_node_t, list); in mm_jpeg_queue_deq()
75 cam_list_del_node(&node->list); in mm_jpeg_queue_deq()
80 if (NULL != node) { in mm_jpeg_queue_deq()
81 data = node->data; in mm_jpeg_queue_deq()
[all …]
Dmm_jpeg.c1348 mm_jpeg_job_q_node_t *node = NULL; in mm_jpeg_job_done() local
1351 node = mm_jpeg_queue_remove_job_by_job_id(&my_obj->ongoing_job_q, in mm_jpeg_job_done()
1353 if (node) { in mm_jpeg_job_done()
1354 free(node); in mm_jpeg_job_done()
1457 mm_jpeg_job_q_node_t *node = NULL; in mm_jpeg_process_encoding_job() local
1526 mm_jpeg_job_q_node_t* node = NULL; in mm_jpeg_jobmgr_thread() local
1548 node = (mm_jpeg_job_q_node_t*)mm_jpeg_queue_deq(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread()
1549 if (node != NULL) { in mm_jpeg_jobmgr_thread()
1550 switch (node->type) { in mm_jpeg_jobmgr_thread()
1552 rc = mm_jpeg_process_encoding_job(my_obj, node); in mm_jpeg_jobmgr_thread()
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c44 mm_jpeg_q_node_t* node = in mm_jpeg_queue_enq() local
46 if (NULL == node) { in mm_jpeg_queue_enq()
51 memset(node, 0, sizeof(mm_jpeg_q_node_t)); in mm_jpeg_queue_enq()
52 node->data = data; in mm_jpeg_queue_enq()
55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq()
65 mm_jpeg_q_node_t* node = NULL; in mm_jpeg_queue_deq() local
74 node = member_of(pos, mm_jpeg_q_node_t, list); in mm_jpeg_queue_deq()
75 cam_list_del_node(&node->list); in mm_jpeg_queue_deq()
80 if (NULL != node) { in mm_jpeg_queue_deq()
81 data = node->data; in mm_jpeg_queue_deq()
[all …]
Dmm_jpeg.c1487 mm_jpeg_job_q_node_t *node = NULL; in mm_jpeg_job_done() local
1493 node = mm_jpeg_queue_remove_job_by_job_id(&my_obj->ongoing_job_q, in mm_jpeg_job_done()
1495 if (node) { in mm_jpeg_job_done()
1496 free(node); in mm_jpeg_job_done()
1604 mm_jpeg_job_q_node_t *node = NULL; in mm_jpeg_process_encoding_job() local
1673 mm_jpeg_job_q_node_t* node = NULL; in mm_jpeg_jobmgr_thread() local
1696 node = (mm_jpeg_job_q_node_t*)mm_jpeg_queue_deq(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread()
1697 if (node != NULL) { in mm_jpeg_jobmgr_thread()
1698 switch (node->type) { in mm_jpeg_jobmgr_thread()
1700 rc = mm_jpeg_process_encoding_job(my_obj, node); in mm_jpeg_jobmgr_thread()
[all …]
/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c44 mm_jpeg_q_node_t* node = in mm_jpeg_queue_enq() local
46 if (NULL == node) { in mm_jpeg_queue_enq()
51 memset(node, 0, sizeof(mm_jpeg_q_node_t)); in mm_jpeg_queue_enq()
52 node->data = data; in mm_jpeg_queue_enq()
55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq()
66 mm_jpeg_q_node_t* node = NULL; in mm_jpeg_queue_peek() local
75 node = member_of(pos, mm_jpeg_q_node_t, list); in mm_jpeg_queue_peek()
79 if (NULL != node) { in mm_jpeg_queue_peek()
80 data = node->data; in mm_jpeg_queue_peek()
87 mm_jpeg_q_node_t* node = NULL; in mm_jpeg_queue_deq() local
[all …]
Dmm_jpeg.c683 void* node = NULL; in mm_jpeg_notify_thread() local
714 node = mm_jpeg_queue_remove_job_by_job_id(&my_obj->cb_q, jobId); in mm_jpeg_notify_thread()
715 if (NULL != node) { in mm_jpeg_notify_thread()
716 free(node); in mm_jpeg_notify_thread()
783 mm_jpeg_job_q_node_t* node = NULL; in mm_jpeg_jobmgr_thread() local
804 node = (mm_jpeg_job_q_node_t*)mm_jpeg_queue_deq(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread()
805 if (node != NULL) { in mm_jpeg_jobmgr_thread()
806 switch (node->type) { in mm_jpeg_jobmgr_thread()
808 mm_jpeg_process_job(my_obj, node); in mm_jpeg_jobmgr_thread()
813 free(node); in mm_jpeg_jobmgr_thread()
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/common/
Dcam_queue.h55 cam_node_t *node = in cam_queue_enq() local
57 if (NULL == node) { in cam_queue_enq()
61 memset(node, 0, sizeof(cam_node_t)); in cam_queue_enq()
62 node->data = data; in cam_queue_enq()
65 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq()
74 cam_node_t *node = NULL; in cam_queue_deq() local
83 node = member_of(pos, cam_node_t, list); in cam_queue_deq()
84 cam_list_del_node(&node->list); in cam_queue_deq()
89 if (NULL != node) { in cam_queue_deq()
90 data = node->data; in cam_queue_deq()
[all …]
Dcam_list.h64 struct cam_list *node) in cam_list_insert_before_node() argument
66 item->next = node; in cam_list_insert_before_node()
67 item->prev = node->prev; in cam_list_insert_before_node()
69 node->prev = item; in cam_list_insert_before_node()
/device/asus/flo/camera/QCamera2/stack/common/
Dcam_queue.h55 cam_node_t *node = in cam_queue_enq() local
57 if (NULL == node) { in cam_queue_enq()
61 memset(node, 0, sizeof(cam_node_t)); in cam_queue_enq()
62 node->data = data; in cam_queue_enq()
65 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq()
74 cam_node_t *node = NULL; in cam_queue_deq() local
83 node = member_of(pos, cam_node_t, list); in cam_queue_deq()
84 cam_list_del_node(&node->list); in cam_queue_deq()
89 if (NULL != node) { in cam_queue_deq()
90 data = node->data; in cam_queue_deq()
[all …]
Dcam_list.h64 struct cam_list *node) in cam_list_insert_before_node() argument
66 item->next = node; in cam_list_insert_before_node()
67 item->prev = node->prev; in cam_list_insert_before_node()
69 node->prev = item; in cam_list_insert_before_node()
/device/moto/shamu/camera/QCamera2/stack/common/
Dcam_queue.h55 cam_node_t *node = in cam_queue_enq() local
57 if (NULL == node) { in cam_queue_enq()
61 memset(node, 0, sizeof(cam_node_t)); in cam_queue_enq()
62 node->data = data; in cam_queue_enq()
65 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq()
74 cam_node_t *node = NULL; in cam_queue_deq() local
83 node = member_of(pos, cam_node_t, list); in cam_queue_deq()
84 cam_list_del_node(&node->list); in cam_queue_deq()
89 if (NULL != node) { in cam_queue_deq()
90 data = node->data; in cam_queue_deq()
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_queue.c84 camera_q_node *node = in mm_qcamera_queue_enqueue() local
86 if (NULL == node) { in mm_qcamera_queue_enqueue()
91 memset(node, 0, sizeof(camera_q_node)); in mm_qcamera_queue_enqueue()
92 node->data = data; in mm_qcamera_queue_enqueue()
95 cam_list_add_tail_node(&node->list, &queue->m_head.list); in mm_qcamera_queue_enqueue()
108 camera_q_node* node = NULL; in mm_qcamera_queue_dequeue() local
121 node = member_of(pos, camera_q_node, list); in mm_qcamera_queue_dequeue()
122 cam_list_del_node(&node->list); in mm_qcamera_queue_dequeue()
127 if (NULL != node) { in mm_qcamera_queue_dequeue()
128 data = node->data; in mm_qcamera_queue_dequeue()
[all …]
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_channel.c192 mm_channel_queue_node_t *node = NULL; in mm_channel_process_stream_buf() local
225 node = mm_channel_superbuf_dequeue(&ch_obj->bundle.superbuf_queue); in mm_channel_process_stream_buf()
226 if (NULL != node) { in mm_channel_process_stream_buf()
247 cb_node->u.superbuf.num_bufs = node->num_of_bufs; in mm_channel_process_stream_buf()
248 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf()
249 cb_node->u.superbuf.bufs[i] = node->super_buf[i].buf; in mm_channel_process_stream_buf()
262 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf()
263 mm_channel_qbuf(ch_obj, node->super_buf[i].buf); in mm_channel_process_stream_buf()
269 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf()
270 mm_channel_qbuf(ch_obj, node->super_buf[i].buf); in mm_channel_process_stream_buf()
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_channel.c194 mm_channel_queue_node_t *node = NULL; in mm_channel_process_stream_buf() local
227 node = mm_channel_superbuf_dequeue(&ch_obj->bundle.superbuf_queue); in mm_channel_process_stream_buf()
228 if (NULL != node) { in mm_channel_process_stream_buf()
249 cb_node->u.superbuf.num_bufs = node->num_of_bufs; in mm_channel_process_stream_buf()
250 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf()
251 cb_node->u.superbuf.bufs[i] = node->super_buf[i].buf; in mm_channel_process_stream_buf()
264 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf()
265 mm_channel_qbuf(ch_obj, node->super_buf[i].buf); in mm_channel_process_stream_buf()
271 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf()
272 mm_channel_qbuf(ch_obj, node->super_buf[i].buf); in mm_channel_process_stream_buf()
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_channel.c200 mm_channel_queue_node_t *node = NULL; in mm_channel_process_stream_buf() local
338 node = mm_channel_superbuf_dequeue(&ch_obj->bundle.superbuf_queue); in mm_channel_process_stream_buf()
339 if (NULL != node) { in mm_channel_process_stream_buf()
381 cb_node->u.superbuf.num_bufs = node->num_of_bufs; in mm_channel_process_stream_buf()
382 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf()
383 cb_node->u.superbuf.bufs[i] = node->super_buf[i].buf; in mm_channel_process_stream_buf()
401 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf()
402 mm_channel_qbuf(ch_obj, node->super_buf[i].buf); in mm_channel_process_stream_buf()
408 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf()
409 mm_channel_qbuf(ch_obj, node->super_buf[i].buf); in mm_channel_process_stream_buf()
[all …]

123