Lines Matching refs:gMuxer
53 QCameraMuxer *gMuxer = NULL; variable
57 if (!gMuxer) { \
63 if (!gMuxer) { \
108 if (!gMuxer) { in getCameraMuxer()
109 gMuxer = new QCameraMuxer(num_of_cameras); in getCameraMuxer()
112 *pMuxer = gMuxer; in getCameraMuxer()
113 LOGH("gMuxer: %p ", gMuxer); in getCameraMuxer()
202 return gMuxer->getNumberOfCameras(); in get_number_of_cameras()
224 if ((camera_id < 0) || (camera_id >= gMuxer->getNumberOfCameras())) { in get_camera_info()
229 rc = gMuxer->getCameraInfo(camera_id, info, &type); in get_camera_info()
280 rc = gMuxer->cameraDeviceOpen(atoi(id), hw_device); in camera_device_open()
311 rc = gMuxer->cameraDeviceOpen(atoi(id), hw_device); in open_legacy()
335 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in set_preview_window()
339 pCam = gMuxer->getPhysicalCamera(cam, i); in set_preview_window()
383 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in set_callBacks()
388 pCam = gMuxer->getPhysicalCamera(cam, i); in set_callBacks()
404 rc = gMuxer->setMainJpegCallbackCookie((void*)(pCam)); in set_callBacks()
411 rc = gMuxer->setDataCallback(data_cb); in set_callBacks()
416 rc = gMuxer->setMemoryCallback(get_memory); in set_callBacks()
422 rc = gMuxer->setMpoCallbackCookie(user); in set_callBacks()
447 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in enable_msg_type()
451 pCam = gMuxer->getPhysicalCamera(cam, i); in enable_msg_type()
476 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in disable_msg_type()
480 pCam = gMuxer->getPhysicalCamera(cam, i); in disable_msg_type()
505 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in msg_type_enabled()
509 pCam = gMuxer->getPhysicalCamera(cam, i); in msg_type_enabled()
541 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in start_preview()
546 pCam = gMuxer->getPhysicalCamera(cam, i); in start_preview()
563 pCam = gMuxer->getPhysicalCamera(cam, i); in start_preview()
606 pCam = gMuxer->getPhysicalCamera(cam, i); in start_preview()
636 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in stop_preview()
640 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_preview()
650 gMuxer->m_MainJpegQ.flush(); in stop_preview()
651 gMuxer->m_AuxJpegQ.flush(); in stop_preview()
670 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in preview_enabled()
674 pCam = gMuxer->getPhysicalCamera(cam, i); in preview_enabled()
707 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in store_meta_data_in_buffers()
711 pCam = gMuxer->getPhysicalCamera(cam, i); in store_meta_data_in_buffers()
746 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in start_recording()
754 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
769 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
784 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
799 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
810 gMuxer->m_bRecordingHintInternallySet = TRUE; in start_recording()
815 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
830 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
866 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in stop_recording()
870 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
885 if (gMuxer->m_bRecordingHintInternallySet) { in stop_recording()
888 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
903 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
914 gMuxer->m_bRecordingHintInternallySet = FALSE; in stop_recording()
919 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
950 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in recording_enabled()
954 pCam = gMuxer->getPhysicalCamera(cam, i); in recording_enabled()
985 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in release_recording_frame()
989 pCam = gMuxer->getPhysicalCamera(cam, i); in release_recording_frame()
1021 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in auto_focus()
1025 pCam = gMuxer->getPhysicalCamera(cam, i); in auto_focus()
1062 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in cancel_auto_focus()
1066 pCam = gMuxer->getPhysicalCamera(cam, i); in cancel_auto_focus()
1104 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in take_picture()
1109 gMuxer->m_bMpoEnabled = atoi(prop); in take_picture()
1112 gMuxer->getActiveNumOfPhyCam(cam, numOfAcitvePhyCam); in take_picture()
1113 if (gMuxer->m_bMpoEnabled && numOfAcitvePhyCam <= 1) { in take_picture()
1114 gMuxer->m_bMpoEnabled = 0; in take_picture()
1116 LOGH("dualCamera MPO Enabled:%d ", gMuxer->m_bMpoEnabled); in take_picture()
1118 if (!gMuxer->mJpegClientHandle) { in take_picture()
1120 pCam = gMuxer->getPhysicalCamera(cam, 0); in take_picture()
1126 rc = hwi->getJpegHandleInfo(&gMuxer->mJpegOps, &gMuxer->mJpegMpoOps, in take_picture()
1127 &gMuxer->mJpegClientHandle); in take_picture()
1134 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1140 rc = hwi->setJpegHandleInfo(&gMuxer->mJpegOps, &gMuxer->mJpegMpoOps, in take_picture()
1141 gMuxer->mJpegClientHandle); in take_picture()
1151 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1165 rc = hwi->setMpoComposition(gMuxer->m_bMpoEnabled); in take_picture()
1168 gMuxer->m_bMpoEnabled = 0; in take_picture()
1174 gMuxer->m_MainJpegQ.init(); in take_picture()
1175 gMuxer->m_AuxJpegQ.init(); in take_picture()
1176 gMuxer->m_ComposeMpoTh.sendCmd( in take_picture()
1184 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1191 if ( (gMuxer->m_bMpoEnabled == 1) || (pCam->mode == CAM_MODE_PRIMARY) ) { in take_picture()
1202 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1217 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1232 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1247 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1268 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1275 if ( (gMuxer->m_bMpoEnabled == 1) || (pCam->mode == CAM_MODE_PRIMARY) ) { in take_picture()
1305 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in cancel_picture()
1309 pCam = gMuxer->getPhysicalCamera(cam, i); in cancel_picture()
1321 gMuxer->m_ComposeMpoTh.sendCmd(CAMERA_CMD_TYPE_STOP_DATA_PROC, FALSE, FALSE); in cancel_picture()
1323 gMuxer->m_MainJpegQ.flush(); in cancel_picture()
1324 gMuxer->m_AuxJpegQ.flush(); in cancel_picture()
1351 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in set_parameters()
1356 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1373 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1389 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1405 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1438 if (!gMuxer) in get_parameters()
1443 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in get_parameters()
1450 pCam = gMuxer->getPhysicalCamera(cam, i); in get_parameters()
1487 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in put_parameters()
1491 pCam = gMuxer->getPhysicalCamera(cam, i); in put_parameters()
1527 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in send_command()
1531 pCam = gMuxer->getPhysicalCamera(cam, i); in send_command()
1548 pCam = gMuxer->getPhysicalCamera(cam, i); in send_command()
1563 gMuxer->m_ComposeMpoTh.sendCmd(CAMERA_CMD_TYPE_STOP_DATA_PROC, in send_command()
1566 gMuxer->m_MainJpegQ.flush(); in send_command()
1567 gMuxer->m_AuxJpegQ.flush(); in send_command()
1595 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in release()
1599 pCam = gMuxer->getPhysicalCamera(cam, i); in release()
1629 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in dump()
1633 pCam = gMuxer->getPhysicalCamera(cam, i); in dump()
1668 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(cam_dev); in close_camera_device()
1677 pCam = gMuxer->getPhysicalCamera(cam, i); in close_camera_device()
1720 pCam = gMuxer->getPhysicalCamera(cam, i); in close_camera_device()
1735 gMuxer->setJpegHandle(0); in close_camera_device()
2263 pCam = (qcamera_physical_descriptor_t*)(gMuxer->getMainJpegCallbackCookie()); in sendEvtNotify()
2293 gMuxer->sendEvtNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0); in composeMpo()
2303 gMuxer->sendEvtNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0); in composeMpo()
2382 gMuxer->sendEvtNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0); in composeMpo()
2514 if (!gMuxer) { in composeMpoRoutine()
2522 QCameraCmdThread *cmdThread = &gMuxer->m_ComposeMpoTh; in composeMpoRoutine()
2562 while (!gMuxer->m_MainJpegQ.isEmpty() && in composeMpoRoutine()
2563 !gMuxer->m_AuxJpegQ.isEmpty()) { in composeMpoRoutine()
2565 gMuxer->m_MainJpegQ.dequeue(); in composeMpoRoutine()
2575 (cam_compose_jpeg_info_t *) gMuxer-> in composeMpoRoutine()
2586 gMuxer->composeMpo(main_jpeg_node, in composeMpoRoutine()
2660 int rc = gMuxer->storeJpeg(((qcamera_physical_descriptor_t*)(user))->type, in jpeg_data_callback()
2664 gMuxer->sendEvtNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0); in jpeg_data_callback()
2667 gMuxer->sendEvtNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0); in jpeg_data_callback()