summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwang son <k.son@samsung.com>2020-02-25 01:39:11 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2020-02-25 01:39:11 +0000
commit3549c496d867a96893912a82d475a2e8e22db8f5 (patch)
treeaa03e436571b9b24dca76564d6e52dcf1886703e
parentf6dd439f39fef239fea3897f14f32378b64d1177 (diff)
parent89be849d3641438f2d03b7eaef869dbeefb6d8cf (diff)
downloadmediavision-3549c496d867a96893912a82d475a2e8e22db8f5.tar.gz
mediavision-3549c496d867a96893912a82d475a2e8e22db8f5.tar.bz2
mediavision-3549c496d867a96893912a82d475a2e8e22db8f5.zip
Merge "Delete duplicate mv_private.c" into tizen
-rw-r--r--mv_barcode/barcode_detector/src/mv_private.c261
-rw-r--r--mv_barcode/barcode_generator/src/mv_private.c261
-rw-r--r--mv_face/face/src/mv_private.c261
-rw-r--r--mv_image/image/src/mv_private.c261
-rw-r--r--mv_inference/inference/src/mv_private.c261
-rw-r--r--mv_surveillance/surveillance/src/mv_private.c261
6 files changed, 0 insertions, 1566 deletions
diff --git a/mv_barcode/barcode_detector/src/mv_private.c b/mv_barcode/barcode_detector/src/mv_private.c
deleted file mode 100644
index 16ae6a41..00000000
--- a/mv_barcode/barcode_detector/src/mv_private.c
+++ /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
index 16ae6a41..00000000
--- a/mv_barcode/barcode_generator/src/mv_private.c
+++ /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
index 16ae6a41..00000000
--- a/mv_face/face/src/mv_private.c
+++ /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
index 16ae6a41..00000000
--- a/mv_image/image/src/mv_private.c
+++ /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
index 16ae6a41..00000000
--- a/mv_inference/inference/src/mv_private.c
+++ /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
index 16ae6a41..00000000
--- a/mv_surveillance/surveillance/src/mv_private.c
+++ /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;
-}