Lines Matching refs:pme
47 extern int mm_stream_alloc_bufs(mm_camera_app_obj_t *pme,
51 extern int mm_stream_release_bufs(mm_camera_app_obj_t *pme,
54 extern int mm_stream_invalid_cache(mm_camera_app_obj_t *pme,
128 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
131 fmt->fmt = pme->dim.prev_format;
132 fmt->width = pme->dim.display_width;
133 fmt->height = pme->dim.display_height;
140 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
152 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
164 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
177 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
219 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
221 if (pme->cam_mode == CAMERA_MODE) {
230 pme->cam->ops->set_parm(pme->cam->camera_handle,MM_CAMERA_PARM_RECORDING_HINT, &value);
237 pme->cam_mode = CAMERA_MODE;
247 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
249 if (pme->cam_mode == CAMERA_MODE) {
258 pme->cam->ops->set_parm(pme->cam->camera_handle,MM_CAMERA_PARM_RECORDING_HINT, &value);
265 pme->cam_mode = CAMERA_MODE;
275 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
277 if (pme->cam_mode == ZSL_MODE) {
286 pme->cam->ops->set_parm(pme->cam->camera_handle,MM_CAMERA_PARM_RECORDING_HINT, &value);
292 pme->cam_mode = ZSL_MODE;
304 mm_camera_app_obj_t *pme = (mm_camera_app_obj_t *)user_data;
306 rc = my_cam_app.hal_lib.mm_camera_do_munmap_ion (pme->ionfd, &(pme->preview_buf.frame[i].fd_data),
307 (void *)pme->preview_buf.frame[i].buffer, bufs[i].frame_len);
313 close(pme->ionfd);
329 mm_camera_app_obj_t *pme = (mm_camera_app_obj_t *)user_data;
344 pme->preview_buf.reg[i] = 1;
347 pme->preview_buf.frame_len = frame_len;
348 pme->preview_buf.frame[i].ion_alloc.len = pme->preview_buf.frame_len;
349 pme->preview_buf.frame[i].ion_alloc.flags =
351 pme->preview_buf.frame[i].ion_alloc.align = 4096;
353 pmem_addr = (unsigned long) my_cam_app.hal_lib.mm_camera_do_mmap_ion(pme->ionfd,
354 &(pme->preview_buf.frame[i].ion_alloc), &(pme->preview_buf.frame[i].fd_data),
355 &pme->preview_buf.frame[i].fd);
357 pme->preview_buf.frame[i].buffer = pmem_addr;
358 pme->preview_buf.frame[i].path = OUTPUT_TYPE_P;
359 pme->preview_buf.frame[i].y_off = 0;
360 pme->preview_buf.frame[i].cbcr_off = planes[0];
361 pme->preview_buf.frame[i].phy_offset = 0;
363 CDBG("Buffer allocated Successfully fd = %d",pme->preview_buf.frame[i].fd);
365 bufs[i].fd = pme->preview_buf.frame[i].fd;
367 bufs[i].frame_len = pme->preview_buf.frame[i].ion_alloc.len;
370 bufs[i].frame = &pme->preview_buf.frame[i];
400 mm_camera_app_obj_t *pme = (mm_camera_app_obj_t *)user_data;
410 if (pme->stream[i].id == stream_id) {
411 app_bufs = &pme->stream [i].app_bufs;
423 rc = mm_stream_alloc_bufs(pme,
454 mm_camera_app_obj_t *pme = (mm_camera_app_obj_t *)user_data;
459 if (pme->stream[i].id == stream_id) {
518 mm_camera_app_obj_t *pme = (mm_camera_app_obj_t *)user_data;
522 if (pme->stream[i].id == stream_id) {
523 app_bufs = &pme->stream [i].app_bufs;
533 rc = mm_stream_release_bufs(pme, app_bufs);
550 mm_camera_app_obj_t *pme = (mm_camera_app_obj_t *)user_data;
554 if (pme->stream[i].id == stream_id) {
596 void preview_cb_signal(mm_camera_app_obj_t *pme)
598 if (pme->cam_state == CAMERA_STATE_PREVIEW && pme->cam_mode == CAMERA_MODE) {
603 void previewzsl_cb_signal(mm_camera_app_obj_t *pme)
605 if (pme->cam_state == CAMERA_STATE_PREVIEW && pme->cam_mode == ZSL_MODE) {
617 mm_camera_app_obj_t *pme = NULL;
620 pme = (mm_camera_app_obj_t *)user_data;
624 snprintf(buf, sizeof(buf), "P_%dx%d_C%d", pme->dim.display_width,
625 pme->dim.display_height, pme->cam->camera_info->camera_id);
627 dumpFrameToFile(frame, pme->dim.display_width,
628 pme->dim.display_height, buf, 1,"yuv");
639 if (MM_CAMERA_OK != pme->cam->ops->qbuf(pme->cam->camera_handle,pme->ch_id,frame)) {
643 mm_stream_invalid_cache(pme,frame);
645 preview_cb_signal(pme);
656 mm_camera_app_obj_t *pme = NULL;
659 pme = (mm_camera_app_obj_t *)user_data;
667 if (MM_CAMERA_OK != pme->cam->ops->qbuf(pme->cam->camera_handle,pme->ch_id,frame)) {
671 mm_stream_invalid_cache(pme,frame);
680 mm_camera_app_obj_t *pme = NULL;
683 pme = (mm_camera_app_obj_t *)user_data;
691 if (MM_CAMERA_OK != pme->cam->ops->qbuf(pme->cam->camera_handle,pme->ch_id,frame)) {
695 mm_stream_invalid_cache(pme,frame);
704 mm_camera_app_obj_t *pme = NULL;
707 pme = (mm_camera_app_obj_t *)user_data;
715 if (MM_CAMERA_OK != pme->cam->ops->qbuf(pme->cam->camera_handle,pme->ch_id,frame)) {
719 mm_stream_invalid_cache(pme,frame);
728 mm_camera_app_obj_t *pme = NULL;
731 pme = (mm_camera_app_obj_t *)user_data;
739 if (MM_CAMERA_OK != pme->cam->ops->qbuf(pme->cam->camera_handle,pme->ch_id,frame)) {
743 mm_stream_invalid_cache(pme,frame);
755 mm_camera_app_obj_t *pme = NULL;
758 pme = (mm_camera_app_obj_t *)user_data;
765 //dumpFrameToFile(preview_frame->frame,pme->dim.display_width,pme->dim.display_height,"preview", 1);
766 dumpFrameToFile(preview_frame,pme->dim.display_width,pme->dim.display_height,"zsl_preview", 1,"yuv");
776 //dumpFrameToFile(main_frame->frame,pme->dim.picture_width,pme->dim.picture_height,"main", 1);
777 //dumpFrameToFile(thumb_frame->frame,pme->dim.thumbnail_width,pme->dim.thumbnail_height,"thumb", 1);
779 dumpFrameToFile(main_frame,pme->dim.picture_width,pme->dim.picture_height,"zsl_main", 1,"yuv");
780 dumpFrameToFile(thumb_frame,pme->dim.thumbnail_width,pme->dim.thumbnail_height,"zsl_thumb", 1,"yuv");
782 if (MM_CAMERA_OK != pme->cam->ops->qbuf(pme->cam->camera_handle,pme->ch_id,main_frame)) {
785 mm_stream_invalid_cache(pme,main_frame);
788 if (MM_CAMERA_OK != pme->cam->ops->qbuf(pme->cam->camera_handle,pme->ch_id,preview_frame)) {
791 mm_stream_invalid_cache(pme,preview_frame);
793 previewzsl_cb_signal(pme);
804 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
806 pme->mem_cam->get_buf = mm_stream_initbuf;
807 pme->mem_cam->put_buf = mm_stream_deinitbuf;
808 pme->mem_cam->user_data = pme;
810 pme->stream[MM_CAMERA_SAEC].id =
811 pme->cam->ops->add_stream(pme->cam->camera_handle, pme->ch_id,
812 mm_app_aec_stats_notify_cb, pme,
814 if (!pme->stream[MM_CAMERA_SAEC].id) {
820 CDBG_ERROR("%s :Add stream is successful stream ID = %d",__func__,pme->stream[MM_CAMERA_SAEC].id);
822 mm_app_set_aec_stats_fmt(cam_id,&pme->stream[MM_CAMERA_SAEC].str_config.fmt);
823 pme->stream[MM_CAMERA_SAEC].str_config.need_stream_on = 1;
824 pme->stream[MM_CAMERA_SAEC].str_config.num_of_bufs = STATS_BUF_NUM;
826 if (MM_CAMERA_OK != (rc = pme->cam->ops->config_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_SAEC].id,
827 &pme->stream[MM_CAMERA_SAEC].str_config))) {
832 pme->stream[MM_CAMERA_SAWB].id =
833 pme->cam->ops->add_stream(pme->cam->camera_handle, pme->ch_id,
834 mm_app_awb_stats_notify_cb, pme,
836 if (!pme->stream[MM_CAMERA_SAWB].id) {
842 CDBG_ERROR("%s :Add stream is successful stream ID = %d",__func__,pme->stream[MM_CAMERA_SAWB].id);
844 mm_app_set_awb_stats_fmt(cam_id,&pme->stream[MM_CAMERA_SAWB].str_config.fmt);
845 pme->stream[MM_CAMERA_SAWB].str_config.need_stream_on = 1;
846 pme->stream[MM_CAMERA_SAWB].str_config.num_of_bufs = STATS_BUF_NUM;
848 if (MM_CAMERA_OK != (rc = pme->cam->ops->config_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_SAWB].id,
849 &pme->stream[MM_CAMERA_SAWB].str_config))) {
855 pme->stream[MM_CAMERA_SAFC].id =
856 pme->cam->ops->add_stream(pme->cam->camera_handle, pme->ch_id,
857 mm_app_af_stats_notify_cb, pme,
859 if (!pme->stream[MM_CAMERA_SAFC].id) {
865 CDBG_ERROR("%s :Add stream is successful stream ID = %d",__func__,pme->stream[MM_CAMERA_SAFC].id);
867 mm_app_set_af_stats_fmt(cam_id,&pme->stream[MM_CAMERA_SAFC].str_config.fmt);
868 pme->stream[MM_CAMERA_SAFC].str_config.need_stream_on = 1;
869 pme->stream[MM_CAMERA_SAFC].str_config.num_of_bufs = STATS_BUF_NUM;
871 if (MM_CAMERA_OK != (rc = pme->cam->ops->config_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_SAFC].id,
872 &pme->stream[MM_CAMERA_SAFC].str_config))) {
878 pme->stream[MM_CAMERA_IHST].id =
879 pme->cam->ops->add_stream(pme->cam->camera_handle, pme->ch_id,
880 mm_app_ihist_stats_notify_cb, pme,
882 if (!pme->stream[MM_CAMERA_IHST].id) {
888 CDBG_ERROR("%s :Add stream is successful stream ID = %d",__func__,pme->stream[MM_CAMERA_IHST].id);
890 mm_app_set_ihist_stats_fmt(cam_id,&pme->stream[MM_CAMERA_IHST].str_config.fmt);
891 pme->stream[MM_CAMERA_IHST].str_config.need_stream_on = 1;
892 pme->stream[MM_CAMERA_IHST].str_config.num_of_bufs = STATS_BUF_NUM;
894 if (MM_CAMERA_OK != (rc = pme->cam->ops->config_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_IHST].id,
895 &pme->stream[MM_CAMERA_IHST].str_config))) {
910 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
912 pme->mem_cam->get_buf = mm_stream_initbuf;
913 pme->mem_cam->put_buf = mm_stream_deinitbuf;
914 pme->mem_cam->user_data = pme;
917 if (MM_CAMERA_OK != (rc = pme->cam->ops->set_parm(
918 pme->cam->camera_handle,MM_CAMERA_PARM_OP_MODE, &op_mode))) {
923 pme->stream[MM_CAMERA_PREVIEW].id = pme->cam->ops->add_stream(pme->cam->camera_handle,pme->ch_id,
924 mm_app_preview_notify_cb,pme,
927 if (!pme->stream[MM_CAMERA_PREVIEW].id) {
933 CDBG("%s :Add stream is successfull stream ID = %d",__func__,pme->stream[MM_CAMERA_PREVIEW].id);
935 mm_app_set_preview_fmt(cam_id,&pme->stream[MM_CAMERA_PREVIEW].str_config.fmt);
936 pme->stream[MM_CAMERA_PREVIEW].str_config.need_stream_on = 1;
937 pme->stream[MM_CAMERA_PREVIEW].str_config.num_of_bufs = PREVIEW_BUF_NUM;
939 if (MM_CAMERA_OK != (rc = pme->cam->ops->config_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_PREVIEW].id,
940 &pme->stream[MM_CAMERA_PREVIEW].str_config))) {
958 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
961 stream_aec[0] = pme->stream[MM_CAMERA_SAEC].id;
964 if (MM_CAMERA_OK != (rc = pme->cam->ops->start_streams(pme->cam->camera_handle,pme->ch_id,1,stream_aec))) {
968 stream_awb[0] = pme->stream[MM_CAMERA_SAWB].id;
971 if (MM_CAMERA_OK != (rc = pme->cam->ops->start_streams(pme->cam->camera_handle,pme->ch_id,1,stream_awb))) {
976 stream_af[0] = pme->stream[MM_CAMERA_SAFC].id;
979 if (MM_CAMERA_OK != (rc = pme->cam->ops->start_streams(pme->cam->camera_handle,pme->ch_id,1,stream_af))) {
984 stream_ihist[0] = pme->stream[MM_CAMERA_IHST].id;
987 if (MM_CAMERA_OK != (rc = pme->cam->ops->start_streams(pme->cam->camera_handle,pme->ch_id,1,stream_ihist))) {
1002 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1005 stream = pme->stream[MM_CAMERA_PREVIEW].id;
1007 pme->cam->ops->get_stream_parm(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_PREVIEW].id,MM_CAMERA_STREAM_OFFSET,&frame_offset_info);
1009 if (MM_CAMERA_OK != (rc = pme->cam->ops->start_streams(pme->cam->camera_handle,pme->ch_id,1,&stream))) {
1013 pme->cam_state = CAMERA_STATE_PREVIEW;
1025 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1029 if (MM_CAMERA_OK != (rc = pme->cam->ops->set_parm(
1030 pme->cam->camera_handle,MM_CAMERA_PARM_OP_MODE, &op_mode))) {
1035 pme->stream[MM_CAMERA_PREVIEW].id = pme->cam->ops->add_stream(pme->cam->camera_handle,pme->ch_id,
1036 mm_app_preview_notify_cb,pme,
1039 if (!pme->stream[MM_CAMERA_PREVIEW].id) {
1044 CDBG("%s :Add stream is successfull stream ID = %d",__func__,pme->stream[MM_CAMERA_PREVIEW].id);
1046 mm_app_set_preview_fmt(cam_id,&pme->stream[MM_CAMERA_PREVIEW].str_config.fmt);
1047 pme->stream[MM_CAMERA_PREVIEW].str_config.need_stream_on = 1;
1048 pme->stream[MM_CAMERA_PREVIEW].str_config.num_of_bufs = PREVIEW_BUF_NUM;
1050 if (MM_CAMERA_OK != (rc = pme->cam->ops->config_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_PREVIEW].id,
1051 &pme->stream[MM_CAMERA_PREVIEW].str_config))) {
1056 pme->stream[MM_CAMERA_SNAPSHOT_MAIN].id = pme->cam->ops->add_stream(pme->cam->camera_handle,pme->ch_id,
1057 NULL,pme,
1060 CDBG("Add Snapshot main is successfull stream ID = %d",pme->stream[MM_CAMERA_SNAPSHOT_MAIN].id);
1061 if (!pme->stream[MM_CAMERA_SNAPSHOT_MAIN].id) {
1067 pme->stream[MM_CAMERA_SNAPSHOT_MAIN].str_config.need_stream_on = 1;
1068 pme->stream[MM_CAMERA_SNAPSHOT_MAIN].str_config.num_of_bufs = 7;
1070 mm_app_set_snapshot_fmt(cam_id,&pme->stream[MM_CAMERA_SNAPSHOT_MAIN].str_config.fmt);
1073 if (MM_CAMERA_OK != (rc = pme->cam->ops->config_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_SNAPSHOT_MAIN].id,
1074 &pme->stream[MM_CAMERA_SNAPSHOT_MAIN].str_config))) {
1089 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1092 stream[0] = pme->stream[MM_CAMERA_PREVIEW].id;
1093 stream[1] = pme->stream[MM_CAMERA_SNAPSHOT_MAIN].id;
1101 if (MM_CAMERA_OK != (rc = pme->cam->ops->init_stream_bundle(
1102 pme->cam->camera_handle,pme->ch_id,mm_app_zsl_notify_cb,pme,&attr,2,stream))) {
1108 if (MM_CAMERA_OK != (rc = pme->cam->ops->start_streams(pme->cam->camera_handle,pme->ch_id,
1114 pme->cam_state = CAMERA_STATE_PREVIEW;
1145 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1148 CDBG("pme = %p, pme->cam =%p, pme->cam->camera_handle = %d",
1149 pme,pme->cam,pme->cam->camera_handle);
1151 if (pme->cam_state == CAMERA_STATE_PREVIEW) {
1180 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1183 CDBG("pme = %p, pme->cam =%p, pme->cam->camera_handle = %d",
1184 pme,pme->cam,pme->cam->camera_handle);
1186 if (pme->cam_state == CAMERA_STATE_PREVIEW) {
1226 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1228 CDBG("pme = %p, pme->cam =%p, pme->cam->camera_handle = %d",
1229 pme,pme->cam,pme->cam->camera_handle);
1238 pme->mem_cam->get_buf = mm_stream_initbuf;
1239 pme->mem_cam->put_buf = mm_stream_deinitbuf;
1240 pme->mem_cam->user_data = pme;
1267 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1269 stream_aec[0] = pme->stream[MM_CAMERA_SAEC].id;
1272 if (MM_CAMERA_OK != (rc = pme->cam->ops->stop_streams(pme->cam->camera_handle,pme->ch_id,1,stream_aec))) {
1277 if (MM_CAMERA_OK != (rc = pme->cam->ops->del_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_SAEC].id))) {
1282 stream_awb[0] = pme->stream[MM_CAMERA_SAWB].id;
1285 if (MM_CAMERA_OK != (rc = pme->cam->ops->stop_streams(pme->cam->camera_handle,pme->ch_id,1,stream_awb))) {
1290 if (MM_CAMERA_OK != (rc = pme->cam->ops->del_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_SAWB].id))) {
1296 stream_af[0] = pme->stream[MM_CAMERA_SAFC].id;
1299 if (MM_CAMERA_OK != (rc = pme->cam->ops->stop_streams(pme->cam->camera_handle,pme->ch_id,1, stream_af))) {
1304 if (MM_CAMERA_OK != (rc = pme->cam->ops->del_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_SAFC].id))) {
1311 stream_ihist[0] = pme->stream[MM_CAMERA_IHST].id;
1314 if (MM_CAMERA_OK != (rc = pme->cam->ops->stop_streams(pme->cam->camera_handle,pme->ch_id,1,stream_ihist))) {
1319 if (MM_CAMERA_OK != (rc = pme->cam->ops->del_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_IHST].id))) {
1336 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1338 stream = pme->stream[MM_CAMERA_PREVIEW].id;
1340 if (MM_CAMERA_OK != (rc = pme->cam->ops->stop_streams(pme->cam->camera_handle,pme->ch_id,1,&stream))) {
1345 if (MM_CAMERA_OK != (rc = pme->cam->ops->del_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_PREVIEW].id))) {
1350 pme->cam_state = CAMERA_STATE_OPEN;
1362 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1364 stream[0] = pme->stream[MM_CAMERA_PREVIEW].id;
1365 stream[1] = pme->stream[MM_CAMERA_SNAPSHOT_MAIN].id;
1367 if (MM_CAMERA_OK != (rc = pme->cam->ops->stop_streams(pme->cam->camera_handle,pme->ch_id,2,stream))) {
1372 if (MM_CAMERA_OK != (rc = pme->cam->ops->destroy_stream_bundle(pme->cam->camera_handle,pme->ch_id))) {
1377 if (MM_CAMERA_OK != (rc = pme->cam->ops->del_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_PREVIEW].id))) {
1382 if (MM_CAMERA_OK != (rc = pme->cam->ops->del_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_SNAPSHOT_MAIN].id))) {
1387 pme->cam_state = CAMERA_STATE_OPEN;
1398 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1402 if (pme->cam_mode == ZSL_MODE || pme->cam_mode == RECORDER_MODE) {
1403 switch (pme->cam_state) {
1419 } else if (pme->cam_mode == CAMERA_MODE && pme->cam_state == CAMERA_STATE_OPEN) {
1433 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1435 CDBG("%s : pme->cam_mode = %d, pme->cam_state = %d",__func__,pme->cam_mode,pme->cam_state);
1437 if (pme->cam_mode == CAMERA_MODE && pme->cam_state == CAMERA_STATE_PREVIEW) {
1442 } else if (pme->cam_mode == ZSL_MODE && pme->cam_state == CAMERA_STATE_PREVIEW) {
1447 } else if (pme->cam_mode == RECORDER_MODE && pme->cam_state == CAMERA_STATE_PREVIEW) {
1462 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1466 if (pme->cam_mode == ZSL_MODE || pme->cam_mode == RECORDER_MODE) {
1467 switch (pme->cam_state) {
1483 } else if (pme->cam_mode == CAMERA_MODE && pme->cam_state == CAMERA_STATE_OPEN) {
1497 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1499 CDBG("%s : pme->cam_mode = %d, pme->cam_state = %d",__func__,pme->cam_mode,pme->cam_state);
1501 if (pme->cam_mode == CAMERA_MODE && pme->cam_state == CAMERA_STATE_PREVIEW) {
1506 } else if (pme->cam_mode == ZSL_MODE && pme->cam_state == CAMERA_STATE_PREVIEW) {
1511 } else if (pme->cam_mode == RECORDER_MODE && pme->cam_state == CAMERA_STATE_PREVIEW) {
1526 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1546 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1570 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);