/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera.c | 61 int32_t mm_camera_evt_sub(mm_camera_obj_t * my_obj, 63 int32_t mm_camera_enqueue_evt(mm_camera_obj_t *my_obj, 130 mm_camera_obj_t * my_obj = (mm_camera_obj_t *)user_data; in mm_camera_dispatch_app_event() local 131 if (NULL != my_obj) { in mm_camera_dispatch_app_event() 132 mm_camera_cmd_thread_name(my_obj->evt_thread.threadName); in mm_camera_dispatch_app_event() 133 pthread_mutex_lock(&my_obj->cb_lock); in mm_camera_dispatch_app_event() 135 if(my_obj->evt.evt[i].evt_cb) { in mm_camera_dispatch_app_event() 136 my_obj->evt.evt[i].evt_cb( in mm_camera_dispatch_app_event() 137 my_obj->my_hdl, in mm_camera_dispatch_app_event() 139 my_obj->evt.evt[i].user_data); in mm_camera_dispatch_app_event() [all …]
|
D | mm_camera_muxer.c | 250 mm_camera_obj_t *my_obj = NULL; in mm_camera_muxer_camera_open() local 253 my_obj = (mm_camera_obj_t *)malloc(sizeof(mm_camera_obj_t)); in mm_camera_muxer_camera_open() 254 if(NULL == my_obj) { in mm_camera_muxer_camera_open() 261 memset(my_obj, 0, sizeof(mm_camera_obj_t)); in mm_camera_muxer_camera_open() 262 my_obj->ctrl_fd = -1; in mm_camera_muxer_camera_open() 263 my_obj->ds_fd = -1; in mm_camera_muxer_camera_open() 264 my_obj->ref_count++; in mm_camera_muxer_camera_open() 265 my_obj->my_num = my_num; in mm_camera_muxer_camera_open() 266 my_obj->my_hdl = mm_camera_util_generate_handler_by_num(my_num, cam_idx); in mm_camera_muxer_camera_open() 267 pthread_mutex_init(&my_obj->cam_lock, NULL); in mm_camera_muxer_camera_open() [all …]
|
D | mm_camera_interface.c | 238 mm_camera_obj_t *my_obj = NULL; in mm_camera_intf_query_capability() local 249 my_obj = mm_camera_util_get_camera_by_handler(handle); in mm_camera_intf_query_capability() 251 if(my_obj) { in mm_camera_intf_query_capability() 252 pthread_mutex_lock(&my_obj->cam_lock); in mm_camera_intf_query_capability() 254 rc = mm_camera_query_capability(my_obj); in mm_camera_intf_query_capability() 264 my_obj = mm_camera_util_get_camera_head(aux_handle); in mm_camera_intf_query_capability() 265 if (my_obj) { in mm_camera_intf_query_capability() 266 pthread_mutex_lock(&my_obj->muxer_lock); in mm_camera_intf_query_capability() 268 rc = mm_camera_muxer_query_capability(aux_handle, my_obj); in mm_camera_intf_query_capability() 298 mm_camera_obj_t * my_obj = NULL; in mm_camera_intf_set_parms() local [all …]
|
D | mm_camera_stream.c | 53 int32_t mm_stream_qbuf(mm_stream_t *my_obj, 55 int32_t mm_stream_set_ext_mode(mm_stream_t * my_obj); 56 int32_t mm_stream_set_fmt(mm_stream_t * my_obj); 57 int32_t mm_stream_cancel_buf(mm_stream_t * my_obj, 59 int32_t mm_stream_sync_info(mm_stream_t *my_obj); 60 int32_t mm_stream_init_bufs(mm_stream_t * my_obj); 61 int32_t mm_stream_deinit_bufs(mm_stream_t * my_obj); 62 int32_t mm_stream_request_buf(mm_stream_t * my_obj); 63 int32_t mm_stream_unreg_buf(mm_stream_t * my_obj); 64 int32_t mm_stream_release(mm_stream_t *my_obj); [all …]
|
D | mm_camera_channel.c | 52 int32_t mm_channel_qbuf(mm_channel_t *my_obj, 54 int32_t mm_channel_cancel_buf(mm_channel_t *my_obj, 56 int32_t mm_channel_init(mm_channel_t *my_obj, 60 void mm_channel_release(mm_channel_t *my_obj); 61 uint32_t mm_channel_add_stream(mm_channel_t *my_obj); 62 int32_t mm_channel_del_stream(mm_channel_t *my_obj, 64 uint32_t mm_channel_link_stream(mm_channel_t *my_obj, 66 uint32_t mm_channel_reg_frame_sync(mm_channel_t *my_obj, 68 int32_t mm_channel_trigger_frame_sync(mm_channel_t *my_obj, 70 int32_t mm_channel_config_stream(mm_channel_t *my_obj, [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg_inlines.h | 49 static inline mm_jpeg_job_session_t *mm_jpeg_get_session(mm_jpeg_obj *my_obj, uint32_t job_id) in mm_jpeg_get_session() argument 63 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_session() 64 p_session = &my_obj->clnt_mgr[client_idx].session[session_idx]; in mm_jpeg_get_session() 65 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_session() 82 static inline int mm_jpeg_get_new_session_idx(mm_jpeg_obj *my_obj, int client_idx, in mm_jpeg_get_new_session_idx() argument 88 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_new_session_idx() 89 if (!my_obj->clnt_mgr[client_idx].session[i].active) { in mm_jpeg_get_new_session_idx() 90 *pp_session = &my_obj->clnt_mgr[client_idx].session[i]; in mm_jpeg_get_new_session_idx() 91 my_obj->clnt_mgr[client_idx].session[i].active = OMX_TRUE; in mm_jpeg_get_new_session_idx() 93 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_new_session_idx() [all …]
|
D | mm_jpeg.h | 437 extern int32_t mm_jpeg_init(mm_jpeg_obj *my_obj); 438 extern int32_t mm_jpeg_deinit(mm_jpeg_obj *my_obj); 439 extern uint32_t mm_jpeg_new_client(mm_jpeg_obj *my_obj); 440 extern int32_t mm_jpeg_start_job(mm_jpeg_obj *my_obj, 443 extern int32_t mm_jpeg_abort_job(mm_jpeg_obj *my_obj, 445 extern int32_t mm_jpeg_close(mm_jpeg_obj *my_obj, 447 extern int32_t mm_jpeg_create_session(mm_jpeg_obj *my_obj, 451 extern int32_t mm_jpeg_destroy_session_by_id(mm_jpeg_obj *my_obj, 454 extern int32_t mm_jpegdec_init(mm_jpeg_obj *my_obj); 455 extern int32_t mm_jpegdec_deinit(mm_jpeg_obj *my_obj); [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/inc/ |
D | mm_camera.h | 673 extern int32_t mm_camera_util_s_ctrl(mm_camera_obj_t *my_obj, 677 extern int32_t mm_camera_util_g_ctrl(mm_camera_obj_t *my_obj, 681 extern int32_t mm_camera_util_sendmsg(mm_camera_obj_t *my_obj, 687 extern int32_t mm_camera_util_bundled_sendmsg(mm_camera_obj_t *my_obj, 697 extern int32_t mm_camera_open(mm_camera_obj_t *my_obj); 698 extern int32_t mm_camera_close(mm_camera_obj_t *my_obj); 699 extern int32_t mm_camera_register_event_notify(mm_camera_obj_t *my_obj, 702 extern int32_t mm_camera_qbuf(mm_camera_obj_t *my_obj, 705 extern int32_t mm_camera_cancel_buf(mm_camera_obj_t *my_obj, 709 extern int32_t mm_camera_get_queued_buf_count(mm_camera_obj_t *my_obj, [all …]
|
D | mm_camera_muxer.h | 172 int32_t mm_camera_muxer_get_stream_bufs(mm_stream_t *my_obj); 173 int32_t mm_camera_muxer_put_stream_bufs(mm_stream_t *my_obj); 175 int32_t mm_camera_muxer_channel_frame_sync_flush(mm_channel_t *my_obj);
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpegdec.c | 86 mm_jpeg_obj *my_obj = (mm_jpeg_obj *)p_session->jpeg_obj; in mm_jpegdec_job_done() local 93 node = mm_jpeg_queue_remove_job_by_job_id(&my_obj->ongoing_job_q, in mm_jpegdec_job_done() 101 cam_sem_post(&my_obj->job_mgr.job_sem); in mm_jpegdec_job_done() 658 int32_t mm_jpegdec_process_decoding_job(mm_jpeg_obj *my_obj, mm_jpeg_job_q_node_t* job_node) in mm_jpegdec_process_decoding_job() argument 666 p_session = mm_jpeg_get_session(my_obj, job_node->dec_info.job_id); in mm_jpegdec_process_decoding_job() 675 rc = mm_jpeg_queue_enq(&my_obj->ongoing_job_q, qdata); in mm_jpegdec_process_decoding_job() 728 int32_t mm_jpegdec_start_decode_job(mm_jpeg_obj *my_obj, in mm_jpegdec_start_decode_job() argument 755 p_session = &my_obj->clnt_mgr[client_idx].session[session_idx]; in mm_jpegdec_start_decode_job() 785 rc = mm_jpeg_queue_enq(&my_obj->job_mgr.job_queue, qdata); in mm_jpegdec_start_decode_job() 787 cam_sem_post(&my_obj->job_mgr.job_sem); in mm_jpegdec_start_decode_job() [all …]
|
D | mm_jpeg.c | 368 mm_jpeg_obj *my_obj = (mm_jpeg_obj *) p_session->jpeg_obj; in mm_jpeg_session_create() local 401 my_obj->num_sessions++; in mm_jpeg_session_create() 425 mm_jpeg_obj *my_obj = (mm_jpeg_obj *) p_session->jpeg_obj; in mm_jpeg_session_destroy() local 464 if (my_obj->p_session_inprogress == p_session) { in mm_jpeg_session_destroy() 465 my_obj->p_session_inprogress = NULL; in mm_jpeg_session_destroy() 482 my_obj->num_sessions--; in mm_jpeg_session_destroy() 810 mm_jpeg_obj *my_obj = (mm_jpeg_obj *) p_session->jpeg_obj; in mm_jpeg_metadata() local 823 lMeta.static_metadata = (OMX_U8 *)my_obj->jpeg_metadata; in mm_jpeg_metadata() 1875 mm_jpeg_obj *my_obj = (mm_jpeg_obj *) p_session->jpeg_obj; in mm_jpeg_session_encode() local 1896 if (my_obj->p_session_inprogress != NULL) { in mm_jpeg_session_encode() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-lib2d-interface/src/ |
D | mm_lib2d.c | 284 cam_format_t dst_format, void **my_obj) in mm_lib2d_init() argument 291 if (my_obj == NULL) { in mm_lib2d_init() 410 *my_obj = (void *)lib2d_obj; in mm_lib2d_init()
|