Lines Matching refs:rc
132 int32_t rc = MM_CAMERA_OK; in mm_camera_ch_util_set_fmt() local
165 rc = -1; in mm_camera_ch_util_set_fmt()
171 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, stream1, in mm_camera_ch_util_set_fmt()
173 if(stream2 && !rc) in mm_camera_ch_util_set_fmt()
174 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, stream2, in mm_camera_ch_util_set_fmt()
176 return rc; in mm_camera_ch_util_set_fmt()
182 int32_t rc = MM_CAMERA_OK; in mm_camera_ch_util_acquire() local
189 rc = MM_CAMERA_OK; in mm_camera_ch_util_acquire()
220 if(stream1) rc = mm_camera_stream_fsm_fn_vtbl(my_obj, stream1, in mm_camera_ch_util_acquire()
222 if(stream2 && !rc) rc = mm_camera_stream_fsm_fn_vtbl(my_obj, stream2, in mm_camera_ch_util_acquire()
224 if(rc == MM_CAMERA_OK) { in mm_camera_ch_util_acquire()
229 return rc; in mm_camera_ch_util_acquire()
254 int32_t rc = 0; in mm_camera_ch_util_stream_null_val() local
257 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, &my_obj->ch[ch_type].raw.stream, in mm_camera_ch_util_stream_null_val()
261 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, &my_obj->ch[ch_type].preview.stream, in mm_camera_ch_util_stream_null_val()
265 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_stream_null_val()
268 if(!rc && my_obj->ch[ch_type].video.main.fd) in mm_camera_ch_util_stream_null_val()
269 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_stream_null_val()
275 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_stream_null_val()
278 if(!rc && !my_obj->full_liveshot) in mm_camera_ch_util_stream_null_val()
279 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_stream_null_val()
285 rc = -1; in mm_camera_ch_util_stream_null_val()
288 return rc; in mm_camera_ch_util_stream_null_val()
295 int32_t rc = 0; in mm_camera_ch_util_reg_buf() local
298 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_reg_buf()
303 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_reg_buf()
310 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_reg_buf()
313 if(!rc && my_obj->ch[ch_type].video.has_main) { in mm_camera_ch_util_reg_buf()
314 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_reg_buf()
323 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_reg_buf()
326 if(!rc && !my_obj->full_liveshot) { in mm_camera_ch_util_reg_buf()
327 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_reg_buf()
337 return rc; in mm_camera_ch_util_reg_buf()
344 int rc = -MM_CAMERA_E_NOT_SUPPORTED; in mm_camera_ch_util_attr() local
357 rc = MM_CAMERA_OK; in mm_camera_ch_util_attr()
397 int32_t rc = -1; in mm_camera_ch_util_qbuf() local
407 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_qbuf()
413 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_qbuf()
422 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_qbuf()
429 if(!rc && val->video.main.frame) { in mm_camera_ch_util_qbuf()
430 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_qbuf()
439 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_qbuf()
445 if(!rc) { in mm_camera_ch_util_qbuf()
450 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_qbuf()
489 return rc; in mm_camera_ch_util_qbuf()
497 int rc = MM_CAMERA_OK; in mm_camera_ch_util_get_crop() local
500 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_get_crop()
505 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_get_crop()
510 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_get_crop()
516 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_get_crop()
519 if(!rc && !my_obj->full_liveshot) { in mm_camera_ch_util_get_crop()
521 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, in mm_camera_ch_util_get_crop()
531 return rc; in mm_camera_ch_util_get_crop()
597 int mcnt, i, rc = MM_CAMERA_E_GENERAL, scnt; in mm_camera_dispatch_buffered_frames() local
621 rc = mm_camera_channel_skip_frames(my_obj, mq, sq, stream1, stream2, &ch->buffering_frame); in mm_camera_dispatch_buffered_frames()
622 if(rc != MM_CAMERA_OK) { in mm_camera_dispatch_buffered_frames()
657 rc = -1; in mm_camera_dispatch_buffered_frames()
680 if((rc == MM_CAMERA_OK) && (!ch->snapshot.pending_cnt)) { in mm_camera_dispatch_buffered_frames()
693 int32_t rc = MM_CAMERA_OK; in mm_camera_ch_fn() local
698 rc = mm_camera_ch_util_acquire(my_obj, ch_type); in mm_camera_ch_fn()
703 rc = mm_camera_ch_util_release(my_obj, ch_type, evt); in mm_camera_ch_fn()
706 rc = mm_camera_ch_util_attr(my_obj, ch_type, in mm_camera_ch_fn()
710 rc = mm_camera_ch_util_reg_buf_cb(my_obj, ch_type, in mm_camera_ch_fn()
714 rc = mm_camera_ch_util_set_fmt(my_obj, ch_type, in mm_camera_ch_fn()
720 rc = mm_camera_ch_util_reg_buf(my_obj, ch_type, evt, val); in mm_camera_ch_fn()
723 rc = mm_camera_ch_util_stream_null_val(my_obj, ch_type, evt, NULL); in mm_camera_ch_fn()
728 if( MM_CAMERA_OK != (rc = mm_camera_util_s_ctrl(my_obj->ctrl_fd, in mm_camera_ch_fn()
730 CDBG("%s:set MM_CAMERA_RAW_STREAMING_CAPTURE_SINGLE err=%d\n", __func__, rc); in mm_camera_ch_fn()
735 rc = mm_camera_ch_util_stream_null_val(my_obj, ch_type, evt, NULL); in mm_camera_ch_fn()
736 if(rc < 0) { in mm_camera_ch_fn()
744 rc = mm_camera_ch_util_stream_null_val(my_obj, ch_type, evt, NULL); in mm_camera_ch_fn()
748 rc = mm_camera_ch_util_qbuf(my_obj, ch_type, evt, in mm_camera_ch_fn()
752 rc = mm_camera_ch_util_get_crop(my_obj, ch_type, evt, in mm_camera_ch_fn()
756 rc = mm_camera_ch_util_dispatch_buffered_frame(my_obj, ch_type); in mm_camera_ch_fn()
761 return rc; in mm_camera_ch_fn()