Home | History | Annotate | Download | only in HAL

Lines Matching refs:rc

99     int rc = NO_ERROR;
108 rc = hw->processAPI(QCAMERA_SM_EVT_SET_PREVIEW_WINDOW, (void *)window);
109 if (rc == NO_ERROR) {
111 rc = hw->m_apiResult.status;
115 return rc;
155 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_SET_CALLBACKS, (void *)&payload);
156 if (rc == NO_ERROR) {
182 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_ENABLE_MSG_TYPE, (void *)msg_type);
183 if (rc == NO_ERROR) {
209 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_DISABLE_MSG_TYPE, (void *)msg_type);
210 if (rc == NO_ERROR) {
701 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_GET_PARAMS, NULL);
702 if (rc == NO_ERROR) {
995 int rc = NO_ERROR;
1001 rc = openCamera();
1002 if (rc == NO_ERROR)
1006 return rc;
1036 int32_t rc = m_postprocessor.init(jpegEvtHandle, this);
1037 if (rc != 0) {
1057 rc = m_thermalAdapter.init(this);
1058 if (rc != 0) {
1080 int rc = NO_ERROR;
1101 rc = mCameraHandle->ops->close_camera(mCameraHandle->camera_handle);
1105 return rc;
1124 int rc = NO_ERROR;
1131 rc = UNKNOWN_ERROR;
1137 rc = capabilityHeap->allocate(1, sizeof(cam_capability_t));
1138 if(rc != OK) {
1145 rc = cameraHandle->ops->map_buf(cameraHandle->camera_handle,
1149 if(rc < 0) {
1155 rc = cameraHandle->ops->query_capability(cameraHandle->camera_handle);
1156 if(rc < 0) {
1168 rc = NO_ERROR;
1180 return rc;
1199 int rc = NO_ERROR;
1203 rc = initCapabilities(cameraId);
1204 if (rc < 0) {
1206 return rc;
1221 rc = BAD_VALUE;
1227 return rc;
1351 int rc = NO_ERROR;
1415 rc = mem->allocate(bufferCnt, size);
1416 if (rc < 0) {
1439 int rc = NO_ERROR;
1447 rc = streamInfoBuf->allocate(1, sizeof(cam_stream_info_t));
1448 if (rc < 0) {
1457 rc = mParameters.getStreamFormat(stream_type, streamInfo->fmt);
1458 rc = mParameters.getStreamDimension(stream_type, streamInfo->dim);
1625 int32_t rc = NO_ERROR;
1629 rc = startChannel(QCAMERA_CH_TYPE_ZSL);
1631 rc = startChannel(QCAMERA_CH_TYPE_PREVIEW);
1634 return rc;
1695 int32_t rc = NO_ERROR;
1704 rc = preparePreview();
1705 if (rc == NO_ERROR) {
1706 rc = startChannel(QCAMERA_CH_TYPE_PREVIEW);
1710 if (rc == NO_ERROR) {
1711 rc = startChannel(QCAMERA_CH_TYPE_VIDEO);
1715 if (rc == NO_ERROR) {
1724 return rc;
1740 int rc = stopChannel(QCAMERA_CH_TYPE_VIDEO);
1750 return rc;
1767 int32_t rc = UNKNOWN_ERROR;
1772 rc = pChannel->releaseFrame(opaque, mStoreMetaDataInFrame > 0);
1774 return rc;
1790 int rc = NO_ERROR;
1797 rc = mCameraHandle->ops->do_auto_focus(mCameraHandle->camera_handle);
1798 if (rc == NO_ERROR) {
1809 rc = mParameters.setLockCAF(true);
1827 rc = mParameters.setLockCAF(true);
1836 rc = NO_ERROR;
1844 rc = BAD_VALUE;
1847 return rc;
1863 int rc = NO_ERROR;
1870 rc = mCameraHandle->ops->cancel_auto_focus(mCameraHandle->camera_handle);
1871 if (rc == NO_ERROR) {
1880 rc = mParameters.setLockCAF(false);;
1891 return rc;
1907 int rc = NO_ERROR;
1917 rc = pZSLChannel->takePicture(numSnapshots);
1918 if (rc != NO_ERROR) {
1921 return rc;
1936 rc = addCaptureChannel();
1937 if (rc == NO_ERROR) {
1942 rc = startChannel(QCAMERA_CH_TYPE_CAPTURE);
1943 if (rc != NO_ERROR) {
1947 return rc;
1951 return rc;
1954 rc = addRawChannel();
1955 if (rc == NO_ERROR) {
1958 rc = startChannel(QCAMERA_CH_TYPE_RAW);
1959 if (rc != NO_ERROR) {
1963 return rc;
1967 return rc;
1972 return rc;
2029 int rc = NO_ERROR;
2032 rc = m_postprocessor.start(m_channels[QCAMERA_CH_TYPE_SNAPSHOT]);
2035 if (rc == NO_ERROR) {
2036 rc = startChannel(QCAMERA_CH_TYPE_SNAPSHOT);
2038 return rc;
2054 int rc = NO_ERROR;
2060 rc = stopChannel(QCAMERA_CH_TYPE_SNAPSHOT);
2062 return rc;
2122 int rc = NO_ERROR;
2127 rc = setFaceDetection(command == CAMERA_CMD_START_FACE_DETECTION? true : false);
2130 rc = NO_ERROR;
2133 return rc;
2154 int rc = NO_ERROR;
2169 rc = imgBuf->allocate(1, config->input_buf_planes.plane_info.frame_len);
2170 if (rc < 0) {
2198 rc = pChannel->start();
2199 if (rc != NO_ERROR) {
2204 return rc;
2207 rc = pChannel->doReprocess(imgBuf->getFd(0), imgBuf->getSize(0), faceID);
2217 return rc;
2313 int rc = NO_ERROR;
2316 rc = processEvt(evt, evt_payload);
2317 if (rc == NO_ERROR) {
2322 rc = m_evtResult.status;
2326 return rc;
2698 int32_t rc = NO_ERROR;
2705 rc = pChannel->addStream(*this,
2710 if (rc != NO_ERROR) {
2712 __func__, streamType, rc);
2715 return rc;
2718 return rc;
2734 int32_t rc = NO_ERROR;
2751 rc = pChannel->init(NULL, NULL, NULL);
2752 if (rc != NO_ERROR) {
2753 ALOGE("%s: init preview channel failed, ret = %d", __func__, rc);
2755 return rc;
2759 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA,
2761 if (rc != NO_ERROR) {
2762 ALOGE("%s: add metadata stream failed, ret = %d", __func__, rc);
2764 return rc;
2768 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW,
2771 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW,
2774 if (rc != NO_ERROR) {
2775 ALOGE("%s: add preview stream failed, ret = %d", __func__, rc);
2777 return rc;
2781 return rc;
2797 int32_t rc = NO_ERROR;
2814 rc = pChannel->init(NULL, NULL, NULL);
2815 if (rc != 0) {
2816 ALOGE("%s: init video channel failed, ret = %d", __func__, rc);
2818 return rc;
2821 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_VIDEO,
2823 if (rc != NO_ERROR) {
2824 ALOGE("%s: add video stream failed, ret = %d", __func__, rc);
2826 return rc;
2830 return rc;
2848 int32_t rc = NO_ERROR;
2864 rc = pChannel->init(NULL, NULL, NULL);
2865 if (rc != NO_ERROR) {
2866 ALOGE("%s: init snapshot channel failed, ret = %d", __func__, rc);
2868 return rc;
2871 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_NON_ZSL_SNAPSHOT,
2873 if (rc != NO_ERROR) {
2874 ALOGE("%s: add snapshot stream failed, ret = %d", __func__, rc);
2876 return rc;
2880 return rc;
2896 int32_t rc = NO_ERROR;
2912 rc = pChannel->init(NULL, NULL, NULL);
2913 if (rc != NO_ERROR) {
2914 ALOGE("%s: init raw channel failed, ret = %d", __func__, rc);
2916 return rc;
2920 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA,
2922 if (rc != NO_ERROR) {
2923 ALOGE("%s: add metadata stream failed, ret = %d", __func__, rc);
2925 return rc;
2928 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_RAW,
2930 if (rc != NO_ERROR) {
2931 ALOGE("%s: add snapshot stream failed, ret = %d", __func__, rc);
2933 return rc;
2937 return rc;
2954 int32_t rc = NO_ERROR;
2978 rc = pChannel->init(&attr,
2981 if (rc != 0) {
2982 ALOGE("%s: init ZSL channel failed, ret = %d", __func__, rc);
2984 return rc;
2988 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA,
2990 if (rc != NO_ERROR) {
2991 ALOGE("%s: add metadata stream failed, ret = %d", __func__, rc);
2993 rc;
2997 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW,
3000 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_PREVIEW,
3003 if (rc != NO_ERROR) {
3004 ALOGE("%s: add preview stream failed, ret = %d", __func__, rc);
3006 return rc;
3009 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_SNAPSHOT,
3011 if (rc != NO_ERROR) {
3012 ALOGE("%s: add snapshot stream failed, ret = %d", __func__, rc);
3014 return rc;
3018 return rc;
3037 int32_t rc = NO_ERROR;
3058 rc = pChannel->init(&attr,
3061 if (rc != NO_ERROR) {
3062 ALOGE("%s: init capture channel failed, ret = %d", __func__, rc);
3064 return rc;
3069 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA,
3071 if (rc != NO_ERROR) {
3072 ALOGE("%s: add metadata stream failed, ret = %d", __func__, rc);
3074 return rc;
3077 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_POSTVIEW,
3080 if (rc != NO_ERROR) {
3081 ALOGE("%s: add postview stream failed, ret = %d", __func__, rc);
3083 return rc;
3086 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_NON_ZSL_SNAPSHOT,
3088 if (rc != NO_ERROR) {
3089 ALOGE("%s: add snapshot stream failed, ret = %d", __func__, rc);
3091 return rc;
3095 return rc;
3111 int32_t rc = NO_ERROR;
3126 rc = pChannel->init(NULL,
3129 if (rc != NO_ERROR) {
3130 ALOGE("%s: init metadata channel failed, ret = %d", __func__, rc);
3132 return rc;
3135 rc = addStreamToChannel(pChannel, CAM_STREAM_TYPE_METADATA,
3137 if (rc != NO_ERROR) {
3138 ALOGE("%s: add metadata stream failed, ret = %d", __func__, rc);
3140 return rc;
3144 return rc;
3161 int32_t rc = NO_ERROR;
3181 rc = pChannel->init(&attr,
3184 if (rc != NO_ERROR) {
3185 ALOGE("%s: init reprocess channel failed, ret = %d", __func__, rc);
3223 rc = pChannel->addReprocStreamsFromSource(*this,
3228 if (rc != NO_ERROR) {
3256 int32_t rc = NO_ERROR;
3266 rc = pChannel->init(NULL, NULL, NULL);
3267 if (rc != NO_ERROR) {
3268 ALOGE("%s: init reprocess channel failed, ret = %d", __func__, rc);
3293 rc = pChannel->addStream(*this,
3298 if (rc != NO_ERROR) {
3299 ALOGE("%s: add reprocess stream failed, ret = %d", __func__, rc);
3323 int32_t rc = UNKNOWN_ERROR;
3326 rc = addZSLChannel();
3329 rc = addCaptureChannel();
3332 rc = addPreviewChannel();
3335 rc = addVideoChannel();
3338 rc = addSnapshotChannel();
3341 rc = addRawChannel();
3344 rc = addMetaDataChannel();
3349 return rc;
3388 int32_t rc = UNKNOWN_ERROR;
3390 rc = m_channels[ch_type]->start();
3393 return rc;
3410 int32_t rc = UNKNOWN_ERROR;
3412 rc = m_channels[ch_type]->stop();
3415 return rc;
3431 int32_t rc = NO_ERROR;
3434 rc = addChannel(QCAMERA_CH_TYPE_ZSL);
3435 if (rc != NO_ERROR) {
3436 return rc;
3441 rc = addChannel(QCAMERA_CH_TYPE_SNAPSHOT);
3442 if (rc != NO_ERROR) {
3443 return rc;
3446 rc = addChannel(QCAMERA_CH_TYPE_VIDEO);
3447 if (rc != NO_ERROR) {
3449 return rc;
3453 rc = addChannel(QCAMERA_CH_TYPE_PREVIEW);
3454 if (rc != NO_ERROR) {
3459 return rc;
3464 return rc;
3882 int rc = mParameters.commitParameters();
3883 if (rc == NO_ERROR) {
3885 rc = mParameters.setNumOfSnapshot();
3887 return rc;
4037 int32_t rc = NO_ERROR;
4044 rc = mParameters.getExifDateTime(dateTime, count);
4045 if(rc == NO_ERROR) {
4055 rc = mParameters.getExifFocalLength(&focalLength);
4056 if (rc == NO_ERROR) {
4073 rc = mParameters.getExifGpsProcessingMethod(gpsProcessingMethod, count);
4074 if(rc == NO_ERROR) {
4085 rc = mParameters.getExifLatitude(latitude, latRef);
4086 if(rc == NO_ERROR) {
4101 rc = mParameters.getExifLongitude(longitude, lonRef);
4102 if(rc == NO_ERROR) {
4118 rc = mParameters.getExifAltitude(&altitude, &altRef);
4119 if(rc == NO_ERROR) {
4135 rc = mParameters.getExifGpsDateTimeStamp(gpsDateStamp, 20, gpsTimeStamp);
4136 if(rc == NO_ERROR) {