diff options
author | Tae-Young Chung <ty83.chung@samsung.com> | 2021-08-24 17:46:39 +0900 |
---|---|---|
committer | Tae-Young Chung <ty83.chung@samsung.com> | 2021-08-24 17:46:50 +0900 |
commit | d839d629e10ab91d533fcb7dd31293f61e0d7e99 (patch) | |
tree | 00de8749b1f20b3319631e5acf006d9d6983a3b0 | |
parent | ccccaf4897e91e9b37f61d191148cb1db3fa9818 (diff) | |
download | mediavision-d839d629e10ab91d533fcb7dd31293f61e0d7e99.tar.gz mediavision-d839d629e10ab91d533fcb7dd31293f61e0d7e99.tar.bz2 mediavision-d839d629e10ab91d533fcb7dd31293f61e0d7e99.zip |
Fix '!=' operator to '&' for supported_accel_devices bitwise comparison
Change-Id: Ief7d7deebcc9e2fcac83ff98f9b01f0c40e09f38
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
-rwxr-xr-x | mv_machine_learning/mv_inference/inference/src/Inference.cpp | 6 | ||||
-rw-r--r-- | packaging/capi-media-vision.spec | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/mv_machine_learning/mv_inference/inference/src/Inference.cpp b/mv_machine_learning/mv_inference/inference/src/Inference.cpp index e58a6759..2af0f6d3 100755 --- a/mv_machine_learning/mv_inference/inference/src/Inference.cpp +++ b/mv_machine_learning/mv_inference/inference/src/Inference.cpp @@ -544,21 +544,21 @@ namespace inference // Convert old type to new one. switch (targetType) { case MV_INFERENCE_TARGET_CPU: - if (mBackendCapacity.supported_accel_devices != INFERENCE_TARGET_CPU) { + if (!(mBackendCapacity.supported_accel_devices & INFERENCE_TARGET_CPU)) { LOGE("Backend doesn't support CPU acceleration."); return MEDIA_VISION_ERROR_NOT_SUPPORTED; } new_type = MV_INFERENCE_TARGET_DEVICE_CPU; break; case MV_INFERENCE_TARGET_GPU: - if (mBackendCapacity.supported_accel_devices != INFERENCE_TARGET_GPU) { + if (!(mBackendCapacity.supported_accel_devices & INFERENCE_TARGET_GPU)) { LOGE("Backend doesn't support GPU acceleration."); return MEDIA_VISION_ERROR_NOT_SUPPORTED; } new_type = MV_INFERENCE_TARGET_DEVICE_GPU; break; case MV_INFERENCE_TARGET_CUSTOM: - if (mBackendCapacity.supported_accel_devices != INFERENCE_TARGET_CUSTOM) { + if (!(mBackendCapacity.supported_accel_devices & INFERENCE_TARGET_CUSTOM)) { LOGE("Backend doesn't support custom device acceleration."); return MEDIA_VISION_ERROR_NOT_SUPPORTED; } diff --git a/packaging/capi-media-vision.spec b/packaging/capi-media-vision.spec index 91f4ea05..81598bc7 100644 --- a/packaging/capi-media-vision.spec +++ b/packaging/capi-media-vision.spec @@ -1,7 +1,7 @@ Name: capi-media-vision Summary: Media Vision library for Tizen Native API -Version: 0.8.10 -Release: 2 +Version: 0.8.11 +Release: 0 Group: Multimedia/Framework License: Apache-2.0 and BSD-3-Clause Source0: %{name}-%{version}.tar.gz |