Lines Matching defs:my_obj
53 extern int32_t mm_camera_send_native_ctrl_cmd(mm_camera_obj_t * my_obj,
101 mm_camera_obj_t * my_obj = NULL;
106 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
108 if(my_obj) {
109 pthread_mutex_lock(&my_obj->cam_lock);
111 rc = mm_camera_sync(my_obj);
123 mm_camera_obj_t * my_obj = NULL;
126 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
128 if(my_obj) {
129 pthread_mutex_lock(&my_obj->cam_lock);
131 rc = mm_camera_is_op_supported(my_obj, opcode);
145 mm_camera_obj_t * my_obj = NULL;
148 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
152 if(my_obj) {
153 pthread_mutex_lock(&my_obj->cam_lock);
155 rc = mm_camera_is_parm_supported(my_obj, parm_type, support_set_parm, support_get_parm);
168 mm_camera_obj_t * my_obj = NULL;
171 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
173 if(my_obj) {
174 pthread_mutex_lock(&my_obj->cam_lock);
176 rc = mm_camera_set_parm(my_obj, parm_type, p_value);
189 mm_camera_obj_t * my_obj = NULL;
192 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
194 if(my_obj) {
195 pthread_mutex_lock(&my_obj->cam_lock);
197 rc = mm_camera_get_parm(my_obj, parm_type, p_value);
208 mm_camera_obj_t * my_obj = NULL;
219 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
221 if (my_obj){
222 my_obj->ref_count--;
224 if(my_obj->ref_count > 0) {
226 CDBG("%s: ref_count=%d\n", __func__, my_obj->ref_count);
233 pthread_mutex_lock(&my_obj->cam_lock);
236 mm_camera_close(my_obj);
238 pthread_mutex_destroy(&my_obj->cam_lock);
239 free(my_obj);
252 mm_camera_obj_t * my_obj = NULL;
256 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
258 if(my_obj) {
259 pthread_mutex_lock(&my_obj->cam_lock);
261 ch_id = mm_camera_add_channel(my_obj);
271 mm_camera_obj_t * my_obj = NULL;
275 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
277 if(my_obj) {
278 pthread_mutex_lock(&my_obj->cam_lock);
280 mm_camera_del_channel(my_obj, ch_id);
309 mm_camera_obj_t * my_obj = NULL;
313 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
315 if(my_obj) {
316 pthread_mutex_lock(&my_obj->cam_lock);
318 rc = mm_camera_register_event_notify(my_obj, evt_cb, user_data, evt_type);
329 mm_camera_obj_t * my_obj = NULL;
333 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
335 if(my_obj) {
336 pthread_mutex_lock(&my_obj->cam_lock);
338 sensor_info = mm_camera_query_2nd_sensor_info(my_obj);
351 mm_camera_obj_t * my_obj = NULL;
354 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
356 if(my_obj) {
357 pthread_mutex_lock(&my_obj->cam_lock);
359 rc = mm_camera_qbuf(my_obj, ch_id, buf);
374 mm_camera_obj_t * my_obj = NULL;
380 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
382 if(my_obj) {
383 pthread_mutex_lock(&my_obj->cam_lock);
385 stream_id = mm_camera_add_stream(my_obj, ch_id, buf_cb,
400 mm_camera_obj_t * my_obj = NULL;
406 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
408 if(my_obj) {
409 pthread_mutex_lock(&my_obj->cam_lock);
411 rc = mm_camera_del_stream(my_obj, ch_id, stream_id);
426 mm_camera_obj_t * my_obj = NULL;
432 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
436 if(my_obj) {
437 pthread_mutex_lock(&my_obj->cam_lock);
439 rc = mm_camera_config_stream(my_obj, ch_id, stream_id, config);
457 mm_camera_obj_t * my_obj = NULL;
469 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
471 if(my_obj) {
472 pthread_mutex_lock(&my_obj->cam_lock);
474 rc = mm_camera_bundle_streams(my_obj, ch_id,
489 mm_camera_obj_t * my_obj = NULL;
494 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
496 if(my_obj) {
497 pthread_mutex_lock(&my_obj->cam_lock);
499 rc = mm_camera_destroy_bundle(my_obj, ch_id);
514 mm_camera_obj_t * my_obj = NULL;
525 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
527 if(my_obj) {
528 pthread_mutex_lock(&my_obj->cam_lock);
530 rc = mm_camera_start_streams(my_obj, ch_id, num_streams, stream_ids);
545 mm_camera_obj_t * my_obj = NULL;
557 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
559 if(my_obj) {
560 pthread_mutex_lock(&my_obj->cam_lock);
562 rc = mm_camera_stop_streams(my_obj, ch_id,
578 mm_camera_obj_t * my_obj = NULL;
590 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
592 if(my_obj) {
593 pthread_mutex_lock(&my_obj->cam_lock);
595 rc = mm_camera_async_teardown_streams(my_obj, ch_id,
612 mm_camera_obj_t * my_obj = NULL;
615 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
617 if(my_obj) {
618 pthread_mutex_lock(&my_obj->cam_lock);
620 rc = mm_camera_request_super_buf(my_obj, ch_id, num_buf_requested);
633 mm_camera_obj_t * my_obj = NULL;
638 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
640 if(my_obj) {
641 pthread_mutex_lock(&my_obj->cam_lock);
643 rc = mm_camera_cancel_super_buf_request(my_obj, ch_id);
658 mm_camera_obj_t * my_obj = NULL;
663 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
665 if(my_obj) {
666 pthread_mutex_lock(&my_obj->cam_lock);
668 rc = mm_camera_start_focus(my_obj, ch_id, sensor_idx, focus_mode);
682 mm_camera_obj_t * my_obj = NULL;
685 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
687 if(my_obj) {
688 pthread_mutex_lock(&my_obj->cam_lock);
690 rc = mm_camera_abort_focus(my_obj, ch_id, sensor_idx);
704 mm_camera_obj_t * my_obj = NULL;
707 my_obj = mm_camera_util_get_camera_by_handler(camera_handler);
709 if(my_obj) {
710 pthread_mutex_lock(&my_obj->cam_lock);
712 rc = mm_camera_prepare_snapshot(my_obj, ch_id, sensor_idx);
728 mm_camera_obj_t * my_obj = NULL;
731 my_obj = mm_camera_util_get_camera_by_handler(camera_handle);
736 if(my_obj) {
737 pthread_mutex_lock(&my_obj->cam_lock);
739 rc = mm_camera_set_stream_parm(my_obj,ch_id,s_id,
757 mm_camera_obj_t * my_obj = NULL;
760 my_obj = mm_camera_util_get_camera_by_handler(camera_handle);
765 if(my_obj) {
766 pthread_mutex_lock(&my_obj->cam_lock);
768 rc = mm_camera_get_stream_parm(my_obj,ch_id,s_id,
785 mm_camera_obj_t *my_obj = NULL;
788 my_obj = mm_camera_util_get_camera_by_handler(camera_handle);
790 if (my_obj) {
791 rc = mm_camera_send_private_ioctl(my_obj, cmd_id, cmd_length, cmd);
805 mm_camera_obj_t *my_obj = NULL;
808 my_obj = mm_camera_util_get_camera_by_handler(camera_handle);
815 if (my_obj) {
816 pthread_mutex_lock(&my_obj->cam_lock);
828 rc = mm_camera_util_sendmsg(my_obj, &packet,
842 rc = mm_camera_util_sendmsg(my_obj, &packet,
848 rc = mm_camera_util_sendmsg(my_obj, cmd,
851 rc = mm_camera_send_native_ctrl_cmd(my_obj, cmd_id,
860 pthread_mutex_unlock(&my_obj->cam_lock);
895 mm_camera_obj_t * my_obj = NULL;
899 my_obj = mm_camera_util_get_camera_by_handler(camera_handle);
901 if(my_obj) {
902 pthread_mutex_lock(&my_obj->cam_lock);
904 rc = mm_camera_open_repro_isp(my_obj,
922 mm_camera_obj_t * my_obj = NULL;
925 my_obj = mm_camera_util_get_camera_by_handler(camera_handle);
927 if(my_obj) {
928 pthread_mutex_lock(&my_obj->cam_lock);
930 rc = mm_camera_config_repro_isp(my_obj,
948 mm_camera_obj_t * my_obj = NULL;
951 my_obj = mm_camera_util_get_camera_by_handler(camera_handle);
953 if(my_obj) {
954 pthread_mutex_lock(&my_obj->cam_lock);
956 rc = mm_camera_attach_stream_to_repro_isp(my_obj,
974 mm_camera_obj_t * my_obj = NULL;
977 my_obj = mm_camera_util_get_camera_by_handler(camera_handle);
979 if(my_obj) {
980 pthread_mutex_lock(&my_obj->cam_lock);
982 rc = mm_camera_start_repro_isp(my_obj,
1000 mm_camera_obj_t * my_obj = NULL;
1003 my_obj = mm_camera_util_get_camera_by_handler(camera_handle);
1005 if(my_obj) {
1006 pthread_mutex_lock(&my_obj->cam_lock);
1008 rc = mm_camera_reprocess(my_obj,
1026 mm_camera_obj_t * my_obj = NULL;
1029 my_obj = mm_camera_util_get_camera_by_handler(camera_handle);
1031 if(my_obj) {
1032 pthread_mutex_lock(&my_obj->cam_lock);
1034 rc = mm_camera_stop_repro_isp(my_obj,
1052 mm_camera_obj_t * my_obj = NULL;
1055 my_obj = mm_camera_util_get_camera_by_handler(camera_handle);
1057 if(my_obj) {
1058 pthread_mutex_lock(&my_obj->cam_lock);
1060 rc = mm_camera_detach_stream_from_repro_isp(my_obj,
1077 mm_camera_obj_t * my_obj = NULL;
1080 my_obj = mm_camera_util_get_camera_by_handler(camera_handle);
1082 if(my_obj) {
1083 pthread_mutex_lock(&my_obj->cam_lock);
1085 rc = mm_camera_close_repro_isp(my_obj,