auto depthData = handle->mDfsAdaptor->getOutputData();
auto leftData = handle->mDfsAdaptor->getLeftData();
- mv_source_fill_by_buffer(handle->mInternalSource,
+ int ret = mv_source_fill_by_buffer(handle->mInternalSource,
static_cast<unsigned char*>(leftData.data),
leftData.width,
leftData.height,
leftData.stride * leftData.height,
leftData.type == DFS_DATA_TYPE_UINT8C3 ? MEDIA_VISION_COLORSPACE_RGB888 :
MEDIA_VISION_COLORSPACE_Y800);
+ if (MEDIA_VISION_ERROR_NONE != ret) {
+ LOGW("Errors were occurred during source filling %i", ret);
+ continue;
+ }
handle->mDepthCallback(
static_cast<mv_source_h>(handle->mInternalSource),
static_cast<DepthTypePtr>(depthData.data),
handle->GetPointcloudFromSource(*input, depthData, p);
mv_3d_pointcloud_h pcd = &p;
- handle->mPointcloudCallback(static_cast<mv_source_h>(mInternalSource),
+ handle->mPointcloudCallback(static_cast<mv_source_h>(handle->mInternalSource),
pcd,
handle->mPointcloudUserData);
auto pPcd = static_cast<std::shared_ptr<open3d::geometry::PointCloud>*>(p.pointcloud);