// 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;
}
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