assert_eq(MEDIA_VISION_ERROR_NONE, ret);
ret = mv_3d_set_pointcloud_cb(mv3d_handle, _pointcloud_cb, mv3d_handle);
- assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ if (gIsMv3dPointCloudSupported)
+ assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ else
+ assert_eq(MEDIA_VISION_ERROR_NOT_SUPPORTED, ret);
ret = mv_3d_destroy(mv3d_handle);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
ret = mv_3d_set_pointcloud_cb(mv3d_handle, NULL, NULL);
- assert_eq(MEDIA_VISION_ERROR_INVALID_PARAMETER, ret);
+ if (gIsMv3dPointCloudSupported)
+ assert_eq(MEDIA_VISION_ERROR_INVALID_PARAMETER, ret);
+ else
+ assert_eq(MEDIA_VISION_ERROR_NOT_SUPPORTED, ret);
ret = mv_3d_set_pointcloud_cb(NULL, _pointcloud_cb, NULL);
- assert_eq(MEDIA_VISION_ERROR_INVALID_PARAMETER, ret);
+ if (gIsMv3dPointCloudSupported)
+ assert_eq(MEDIA_VISION_ERROR_INVALID_PARAMETER, ret);
+ else
+ assert_eq(MEDIA_VISION_ERROR_NOT_SUPPORTED, ret);
ret = mv_3d_destroy(mv3d_handle);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
ret = mv_3d_set_pointcloud_cb(mv3d_handle, _pointcloud_cb, mv3d_handle);
- assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ if (gIsMv3dPointCloudSupported)
+ assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ else
+ assert_eq(MEDIA_VISION_ERROR_NOT_SUPPORTED, ret);
ret = mv_3d_prepare(mv3d_handle);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
ret = mv_3d_set_pointcloud_cb(mv3d_handle, _pointcloud_cb, mv3d_handle);
- assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ if (gIsMv3dPointCloudSupported)
+ assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ else
+ assert_eq(MEDIA_VISION_ERROR_NOT_SUPPORTED, ret);
ret = mv_3d_prepare(NULL);
assert_eq(MEDIA_VISION_ERROR_INVALID_PARAMETER, ret);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
ret = mv_3d_set_pointcloud_cb(mv3d_handle, _pointcloud_cb, mv3d_handle);
- assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ if (gIsMv3dPointCloudSupported)
+ assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ else
+ assert_eq(MEDIA_VISION_ERROR_NOT_SUPPORTED, ret);
ret = mv_3d_prepare(mv3d_handle);
assert_eq(MEDIA_VISION_ERROR_INVALID_OPERATION, ret);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
ret = mv_3d_set_pointcloud_cb(mv3d_handle, _pointcloud_cb, mv3d_handle);
- assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ if (gIsMv3dPointCloudSupported)
+ assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ else
+ assert_eq(MEDIA_VISION_ERROR_NOT_SUPPORTED, ret);
ret = mv_3d_prepare(mv3d_handle);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
ret = mv_3d_run(mv3d_handle, gBaseSourceHandle, gExtraSourceHandle, NULL);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
- assert_eq(true, gMv3dDepthCallBackInvoked);
+ assert(gMv3dDepthCallBackInvoked);
+ if (gIsMv3dPointCloudSupported)
+ assert(gMv3dPointCloudCallBackInvoked);
ret = mv_3d_destroy(mv3d_handle);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
ret = mv_3d_set_pointcloud_cb(mv3d_handle, _pointcloud_cb, mv3d_handle);
- assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ if (gIsMv3dPointCloudSupported)
+ assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ else
+ assert_eq(MEDIA_VISION_ERROR_NOT_SUPPORTED, ret);
ret = mv_3d_prepare(mv3d_handle);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
ret = mv_3d_set_pointcloud_cb(mv3d_handle, _pointcloud_cb, mv3d_handle);
- assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ if (gIsMv3dPointCloudSupported)
+ assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ else
+ assert_eq(MEDIA_VISION_ERROR_NOT_SUPPORTED, ret);
ret = mv_3d_prepare(mv3d_handle);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
ret = mv_3d_run_async(mv3d_handle, gBaseSourceHandle, gExtraSourceHandle, NULL);
RUN_POLLING_LOOP;
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
- assert_eq(true, gMv3dDepthCallBackInvoked);
+ assert(gMv3dDepthCallBackInvoked);
+ if (gIsMv3dPointCloudSupported)
+ assert(gMv3dPointCloudCallBackInvoked);
ret = mv_3d_destroy(mv3d_handle);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
ret = mv_3d_set_pointcloud_cb(mv3d_handle, _pointcloud_cb, mv3d_handle);
- assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ if (gIsMv3dPointCloudSupported)
+ assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ else
+ assert_eq(MEDIA_VISION_ERROR_NOT_SUPPORTED, ret);
ret = mv_3d_prepare(mv3d_handle);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
ret = mv_3d_set_pointcloud_cb(mv3d_handle, _pointcloud_cb1, mv3d_handle);
- assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ if (gIsMv3dPointCloudSupported)
+ assert_eq(MEDIA_VISION_ERROR_NONE, ret);
+ else
+ assert_eq(MEDIA_VISION_ERROR_NOT_SUPPORTED, ret);
ret = mv_3d_prepare(mv3d_handle);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
ret = mv_3d_run(mv3d_handle, gBaseSourceHandle, gExtraSourceHandle, NULL);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
- assert_eq(true, gMv3dDepthCallBackInvoked);
- assert_eq(MEDIA_VISION_ERROR_NONE, gMv3dPcdWriteResultErr);
+ assert(gMv3dDepthCallBackInvoked);
+ if (gIsMv3dPointCloudSupported) {
+ assert(gMv3dPointCloudCallBackInvoked);
+ assert_eq(MEDIA_VISION_ERROR_NONE, gMv3dPcdWriteResultErr);
+ }
ret = mv_3d_destroy(mv3d_handle);
assert_eq(MEDIA_VISION_ERROR_NONE, ret);
NULL,
MV_3D_POINTCLOUD_TYPE_PCD_BIN,
outfilename);
- assert_eq(MEDIA_VISION_ERROR_INVALID_PARAMETER, ret);
+ if (gIsMv3dPointCloudSupported)
+ assert_eq(MEDIA_VISION_ERROR_INVALID_PARAMETER, ret);
+ else
+ assert_eq(MEDIA_VISION_ERROR_NOT_SUPPORTED, ret);
printf("utc_mediavision_mv_3d_pointcloud_write_file_n pass\n");
return 0;
-}
\ No newline at end of file
+}