Lines Matching defs:rc
318 int rc = NO_ERROR;
321 rc = mCamOps->unmap_stream_buf(mCamHandle,
328 if (rc < 0) {
333 return rc;
349 int rc = NO_ERROR;
357 return rc;
400 int32_t rc = OK;
405 rc = UNKNOWN_ERROR;
414 rc = mCamOps->map_stream_buf(mCamHandle,
417 if (rc < 0) {
424 rc = calcOffset(mStreamInfo);
425 if (rc < 0) {
430 rc = configStream();
431 if (rc < 0) {
449 return rc;
466 int32_t rc = 0;
481 rc = mm_stream_calc_offset_preview(streamInfo->fmt,
486 rc = mm_stream_calc_offset_post_view(streamInfo->fmt,
491 rc = mm_stream_calc_offset_snapshot(streamInfo->fmt,
497 rc = mm_stream_calc_offset_postproc(streamInfo,
502 rc = mm_stream_calc_offset_video(&dim,
506 rc = mm_stream_calc_offset_raw(streamInfo->fmt,
512 rc = mm_stream_calc_offset_metadata(&dim,
519 rc = -1;
522 return rc;
539 int32_t rc = 0;
541 rc = mProcTh.launch(dataProcRoutine, this);
542 if (rc == NO_ERROR) {
547 return rc;
563 int32_t rc = 0;
565 rc = mProcTh.exit();
566 return rc;
622 int32_t rc = 0;
640 rc = previewWindow->set_crop(previewWindow,
649 return rc;
789 int32_t rc = NO_ERROR;
794 rc = mCamOps->qbuf(mCamHandle, mChannelHandle, &mBufDefs[index]);
795 if (rc < 0)
796 return rc;
798 return rc;
816 int32_t rc = NO_ERROR;
824 rc = bufDone(index);
825 return rc;
851 int rc = NO_ERROR;
887 rc = ops_tbl->map_ops(i, -1, mStreamBufs->getFd(i),
889 if (rc < 0) {
890 ALOGE("%s: map_stream_buf failed: %d", __func__, rc);
917 ALOGE("%s: getRegFlags failed %d", __func__, rc);
933 rc = mStreamBufs->getRegFlags(regFlags);
934 if (rc < 0) {
935 ALOGE("%s: getRegFlags failed %d", __func__, rc);
984 int rc = NO_ERROR;
1001 rc = mapBuf(CAM_MAPPING_BUF_TYPE_STREAM_BUF,
1005 if (rc < 0) {
1006 ALOGE("%s: map_stream_buf failed: %d", __func__, rc);
1035 ALOGE("%s: getRegFlags failed %d", __func__, rc);
1051 rc = mStreamBufs->getRegFlags(mRegFlags);
1052 if (rc < 0) {
1053 ALOGE("%s: getRegFlags failed %d", __func__, rc);
1084 int rc = NO_ERROR;
1088 rc = unmapBuf(CAM_MAPPING_BUF_TYPE_STREAM_BUF, i, -1);
1089 if (rc < 0) {
1090 ALOGE("%s: map_stream_buf failed: %d", __func__, rc);
1104 return rc;
1121 int32_t rc = NO_ERROR;
1127 rc = pme->mAllocator.allocateMoreStreamBuf(pme->mStreamBufs,
1130 if (rc == NO_ERROR){
1132 rc = pme->m_MemOpsTbl.map_ops(i, -1,
1136 if (rc == 0) {
1143 ALOGE("%s: map_stream_buf %d failed: %d", __func__, rc, i);
1200 int rc = NO_ERROR;
1210 rc = ops_tbl->unmap_ops(i, -1, ops_tbl->userdata);
1211 if (rc < 0) {
1212 ALOGE("%s: map_stream_buf failed: %d", __func__, rc);
1223 return rc;
1526 int32_t rc = NO_ERROR;
1529 rc = mCamOps->set_stream_parms(mCamHandle,
1533 if (rc == NO_ERROR) {
1537 return rc;
1554 int32_t rc = NO_ERROR;
1557 rc = mCamOps->get_stream_parms(mCamHandle,
1561 if (rc == NO_ERROR) {
1565 return rc;
1601 int rc = NO_ERROR;
1610 rc = mCamOps->config_stream(mCamHandle,
1612 if (rc < 0) {
1613 ALOGE("Failed to config stream, rc = %d", rc);
1623 return rc;