/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_queue.c | 33 int mm_camera_queue_init(mm_camera_queue_t *queue, in mm_camera_queue_init() argument 37 if ( NULL == queue ) { in mm_camera_queue_init() 41 pthread_mutex_init(&queue->m_lock, NULL); in mm_camera_queue_init() 42 cam_list_init(&queue->m_head.list); in mm_camera_queue_init() 43 queue->m_size = 0; in mm_camera_queue_init() 44 queue->m_dataFn = data_rel_fn; in mm_camera_queue_init() 45 queue->m_userData = user_data; in mm_camera_queue_init() 50 int mm_qcamera_queue_release(mm_camera_queue_t *queue) in mm_qcamera_queue_release() argument 52 if ( NULL == queue ) { in mm_qcamera_queue_release() 56 mm_qcamera_queue_flush(queue); in mm_qcamera_queue_release() [all …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_queue.c | 33 int mm_camera_queue_init(mm_camera_queue_t *queue, in mm_camera_queue_init() argument 37 if ( NULL == queue ) { in mm_camera_queue_init() 41 pthread_mutex_init(&queue->m_lock, NULL); in mm_camera_queue_init() 42 cam_list_init(&queue->m_head.list); in mm_camera_queue_init() 43 queue->m_size = 0; in mm_camera_queue_init() 44 queue->m_dataFn = data_rel_fn; in mm_camera_queue_init() 45 queue->m_userData = user_data; in mm_camera_queue_init() 50 int mm_qcamera_queue_release(mm_camera_queue_t *queue) in mm_qcamera_queue_release() argument 52 if ( NULL == queue ) { in mm_qcamera_queue_release() 56 mm_qcamera_queue_flush(queue); in mm_qcamera_queue_release() [all …]
|
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_queue.c | 33 int mm_camera_queue_init(mm_camera_queue_t *queue, in mm_camera_queue_init() argument 37 if ( NULL == queue ) { in mm_camera_queue_init() 41 pthread_mutex_init(&queue->m_lock, NULL); in mm_camera_queue_init() 42 cam_list_init(&queue->m_head.list); in mm_camera_queue_init() 43 queue->m_size = 0; in mm_camera_queue_init() 44 queue->m_dataFn = data_rel_fn; in mm_camera_queue_init() 45 queue->m_userData = user_data; in mm_camera_queue_init() 50 int mm_qcamera_queue_release(mm_camera_queue_t *queue) in mm_qcamera_queue_release() argument 52 if ( NULL == queue ) { in mm_qcamera_queue_release() 56 mm_qcamera_queue_flush(queue); in mm_qcamera_queue_release() [all …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 34 int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue) in mm_jpeg_queue_init() argument 36 pthread_mutex_init(&queue->lock, NULL); in mm_jpeg_queue_init() 37 cam_list_init(&queue->head.list); in mm_jpeg_queue_init() 38 queue->size = 0; in mm_jpeg_queue_init() 42 int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, void* data) in mm_jpeg_queue_enq() argument 54 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq() 55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq() 56 queue->size++; in mm_jpeg_queue_enq() 57 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq() 63 int32_t mm_jpeg_queue_enq_head(mm_jpeg_queue_t* queue, void* data) in mm_jpeg_queue_enq_head() argument [all …]
|
D | mm_jpeg.c | 71 mm_jpeg_queue_t* queue, void * dst_ptr); 2677 mm_jpeg_queue_t* queue, uint32_t client_hdl) in mm_jpeg_queue_remove_job_by_client_id() argument 2685 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_remove_job_by_client_id() 2686 head = &queue->head.list; in mm_jpeg_queue_remove_job_by_client_id() 2696 queue->size--; in mm_jpeg_queue_remove_job_by_client_id() 2698 CDBG_HIGH("%s: queue size = %d", __func__, queue->size); in mm_jpeg_queue_remove_job_by_client_id() 2704 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_remove_job_by_client_id() 2711 mm_jpeg_queue_t* queue, uint32_t session_id) in mm_jpeg_queue_remove_job_by_session_id() argument 2719 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_remove_job_by_session_id() 2720 head = &queue->head.list; in mm_jpeg_queue_remove_job_by_session_id() [all …]
|
/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 34 int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue) in mm_jpeg_queue_init() argument 36 pthread_mutex_init(&queue->lock, NULL); in mm_jpeg_queue_init() 37 cam_list_init(&queue->head.list); in mm_jpeg_queue_init() 38 queue->size = 0; in mm_jpeg_queue_init() 42 int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, void* data) in mm_jpeg_queue_enq() argument 54 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq() 55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq() 56 queue->size++; in mm_jpeg_queue_enq() 57 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq() 64 void* mm_jpeg_queue_peek(mm_jpeg_queue_t* queue) in mm_jpeg_queue_peek() argument [all …]
|
D | mm_jpeg.c | 68 int32_t mm_jpeg_queue_update_flag(mm_jpeg_queue_t* queue, uint32_t job_id, uint8_t flag); 69 mm_jpeg_job_q_node_t* mm_jpeg_queue_remove_job_by_client_id(mm_jpeg_queue_t* queue, uint32_t client… 70 mm_jpeg_job_q_node_t* mm_jpeg_queue_remove_job_by_job_id(mm_jpeg_queue_t* queue, uint32_t job_id); 1322 mm_jpeg_job_q_node_t* mm_jpeg_queue_remove_job_by_client_id(mm_jpeg_queue_t* queue, uint32_t client… in mm_jpeg_queue_remove_job_by_client_id() argument 1330 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_remove_job_by_client_id() 1331 head = &queue->head.list; in mm_jpeg_queue_remove_job_by_client_id() 1341 queue->size--; in mm_jpeg_queue_remove_job_by_client_id() 1343 CDBG_ERROR("%s: queue size = %d", __func__, queue->size); in mm_jpeg_queue_remove_job_by_client_id() 1349 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_remove_job_by_client_id() 1355 mm_jpeg_job_q_node_t* mm_jpeg_queue_remove_job_by_job_id(mm_jpeg_queue_t* queue, uint32_t job_id) in mm_jpeg_queue_remove_job_by_job_id() argument [all …]
|
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 34 int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue) in mm_jpeg_queue_init() argument 36 pthread_mutex_init(&queue->lock, NULL); in mm_jpeg_queue_init() 37 cam_list_init(&queue->head.list); in mm_jpeg_queue_init() 38 queue->size = 0; in mm_jpeg_queue_init() 42 int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, mm_jpeg_q_data_t data) in mm_jpeg_queue_enq() argument 54 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq() 55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq() 56 queue->size++; in mm_jpeg_queue_enq() 57 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq() 63 int32_t mm_jpeg_queue_enq_head(mm_jpeg_queue_t* queue, mm_jpeg_q_data_t data) in mm_jpeg_queue_enq_head() argument [all …]
|
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 34 int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue) in mm_jpeg_queue_init() argument 36 pthread_mutex_init(&queue->lock, NULL); in mm_jpeg_queue_init() 37 cam_list_init(&queue->head.list); in mm_jpeg_queue_init() 38 queue->size = 0; in mm_jpeg_queue_init() 42 int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, mm_jpeg_q_data_t data) in mm_jpeg_queue_enq() argument 54 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq() 55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq() 56 queue->size++; in mm_jpeg_queue_enq() 57 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq() 63 int32_t mm_jpeg_queue_enq_head(mm_jpeg_queue_t* queue, mm_jpeg_q_data_t data) in mm_jpeg_queue_enq_head() argument [all …]
|
/device/huawei/angler/camera/QCamera2/stack/common/ |
D | cam_queue.h | 43 static inline int32_t cam_queue_init(cam_queue_t *queue) in cam_queue_init() argument 45 pthread_mutex_init(&queue->lock, NULL); in cam_queue_init() 46 cam_list_init(&queue->head.list); in cam_queue_init() 47 queue->size = 0; in cam_queue_init() 51 static inline int32_t cam_queue_enq(cam_queue_t *queue, void *data) in cam_queue_enq() argument 62 pthread_mutex_lock(&queue->lock); in cam_queue_enq() 63 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq() 64 queue->size++; in cam_queue_enq() 65 pthread_mutex_unlock(&queue->lock); in cam_queue_enq() 70 static inline void *cam_queue_deq(cam_queue_t *queue) in cam_queue_deq() argument [all …]
|
/device/moto/shamu/camera/QCamera2/stack/common/ |
D | cam_queue.h | 45 static inline int32_t cam_queue_init(cam_queue_t *queue) in cam_queue_init() argument 47 pthread_mutex_init(&queue->lock, NULL); in cam_queue_init() 48 cam_list_init(&queue->head.list); in cam_queue_init() 49 queue->size = 0; in cam_queue_init() 53 static inline int32_t cam_queue_enq(cam_queue_t *queue, void *data) in cam_queue_enq() argument 64 pthread_mutex_lock(&queue->lock); in cam_queue_enq() 65 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq() 66 queue->size++; in cam_queue_enq() 67 pthread_mutex_unlock(&queue->lock); in cam_queue_enq() 72 static inline void *cam_queue_deq(cam_queue_t *queue) in cam_queue_deq() argument [all …]
|
/device/lge/bullhead/camera/QCamera2/stack/common/ |
D | cam_queue.h | 43 static inline int32_t cam_queue_init(cam_queue_t *queue) in cam_queue_init() argument 45 pthread_mutex_init(&queue->lock, NULL); in cam_queue_init() 46 cam_list_init(&queue->head.list); in cam_queue_init() 47 queue->size = 0; in cam_queue_init() 51 static inline int32_t cam_queue_enq(cam_queue_t *queue, void *data) in cam_queue_enq() argument 62 pthread_mutex_lock(&queue->lock); in cam_queue_enq() 63 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq() 64 queue->size++; in cam_queue_enq() 65 pthread_mutex_unlock(&queue->lock); in cam_queue_enq() 70 static inline void *cam_queue_deq(cam_queue_t *queue) in cam_queue_deq() argument [all …]
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera_data.c | 50 int32_t mm_camera_queue_init(mm_camera_queue_t* queue) in mm_camera_queue_init() argument 52 pthread_mutex_init(&queue->lock, NULL); in mm_camera_queue_init() 53 cam_list_init(&queue->head.list); in mm_camera_queue_init() 54 queue->size = 0; in mm_camera_queue_init() 58 int32_t mm_camera_queue_enq(mm_camera_queue_t* queue, void* data) in mm_camera_queue_enq() argument 70 pthread_mutex_lock(&queue->lock); in mm_camera_queue_enq() 71 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_camera_queue_enq() 72 queue->size++; in mm_camera_queue_enq() 73 pthread_mutex_unlock(&queue->lock); in mm_camera_queue_enq() 79 void* mm_camera_queue_deq(mm_camera_queue_t* queue) in mm_camera_queue_deq() argument [all …]
|
D | mm_camera_channel.c | 102 mm_channel_queue_t *queue); 104 mm_channel_queue_t *queue); 143 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue); 145 mm_channel_queue_t * queue); 147 mm_channel_queue_t * queue, 149 mm_channel_queue_node_t* mm_channel_superbuf_dequeue(mm_channel_queue_t * queue); 1342 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue) in mm_channel_superbuf_queue_init() argument 1344 return mm_camera_queue_init(&queue->que); in mm_channel_superbuf_queue_init() 1348 mm_channel_queue_t * queue) in mm_channel_superbuf_queue_deinit() argument 1350 return mm_camera_queue_deinit(&queue->que); in mm_channel_superbuf_queue_deinit() [all …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_channel.c | 74 int32_t mm_channel_superbuf_flush(mm_channel_t* my_obj, mm_channel_queue_t * queue); 105 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue); 106 int32_t mm_channel_superbuf_queue_deinit(mm_channel_queue_t * queue); 108 mm_channel_queue_t * queue, 110 mm_channel_queue_node_t* mm_channel_superbuf_dequeue(mm_channel_queue_t * queue); 112 mm_channel_queue_t *queue); 114 mm_channel_queue_t *queue); 119 mm_channel_queue_t * queue); 1693 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue) in mm_channel_superbuf_queue_init() argument 1695 return cam_queue_init(&queue->que); in mm_channel_superbuf_queue_init() [all …]
|
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_channel.c | 77 mm_channel_queue_t * queue, cam_stream_type_t cam_type); 111 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue); 112 int32_t mm_channel_superbuf_queue_deinit(mm_channel_queue_t * queue); 114 mm_channel_queue_t * queue, 116 mm_channel_queue_node_t* mm_channel_superbuf_dequeue(mm_channel_queue_t * queue); 118 mm_channel_queue_t *queue); 120 mm_channel_queue_t *queue); 125 mm_channel_queue_t * queue); 2005 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue) in mm_channel_superbuf_queue_init() argument 2007 return cam_queue_init(&queue->que); in mm_channel_superbuf_queue_init() [all …]
|
/device/huawei/angler/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_channel.c | 77 mm_channel_queue_t * queue, cam_stream_type_t cam_type); 111 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue); 112 int32_t mm_channel_superbuf_queue_deinit(mm_channel_queue_t * queue); 114 mm_channel_queue_t * queue, 116 mm_channel_queue_node_t* mm_channel_superbuf_dequeue(mm_channel_queue_t * queue); 118 mm_channel_queue_t *queue); 120 mm_channel_queue_t *queue); 125 mm_channel_queue_t * queue); 2005 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue) in mm_channel_superbuf_queue_init() argument 2007 return cam_queue_init(&queue->que); in mm_channel_superbuf_queue_init() [all …]
|
/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg.h | 158 extern int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue); 159 extern int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, void* node); 160 extern void* mm_jpeg_queue_peek(mm_jpeg_queue_t* queue); 161 extern void* mm_jpeg_queue_deq(mm_jpeg_queue_t* queue); 162 extern int32_t mm_jpeg_queue_deinit(mm_jpeg_queue_t* queue); 163 extern int32_t mm_jpeg_queue_flush(mm_jpeg_queue_t* queue); 164 extern uint32_t mm_jpeg_queue_get_size(mm_jpeg_queue_t* queue);
|
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg.h | 452 extern int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue); 453 extern int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, 455 extern int32_t mm_jpeg_queue_enq_head(mm_jpeg_queue_t* queue, 457 extern mm_jpeg_q_data_t mm_jpeg_queue_deq(mm_jpeg_queue_t* queue); 458 extern int32_t mm_jpeg_queue_deinit(mm_jpeg_queue_t* queue); 459 extern int32_t mm_jpeg_queue_flush(mm_jpeg_queue_t* queue); 460 extern uint32_t mm_jpeg_queue_get_size(mm_jpeg_queue_t* queue); 461 extern mm_jpeg_q_data_t mm_jpeg_queue_peek(mm_jpeg_queue_t* queue); 481 mm_jpeg_queue_t* queue, uint32_t client_hdl); 483 mm_jpeg_queue_t* queue, uint32_t job_id); [all …]
|
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg.h | 452 extern int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue); 453 extern int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, 455 extern int32_t mm_jpeg_queue_enq_head(mm_jpeg_queue_t* queue, 457 extern mm_jpeg_q_data_t mm_jpeg_queue_deq(mm_jpeg_queue_t* queue); 458 extern int32_t mm_jpeg_queue_deinit(mm_jpeg_queue_t* queue); 459 extern int32_t mm_jpeg_queue_flush(mm_jpeg_queue_t* queue); 460 extern uint32_t mm_jpeg_queue_get_size(mm_jpeg_queue_t* queue); 461 extern mm_jpeg_q_data_t mm_jpeg_queue_peek(mm_jpeg_queue_t* queue); 481 mm_jpeg_queue_t* queue, uint32_t client_hdl); 483 mm_jpeg_queue_t* queue, uint32_t job_id); [all …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg.h | 443 extern int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue); 444 extern int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, void* node); 445 extern int32_t mm_jpeg_queue_enq_head(mm_jpeg_queue_t* queue, void* node); 446 extern void* mm_jpeg_queue_deq(mm_jpeg_queue_t* queue); 447 extern int32_t mm_jpeg_queue_deinit(mm_jpeg_queue_t* queue); 448 extern int32_t mm_jpeg_queue_flush(mm_jpeg_queue_t* queue); 449 extern uint32_t mm_jpeg_queue_get_size(mm_jpeg_queue_t* queue); 450 extern void* mm_jpeg_queue_peek(mm_jpeg_queue_t* queue); 470 mm_jpeg_queue_t* queue, uint32_t client_hdl); 472 mm_jpeg_queue_t* queue, uint32_t job_id); [all …]
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-test/src/ |
D | mm_qcamera_pp.c | 44 int32_t mm_qcamera_queue_init(mm_qcamera_queue_t* queue); 45 int32_t mm_qcamera_queue_enq(mm_qcamera_queue_t* queue, void* data); 46 void* mm_qcamera_queue_deq(mm_qcamera_queue_t* queue); 47 void* mm_qcamera_queue_peek(mm_qcamera_queue_t* queue); 48 int32_t mm_qcamera_queue_deinit(mm_qcamera_queue_t* queue); 49 int32_t mm_qcamera_queue_flush(mm_qcamera_queue_t* queue); 674 int32_t mm_qcamera_queue_init(mm_qcamera_queue_t* queue) in mm_qcamera_queue_init() argument 676 pthread_mutex_init(&queue->lock, NULL); in mm_qcamera_queue_init() 677 cam_list_init(&queue->head.list); in mm_qcamera_queue_init() 678 queue->size = 0; in mm_qcamera_queue_init() [all …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/inc/ |
D | mm_qcamera_app.h | 500 extern int mm_camera_queue_init(mm_camera_queue_t *queue, 503 extern int mm_qcamera_queue_release(mm_camera_queue_t *queue); 504 extern int mm_qcamera_queue_isempty(mm_camera_queue_t *queue); 505 extern int mm_qcamera_queue_enqueue(mm_camera_queue_t *queue, void *data); 506 extern void* mm_qcamera_queue_dequeue(mm_camera_queue_t *queue, 508 extern void mm_qcamera_queue_flush(mm_camera_queue_t *queue);
|
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/inc/ |
D | mm_qcamera_app.h | 502 extern int mm_camera_queue_init(mm_camera_queue_t *queue, 505 extern int mm_qcamera_queue_release(mm_camera_queue_t *queue); 506 extern int mm_qcamera_queue_isempty(mm_camera_queue_t *queue); 507 extern int mm_qcamera_queue_enqueue(mm_camera_queue_t *queue, void *data); 508 extern void* mm_qcamera_queue_dequeue(mm_camera_queue_t *queue, 510 extern void mm_qcamera_queue_flush(mm_camera_queue_t *queue);
|
/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/inc/ |
D | mm_qcamera_app.h | 502 extern int mm_camera_queue_init(mm_camera_queue_t *queue, 505 extern int mm_qcamera_queue_release(mm_camera_queue_t *queue); 506 extern int mm_qcamera_queue_isempty(mm_camera_queue_t *queue); 507 extern int mm_qcamera_queue_enqueue(mm_camera_queue_t *queue, void *data); 508 extern void* mm_qcamera_queue_dequeue(mm_camera_queue_t *queue, 510 extern void mm_qcamera_queue_flush(mm_camera_queue_t *queue);
|