bool _mv_inference_image_check_system_info_feature_supported(void);
bool _mv_inference_face_check_system_info_feature_supported(void);
bool _mv_roi_tracking_check_system_info_feature_supported(void);
+bool _mv_3d_all_check_system_info_feature_supported(void);
+bool _mv_3d_check_system_info_feature_supported(void);
+bool _mv_3d_depth_check_system_info_feature_supported(void);
+bool _mv_3d_pointcloud_check_system_info_feature_supported(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
int mv_3d_create(mv_3d_h *mv3d)
{
+ MEDIA_VISION_SUPPORT_CHECK(_mv_3d_all_check_system_info_feature_supported());
MEDIA_VISION_NULL_ARG_CHECK(mv3d);
MEDIA_VISION_FUNCTION_ENTER();
int mv_3d_destroy(mv_3d_h mv3d)
{
+ MEDIA_VISION_SUPPORT_CHECK(_mv_3d_all_check_system_info_feature_supported());
MEDIA_VISION_INSTANCE_CHECK(mv3d);
MEDIA_VISION_FUNCTION_ENTER();
int mv_3d_configure(mv_3d_h mv3d,
mv_engine_config_h engine_config)
{
+ MEDIA_VISION_SUPPORT_CHECK(_mv_3d_all_check_system_info_feature_supported());
MEDIA_VISION_INSTANCE_CHECK(mv3d);
MEDIA_VISION_INSTANCE_CHECK(engine_config);
mv_3d_depth_cb depth_cb,
void *user_data)
{
+ MEDIA_VISION_SUPPORT_CHECK(_mv_3d_depth_check_system_info_feature_supported() ||
+ _mv_3d_check_system_info_feature_supported());
MEDIA_VISION_INSTANCE_CHECK(mv3d);
MEDIA_VISION_NULL_ARG_CHECK(depth_cb);
mv_3d_pointcloud_cb pointcloud_cb,
void *user_data)
{
+ MEDIA_VISION_SUPPORT_CHECK(_mv_3d_pointcloud_check_system_info_feature_supported() ||
+ _mv_3d_check_system_info_feature_supported());
MEDIA_VISION_INSTANCE_CHECK(mv3d);
MEDIA_VISION_NULL_ARG_CHECK(pointcloud_cb);
int mv_3d_prepare(mv_3d_h mv3d)
{
+ MEDIA_VISION_SUPPORT_CHECK(_mv_3d_all_check_system_info_feature_supported());
MEDIA_VISION_INSTANCE_CHECK(mv3d);
MEDIA_VISION_FUNCTION_ENTER();
mv_source_h source_extra,
mv_source_h color)
{
+ MEDIA_VISION_SUPPORT_CHECK(_mv_3d_all_check_system_info_feature_supported());
MEDIA_VISION_INSTANCE_CHECK(mv3d);
MEDIA_VISION_INSTANCE_CHECK(source);
mv_source_h source_extra,
mv_source_h color)
{
+ MEDIA_VISION_SUPPORT_CHECK(_mv_3d_all_check_system_info_feature_supported());
MEDIA_VISION_INSTANCE_CHECK(mv3d);
MEDIA_VISION_INSTANCE_CHECK(source);
mv_3d_pointcloud_type_e type,
char *filename)
{
+ MEDIA_VISION_SUPPORT_CHECK(_mv_3d_pointcloud_check_system_info_feature_supported() ||
+ _mv_3d_check_system_info_feature_supported());
MEDIA_VISION_INSTANCE_CHECK(mv3d);
MEDIA_VISION_INSTANCE_CHECK(pointcloud);
return supported;
}
+
+bool _mv_3d_all_check_system_info_feature_supported(void)
+{
+ return _mv_3d_check_system_info_feature_supported() ||
+ _mv_3d_depth_check_system_info_feature_supported() ||
+ _mv_3d_pointcloud_check_system_info_feature_supported();
+}
+
+bool _mv_3d_check_system_info_feature_supported(void)
+{
+ bool is3dSupported = false;
+
+ const int nRetVal1 = system_info_get_platform_bool("http://tizen.org/feature/vision.3d",
+ &is3dSupported);
+
+ if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
+ LOGE("SYSTEM_INFO_ERROR: vision.3d");
+ return false;
+ }
+
+ is3dSupported ? LOGI("system_info_get_platform_bool returned "
+ "Supported 3d feature capability\n") :
+ LOGE("system_info_get_platform_bool returned "
+ "Unsupported 3d feature capability\n");
+
+ return is3dSupported;
+}
+
+bool _mv_3d_depth_check_system_info_feature_supported(void)
+{
+ bool is3dDepthSupported = false;
+
+ const int nRetVal1 = system_info_get_platform_bool("http://tizen.org/feature/vision.3d.depth",
+ &is3dDepthSupported);
+
+ if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
+ LOGE("SYSTEM_INFO_ERROR: vision.3d.depth");
+ return false;
+ }
+
+ is3dDepthSupported ? LOGI("system_info_get_platform_bool returned "
+ "Supported 3d depth feature capability\n") :
+ LOGE("system_info_get_platform_bool returned "
+ "Unsupported 3d depth feature capability\n");
+
+ return is3dDepthSupported;
+}
+
+bool _mv_3d_pointcloud_check_system_info_feature_supported(void)
+{
+ bool is3dPointCloudSupported = false;
+
+ const int nRetVal1 = system_info_get_platform_bool("http://tizen.org/feature/vision.3d.pointcloud",
+ &is3dPointCloudSupported);
+
+ if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
+ LOGE("SYSTEM_INFO_ERROR: vision.3d.pointcloud");
+ return false;
+ }
+
+ is3dPointCloudSupported ? LOGI("system_info_get_platform_bool returned "
+ "Supported 3d pointcloud feature capability\n") :
+ LOGE("system_info_get_platform_bool returned "
+ "Unsupported 3d pointcloud feature capability\n");
+
+ return is3dPointCloudSupported;
+}
\ No newline at end of file