Home | History | Annotate | Download | only in HAL3

Lines Matching refs:rc

214     int32_t rc = NO_ERROR;
236 rc = pStream->init(streamType, streamFormat, streamDim, NULL, minStreamBufNum,
238 if (rc == 0) {
244 return rc;
261 int32_t rc = NO_ERROR;
271 return rc;
279 rc = m_camOps->start_channel(m_camHandle, m_handle);
281 if (rc != NO_ERROR) {
291 return rc;
308 int32_t rc = NO_ERROR;
311 return rc;
320 rc = m_camOps->stop_channel(m_camHandle, m_handle);
323 return rc;
340 int32_t rc = NO_ERROR;
346 rc = mStreams[j]->bufDone(recvd_frame->bufs[i]->buf_idx);
353 return rc;
593 int32_t rc = NO_ERROR;
607 rc = init(NULL, NULL);
608 if (rc < 0) {
610 return rc;
645 rc = QCamera3Channel::addStream(mStreamType,
652 return rc;
669 int32_t rc = NO_ERROR;
672 rc = QCamera3Channel::start();
674 return rc;
694 int32_t rc = NO_ERROR;
703 rc = registerBuffer(buffer, mIsType, mIntent);
704 if (NO_ERROR != rc) {
706 __func__, rc);
707 return rc;
710 rc = start();
711 if (NO_ERROR != rc) {
712 return rc;
720 rc = registerBuffer(buffer, mIsType, mIntent);
721 if (NO_ERROR != rc) {
723 __func__, rc);
724 return rc;
735 rc = mStreams[0]->bufDone(index);
736 if(rc != NO_ERROR) {
738 return rc;
741 rc = mMemory.markFrameNumber(index, frameNumber);
742 return rc;
762 int rc = 0;
773 rc = initialize(mIsType, intent);
774 if (rc != NO_ERROR) {
776 __func__, rc);
777 return rc;
782 rc = mMemory.registerBuffer(buffer);
783 if (ALREADY_EXISTS == rc) {
785 } else if (NO_ERROR != rc) {
786 ALOGE("%s: Buffer %p couldn't be registered %d", __func__, buffer, rc);
787 return rc;
790 return rc;
883 int32_t rc;
891 rc = init(NULL, NULL);
892 if (rc < 0) {
894 return rc;
899 rc = QCamera3Channel::addStream(CAM_STREAM_TYPE_METADATA, CAM_FORMAT_MAX,
901 if (rc < 0) {
904 return rc;
932 int rc;
945 rc = mMemory->allocate(MIN_STREAMING_BUFFER_NUM, len, true);
946 if (rc < 0) {
1250 int rc;
1257 rc = mMemory->allocate(kMaxBuffers, len, true);
1258 if (rc < 0) {
1323 int32_t rc;
1325 rc = init(NULL, NULL);
1326 if (rc < 0) {
1328 return rc;
1331 rc = QCamera3Channel::addStream(CAM_STREAM_TYPE_RAW,
1334 if (rc < 0) {
1337 return rc;
1503 int32_t rc = m_postprocessor.init(&mMemory, jpegEvtHandle, mPostProcMask,
1505 if (rc != 0) {
1524 int32_t rc = NO_ERROR;
1527 return rc;
1532 rc |= QCamera3Channel::stop();
1533 return rc;
1540 int32_t rc = m_postprocessor.deinit();
1541 if (rc != 0) {
1556 int32_t rc = NO_ERROR;
1579 rc = init(&attr, NULL);
1580 if (rc < 0) {
1582 return rc;
1594 rc = QCamera3Channel::addStream(streamType, streamFormat, streamDim,
1603 return rc;
1614 int32_t rc = NO_ERROR;
1638 rc = mm_stream_calc_offset_snapshot(mStreamFormat, &reproc_cfg.input_stream_dim,
1640 if (rc != 0) {
1642 return rc;
1666 rc = registerBuffer(buffer, mIsType, mIntent);
1667 if (NO_ERROR != rc) {
1669 __func__, rc);
1670 return rc;
1681 rc = mMemory.markFrameNumber(index, frameNumber);
1698 rc = queueJpegSetting(index, metadata);
1709 rc = NOT_ENOUGH_DATA;
1721 rc = mOfflineMemory.registerBuffer(pInputBuffer->buffer);
1722 if (NO_ERROR != rc) {
1724 __func__, rc);
1725 return rc;
1743 rc = mOfflineMemory.getBufDef(reproc_cfg.input_stream_plane_info.plane_info,
1745 if (rc != 0) {
1747 return rc;
1755 rc = mm_stream_calc_offset_metadata(&dim, mPaddingInfo, &meta_planes);
1756 if (rc != 0) {
1759 return rc;
1762 rc = mOfflineMetaMemory.allocate(1, sizeof(metadata_buffer_t), false);
1763 if (NO_ERROR != rc) {
1766 return rc;
1770 rc = mOfflineMetaMemory.getBufDef(offset, meta_buf, 0);
1771 if (NO_ERROR != rc) {
1773 return rc;
1784 return rc;
1802 int32_t rc = NO_ERROR;;
1808 rc = ((QCamera3MetadataChannel*)m_pMetaChannel)->bufDone(recvd_frame);
1810 return rc;
1870 int rc = 0;
1880 rc = initialize(mIsType, intent);
1881 if (rc != NO_ERROR) {
1883 __func__, rc);
1884 return rc;
1887 rc = mMemory.registerBuffer(buffer);
1888 if (ALREADY_EXISTS == rc) {
1890 } else if (NO_ERROR != rc) {
1891 ALOGE("%s: Buffer %p couldn't be registered %d", __func__, buffer, rc);
1892 return rc;
1897 return rc;
1969 int rc = 0;
1978 rc = mYuvMemory->allocate(mCamera3Stream->max_buffers, len, false);
1979 if (rc < 0) {
2397 int32_t rc = NO_ERROR;
2409 rc = getExifDateTime(dateTime, subsecTime, count, subsecCount);
2410 if(rc == NO_ERROR) {
2444 rc = getExifFocalLength(&focalLength, focal_length);
2445 if (rc == NO_ERROR) {
2468 rc = getExifExpTimeInfo(&sensorExpTime, sensor_exposure_time);
2469 if (rc == NO_ERROR){
2483 rc = getExifGpsProcessingMethod(gpsProcessingMethod,
2485 if(rc == NO_ERROR) {
2500 rc = getExifLatitude(latitude, latRef,
2502 if(rc == NO_ERROR) {
2518 rc = getExifLongitude(longitude, lonRef,
2520 if(rc == NO_ERROR) {
2537 rc = getExifAltitude(&altitude, &altRef,
2539 if(rc == NO_ERROR) {
2558 rc = getExifGpsDateTimeStamp(gpsDateStamp, 20, gpsTimeStamp,
2560 if(rc == NO_ERROR) {
2582 rc = getExifExposureValue(&exposure_val, exposure_comp, comp_step);
2583 if(rc == NO_ERROR) {
2671 int32_t rc = NO_ERROR;
2678 rc = init(&attr, NULL);
2679 if (rc < 0) {
2683 return rc;
2775 int rc = 0;
2786 rc = mMemory->allocate(MAX_INFLIGHT_REQUESTS, len, true);
2787 if (rc < 0) {
2906 int rc = NO_ERROR;
2913 rc = stream->unmapBuf((*it).type,
2916 if (NO_ERROR != rc) {
2918 __func__, rc);
2938 rc = stream->unmapBuf((*it).type,
2941 if (NO_ERROR != rc) {
2943 __func__, rc);
2956 return rc;
3097 int32_t rc = 0;
3133 rc = pStream->mapBuf(
3137 if (NO_ERROR == rc) {
3153 rc |= pStream->mapBuf(
3157 if (NO_ERROR == rc) {
3166 if (rc == NO_ERROR) {
3177 rc = pStream->setParameter(param);
3178 if (rc != NO_ERROR) {
3182 ALOGE("%s: Input buffer memory map failed: %d", __func__, rc);
3185 return rc;
3208 int32_t rc = 0;
3220 rc = mStreams[i]->mapBuf(CAM_MAPPING_BUF_TYPE_OFFLINE_INPUT_BUF,
3224 if (rc == NO_ERROR) {
3232 rc = mStreams[i]->setParameter(param);
3233 if (rc == NO_ERROR) {
3240 return rc;
3262 int32_t rc = 0;
3301 rc = pStream->init(streamType, src_config.stream_format,
3308 if (rc == 0) {
3316 if (rc == NO_ERROR) {
3323 return rc;
3354 int32_t rc;
3361 rc = init(NULL, NULL);
3362 if (rc < 0) {
3364 return rc;
3368 rc = QCamera3Channel::addStream(CAM_STREAM_TYPE_CALLBACK,
3371 if (rc < 0) {
3374 return rc;
3397 int rc;
3404 rc = mMemory->allocate(MIN_STREAMING_BUFFER_NUM, len, true);
3405 if (rc < 0) {