/device/google/marlin/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera.c | 58 int32_t mm_camera_evt_sub(mm_camera_obj_t * my_obj, 60 int32_t mm_camera_enqueue_evt(mm_camera_obj_t *my_obj, 127 mm_camera_obj_t * my_obj = (mm_camera_obj_t *)user_data; in mm_camera_dispatch_app_event() local 128 if (NULL != my_obj) { in mm_camera_dispatch_app_event() 129 mm_camera_cmd_thread_name(my_obj->evt_thread.threadName); in mm_camera_dispatch_app_event() 130 pthread_mutex_lock(&my_obj->cb_lock); in mm_camera_dispatch_app_event() 132 if(my_obj->evt.evt[i].evt_cb) { in mm_camera_dispatch_app_event() 133 my_obj->evt.evt[i].evt_cb( in mm_camera_dispatch_app_event() 134 my_obj->my_hdl, in mm_camera_dispatch_app_event() 136 my_obj->evt.evt[i].user_data); in mm_camera_dispatch_app_event() [all …]
|
D | mm_camera_interface.c | 185 mm_camera_obj_t * my_obj = NULL; in mm_camera_intf_query_capability() local 190 my_obj = mm_camera_util_get_camera_by_handler(camera_handle); in mm_camera_intf_query_capability() 192 if(my_obj) { in mm_camera_intf_query_capability() 193 pthread_mutex_lock(&my_obj->cam_lock); in mm_camera_intf_query_capability() 195 rc = mm_camera_query_capability(my_obj); in mm_camera_intf_query_capability() 223 mm_camera_obj_t * my_obj = NULL; in mm_camera_intf_set_parms() local 226 my_obj = mm_camera_util_get_camera_by_handler(camera_handle); in mm_camera_intf_set_parms() 228 if(my_obj) { in mm_camera_intf_set_parms() 229 pthread_mutex_lock(&my_obj->cam_lock); in mm_camera_intf_set_parms() 231 rc = mm_camera_set_parms(my_obj, parms); in mm_camera_intf_set_parms() [all …]
|
D | mm_camera_stream.c | 52 int32_t mm_stream_qbuf(mm_stream_t *my_obj, 54 int32_t mm_stream_set_ext_mode(mm_stream_t * my_obj); 55 int32_t mm_stream_set_fmt(mm_stream_t * my_obj); 56 int32_t mm_stream_cancel_buf(mm_stream_t * my_obj, 58 int32_t mm_stream_sync_info(mm_stream_t *my_obj); 59 int32_t mm_stream_init_bufs(mm_stream_t * my_obj); 60 int32_t mm_stream_deinit_bufs(mm_stream_t * my_obj); 61 int32_t mm_stream_request_buf(mm_stream_t * my_obj); 62 int32_t mm_stream_unreg_buf(mm_stream_t * my_obj); 63 int32_t mm_stream_release(mm_stream_t *my_obj); [all …]
|
D | mm_camera_channel.c | 50 int32_t mm_channel_qbuf(mm_channel_t *my_obj, 52 int32_t mm_channel_cancel_buf(mm_channel_t *my_obj, 54 int32_t mm_channel_init(mm_channel_t *my_obj, 58 void mm_channel_release(mm_channel_t *my_obj); 59 uint32_t mm_channel_add_stream(mm_channel_t *my_obj); 60 int32_t mm_channel_del_stream(mm_channel_t *my_obj, 62 uint32_t mm_channel_link_stream(mm_channel_t *my_obj, 64 int32_t mm_channel_config_stream(mm_channel_t *my_obj, 67 int32_t mm_channel_get_bundle_info(mm_channel_t *my_obj, 69 int32_t mm_channel_start(mm_channel_t *my_obj); [all …]
|
/device/google/marlin/camera/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 | 421 extern int32_t mm_jpeg_init(mm_jpeg_obj *my_obj); 422 extern int32_t mm_jpeg_deinit(mm_jpeg_obj *my_obj); 423 extern uint32_t mm_jpeg_new_client(mm_jpeg_obj *my_obj); 424 extern int32_t mm_jpeg_start_job(mm_jpeg_obj *my_obj, 427 extern int32_t mm_jpeg_abort_job(mm_jpeg_obj *my_obj, 429 extern int32_t mm_jpeg_close(mm_jpeg_obj *my_obj, 431 extern int32_t mm_jpeg_create_session(mm_jpeg_obj *my_obj, 435 extern int32_t mm_jpeg_destroy_session_by_id(mm_jpeg_obj *my_obj, 438 extern int32_t mm_jpegdec_init(mm_jpeg_obj *my_obj); 439 extern int32_t mm_jpegdec_deinit(mm_jpeg_obj *my_obj); [all …]
|
/device/google/marlin/camera/QCamera2/stack/mm-camera-interface/inc/ |
D | mm_camera.h | 561 extern int32_t mm_camera_util_s_ctrl(mm_camera_obj_t *my_obj, 565 extern int32_t mm_camera_util_g_ctrl(mm_camera_obj_t *my_obj, 569 extern int32_t mm_camera_util_sendmsg(mm_camera_obj_t *my_obj, 575 extern int32_t mm_camera_util_bundled_sendmsg(mm_camera_obj_t *my_obj, 585 extern int32_t mm_camera_open(mm_camera_obj_t *my_obj); 586 extern int32_t mm_camera_close(mm_camera_obj_t *my_obj); 587 extern int32_t mm_camera_register_event_notify(mm_camera_obj_t *my_obj, 590 extern int32_t mm_camera_qbuf(mm_camera_obj_t *my_obj, 593 extern int32_t mm_camera_cancel_buf(mm_camera_obj_t *my_obj, 597 extern int32_t mm_camera_get_queued_buf_count(mm_camera_obj_t *my_obj, [all …]
|
/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg.c | 300 mm_jpeg_obj *my_obj = (mm_jpeg_obj *) p_session->jpeg_obj; in mm_jpeg_session_create() local 333 my_obj->num_sessions++; in mm_jpeg_session_create() 356 mm_jpeg_obj *my_obj = (mm_jpeg_obj *) p_session->jpeg_obj; in mm_jpeg_session_destroy() local 387 if (my_obj->p_session_inprogress == p_session) { in mm_jpeg_session_destroy() 388 my_obj->p_session_inprogress = NULL; in mm_jpeg_session_destroy() 405 my_obj->num_sessions--; in mm_jpeg_session_destroy() 731 mm_jpeg_obj *my_obj = (mm_jpeg_obj *) p_session->jpeg_obj; in mm_jpeg_metadata() local 744 lMeta.static_metadata = (OMX_U8 *)my_obj->jpeg_metadata; in mm_jpeg_metadata() 1693 mm_jpeg_obj *my_obj = (mm_jpeg_obj *) p_session->jpeg_obj; in mm_jpeg_session_encode() local 1712 if (my_obj->p_session_inprogress != NULL) { in mm_jpeg_session_encode() [all …]
|
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 …]
|
/device/google/marlin/camera/QCamera2/stack/mm-lib2d-interface/src/ |
D | mm_lib2d.c | 281 cam_format_t dst_format, void **my_obj) in mm_lib2d_init() argument 288 if (my_obj == NULL) { in mm_lib2d_init() 407 *my_obj = (void *)lib2d_obj; in mm_lib2d_init()
|