Lines Matching defs:rc
117 int rc = NO_ERROR;
127 rc = hw->processAPI(QCAMERA_SM_EVT_SET_PREVIEW_WINDOW, (void *)window);
128 if (rc == NO_ERROR) {
130 rc = apiResult.status;
134 return rc;
176 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_SET_CALLBACKS, (void *)&payload);
177 if (rc == NO_ERROR) {
205 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_ENABLE_MSG_TYPE, (void *)&msg_type);
206 if (rc == NO_ERROR) {
234 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_DISABLE_MSG_TYPE, (void *)&msg_type);
235 if (rc == NO_ERROR) {
815 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_GET_PARAMS, NULL);
816 if (rc == NO_ERROR) {
1185 int rc = NO_ERROR;
1192 rc = openCamera();
1193 if (rc == NO_ERROR){
1202 ALOGI("[KPI Perf] %s: X PROFILE_OPEN_CAMERA camera id %d, rc: %d",
1203 __func__,mCameraId, rc);
1205 return rc;
1256 int32_t rc = m_postprocessor.init(jpegEvtHandle, this);
1257 if (rc != 0) {
1298 int rc = NO_ERROR;
1350 rc = mCameraHandle->ops->close_camera(mCameraHandle->camera_handle);
1352 ALOGI("[KPI Perf] %s: X PROFILE_CLOSE_CAMERA camera id %d, rc: %d",
1353 __func__, mCameraId, rc);
1355 return rc;
1376 int rc = NO_ERROR;
1381 rc = capabilityHeap->allocate(1, sizeof(cam_capability_t), NON_SECURE);
1382 if(rc != OK) {
1389 rc = cameraHandle->ops->map_buf(cameraHandle->camera_handle,
1393 if(rc < 0) {
1399 rc = cameraHandle->ops->query_capability(cameraHandle->camera_handle);
1400 if(rc < 0) {
1412 rc = NO_ERROR;
1421 return rc;
1441 int rc = NO_ERROR;
1449 return rc;
1683 int rc = NO_ERROR;
1768 rc = mem->allocate(bufferCnt, size, SECURE);
1770 rc = mem->allocate(bufferCnt, size, NON_SECURE);
1772 if (rc < 0) {
1799 int rc = NO_ERROR;
1802 rc = mem_obj->allocateMore(bufferCnt, size);
1805 return rc;
1822 int rc = NO_ERROR;
1851 rc = miscBuf->allocate(bufNum, bufSize, NON_SECURE);
1852 if (rc < 0) {
1876 int rc = NO_ERROR;
1886 rc = streamInfoBuf->allocate(1, sizeof(cam_stream_info_t), NON_SECURE);
1887 if (rc < 0) {
1896 rc = mParameters.getStreamFormat(stream_type, streamInfo->fmt);
1897 rc = mParameters.getStreamDimension(stream_type, streamInfo->dim);
1898 rc = mParameters.getStreamRotation(stream_type, streamInfo->pp_config, streamInfo->dim);
2038 int rc = NO_ERROR;
2087 rc = mem->allocate(1, size, NON_SECURE);
2088 if (rc < 0) {
2233 int32_t rc = NO_ERROR;
2237 rc = startChannel(QCAMERA_CH_TYPE_ZSL);
2239 rc = startChannel(QCAMERA_CH_TYPE_PREVIEW);
2252 return rc;
2257 int32_t rc = NO_ERROR;
2258 rc = mParameters.updateOisValue(1);
2319 int32_t rc = NO_ERROR;
2327 rc = preparePreview();
2328 if (rc == NO_ERROR) {
2329 rc = startChannel(QCAMERA_CH_TYPE_PREVIEW);
2333 if (rc == NO_ERROR) {
2334 rc = startChannel(QCAMERA_CH_TYPE_VIDEO);
2338 if (rc == NO_ERROR) {
2347 return rc;
2364 int rc = stopChannel(QCAMERA_CH_TYPE_VIDEO);
2374 return rc;
2391 int32_t rc = UNKNOWN_ERROR;
2396 rc = pChannel->releaseFrame(opaque, mStoreMetaDataInFrame > 0);
2398 return rc;
2414 int rc = NO_ERROR;
2423 rc = mCameraHandle->ops->do_auto_focus(mCameraHandle->camera_handle);
2430 rc = sendEvtNotify(CAMERA_MSG_FOCUS, true, 0);
2433 return rc;
2449 int rc = NO_ERROR;
2458 rc = mCameraHandle->ops->cancel_auto_focus(mCameraHandle->camera_handle);
2467 return rc;
2546 int32_t rc = NO_ERROR;
2557 rc = mParameters.setToneMapMode(true, true);
2558 if (rc != NO_ERROR) {
2562 rc = mParameters.stopAEBracket();
2564 rc = mParameters.resetFrameCapture(TRUE);
2566 rc = configureAFBracketing(false);
2568 rc = mParameters.setAndCommitZoom(mZoomLevel);
2576 rc = mParameters.setToneMapMode(true, true);
2577 if (rc != NO_ERROR) {
2586 rc = BAD_VALUE;
2590 return rc;
2607 int32_t rc = NO_ERROR;
2619 rc = configureAFBracketing();
2621 rc = configureOptiZoom();
2623 rc = mParameters.configFrameCapture(TRUE);
2625 rc = configureHDRBracketing();
2627 rc = mParameters.setToneMapMode(false, true);
2628 if (rc != NO_ERROR) {
2633 rc = mParameters.setToneMapMode(false, true);
2634 if (rc != NO_ERROR) {
2637 rc = configureAEBracketing();
2639 rc = configureStillMore();
2642 rc = BAD_VALUE;
2645 if (NO_ERROR == rc) {
2652 return rc;
2669 int32_t rc = NO_ERROR;
2691 rc = mParameters.commitAFBracket(afBracket);
2692 if ( NO_ERROR != rc ) {
2694 return rc;
2701 return rc;
2718 int32_t rc = NO_ERROR;
2760 rc = mParameters.setHDRAEBracket(aeBracket);
2761 if ( NO_ERROR != rc ) {
2763 return rc;
2766 return rc;
2783 int32_t rc = NO_ERROR;
2785 rc = mParameters.setAEBracketing();
2786 if ( NO_ERROR != rc ) {
2788 return rc;
2791 return rc;
2807 int32_t rc = NO_ERROR;
2818 return rc;
2834 int32_t rc = NO_ERROR;
2841 rc = mParameters.setToneMapMode(false, true);
2842 if (rc != NO_ERROR) {
2877 return rc;
2896 int32_t rc = NO_ERROR;
2899 rc = pChannel->stopAdvancedCapture(MM_CAMERA_AF_BRACKETING);
2901 rc = pChannel->stopAdvancedCapture(MM_CAMERA_FRAME_CAPTURE);
2904 rc = pChannel->stopAdvancedCapture(MM_CAMERA_AE_BRACKETING);
2906 rc = pChannel->stopAdvancedCapture(MM_CAMERA_ZOOM_1X);
2911 rc = BAD_VALUE;
2913 return rc;
2932 int32_t rc = NO_ERROR;
2935 rc = pChannel->startAdvancedCapture(MM_CAMERA_AF_BRACKETING);
2937 rc = pChannel->startAdvancedCapture(MM_CAMERA_ZOOM_1X);
2942 rc = pChannel->startAdvancedCapture(MM_CAMERA_AE_BRACKETING);
2945 rc = pChannel->startAdvancedCapture(MM_CAMERA_FRAME_CAPTURE, &config);
2948 rc = BAD_VALUE;
2950 return rc;
2966 int rc = NO_ERROR;
2986 rc = configureAdvancedCapture();
2987 if (rc == NO_ERROR) {
2999 rc = configureOnlineRotation(*pZSLChannel);
3000 if (rc != NO_ERROR) {
3002 return rc;
3020 rc = startAdvancedCapture(pZSLChannel);
3021 if (rc != NO_ERROR) {
3023 return rc;
3031 rc = pZSLChannel->takePicture(numSnapshots, numRetroSnapshots);
3032 if (rc != NO_ERROR) {
3036 return rc;
3051 rc = addCaptureChannel();
3058 if (NO_ERROR == rc) {
3059 rc = declareSnapshotStreams();
3060 if (NO_ERROR != rc) {
3062 return rc;
3085 rc = UNKNOWN_ERROR;
3097 rc = declareSnapshotStreams();
3098 if (NO_ERROR != rc) {
3099 return rc;
3102 rc = addCaptureChannel();
3105 if ((rc == NO_ERROR) &&
3109 rc = m_channels[QCAMERA_CH_TYPE_CAPTURE]->config();
3110 if (rc != NO_ERROR) {
3113 return rc;
3117 rc = configureOnlineRotation(
3119 if (rc != NO_ERROR) {
3122 return rc;
3134 rc = m_channels[QCAMERA_CH_TYPE_CAPTURE]->start();
3135 if (rc != NO_ERROR) {
3138 return rc;
3147 rc = startAdvancedCapture(pCapChannel);
3148 if (rc != NO_ERROR) {
3150 return rc;
3155 rc = longShot();
3156 if (NO_ERROR != rc) {
3158 return rc;
3164 return rc;
3171 rc = mParameters.updateRAW(gCamCaps[mCameraId]->raw_dim[0]);
3172 if (NO_ERROR != rc) {
3173 ALOGE("%s: Raw dimension update failed %d", __func__, rc);
3174 return rc;
3177 rc = declareSnapshotStreams();
3178 if (NO_ERROR != rc) {
3181 rc);
3182 return rc;
3185 rc = addRawChannel();
3186 if (rc == NO_ERROR) {
3188 rc = m_postprocessor.start(m_channels[QCAMERA_CH_TYPE_RAW]);
3189 if (rc != NO_ERROR) {
3192 return rc;
3195 rc = startChannel(QCAMERA_CH_TYPE_RAW);
3196 if (rc != NO_ERROR) {
3200 return rc;
3204 return rc;
3209 return rc;
3226 int rc = NO_ERROR;
3247 rc = mParameters.addOnlineRotation(mParameters.getJpegRotation(), streamId,
3249 if (rc != NO_ERROR) {
3250 ALOGE("%s: addOnlineRotation failed %d", __func__, rc);
3252 return rc;
3256 return rc;
3272 int rc = NO_ERROR;
3276 rc = mParameters.setStreamConfigure(true, mLongshotEnabled, false);
3277 if (rc != NO_ERROR) {
3278 ALOGE("%s: setStreamConfigure failed %d", __func__, rc);
3280 return rc;
3284 return rc;
3301 int32_t rc = NO_ERROR;
3312 rc = pChannel->takePicture(numSnapshots, 0);
3315 rc = NO_INIT;
3320 return rc;
3338 int rc = NO_ERROR;
3342 rc = stopChannel(QCAMERA_CH_TYPE_CAPTURE);
3343 if (destroy && (NO_ERROR == rc)) {
3345 rc = delChannel(QCAMERA_CH_TYPE_CAPTURE, false);
3349 return rc;
3415 int32_t rc = processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload);
3416 if (rc != NO_ERROR) {
3458 int rc = NO_ERROR;
3472 rc = hw->takeBackendPic_internal(&JpegMemOpt, &raw_format[0]);
3473 if (rc == NO_ERROR) {
3496 int rc = NO_ERROR;
3497 rc= pthread_create(&mLiveSnapshotThread, NULL, Live_Snapshot_thread, (void *) this);
3498 return rc;
3514 int rc = NO_ERROR;
3515 rc= pthread_create(&mIntPicThread, NULL, Int_Pic_thread, (void *) this);
3516 return rc;
3533 int rc = NO_ERROR;
3545 rc = pthread_cond_timedwait(&m_int_cond, &m_int_lock, &ts);
3546 if (ETIMEDOUT == rc || 0x0 == m_BackendFileName[0]) {
3561 rc = processAPI(QCAMERA_SM_EVT_SNAPSHOT_DONE, NULL);
3579 rc = mParameters.setIntEvent(params);
3602 int rc = NO_ERROR;
3612 rc = processAPI(QCAMERA_SM_EVT_PREPARE_SNAPSHOT, NULL);
3613 if (rc == NO_ERROR) {
3615 rc = apiResult.status;
3630 rc = processAPI(QCAMERA_SM_EVT_TAKE_PICTURE, NULL);
3631 if (rc == NO_ERROR) {
3633 rc = apiResult.status;
3646 rc = addRawChannel();
3647 if (rc == NO_ERROR) {
3649 rc = m_postprocessor.start(m_channels[QCAMERA_CH_TYPE_RAW]);
3650 if (rc != NO_ERROR) {
3653 return rc;
3656 rc = startChannel(QCAMERA_CH_TYPE_RAW);
3657 if (rc != NO_ERROR) {
3661 return rc;
3665 return rc;
3669 return rc;
3686 int rc = NO_ERROR;
3695 rc = processAPI(QCAMERA_SM_EVT_START_PREVIEW, NULL);
3723 int rc = NO_ERROR;
3735 rc = configureAdvancedCapture();
3736 if (rc != NO_ERROR) {
3742 rc = m_postprocessor.start(m_channels[QCAMERA_CH_TYPE_SNAPSHOT]);
3743 if (NO_ERROR != rc) {
3744 ALOGE("%s: Post-processor start failed %d", __func__, rc);
3751 rc = NO_INIT;
3756 rc = configureOnlineRotation(*m_channels[QCAMERA_CH_TYPE_SNAPSHOT]);
3757 if (rc != NO_ERROR) {
3760 return rc;
3764 if ((rc == NO_ERROR) && (NULL != pChannel)) {
3788 rc = pChannel->linkStream(pMetaChannel, pMetaStream);
3789 if (NO_ERROR != rc) {
3790 ALOGE("%s : Metadata stream link failed %d", __func__, rc);
3795 rc = pChannel->start();
3799 if (rc != NO_ERROR) {
3800 rc = processAPI(QCAMERA_SM_EVT_CANCEL_PICTURE, NULL);
3801 rc = sendEvtNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0);
3803 return rc;
3819 int rc = NO_ERROR;
3832 rc = stopChannel(QCAMERA_CH_TYPE_SNAPSHOT);
3834 return rc;
3924 int rc = NO_ERROR;
3967 rc = NO_INIT;
3987 rc = setHistogram(command == CAMERA_CMD_HISTOGRAM_ON? true : false);
3993 rc = setFaceDetection(command == CAMERA_CMD_START_FACE_DETECTION? true : false);
3999 rc = NO_ERROR;
4002 return rc;
4023 int rc = NO_ERROR;
4038 rc = imgBuf->allocate(1, config->input_buf_planes.plane_info.frame_len, NON_SECURE);
4039 if (rc < 0) {
4067 rc = pChannel->start();
4068 if (rc != NO_ERROR) {
4073 return rc;
4078 rc = pChannel->doReprocess(imgBuf->getFd(0), (size_t)bufSize, faceID);
4092 return rc;
4203 int rc = NO_ERROR;
4206 rc = processEvt(evt, evt_payload);
4207 if (rc == NO_ERROR) {
4212 rc = m_evtResult.status;
4216 return rc;
4557 int rc = NO_ERROR;
4561 rc = unconfigureAdvancedCapture();
4565 return rc;
4581 int rc = NO_ERROR;
4585 rc = mParameters.setAecLock("false");
4586 if (NO_ERROR != rc) {
4589 return rc;
4592 rc = mParameters.commitParameters();
4593 if (NO_ERROR != rc) {
4601 return rc;
4618 int rc = NO_ERROR;
4666 rc = m_cbNotifier.notifyCallback(cbArg);
4667 if (rc != NO_ERROR) {
4679 return rc;
4781 int32_t rc = m_cbNotifier.notifyCallback(cbArg);
4782 if (rc != NO_ERROR) {
4933 int32_t rc = NO_ERROR;
4976 rc = mParameters.updateRAW(max_dim);
4977 return rc;
4999 int32_t rc = NO_ERROR;
5023 rc = pChannel->addStream(*this,
5033 if ( !rc ) {
5048 rc = UNKNOWN_ERROR;
5055 rc = UNKNOWN_ERROR;
5062 rc = UNKNOWN_ERROR;
5067 rc = pChannel->addStream(*this,
5076 rc = pChannel->addStream(*this,
5086 if (rc != NO_ERROR) {
5088 __func__, streamType, rc);
5091 return rc;
5107 int32_t rc = NO_ERROR;
5124 rc = pChannel->init(NULL, NULL, NULL);
5125 if (rc != NO_ERROR) {
5126 ALOGE("%s: init preview channel failed, ret = %d", __func__, rc);
5127 return rc;
5131 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA,
5133 if (rc != NO_ERROR) {
5134 ALOGE("%s: add metadata stream failed, ret = %d", __func__, rc);
5135 return rc;
5139 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_ANALYSIS,
5141 if (rc != NO_ERROR) {
5142 ALOGE("%s: add Analysis stream failed, ret = %d", __func__, rc);
5143 return rc;
5149 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_RAW,
5153 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW,
5156 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW,
5161 if (rc != NO_ERROR) {
5162 ALOGE("%s: add preview stream failed, ret = %d", __func__, rc);
5164 return rc;
5168 return rc;
5184 int32_t rc = NO_ERROR;
5201 rc = pChannel->init(NULL, NULL, NULL);
5202 if (rc != 0) {
5203 ALOGE("%s: init video channel failed, ret = %d", __func__, rc);
5205 return rc;
5208 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_VIDEO,
5210 if (rc != NO_ERROR) {
5211 ALOGE("%s: add video stream failed, ret = %d", __func__, rc);
5213 return rc;
5217 return rc;
5235 int32_t rc = NO_ERROR;
5259 rc = pChannel->init(&attr, snapshot_channel_cb_routine, this);
5260 if (rc != NO_ERROR) {
5261 ALOGE("%s: init snapshot channel failed, ret = %d", __func__, rc);
5263 return rc;
5266 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_SNAPSHOT,
5268 if (rc != NO_ERROR) {
5269 ALOGE("%s: add snapshot stream failed, ret = %d", __func__, rc);
5271 return rc;
5275 return rc;
5291 int32_t rc = NO_ERROR;
5307 rc = pChannel->init(NULL, NULL, NULL);
5308 if (rc != NO_ERROR) {
5309 ALOGE("%s: init raw channel failed, ret = %d", __func__, rc);
5311 return rc;
5315 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA,
5317 if (rc != NO_ERROR) {
5318 ALOGE("%s: add metadata stream failed, ret = %d", __func__, rc);
5320 return rc;
5324 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_RAW,
5326 if (rc != NO_ERROR) {
5327 ALOGE("%s: add snapshot stream failed, ret = %d", __func__, rc);
5329 return rc;
5333 return rc;
5350 int32_t rc = NO_ERROR;
5380 rc = pChannel->init(&attr,
5383 if (rc != 0) {
5384 ALOGE("%s: init ZSL channel failed, ret = %d", __func__, rc);
5386 return rc;
5390 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA,
5392 if (rc != NO_ERROR) {
5393 ALOGE("%s: add metadata stream failed, ret = %d", __func__, rc);
5395 return rc;
5399 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW,
5402 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW,
5405 if (rc != NO_ERROR) {
5406 ALOGE("%s: add preview stream failed, ret = %d", __func__, rc);
5408 return rc;
5411 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_SNAPSHOT,
5413 if (rc != NO_ERROR) {
5414 ALOGE("%s: add snapshot stream failed, ret = %d", __func__, rc);
5416 return rc;
5420 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_ANALYSIS,
5422 if (rc != NO_ERROR) {
5423 ALOGE("%s: add Analysis stream failed, ret = %d", __func__, rc);
5425 return rc;
5432 rc = addStreamToChannel(pChannel,
5436 if (rc != NO_ERROR) {
5437 ALOGE("%s: add raw stream failed, ret = %d", __func__, rc);
5439 return rc;
5444 return rc;
5463 int32_t rc = NO_ERROR;
5492 rc = pChannel->init(&attr,
5495 if (rc != NO_ERROR) {
5496 ALOGE("%s: init capture channel failed, ret = %d", __func__, rc);
5497 return rc;
5501 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA,
5503 if (rc != NO_ERROR) {
5504 ALOGE("%s: add metadata stream failed, ret = %d", __func__, rc);
5505 return rc;
5509 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_POSTVIEW,
5512 if (rc != NO_ERROR) {
5513 ALOGE("%s: add postview stream failed, ret = %d", __func__, rc);
5514 return rc;
5517 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW,
5520 if (rc != NO_ERROR) {
5521 ALOGE("%s: add preview stream failed, ret = %d", __func__, rc);
5522 return rc;
5527 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_SNAPSHOT,
5529 if (rc != NO_ERROR) {
5530 ALOGE("%s: add snapshot stream failed, ret = %d", __func__, rc);
5531 return rc;
5538 rc = addStreamToChannel(pChannel,
5543 rc = addStreamToChannel(pChannel,
5548 if (rc != NO_ERROR) {
5549 ALOGE("%s: add raw stream failed, ret = %d", __func__, rc);
5550 return rc;
5555 return rc;
5571 int32_t rc = NO_ERROR;
5586 rc = pChannel->init(NULL,
5589 if (rc != NO_ERROR) {
5590 ALOGE("%s: init metadata channel failed, ret = %d", __func__, rc);
5592 return rc;
5595 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA,
5597 if (rc != NO_ERROR) {
5598 ALOGE("%s: add metadata stream failed, ret = %d", __func__, rc);
5600 return rc;
5604 return rc;
5620 int32_t rc = NO_ERROR;
5635 rc = pChannel->init(NULL, NULL, this);
5636 if (rc != NO_ERROR) {
5637 ALOGE("%s: init Analysis channel failed, ret = %d", __func__, rc);
5639 return rc;
5642 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_ANALYSIS,
5644 if (rc != NO_ERROR) {
5645 ALOGE("%s: add Analysis stream failed, ret = %d", __func__, rc);
5647 return rc;
5651 return rc;
5670 int32_t rc = NO_ERROR;
5826 return rc;
5843 int32_t rc = NO_ERROR;
5863 rc = pChannel->init(&attr,
5866 if (rc != NO_ERROR) {
5867 ALOGE("%s: init reprocess channel failed, ret = %d", __func__, rc);
5876 rc = getPPConfig(pp_config, mParameters.getCurPPCount());
5877 if (rc != NO_ERROR){
5928 rc = pChannel->addReprocStreamsFromSource(*this,
5937 if (rc != NO_ERROR) {
5965 int32_t rc = NO_ERROR;
5975 rc = pChannel->init(NULL, NULL, NULL);
5976 if (rc != NO_ERROR) {
5977 ALOGE("%s: init reprocess channel failed, ret = %d", __func__, rc);
6002 rc = pChannel->addStream(*this,
6007 if (rc != NO_ERROR) {
6008 ALOGE("%s: add reprocess stream failed, ret = %d", __func__, rc);
6032 int32_t rc = UNKNOWN_ERROR;
6035 rc = addZSLChannel();
6038 rc = addCaptureChannel();
6041 rc = addPreviewChannel();
6044 rc = addVideoChannel();
6047 rc = addSnapshotChannel();
6050 rc = addRawChannel();
6053 rc = addMetaDataChannel();
6056 rc = addAnalysisChannel();
6061 return rc;
6106 int32_t rc = UNKNOWN_ERROR;
6108 rc = m_channels[ch_type]->config();
6109 if (NO_ERROR == rc) {
6110 rc = m_channels[ch_type]->start();
6114 return rc;
6131 int32_t rc = UNKNOWN_ERROR;
6133 rc = m_channels[ch_type]->stop();
6136 return rc;
6153 int32_t rc = NO_ERROR;
6156 rc = mParameters.setStreamConfigure(false, false, false);
6157 if (rc != NO_ERROR) {
6158 ALOGE("%s: setStreamConfigure failed %d", __func__, rc);
6160 return rc;
6165 rc = addChannel(QCAMERA_CH_TYPE_ZSL);
6166 if (rc != NO_ERROR) {
6167 ALOGE("%s[%d]: failed!! rc = %d", __func__, __LINE__, rc);
6168 return rc;
6173 rc = addChannel(QCAMERA_CH_TYPE_SNAPSHOT);
6174 if (rc != NO_ERROR) {
6175 return rc;
6177 rc = addChannel(QCAMERA_CH_TYPE_VIDEO);
6178 if (rc != NO_ERROR) {
6180 ALOGE("%s[%d]:failed!! rc = %d", __func__, __LINE__, rc);
6181 return rc;
6185 rc = addChannel(QCAMERA_CH_TYPE_PREVIEW);
6186 if (!isRdiMode() && (rc != NO_ERROR)) {
6198 if (NO_ERROR != rc) {
6200 ALOGE("%s[%d]:failed!! rc = %d", __func__, __LINE__, rc);
6204 return rc;
6366 int32_t rc = m_cbNotifier.notifyCallback(cbArg);
6367 if (rc != NO_ERROR) {
6371 return rc;
6461 int32_t rc = m_cbNotifier.notifyCallback(cbArg);
6462 if (rc != NO_ERROR) {
6467 return rc;
6570 int32_t rc = m_cbNotifier.notifyCallback(cbArg);
6571 if (rc != NO_ERROR) {
6799 int rc = NO_ERROR;
6803 rc = mParameters.updateParameters(param, needRestart);
6813 return rc;
6831 int rc = NO_ERROR;
6833 rc = mParameters.commitParameters();
6834 if (rc == NO_ERROR) {
6836 rc = mParameters.setNumOfSnapshot();
6839 return rc;
7162 int32_t rc = NO_ERROR;
7168 rc = mParameters.getExifDateTime(dateTime, subSecTime);
7169 if(rc == NO_ERROR) {
7187 rc = mParameters.getExifFocalLength(&focalLength);
7188 if (rc == NO_ERROR) {
7207 rc = mParameters.getExifGpsProcessingMethod(gpsProcessingMethod, count);
7208 if(rc == NO_ERROR) {
7219 rc = mParameters.getExifLatitude(latitude, latRef);
7220 if(rc == NO_ERROR) {
7235 rc = mParameters.getExifLongitude(longitude, lonRef);
7236 if(rc == NO_ERROR) {
7252 rc = mParameters.getExifAltitude(&altitude, &altRef);
7253 if(rc == NO_ERROR) {
7269 rc = mParameters.getExifGpsDateTimeStamp(gpsDateStamp, 20, gpsTimeStamp);
7270 if(rc == NO_ERROR) {