Lines Matching refs:pChannel
4088 QCameraChannel *pChannel = m_channels[QCAMERA_CH_TYPE_SNAPSHOT]; in startRecording() local
4110 rc = pChannel->linkStream(pMetaChannel, pMetaStream); in startRecording()
4117 rc = pChannel->start(); in startRecording()
4181 QCameraVideoChannel *pChannel = in releaseRecordingFrame() local
4185 if(pChannel != NULL) { in releaseRecordingFrame()
4186 rc = pChannel->releaseFrame(opaque, mStoreMetaDataInFrame > 0); in releaseRecordingFrame()
4782 QCameraPicChannel *pChannel) in stopAdvancedCapture() argument
4788 rc = pChannel->stopAdvancedCapture(MM_CAMERA_AF_BRACKETING); in stopAdvancedCapture()
4793 rc = pChannel->stopAdvancedCapture(MM_CAMERA_FRAME_CAPTURE); in stopAdvancedCapture()
4798 rc = pChannel->stopAdvancedCapture(MM_CAMERA_AE_BRACKETING); in stopAdvancedCapture()
4800 rc = pChannel->stopAdvancedCapture(MM_CAMERA_ZOOM_1X); in stopAdvancedCapture()
4825 QCameraPicChannel *pChannel) in startAdvancedCapture() argument
4831 rc = pChannel->startAdvancedCapture(MM_CAMERA_AF_BRACKETING); in startAdvancedCapture()
4833 rc = pChannel->startAdvancedCapture(MM_CAMERA_ZOOM_1X); in startAdvancedCapture()
4838 rc = pChannel->startAdvancedCapture(MM_CAMERA_AE_BRACKETING); in startAdvancedCapture()
4844 rc = pChannel->startAdvancedCapture(MM_CAMERA_FRAME_CAPTURE, &config); in startAdvancedCapture()
4960 QCameraChannel *pChannel = m_channels[QCAMERA_CH_TYPE_ZSL]; in takePicture() local
4961 QCameraPicChannel *pPicChannel = (QCameraPicChannel *)pChannel; in takePicture()
4998 uint8_t numStreams = pChannel->getNumOfStreams(); in takePicture()
5002 pStream = pChannel->getStreamByIndex(i); in takePicture()
5352 QCameraPicChannel *pChannel = NULL; in longShot() local
5355 pChannel = (QCameraPicChannel *)m_channels[QCAMERA_CH_TYPE_ZSL]; in longShot()
5357 pChannel = (QCameraPicChannel *)m_channels[QCAMERA_CH_TYPE_CAPTURE]; in longShot()
5360 if (NULL != pChannel) { in longShot()
5365 rc = pChannel->takePicture(&buf); in longShot()
5813 QCameraChannel *pChannel = NULL; in takeLiveSnapshot_internal() local
5830 pChannel = m_channels[QCAMERA_CH_TYPE_VIDEO]; in takeLiveSnapshot_internal()
5832 pChannel = m_channels[QCAMERA_CH_TYPE_SNAPSHOT]; in takeLiveSnapshot_internal()
5835 if (NULL == pChannel) { in takeLiveSnapshot_internal()
5883 args.pprocArgs = pChannel; in takeLiveSnapshot_internal()
5914 rc = ((QCameraVideoChannel*)pChannel)->takePicture(&buf); in takeLiveSnapshot_internal()
5934 if ((NULL != pChannel) && (mParameters.isTNRSnapshotEnabled())) { in takeLiveSnapshot_internal()
5936 for (uint32_t i = 0 ; i < pChannel->getNumOfStreams(); i++ ) { in takeLiveSnapshot_internal()
5937 pStream = pChannel->getStreamByIndex(i); in takeLiveSnapshot_internal()
5958 if ((rc == NO_ERROR) && (NULL != pChannel)) { in takeLiveSnapshot_internal()
5991 rc = pChannel->linkStream(pMetaChannel, pMetaStream); in takeLiveSnapshot_internal()
5997 rc = pChannel->linkStream(pMetaChannel, pPreviewStream); in takeLiveSnapshot_internal()
6003 rc = pChannel->start(); in takeLiveSnapshot_internal()
6068 QCameraChannel *pChannel = m_channels[QCAMERA_CH_TYPE_SNAPSHOT]; in cancelLiveSnapshot_internal() local
6069 if (NULL != pChannel) { in cancelLiveSnapshot_internal()
6071 for (uint32_t i = 0 ; i < pChannel->getNumOfStreams(); i++ ) { in cancelLiveSnapshot_internal()
6072 pStream = pChannel->getStreamByIndex(i); in cancelLiveSnapshot_internal()
6149 QCameraChannel *pChannel = NULL; in sendCommand() local
6151 pChannel = m_channels[QCAMERA_CH_TYPE_ZSL]; in sendCommand()
6152 if (NULL != pChannel) { in sendCommand()
6154 for (uint32_t i = 0; i < pChannel->getNumOfStreams(); i++) { in sendCommand()
6155 pStream = pChannel->getStreamByIndex(i); in sendCommand()
6280 QCameraReprocessChannel *pChannel = in registerFaceImage() local
6283 if (pChannel == NULL) { in registerFaceImage()
6290 rc = pChannel->start(); in registerFaceImage()
6295 delete pChannel; in registerFaceImage()
6301 rc = pChannel->doReprocess(imgBuf->getFd(0), imgBuf->getPtr(0), in registerFaceImage()
6312 pChannel->stop(); in registerFaceImage()
6313 delete pChannel; in registerFaceImage()
6314 pChannel = NULL; in registerFaceImage()
7394 QCameraChannel *pChannel; in prepareRawStream() local
7401 pChannel = m_channels[j]; in prepareRawStream()
7402 for (uint8_t i = 0; i < pChannel->getNumOfStreams(); i++) { in prepareRawStream()
7403 QCameraStream *pStream = pChannel->getStreamByIndex(i); in prepareRawStream()
7507 int32_t QCamera2HardwareInterface::addStreamToChannel(QCameraChannel *pChannel, in addStreamToChannel() argument
7518 prepareRawStream(pChannel); in addStreamToChannel()
7548 rc = pChannel->addStream(*this, in addStreamToChannel()
7568 rc = pChannel->addStream(*this, in addStreamToChannel()
7595 QCameraChannel *pChannel = NULL; in addPreviewChannel() local
7607 pChannel = new QCameraChannel(handle, mCameraHandle->ops); in addPreviewChannel()
7608 if (NULL == pChannel) { in addPreviewChannel()
7614 rc = pChannel->init(NULL, NULL, NULL); in addPreviewChannel()
7617 delete pChannel; in addPreviewChannel()
7622 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA, in addPreviewChannel()
7626 delete pChannel; in addPreviewChannel()
7631 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_RAW, in addPreviewChannel()
7635 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW, in addPreviewChannel()
7638 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW, in addPreviewChannel()
7641 pChannel->setStreamSyncCB(CAM_STREAM_TYPE_PREVIEW, in addPreviewChannel()
7649 delete pChannel; in addPreviewChannel()
7657 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_ANALYSIS, in addPreviewChannel()
7661 delete pChannel; in addPreviewChannel()
7669 rc = addStreamToChannel(pChannel,CAM_STREAM_TYPE_RAW, in addPreviewChannel()
7673 delete pChannel; in addPreviewChannel()
7680 delete pChannel; in addPreviewChannel()
7684 m_channels[QCAMERA_CH_TYPE_PREVIEW] = pChannel; in addPreviewChannel()
7702 QCameraVideoChannel *pChannel = NULL; in addVideoChannel() local
7711 pChannel = new QCameraVideoChannel(handle, mCameraHandle->ops); in addVideoChannel()
7712 if (NULL == pChannel) { in addVideoChannel()
7725 rc = pChannel->init(&attr, snapshot_channel_cb_routine, this); in addVideoChannel()
7728 rc = pChannel->init(NULL, NULL, NULL); in addVideoChannel()
7733 delete pChannel; in addVideoChannel()
7737 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_VIDEO, in addVideoChannel()
7742 delete pChannel; in addVideoChannel()
7746 m_channels[QCAMERA_CH_TYPE_VIDEO] = pChannel; in addVideoChannel()
7766 QCameraChannel *pChannel = NULL; in addSnapshotChannel() local
7775 pChannel = new QCameraChannel(handle, mCameraHandle->ops); in addSnapshotChannel()
7776 if (NULL == pChannel) { in addSnapshotChannel()
7789 rc = pChannel->init(&attr, snapshot_channel_cb_routine, this); in addSnapshotChannel()
7792 delete pChannel; in addSnapshotChannel()
7796 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_SNAPSHOT, in addSnapshotChannel()
7800 delete pChannel; in addSnapshotChannel()
7804 m_channels[QCAMERA_CH_TYPE_SNAPSHOT] = pChannel; in addSnapshotChannel()
7822 QCameraChannel *pChannel = NULL; in addRawChannel() local
7831 pChannel = new QCameraChannel(handle, mCameraHandle->ops); in addRawChannel()
7832 if (NULL == pChannel) { in addRawChannel()
7845 rc = pChannel->init(&attr, raw_channel_cb_routine, this); in addRawChannel()
7848 delete pChannel; in addRawChannel()
7852 rc = pChannel->init(NULL, NULL, NULL); in addRawChannel()
7855 delete pChannel; in addRawChannel()
7862 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA, in addRawChannel()
7866 delete pChannel; in addRawChannel()
7872 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_RAW, in addRawChannel()
7875 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_RAW, in addRawChannel()
7878 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_RAW, in addRawChannel()
7883 delete pChannel; in addRawChannel()
7886 m_channels[QCAMERA_CH_TYPE_RAW] = pChannel; in addRawChannel()
7905 QCameraPicChannel *pChannel = NULL; in addZSLChannel() local
7916 pChannel = new QCameraPicChannel(handle, in addZSLChannel()
7918 if (NULL == pChannel) { in addZSLChannel()
7948 rc = pChannel->init(&attr, in addZSLChannel()
7953 delete pChannel; in addZSLChannel()
7958 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA, in addZSLChannel()
7962 delete pChannel; in addZSLChannel()
7967 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW, in addZSLChannel()
7970 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW, in addZSLChannel()
7973 pChannel->setStreamSyncCB(CAM_STREAM_TYPE_PREVIEW, in addZSLChannel()
7979 delete pChannel; in addZSLChannel()
7983 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_SNAPSHOT, in addZSLChannel()
7987 delete pChannel; in addZSLChannel()
7992 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_ANALYSIS, in addZSLChannel()
7996 delete pChannel; in addZSLChannel()
8004 rc = addStreamToChannel(pChannel, in addZSLChannel()
8010 delete pChannel; in addZSLChannel()
8015 m_channels[QCAMERA_CH_TYPE_ZSL] = pChannel; in addZSLChannel()
8036 QCameraPicChannel *pChannel = NULL; in addCaptureChannel() local
8046 pChannel = new QCameraPicChannel(handle, mCameraHandle->ops); in addCaptureChannel()
8047 if (NULL == pChannel) { in addCaptureChannel()
8064 rc = pChannel->init(&attr, in addCaptureChannel()
8069 delete pChannel; in addCaptureChannel()
8074 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA, in addCaptureChannel()
8078 delete pChannel; in addCaptureChannel()
8083 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW, in addCaptureChannel()
8087 delete pChannel; in addCaptureChannel()
8091 pChannel->setStreamSyncCB(CAM_STREAM_TYPE_PREVIEW, in addCaptureChannel()
8096 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_POSTVIEW, in addCaptureChannel()
8100 delete pChannel; in addCaptureChannel()
8106 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_SNAPSHOT, in addCaptureChannel()
8110 delete pChannel; in addCaptureChannel()
8124 rc = addStreamToChannel(pChannel, in addCaptureChannel()
8128 delete pChannel; in addCaptureChannel()
8133 m_channels[QCAMERA_CH_TYPE_CAPTURE] = pChannel; in addCaptureChannel()
8151 QCameraChannel *pChannel = NULL; in addMetaDataChannel() local
8159 pChannel = new QCameraChannel(handle, mCameraHandle->ops); in addMetaDataChannel()
8160 if (NULL == pChannel) { in addMetaDataChannel()
8165 rc = pChannel->init(NULL, in addMetaDataChannel()
8170 delete pChannel; in addMetaDataChannel()
8174 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA, in addMetaDataChannel()
8178 delete pChannel; in addMetaDataChannel()
8182 m_channels[QCAMERA_CH_TYPE_METADATA] = pChannel; in addMetaDataChannel()
8200 QCameraChannel *pChannel = NULL; in addCallbackChannel() local
8208 pChannel = new QCameraChannel(handle, mCameraHandle->ops); in addCallbackChannel()
8209 if (NULL == pChannel) { in addCallbackChannel()
8214 rc = pChannel->init(NULL, NULL, this); in addCallbackChannel()
8218 delete pChannel; in addCallbackChannel()
8222 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_CALLBACK, in addCallbackChannel()
8226 delete pChannel; in addCallbackChannel()
8230 m_channels[QCAMERA_CH_TYPE_CALLBACK] = pChannel; in addCallbackChannel()
8249 QCameraChannel *pChannel = NULL; in addAnalysisChannel() local
8257 pChannel = new QCameraChannel(handle, mCameraHandle->ops); in addAnalysisChannel()
8258 if (NULL == pChannel) { in addAnalysisChannel()
8263 rc = pChannel->init(NULL, NULL, this); in addAnalysisChannel()
8266 delete pChannel; in addAnalysisChannel()
8270 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_ANALYSIS, in addAnalysisChannel()
8274 delete pChannel; in addAnalysisChannel()
8278 m_channels[QCAMERA_CH_TYPE_ANALYSIS] = pChannel; in addAnalysisChannel()
8538 QCameraReprocessChannel *pChannel = NULL; in addReprocChannel() local
8547 pChannel = new QCameraReprocessChannel(pHandle, mCameraHandle->ops); in addReprocChannel()
8548 if (NULL == pChannel) { in addReprocChannel()
8558 rc = pChannel->init(&attr, in addReprocChannel()
8563 delete pChannel; in addReprocChannel()
8575 delete pChannel; in addReprocChannel()
8605 pChannel->setReprocCount(2); in addReprocChannel()
8607 pChannel->setReprocCount(1); in addReprocChannel()
8610 pChannel->setReprocCount(1); in addReprocChannel()
8644 rc = pChannel->addReprocStreamsFromSource(*this, in addReprocChannel()
8654 delete pChannel; in addReprocChannel()
8658 return pChannel; in addReprocChannel()
8682 QCameraReprocessChannel *pChannel = NULL; in addOfflineReprocChannel() local
8684 pChannel = new QCameraReprocessChannel(mCameraHandle->camera_handle, in addOfflineReprocChannel()
8686 if (NULL == pChannel) { in addOfflineReprocChannel()
8691 rc = pChannel->init(NULL, NULL, NULL); in addOfflineReprocChannel()
8694 delete pChannel; in addOfflineReprocChannel()
8701 delete pChannel; in addOfflineReprocChannel()
8719 rc = pChannel->addStream(*this, in addOfflineReprocChannel()
8726 delete pChannel; in addOfflineReprocChannel()
8730 return pChannel; in addOfflineReprocChannel()
10475 QCameraChannel * pChannel = dw->args.allocArgs.ch; in deferredWorkRoutine() local
10477 if ( NULL == pChannel ) { in deferredWorkRoutine()
10487 uint32_t iNumOfStreams = pChannel->getNumOfStreams(); in deferredWorkRoutine()
10490 pStream = pChannel->getStreamByIndex(i); in deferredWorkRoutine()
10519 QCameraChannel * pChannel = dw->args.pprocArgs; in deferredWorkRoutine() local
10520 assert(pChannel); in deferredWorkRoutine()
10522 if (pme->m_postprocessor.start(pChannel) != NO_ERROR) { in deferredWorkRoutine()
10561 QCameraChannel * pChannel = dw->args.pprocArgs; in deferredWorkRoutine() local
10562 assert(pChannel); in deferredWorkRoutine()
10571 if (pme->m_postprocessor.createJpegSession(pChannel) in deferredWorkRoutine()
11278 QCameraChannel *pChannel = m_channels[QCAMERA_CH_TYPE_RAW]; in startRAWChannel() local
11279 if ((NULL != pChannel) && (mParameters.getofflineRAW())) { in startRAWChannel()
11296 rc = pChannel->linkStream(pMetaChannel, pMetaStream); in startRAWChannel()
11302 rc = pChannel->start(); in startRAWChannel()