Delete duplicate mv_private.c 29/225429/1
authorKwanghoon Son <k.son@samsung.com>
Thu, 20 Feb 2020 01:38:31 +0000 (10:38 +0900)
committerKwanghoon Son <k.son@samsung.com>
Thu, 20 Feb 2020 01:38:31 +0000 (10:38 +0900)
mv_common library already has mv_private.c
other module will link mv_common.

Change-Id: Ic2aaf80027de6836ba5efea6080e2a43829bcadc
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
mv_barcode/barcode_detector/src/mv_private.c [deleted file]
mv_barcode/barcode_generator/src/mv_private.c [deleted file]
mv_face/face/src/mv_private.c [deleted file]
mv_image/image/src/mv_private.c [deleted file]
mv_inference/inference/src/mv_private.c [deleted file]
mv_surveillance/surveillance/src/mv_private.c [deleted file]

diff --git a/mv_barcode/barcode_detector/src/mv_private.c b/mv_barcode/barcode_detector/src/mv_private.c
deleted file mode 100644 (file)
index 16ae6a4..0000000
+++ /dev/null
@@ -1,261 +0,0 @@
-/**
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <system_info.h>
-
-#include "mv_private.h"
-
-bool __mv_check_system_info_feature_supported()
-{
-       bool isBarcodeDetectionSupported = false;
-       bool isBarcodeGenerationSupported = false;
-       bool isFaceRecognitionSupported = false;
-       bool isImageRecognitionSupported = false;
-       bool isInferenceImageSupported = false;
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal1 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_detection",
-                                       &isBarcodeDetectionSupported);
-
-       if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_detection");
-               return false;
-       }
-
-       const int nRetVal2 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_generation",
-                                       &isBarcodeGenerationSupported);
-
-       if (nRetVal2 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation");
-               return false;
-       }
-
-       const int nRetVal3 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.face_recognition",
-                                       &isFaceRecognitionSupported);
-
-       if (nRetVal3 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.face_recognition");
-               return false;
-       }
-
-       const int nRetVal4 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.image_recognition",
-                                       &isImageRecognitionSupported);
-
-       if (nRetVal4 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.image_recognition");
-               return false;
-       }
-       const int nRetVal5 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal5 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       const int nRetVal6 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal6 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-       (isBarcodeDetectionSupported || isBarcodeGenerationSupported ||
-               isFaceRecognitionSupported  || isImageRecognitionSupported ||
-               isInferenceImageSupported || isInferenceFaceSupported) ?
-                       LOGI("system_info_get_platform_bool returned"
-                                       "Supported one feature among barcode detection, "
-                                       "barcode generation, face recognition, "
-                                       "image recognition, and inference capability\n") :
-                       LOGE("system_info_get_platform_bool returned"
-                                       "Unsupported all features of barcode detection, "
-                                       "barcode generation, face recognition, "
-                                       "image recognition, inference capability\n") ;
-
-       return (isBarcodeDetectionSupported || isBarcodeGenerationSupported ||
-                       isFaceRecognitionSupported  || isImageRecognitionSupported ||
-                       isInferenceImageSupported   || isInferenceFaceSupported);
-}
-
-bool __mv_barcode_detect_check_system_info_feature_supported()
-{
-       bool isBarcodeDetectionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_detection",
-                                       &isBarcodeDetectionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_detection");
-               return false;
-       }
-
-       isBarcodeDetectionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported barcode detection feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported barcode detection feature capability\n");
-
-       return isBarcodeDetectionSupported;
-}
-
-bool __mv_barcode_generate_check_system_info_feature_supported()
-{
-       bool isBarcodeGenerationSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_generation",
-                                       &isBarcodeGenerationSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation");
-               return false;
-       }
-
-       isBarcodeGenerationSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported barcode generation feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported barcode generation feature capability\n");
-
-       return isBarcodeGenerationSupported;
-}
-
-bool __mv_face_check_system_info_feature_supported()
-{
-       bool isFaceRecognitionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.face_recognition",
-                                       &isFaceRecognitionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.face_recognition");
-               return false;
-       }
-
-       isFaceRecognitionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported face recognition feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported face recognition feature capability\n");
-
-       return isFaceRecognitionSupported;
-}
-
-bool __mv_image_check_system_info_feature_supported()
-{
-       bool isImageRecognitionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.image_recognition",
-                                       &isImageRecognitionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.image_recognition");
-               return false;
-       }
-
-       isImageRecognitionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported image recognition feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported image recognition feature capability\n");
-
-       return isImageRecognitionSupported;
-}
-
-bool __mv_inference_check_system_info_feature_supported()
-{
-       bool isInferenceImageSupported = false;
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal1 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       const int nRetVal2 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal2 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-
-       (isInferenceImageSupported || isInferenceFaceSupported) ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference feature capability\n");
-
-       return (isInferenceImageSupported || isInferenceFaceSupported);
-}
-
-bool __mv_inference_image_check_system_info_feature_supported()
-{
-       bool isInferenceImageSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       isInferenceImageSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference image feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference image feature capability\n");
-
-       return isInferenceImageSupported;
-}
-
-bool __mv_inference_face_check_system_info_feature_supported()
-{
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-
-       isInferenceFaceSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference face feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference face feature capability\n");
-
-       return isInferenceFaceSupported;
-}
diff --git a/mv_barcode/barcode_generator/src/mv_private.c b/mv_barcode/barcode_generator/src/mv_private.c
deleted file mode 100644 (file)
index 16ae6a4..0000000
+++ /dev/null
@@ -1,261 +0,0 @@
-/**
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <system_info.h>
-
-#include "mv_private.h"
-
-bool __mv_check_system_info_feature_supported()
-{
-       bool isBarcodeDetectionSupported = false;
-       bool isBarcodeGenerationSupported = false;
-       bool isFaceRecognitionSupported = false;
-       bool isImageRecognitionSupported = false;
-       bool isInferenceImageSupported = false;
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal1 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_detection",
-                                       &isBarcodeDetectionSupported);
-
-       if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_detection");
-               return false;
-       }
-
-       const int nRetVal2 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_generation",
-                                       &isBarcodeGenerationSupported);
-
-       if (nRetVal2 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation");
-               return false;
-       }
-
-       const int nRetVal3 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.face_recognition",
-                                       &isFaceRecognitionSupported);
-
-       if (nRetVal3 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.face_recognition");
-               return false;
-       }
-
-       const int nRetVal4 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.image_recognition",
-                                       &isImageRecognitionSupported);
-
-       if (nRetVal4 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.image_recognition");
-               return false;
-       }
-       const int nRetVal5 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal5 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       const int nRetVal6 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal6 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-       (isBarcodeDetectionSupported || isBarcodeGenerationSupported ||
-               isFaceRecognitionSupported  || isImageRecognitionSupported ||
-               isInferenceImageSupported || isInferenceFaceSupported) ?
-                       LOGI("system_info_get_platform_bool returned"
-                                       "Supported one feature among barcode detection, "
-                                       "barcode generation, face recognition, "
-                                       "image recognition, and inference capability\n") :
-                       LOGE("system_info_get_platform_bool returned"
-                                       "Unsupported all features of barcode detection, "
-                                       "barcode generation, face recognition, "
-                                       "image recognition, inference capability\n") ;
-
-       return (isBarcodeDetectionSupported || isBarcodeGenerationSupported ||
-                       isFaceRecognitionSupported  || isImageRecognitionSupported ||
-                       isInferenceImageSupported   || isInferenceFaceSupported);
-}
-
-bool __mv_barcode_detect_check_system_info_feature_supported()
-{
-       bool isBarcodeDetectionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_detection",
-                                       &isBarcodeDetectionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_detection");
-               return false;
-       }
-
-       isBarcodeDetectionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported barcode detection feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported barcode detection feature capability\n");
-
-       return isBarcodeDetectionSupported;
-}
-
-bool __mv_barcode_generate_check_system_info_feature_supported()
-{
-       bool isBarcodeGenerationSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_generation",
-                                       &isBarcodeGenerationSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation");
-               return false;
-       }
-
-       isBarcodeGenerationSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported barcode generation feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported barcode generation feature capability\n");
-
-       return isBarcodeGenerationSupported;
-}
-
-bool __mv_face_check_system_info_feature_supported()
-{
-       bool isFaceRecognitionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.face_recognition",
-                                       &isFaceRecognitionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.face_recognition");
-               return false;
-       }
-
-       isFaceRecognitionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported face recognition feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported face recognition feature capability\n");
-
-       return isFaceRecognitionSupported;
-}
-
-bool __mv_image_check_system_info_feature_supported()
-{
-       bool isImageRecognitionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.image_recognition",
-                                       &isImageRecognitionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.image_recognition");
-               return false;
-       }
-
-       isImageRecognitionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported image recognition feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported image recognition feature capability\n");
-
-       return isImageRecognitionSupported;
-}
-
-bool __mv_inference_check_system_info_feature_supported()
-{
-       bool isInferenceImageSupported = false;
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal1 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       const int nRetVal2 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal2 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-
-       (isInferenceImageSupported || isInferenceFaceSupported) ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference feature capability\n");
-
-       return (isInferenceImageSupported || isInferenceFaceSupported);
-}
-
-bool __mv_inference_image_check_system_info_feature_supported()
-{
-       bool isInferenceImageSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       isInferenceImageSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference image feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference image feature capability\n");
-
-       return isInferenceImageSupported;
-}
-
-bool __mv_inference_face_check_system_info_feature_supported()
-{
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-
-       isInferenceFaceSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference face feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference face feature capability\n");
-
-       return isInferenceFaceSupported;
-}
diff --git a/mv_face/face/src/mv_private.c b/mv_face/face/src/mv_private.c
deleted file mode 100644 (file)
index 16ae6a4..0000000
+++ /dev/null
@@ -1,261 +0,0 @@
-/**
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <system_info.h>
-
-#include "mv_private.h"
-
-bool __mv_check_system_info_feature_supported()
-{
-       bool isBarcodeDetectionSupported = false;
-       bool isBarcodeGenerationSupported = false;
-       bool isFaceRecognitionSupported = false;
-       bool isImageRecognitionSupported = false;
-       bool isInferenceImageSupported = false;
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal1 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_detection",
-                                       &isBarcodeDetectionSupported);
-
-       if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_detection");
-               return false;
-       }
-
-       const int nRetVal2 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_generation",
-                                       &isBarcodeGenerationSupported);
-
-       if (nRetVal2 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation");
-               return false;
-       }
-
-       const int nRetVal3 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.face_recognition",
-                                       &isFaceRecognitionSupported);
-
-       if (nRetVal3 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.face_recognition");
-               return false;
-       }
-
-       const int nRetVal4 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.image_recognition",
-                                       &isImageRecognitionSupported);
-
-       if (nRetVal4 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.image_recognition");
-               return false;
-       }
-       const int nRetVal5 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal5 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       const int nRetVal6 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal6 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-       (isBarcodeDetectionSupported || isBarcodeGenerationSupported ||
-               isFaceRecognitionSupported  || isImageRecognitionSupported ||
-               isInferenceImageSupported || isInferenceFaceSupported) ?
-                       LOGI("system_info_get_platform_bool returned"
-                                       "Supported one feature among barcode detection, "
-                                       "barcode generation, face recognition, "
-                                       "image recognition, and inference capability\n") :
-                       LOGE("system_info_get_platform_bool returned"
-                                       "Unsupported all features of barcode detection, "
-                                       "barcode generation, face recognition, "
-                                       "image recognition, inference capability\n") ;
-
-       return (isBarcodeDetectionSupported || isBarcodeGenerationSupported ||
-                       isFaceRecognitionSupported  || isImageRecognitionSupported ||
-                       isInferenceImageSupported   || isInferenceFaceSupported);
-}
-
-bool __mv_barcode_detect_check_system_info_feature_supported()
-{
-       bool isBarcodeDetectionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_detection",
-                                       &isBarcodeDetectionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_detection");
-               return false;
-       }
-
-       isBarcodeDetectionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported barcode detection feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported barcode detection feature capability\n");
-
-       return isBarcodeDetectionSupported;
-}
-
-bool __mv_barcode_generate_check_system_info_feature_supported()
-{
-       bool isBarcodeGenerationSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_generation",
-                                       &isBarcodeGenerationSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation");
-               return false;
-       }
-
-       isBarcodeGenerationSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported barcode generation feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported barcode generation feature capability\n");
-
-       return isBarcodeGenerationSupported;
-}
-
-bool __mv_face_check_system_info_feature_supported()
-{
-       bool isFaceRecognitionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.face_recognition",
-                                       &isFaceRecognitionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.face_recognition");
-               return false;
-       }
-
-       isFaceRecognitionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported face recognition feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported face recognition feature capability\n");
-
-       return isFaceRecognitionSupported;
-}
-
-bool __mv_image_check_system_info_feature_supported()
-{
-       bool isImageRecognitionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.image_recognition",
-                                       &isImageRecognitionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.image_recognition");
-               return false;
-       }
-
-       isImageRecognitionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported image recognition feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported image recognition feature capability\n");
-
-       return isImageRecognitionSupported;
-}
-
-bool __mv_inference_check_system_info_feature_supported()
-{
-       bool isInferenceImageSupported = false;
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal1 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       const int nRetVal2 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal2 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-
-       (isInferenceImageSupported || isInferenceFaceSupported) ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference feature capability\n");
-
-       return (isInferenceImageSupported || isInferenceFaceSupported);
-}
-
-bool __mv_inference_image_check_system_info_feature_supported()
-{
-       bool isInferenceImageSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       isInferenceImageSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference image feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference image feature capability\n");
-
-       return isInferenceImageSupported;
-}
-
-bool __mv_inference_face_check_system_info_feature_supported()
-{
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-
-       isInferenceFaceSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference face feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference face feature capability\n");
-
-       return isInferenceFaceSupported;
-}
diff --git a/mv_image/image/src/mv_private.c b/mv_image/image/src/mv_private.c
deleted file mode 100644 (file)
index 16ae6a4..0000000
+++ /dev/null
@@ -1,261 +0,0 @@
-/**
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <system_info.h>
-
-#include "mv_private.h"
-
-bool __mv_check_system_info_feature_supported()
-{
-       bool isBarcodeDetectionSupported = false;
-       bool isBarcodeGenerationSupported = false;
-       bool isFaceRecognitionSupported = false;
-       bool isImageRecognitionSupported = false;
-       bool isInferenceImageSupported = false;
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal1 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_detection",
-                                       &isBarcodeDetectionSupported);
-
-       if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_detection");
-               return false;
-       }
-
-       const int nRetVal2 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_generation",
-                                       &isBarcodeGenerationSupported);
-
-       if (nRetVal2 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation");
-               return false;
-       }
-
-       const int nRetVal3 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.face_recognition",
-                                       &isFaceRecognitionSupported);
-
-       if (nRetVal3 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.face_recognition");
-               return false;
-       }
-
-       const int nRetVal4 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.image_recognition",
-                                       &isImageRecognitionSupported);
-
-       if (nRetVal4 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.image_recognition");
-               return false;
-       }
-       const int nRetVal5 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal5 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       const int nRetVal6 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal6 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-       (isBarcodeDetectionSupported || isBarcodeGenerationSupported ||
-               isFaceRecognitionSupported  || isImageRecognitionSupported ||
-               isInferenceImageSupported || isInferenceFaceSupported) ?
-                       LOGI("system_info_get_platform_bool returned"
-                                       "Supported one feature among barcode detection, "
-                                       "barcode generation, face recognition, "
-                                       "image recognition, and inference capability\n") :
-                       LOGE("system_info_get_platform_bool returned"
-                                       "Unsupported all features of barcode detection, "
-                                       "barcode generation, face recognition, "
-                                       "image recognition, inference capability\n") ;
-
-       return (isBarcodeDetectionSupported || isBarcodeGenerationSupported ||
-                       isFaceRecognitionSupported  || isImageRecognitionSupported ||
-                       isInferenceImageSupported   || isInferenceFaceSupported);
-}
-
-bool __mv_barcode_detect_check_system_info_feature_supported()
-{
-       bool isBarcodeDetectionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_detection",
-                                       &isBarcodeDetectionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_detection");
-               return false;
-       }
-
-       isBarcodeDetectionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported barcode detection feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported barcode detection feature capability\n");
-
-       return isBarcodeDetectionSupported;
-}
-
-bool __mv_barcode_generate_check_system_info_feature_supported()
-{
-       bool isBarcodeGenerationSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_generation",
-                                       &isBarcodeGenerationSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation");
-               return false;
-       }
-
-       isBarcodeGenerationSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported barcode generation feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported barcode generation feature capability\n");
-
-       return isBarcodeGenerationSupported;
-}
-
-bool __mv_face_check_system_info_feature_supported()
-{
-       bool isFaceRecognitionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.face_recognition",
-                                       &isFaceRecognitionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.face_recognition");
-               return false;
-       }
-
-       isFaceRecognitionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported face recognition feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported face recognition feature capability\n");
-
-       return isFaceRecognitionSupported;
-}
-
-bool __mv_image_check_system_info_feature_supported()
-{
-       bool isImageRecognitionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.image_recognition",
-                                       &isImageRecognitionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.image_recognition");
-               return false;
-       }
-
-       isImageRecognitionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported image recognition feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported image recognition feature capability\n");
-
-       return isImageRecognitionSupported;
-}
-
-bool __mv_inference_check_system_info_feature_supported()
-{
-       bool isInferenceImageSupported = false;
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal1 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       const int nRetVal2 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal2 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-
-       (isInferenceImageSupported || isInferenceFaceSupported) ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference feature capability\n");
-
-       return (isInferenceImageSupported || isInferenceFaceSupported);
-}
-
-bool __mv_inference_image_check_system_info_feature_supported()
-{
-       bool isInferenceImageSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       isInferenceImageSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference image feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference image feature capability\n");
-
-       return isInferenceImageSupported;
-}
-
-bool __mv_inference_face_check_system_info_feature_supported()
-{
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-
-       isInferenceFaceSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference face feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference face feature capability\n");
-
-       return isInferenceFaceSupported;
-}
diff --git a/mv_inference/inference/src/mv_private.c b/mv_inference/inference/src/mv_private.c
deleted file mode 100644 (file)
index 16ae6a4..0000000
+++ /dev/null
@@ -1,261 +0,0 @@
-/**
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <system_info.h>
-
-#include "mv_private.h"
-
-bool __mv_check_system_info_feature_supported()
-{
-       bool isBarcodeDetectionSupported = false;
-       bool isBarcodeGenerationSupported = false;
-       bool isFaceRecognitionSupported = false;
-       bool isImageRecognitionSupported = false;
-       bool isInferenceImageSupported = false;
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal1 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_detection",
-                                       &isBarcodeDetectionSupported);
-
-       if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_detection");
-               return false;
-       }
-
-       const int nRetVal2 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_generation",
-                                       &isBarcodeGenerationSupported);
-
-       if (nRetVal2 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation");
-               return false;
-       }
-
-       const int nRetVal3 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.face_recognition",
-                                       &isFaceRecognitionSupported);
-
-       if (nRetVal3 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.face_recognition");
-               return false;
-       }
-
-       const int nRetVal4 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.image_recognition",
-                                       &isImageRecognitionSupported);
-
-       if (nRetVal4 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.image_recognition");
-               return false;
-       }
-       const int nRetVal5 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal5 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       const int nRetVal6 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal6 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-       (isBarcodeDetectionSupported || isBarcodeGenerationSupported ||
-               isFaceRecognitionSupported  || isImageRecognitionSupported ||
-               isInferenceImageSupported || isInferenceFaceSupported) ?
-                       LOGI("system_info_get_platform_bool returned"
-                                       "Supported one feature among barcode detection, "
-                                       "barcode generation, face recognition, "
-                                       "image recognition, and inference capability\n") :
-                       LOGE("system_info_get_platform_bool returned"
-                                       "Unsupported all features of barcode detection, "
-                                       "barcode generation, face recognition, "
-                                       "image recognition, inference capability\n") ;
-
-       return (isBarcodeDetectionSupported || isBarcodeGenerationSupported ||
-                       isFaceRecognitionSupported  || isImageRecognitionSupported ||
-                       isInferenceImageSupported   || isInferenceFaceSupported);
-}
-
-bool __mv_barcode_detect_check_system_info_feature_supported()
-{
-       bool isBarcodeDetectionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_detection",
-                                       &isBarcodeDetectionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_detection");
-               return false;
-       }
-
-       isBarcodeDetectionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported barcode detection feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported barcode detection feature capability\n");
-
-       return isBarcodeDetectionSupported;
-}
-
-bool __mv_barcode_generate_check_system_info_feature_supported()
-{
-       bool isBarcodeGenerationSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_generation",
-                                       &isBarcodeGenerationSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation");
-               return false;
-       }
-
-       isBarcodeGenerationSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported barcode generation feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported barcode generation feature capability\n");
-
-       return isBarcodeGenerationSupported;
-}
-
-bool __mv_face_check_system_info_feature_supported()
-{
-       bool isFaceRecognitionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.face_recognition",
-                                       &isFaceRecognitionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.face_recognition");
-               return false;
-       }
-
-       isFaceRecognitionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported face recognition feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported face recognition feature capability\n");
-
-       return isFaceRecognitionSupported;
-}
-
-bool __mv_image_check_system_info_feature_supported()
-{
-       bool isImageRecognitionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.image_recognition",
-                                       &isImageRecognitionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.image_recognition");
-               return false;
-       }
-
-       isImageRecognitionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported image recognition feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported image recognition feature capability\n");
-
-       return isImageRecognitionSupported;
-}
-
-bool __mv_inference_check_system_info_feature_supported()
-{
-       bool isInferenceImageSupported = false;
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal1 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       const int nRetVal2 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal2 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-
-       (isInferenceImageSupported || isInferenceFaceSupported) ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference feature capability\n");
-
-       return (isInferenceImageSupported || isInferenceFaceSupported);
-}
-
-bool __mv_inference_image_check_system_info_feature_supported()
-{
-       bool isInferenceImageSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       isInferenceImageSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference image feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference image feature capability\n");
-
-       return isInferenceImageSupported;
-}
-
-bool __mv_inference_face_check_system_info_feature_supported()
-{
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-
-       isInferenceFaceSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference face feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference face feature capability\n");
-
-       return isInferenceFaceSupported;
-}
diff --git a/mv_surveillance/surveillance/src/mv_private.c b/mv_surveillance/surveillance/src/mv_private.c
deleted file mode 100644 (file)
index 16ae6a4..0000000
+++ /dev/null
@@ -1,261 +0,0 @@
-/**
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <system_info.h>
-
-#include "mv_private.h"
-
-bool __mv_check_system_info_feature_supported()
-{
-       bool isBarcodeDetectionSupported = false;
-       bool isBarcodeGenerationSupported = false;
-       bool isFaceRecognitionSupported = false;
-       bool isImageRecognitionSupported = false;
-       bool isInferenceImageSupported = false;
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal1 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_detection",
-                                       &isBarcodeDetectionSupported);
-
-       if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_detection");
-               return false;
-       }
-
-       const int nRetVal2 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_generation",
-                                       &isBarcodeGenerationSupported);
-
-       if (nRetVal2 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation");
-               return false;
-       }
-
-       const int nRetVal3 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.face_recognition",
-                                       &isFaceRecognitionSupported);
-
-       if (nRetVal3 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.face_recognition");
-               return false;
-       }
-
-       const int nRetVal4 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.image_recognition",
-                                       &isImageRecognitionSupported);
-
-       if (nRetVal4 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.image_recognition");
-               return false;
-       }
-       const int nRetVal5 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal5 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       const int nRetVal6 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal6 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-       (isBarcodeDetectionSupported || isBarcodeGenerationSupported ||
-               isFaceRecognitionSupported  || isImageRecognitionSupported ||
-               isInferenceImageSupported || isInferenceFaceSupported) ?
-                       LOGI("system_info_get_platform_bool returned"
-                                       "Supported one feature among barcode detection, "
-                                       "barcode generation, face recognition, "
-                                       "image recognition, and inference capability\n") :
-                       LOGE("system_info_get_platform_bool returned"
-                                       "Unsupported all features of barcode detection, "
-                                       "barcode generation, face recognition, "
-                                       "image recognition, inference capability\n") ;
-
-       return (isBarcodeDetectionSupported || isBarcodeGenerationSupported ||
-                       isFaceRecognitionSupported  || isImageRecognitionSupported ||
-                       isInferenceImageSupported   || isInferenceFaceSupported);
-}
-
-bool __mv_barcode_detect_check_system_info_feature_supported()
-{
-       bool isBarcodeDetectionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_detection",
-                                       &isBarcodeDetectionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_detection");
-               return false;
-       }
-
-       isBarcodeDetectionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported barcode detection feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported barcode detection feature capability\n");
-
-       return isBarcodeDetectionSupported;
-}
-
-bool __mv_barcode_generate_check_system_info_feature_supported()
-{
-       bool isBarcodeGenerationSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.barcode_generation",
-                                       &isBarcodeGenerationSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation");
-               return false;
-       }
-
-       isBarcodeGenerationSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported barcode generation feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported barcode generation feature capability\n");
-
-       return isBarcodeGenerationSupported;
-}
-
-bool __mv_face_check_system_info_feature_supported()
-{
-       bool isFaceRecognitionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.face_recognition",
-                                       &isFaceRecognitionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.face_recognition");
-               return false;
-       }
-
-       isFaceRecognitionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported face recognition feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported face recognition feature capability\n");
-
-       return isFaceRecognitionSupported;
-}
-
-bool __mv_image_check_system_info_feature_supported()
-{
-       bool isImageRecognitionSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.image_recognition",
-                                       &isImageRecognitionSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.image_recognition");
-               return false;
-       }
-
-       isImageRecognitionSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported image recognition feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported image recognition feature capability\n");
-
-       return isImageRecognitionSupported;
-}
-
-bool __mv_inference_check_system_info_feature_supported()
-{
-       bool isInferenceImageSupported = false;
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal1 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       const int nRetVal2 = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal2 != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-
-       (isInferenceImageSupported || isInferenceFaceSupported) ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference feature capability\n");
-
-       return (isInferenceImageSupported || isInferenceFaceSupported);
-}
-
-bool __mv_inference_image_check_system_info_feature_supported()
-{
-       bool isInferenceImageSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.image",
-                                       &isInferenceImageSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.image");
-               return false;
-       }
-
-       isInferenceImageSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference image feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference image feature capability\n");
-
-       return isInferenceImageSupported;
-}
-
-bool __mv_inference_face_check_system_info_feature_supported()
-{
-       bool isInferenceFaceSupported = false;
-
-       const int nRetVal = system_info_get_platform_bool(
-                                       "http://tizen.org/feature/vision.inference.face",
-                                       &isInferenceFaceSupported);
-
-       if (nRetVal != SYSTEM_INFO_ERROR_NONE) {
-               LOGE("SYSTEM_INFO_ERROR: vision.inference.face");
-               return false;
-       }
-
-       isInferenceFaceSupported ?
-                       LOGI("system_info_get_platform_bool returned "
-                                       "Supported inference face feature capability\n") :
-                       LOGE("system_info_get_platform_bool returned "
-                                       "Unsupported inference face feature capability\n");
-
-       return isInferenceFaceSupported;
-}