Lines Matching defs: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;
553 int32_t rc = NO_ERROR;
567 rc = init(NULL, NULL);
568 if (rc < 0) {
570 return rc;
603 rc = QCamera3Channel::addStream(mStreamType,
610 return rc;
627 int32_t rc = NO_ERROR;
630 rc = QCamera3Channel::start();
632 return rc;
652 int32_t rc = NO_ERROR;
661 rc = registerBuffer(buffer, mIsType);
662 if (NO_ERROR != rc) {
664 __func__, rc);
665 return rc;
668 rc = start();
669 if (NO_ERROR != rc) {
670 return rc;
678 rc = registerBuffer(buffer, mIsType);
679 if (NO_ERROR != rc) {
681 __func__, rc);
682 return rc;
693 rc = mStreams[0]->bufDone(index);
694 if(rc != NO_ERROR) {
696 return rc;
699 rc = mMemory.markFrameNumber(index, frameNumber);
700 return rc;
719 int rc = 0;
730 rc = initialize(mIsType);
731 if (rc != NO_ERROR) {
733 __func__, rc);
734 return rc;
739 rc = mMemory.registerBuffer(buffer, streamType);
740 if (ALREADY_EXISTS == rc) {
742 } else if (NO_ERROR != rc) {
743 ALOGE("%s: Buffer %p couldn't be registered %d", __func__, buffer, rc);
744 return rc;
747 return rc;
797 int32_t rc = stream->bufRelease(frameIndex);
798 if (NO_ERROR != rc) {
800 __func__, rc, frameIndex);
803 rc = mMemory.unregisterBuffer(frameIndex);
804 if (NO_ERROR != rc) {
806 __func__, rc, frameIndex);
858 int32_t rc;
866 rc = init(NULL, NULL);
867 if (rc < 0) {
869 return rc;
874 rc = QCamera3Channel::addStream(CAM_STREAM_TYPE_METADATA, CAM_FORMAT_MAX,
876 if (rc < 0) {
879 return rc;
907 int rc;
920 rc = mMemory->allocate(MIN_STREAMING_BUFFER_NUM, len, true);
921 if (rc < 0) {
1225 int rc;
1232 rc = mMemory->allocate(kMaxBuffers, len, true);
1233 if (rc < 0) {
1297 int32_t rc;
1299 rc = init(NULL, NULL);
1300 if (rc < 0) {
1302 return rc;
1305 rc = QCamera3Channel::addStream(CAM_STREAM_TYPE_RAW,
1308 if (rc < 0) {
1311 return rc;
1390 int32_t rc = obj->mMemory.unregisterBuffer(bufIdx);
1391 if (NO_ERROR != rc) {
1393 __func__, rc, bufIdx);
1482 int32_t rc = m_postprocessor.init(&mMemory, jpegEvtHandle, mPostProcMask,
1484 if (rc != 0) {
1503 int32_t rc = NO_ERROR;
1506 return rc;
1511 rc |= QCamera3Channel::stop();
1512 return rc;
1519 int32_t rc = m_postprocessor.stop();
1520 if (rc != NO_ERROR) {
1524 rc = m_postprocessor.deinit();
1525 if (rc != 0) {
1539 int32_t rc = NO_ERROR;
1562 rc = init(&attr, NULL);
1563 if (rc < 0) {
1565 return rc;
1575 rc = QCamera3Channel::addStream(streamType, streamFormat, streamDim,
1584 return rc;
1595 int32_t rc = NO_ERROR;
1621 rc = mm_stream_calc_offset_snapshot(mStreamFormat, &reproc_cfg.input_stream_dim,
1623 if (rc != 0) {
1625 return rc;
1649 rc = registerBuffer(buffer, mIsType);
1650 if (NO_ERROR != rc) {
1652 __func__, rc);
1653 return rc;
1664 rc = mMemory.markFrameNumber(index, frameNumber);
1681 rc = queueJpegSetting(index, metadata);
1692 rc = NOT_ENOUGH_DATA;
1704 rc = mOfflineMemory.registerBuffer(pInputBuffer->buffer, mStreamType);
1705 if (NO_ERROR != rc) {
1707 __func__, rc);
1708 return rc;
1726 rc = mOfflineMemory.getBufDef(reproc_cfg.input_stream_plane_info.plane_info,
1728 if (rc != 0) {
1730 return rc;
1738 rc = mm_stream_calc_offset_metadata(&dim, mPaddingInfo, &meta_planes);
1739 if (rc != 0) {
1742 return rc;
1745 rc = mOfflineMetaMemory.allocate(1, sizeof(metadata_buffer_t), false);
1746 if (NO_ERROR != rc) {
1749 return rc;
1753 rc = mOfflineMetaMemory.getBufDef(offset, meta_buf, 0);
1754 if (NO_ERROR != rc) {
1756 return rc;
1767 return rc;
1785 int32_t rc = NO_ERROR;;
1791 rc = ((QCamera3MetadataChannel*)m_pMetaChannel)->bufDone(recvd_frame);
1793 return rc;
1852 int rc = 0;
1861 rc = initialize(mIsType);
1862 if (rc != NO_ERROR) {
1864 __func__, rc);
1865 return rc;
1869 rc = mMemory.registerBuffer(buffer, mStreamType);
1870 if (ALREADY_EXISTS == rc) {
1872 } else if (NO_ERROR != rc) {
1873 ALOGE("%s: Buffer %p couldn't be registered %d", __func__, buffer, rc);
1874 return rc;
1879 return rc;
1951 int rc = 0;
1960 rc = mYuvMemory->allocate(mCamera3Stream->max_buffers, len, false);
1961 if (rc < 0) {
2379 int32_t rc = NO_ERROR;
2391 rc = getExifDateTime(dateTime, subsecTime, count, subsecCount);
2392 if(rc == NO_ERROR) {
2426 rc = getExifFocalLength(&focalLength, focal_length);
2427 if (rc == NO_ERROR) {
2450 rc = getExifExpTimeInfo(&sensorExpTime, sensor_exposure_time);
2451 if (rc == NO_ERROR){
2465 rc = getExifGpsProcessingMethod(gpsProcessingMethod,
2467 if(rc == NO_ERROR) {
2482 rc = getExifLatitude(latitude, latRef,
2484 if(rc == NO_ERROR) {
2500 rc = getExifLongitude(longitude, lonRef,
2502 if(rc == NO_ERROR) {
2519 rc = getExifAltitude(&altitude, &altRef,
2521 if(rc == NO_ERROR) {
2540 rc = getExifGpsDateTimeStamp(gpsDateStamp, 20, gpsTimeStamp,
2542 if(rc == NO_ERROR) {
2564 rc = getExifExposureValue(&exposure_val, exposure_comp, comp_step);
2565 if(rc == NO_ERROR) {
2652 int32_t rc = NO_ERROR;
2659 rc = init(&attr, NULL);
2660 if (rc < 0) {
2664 return rc;
2756 int rc = 0;
2767 rc = mMemory->allocate(MAX_INFLIGHT_REQUESTS, len, true);
2768 if (rc < 0) {
2887 int rc = NO_ERROR;
2894 rc = stream->unmapBuf((*it).type,
2897 if (NO_ERROR != rc) {
2899 __func__, rc);
2919 rc = stream->unmapBuf((*it).type,
2922 if (NO_ERROR != rc) {
2924 __func__, rc);
2937 return rc;
3078 int32_t rc = 0;
3114 rc = pStream->mapBuf(
3118 if (NO_ERROR == rc) {
3134 rc |= pStream->mapBuf(
3138 if (NO_ERROR == rc) {
3147 if (rc == NO_ERROR) {
3158 rc = pStream->setParameter(param);
3159 if (rc != NO_ERROR) {
3163 ALOGE("%s: Input buffer memory map failed: %d", __func__, rc);
3166 return rc;
3189 int32_t rc = 0;
3201 rc = mStreams[i]->mapBuf(CAM_MAPPING_BUF_TYPE_OFFLINE_INPUT_BUF,
3205 if (rc == NO_ERROR) {
3213 rc = mStreams[i]->setParameter(param);
3214 if (rc == NO_ERROR) {
3221 return rc;
3243 int32_t rc = 0;
3282 rc = pStream->init(streamType, src_config.stream_format,
3289 if (rc == 0) {
3297 if (rc == NO_ERROR) {
3304 return rc;
3334 int32_t rc;
3341 rc = init(NULL, NULL);
3342 if (rc < 0) {
3344 return rc;
3348 rc = QCamera3Channel::addStream(CAM_STREAM_TYPE_CALLBACK,
3351 if (rc < 0) {
3354 return rc;
3377 int rc;
3384 rc = mMemory->allocate(MIN_STREAMING_BUFFER_NUM, len, true);
3385 if (rc < 0) {