summaryrefslogtreecommitdiff
path: root/mv_barcode
diff options
context:
space:
mode:
authorKwanghoon Son <k.son@samsung.com>2020-02-20 10:38:31 +0900
committerKwanghoon Son <k.son@samsung.com>2020-02-20 10:38:31 +0900
commit89be849d3641438f2d03b7eaef869dbeefb6d8cf (patch)
tree0d2e94fc3eb37eab774db4654d6afcbb20c8da83 /mv_barcode
parent6cc84ded35973e1b46468f718e97121360f4be09 (diff)
downloadmediavision-89be849d3641438f2d03b7eaef869dbeefb6d8cf.tar.gz
mediavision-89be849d3641438f2d03b7eaef869dbeefb6d8cf.tar.bz2
mediavision-89be849d3641438f2d03b7eaef869dbeefb6d8cf.zip
Delete duplicate mv_private.c
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>
Diffstat (limited to 'mv_barcode')
-rw-r--r--mv_barcode/barcode_detector/src/mv_private.c261
-rw-r--r--mv_barcode/barcode_generator/src/mv_private.c261
2 files changed, 0 insertions, 522 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;
-}