Home
last modified time | relevance | path

Searched refs:my_obj (Results 1 – 10 of 10) sorted by relevance

/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera.c55 int32_t mm_camera_evt_sub(mm_camera_obj_t * my_obj,
57 int32_t mm_camera_enqueue_evt(mm_camera_obj_t *my_obj,
122 mm_camera_obj_t * my_obj = (mm_camera_obj_t *)user_data; in mm_camera_dispatch_app_event() local
123 if (NULL != my_obj) { in mm_camera_dispatch_app_event()
124 mm_camera_cmd_thread_name(my_obj->evt_thread.threadName); in mm_camera_dispatch_app_event()
125 pthread_mutex_lock(&my_obj->cb_lock); in mm_camera_dispatch_app_event()
127 if(my_obj->evt.evt[i].evt_cb) { in mm_camera_dispatch_app_event()
128 my_obj->evt.evt[i].evt_cb( in mm_camera_dispatch_app_event()
129 my_obj->my_hdl, in mm_camera_dispatch_app_event()
131 my_obj->evt.evt[i].user_data); in mm_camera_dispatch_app_event()
[all …]
Dmm_camera_interface.c158 mm_camera_obj_t * my_obj = NULL; in mm_camera_intf_query_capability() local
163 my_obj = mm_camera_util_get_camera_by_handler(camera_handle); in mm_camera_intf_query_capability()
165 if(my_obj) { in mm_camera_intf_query_capability()
166 pthread_mutex_lock(&my_obj->cam_lock); in mm_camera_intf_query_capability()
168 rc = mm_camera_query_capability(my_obj); in mm_camera_intf_query_capability()
196 mm_camera_obj_t * my_obj = NULL; in mm_camera_intf_set_parms() local
199 my_obj = mm_camera_util_get_camera_by_handler(camera_handle); in mm_camera_intf_set_parms()
201 if(my_obj) { in mm_camera_intf_set_parms()
202 pthread_mutex_lock(&my_obj->cam_lock); in mm_camera_intf_set_parms()
204 rc = mm_camera_set_parms(my_obj, parms); in mm_camera_intf_set_parms()
[all …]
Dmm_camera_stream.c48 int32_t mm_stream_qbuf(mm_stream_t *my_obj,
50 int32_t mm_stream_set_ext_mode(mm_stream_t * my_obj);
51 int32_t mm_stream_set_fmt(mm_stream_t * my_obj);
52 int32_t mm_stream_sync_info(mm_stream_t *my_obj);
53 int32_t mm_stream_init_bufs(mm_stream_t * my_obj);
54 int32_t mm_stream_deinit_bufs(mm_stream_t * my_obj);
55 int32_t mm_stream_request_buf(mm_stream_t * my_obj);
56 int32_t mm_stream_unreg_buf(mm_stream_t * my_obj);
57 int32_t mm_stream_release(mm_stream_t *my_obj);
58 int32_t mm_stream_set_parm(mm_stream_t *my_obj,
[all …]
Dmm_camera_channel.c49 int32_t mm_channel_qbuf(mm_channel_t *my_obj,
51 int32_t mm_channel_init(mm_channel_t *my_obj,
55 void mm_channel_release(mm_channel_t *my_obj);
56 uint32_t mm_channel_add_stream(mm_channel_t *my_obj);
57 int32_t mm_channel_del_stream(mm_channel_t *my_obj,
59 uint32_t mm_channel_link_stream(mm_channel_t *my_obj,
61 int32_t mm_channel_config_stream(mm_channel_t *my_obj,
64 int32_t mm_channel_get_bundle_info(mm_channel_t *my_obj,
66 int32_t mm_channel_start(mm_channel_t *my_obj);
67 int32_t mm_channel_stop(mm_channel_t *my_obj);
[all …]
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg_inlines.h49 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 …]
Dmm_jpeg.h421 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 …]
/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/inc/
Dmm_camera.h566 extern int32_t mm_camera_util_sendmsg(mm_camera_obj_t *my_obj,
572 extern int32_t mm_camera_util_bundled_sendmsg(mm_camera_obj_t *my_obj,
582 extern int32_t mm_camera_open(mm_camera_obj_t *my_obj);
583 extern int32_t mm_camera_close(mm_camera_obj_t *my_obj);
584 extern int32_t mm_camera_register_event_notify(mm_camera_obj_t *my_obj,
587 extern int32_t mm_camera_qbuf(mm_camera_obj_t *my_obj,
590 extern int32_t mm_camera_get_queued_buf_count(mm_camera_obj_t *my_obj,
592 extern int32_t mm_camera_query_capability(mm_camera_obj_t *my_obj);
593 extern int32_t mm_camera_set_parms(mm_camera_obj_t *my_obj,
595 extern int32_t mm_camera_get_parms(mm_camera_obj_t *my_obj,
[all …]
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg.c300 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 …]
Dmm_jpegdec.c86 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 …]
/hardware/qcom/camera/QCamera2/stack/mm-lib2d-interface/src/
Dmm_lib2d.c281 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()