Lines Matching refs:gMuxer

52 QCameraMuxer *gMuxer = NULL;  variable
56 if (!gMuxer) { \
62 if (!gMuxer) { \
107 if (!gMuxer) { in getCameraMuxer()
108 gMuxer = new QCameraMuxer(num_of_cameras); in getCameraMuxer()
111 *pMuxer = gMuxer; in getCameraMuxer()
112 LOGH("gMuxer: %p ", gMuxer); in getCameraMuxer()
201 return gMuxer->getNumberOfCameras(); in get_number_of_cameras()
223 if ((camera_id < 0) || (camera_id >= gMuxer->getNumberOfCameras())) { in get_camera_info()
228 rc = gMuxer->getCameraInfo(camera_id, info, &type); in get_camera_info()
279 rc = gMuxer->cameraDeviceOpen(atoi(id), hw_device); in camera_device_open()
310 rc = gMuxer->cameraDeviceOpen(atoi(id), hw_device); in open_legacy()
334 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in set_preview_window()
338 pCam = gMuxer->getPhysicalCamera(cam, i); in set_preview_window()
382 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in set_callBacks()
387 pCam = gMuxer->getPhysicalCamera(cam, i); in set_callBacks()
403 rc = gMuxer->setMainJpegCallbackCookie((void*)(pCam)); in set_callBacks()
410 rc = gMuxer->setDataCallback(data_cb); in set_callBacks()
415 rc = gMuxer->setMemoryCallback(get_memory); in set_callBacks()
421 rc = gMuxer->setMpoCallbackCookie(user); in set_callBacks()
446 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in enable_msg_type()
450 pCam = gMuxer->getPhysicalCamera(cam, i); in enable_msg_type()
475 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in disable_msg_type()
479 pCam = gMuxer->getPhysicalCamera(cam, i); in disable_msg_type()
504 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in msg_type_enabled()
508 pCam = gMuxer->getPhysicalCamera(cam, i); in msg_type_enabled()
540 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in start_preview()
545 pCam = gMuxer->getPhysicalCamera(cam, i); in start_preview()
562 pCam = gMuxer->getPhysicalCamera(cam, i); in start_preview()
605 pCam = gMuxer->getPhysicalCamera(cam, i); in start_preview()
635 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in stop_preview()
639 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_preview()
649 gMuxer->m_MainJpegQ.flush(); in stop_preview()
650 gMuxer->m_AuxJpegQ.flush(); in stop_preview()
669 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in preview_enabled()
673 pCam = gMuxer->getPhysicalCamera(cam, i); in preview_enabled()
706 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in store_meta_data_in_buffers()
710 pCam = gMuxer->getPhysicalCamera(cam, i); in store_meta_data_in_buffers()
745 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in start_recording()
753 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
768 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
783 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
798 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
809 gMuxer->m_bRecordingHintInternallySet = TRUE; in start_recording()
814 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
829 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
865 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in stop_recording()
869 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
884 if (gMuxer->m_bRecordingHintInternallySet) { in stop_recording()
887 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
902 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
913 gMuxer->m_bRecordingHintInternallySet = FALSE; in stop_recording()
918 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
949 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in recording_enabled()
953 pCam = gMuxer->getPhysicalCamera(cam, i); in recording_enabled()
984 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in release_recording_frame()
988 pCam = gMuxer->getPhysicalCamera(cam, i); in release_recording_frame()
1020 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in auto_focus()
1024 pCam = gMuxer->getPhysicalCamera(cam, i); in auto_focus()
1061 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in cancel_auto_focus()
1065 pCam = gMuxer->getPhysicalCamera(cam, i); in cancel_auto_focus()
1103 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in take_picture()
1108 gMuxer->m_bMpoEnabled = atoi(prop); in take_picture()
1111 gMuxer->getActiveNumOfPhyCam(cam, numOfAcitvePhyCam); in take_picture()
1112 if (gMuxer->m_bMpoEnabled && numOfAcitvePhyCam <= 1) { in take_picture()
1113 gMuxer->m_bMpoEnabled = 0; in take_picture()
1115 LOGH("dualCamera MPO Enabled:%d ", gMuxer->m_bMpoEnabled); in take_picture()
1117 if (!gMuxer->mJpegClientHandle) { in take_picture()
1119 pCam = gMuxer->getPhysicalCamera(cam, 0); in take_picture()
1125 rc = hwi->getJpegHandleInfo(&gMuxer->mJpegOps, &gMuxer->mJpegMpoOps, in take_picture()
1126 &gMuxer->mJpegClientHandle); in take_picture()
1133 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1139 rc = hwi->setJpegHandleInfo(&gMuxer->mJpegOps, &gMuxer->mJpegMpoOps, in take_picture()
1140 gMuxer->mJpegClientHandle); in take_picture()
1150 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1164 rc = hwi->setMpoComposition(gMuxer->m_bMpoEnabled); in take_picture()
1167 gMuxer->m_bMpoEnabled = 0; in take_picture()
1173 gMuxer->m_MainJpegQ.init(); in take_picture()
1174 gMuxer->m_AuxJpegQ.init(); in take_picture()
1175 gMuxer->m_ComposeMpoTh.sendCmd( in take_picture()
1183 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1190 if ( (gMuxer->m_bMpoEnabled == 1) || (pCam->mode == CAM_MODE_PRIMARY) ) { in take_picture()
1201 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1216 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1231 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1246 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1267 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1274 if ( (gMuxer->m_bMpoEnabled == 1) || (pCam->mode == CAM_MODE_PRIMARY) ) { in take_picture()
1304 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in cancel_picture()
1308 pCam = gMuxer->getPhysicalCamera(cam, i); in cancel_picture()
1320 gMuxer->m_ComposeMpoTh.sendCmd(CAMERA_CMD_TYPE_STOP_DATA_PROC, FALSE, FALSE); in cancel_picture()
1322 gMuxer->m_MainJpegQ.flush(); in cancel_picture()
1323 gMuxer->m_AuxJpegQ.flush(); in cancel_picture()
1350 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in set_parameters()
1355 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1372 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1388 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1404 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1437 if (!gMuxer) in get_parameters()
1442 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in get_parameters()
1449 pCam = gMuxer->getPhysicalCamera(cam, i); in get_parameters()
1486 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in put_parameters()
1490 pCam = gMuxer->getPhysicalCamera(cam, i); in put_parameters()
1526 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in send_command()
1530 pCam = gMuxer->getPhysicalCamera(cam, i); in send_command()
1547 pCam = gMuxer->getPhysicalCamera(cam, i); in send_command()
1562 gMuxer->m_ComposeMpoTh.sendCmd(CAMERA_CMD_TYPE_STOP_DATA_PROC, in send_command()
1565 gMuxer->m_MainJpegQ.flush(); in send_command()
1566 gMuxer->m_AuxJpegQ.flush(); in send_command()
1594 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in release()
1598 pCam = gMuxer->getPhysicalCamera(cam, i); in release()
1628 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in dump()
1632 pCam = gMuxer->getPhysicalCamera(cam, i); in dump()
1667 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(cam_dev); in close_camera_device()
1676 pCam = gMuxer->getPhysicalCamera(cam, i); in close_camera_device()
1719 pCam = gMuxer->getPhysicalCamera(cam, i); in close_camera_device()
1734 gMuxer->setJpegHandle(0); in close_camera_device()
2260 pCam = (qcamera_physical_descriptor_t*)(gMuxer->getMainJpegCallbackCookie()); in sendEvtNotify()
2290 gMuxer->sendEvtNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0); in composeMpo()
2300 gMuxer->sendEvtNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0); in composeMpo()
2379 gMuxer->sendEvtNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0); in composeMpo()
2511 if (!gMuxer) { in composeMpoRoutine()
2519 QCameraCmdThread *cmdThread = &gMuxer->m_ComposeMpoTh; in composeMpoRoutine()
2559 while (!gMuxer->m_MainJpegQ.isEmpty() && in composeMpoRoutine()
2560 !gMuxer->m_AuxJpegQ.isEmpty()) { in composeMpoRoutine()
2562 gMuxer->m_MainJpegQ.dequeue(); in composeMpoRoutine()
2572 (cam_compose_jpeg_info_t *) gMuxer-> in composeMpoRoutine()
2583 gMuxer->composeMpo(main_jpeg_node, in composeMpoRoutine()
2657 int rc = gMuxer->storeJpeg(((qcamera_physical_descriptor_t*)(user))->type, in jpeg_data_callback()
2661 gMuxer->sendEvtNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0); in jpeg_data_callback()
2664 gMuxer->sendEvtNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0); in jpeg_data_callback()