*
* @since_tizen 6.5
*/
- int CheckSupportedTargetDevice(const int targetDevices);
+ bool IsTargetDeviceSupported(const int targetDevices);
/**
* @brief Configure the maximum number of inference results
return MEDIA_VISION_ERROR_NONE;
}
- int Inference::CheckSupportedTargetDevice(const int targetDevices)
+ bool Inference::IsTargetDeviceSupported(const int targetDevices)
{
if (!(mBackendCapacity.supported_accel_devices & targetDevices)) {
- LOGE("Backend doesn't support a given %d device acceleration.", targetDevices);
- return MEDIA_VISION_ERROR_NOT_SUPPORTED;
+ LOGE("Backend doesn't support a given %x device acceleration.", targetDevices);
+ return false;
}
- return MEDIA_VISION_ERROR_NONE;
+ return true;
}
void Inference::ConfigureOutput(const int maxOutputNumbers)
LOGE("Fail to bind a backend engine.");
}
- if (pInfer->CheckSupportedTargetDevice(targetTypes) !=
- MEDIA_VISION_ERROR_NONE) {
+ if (!pInfer->IsTargetDeviceSupported(targetTypes)) {
+ ret = MEDIA_VISION_ERROR_NOT_SUPPORTED;
LOGE("Tried to configure invalid target types.");
- goto _ERROR_;
}
- LOGI("LEAVE");
_ERROR_:
+ LOGI("LEAVE");
return ret;
}
Name: capi-media-vision
Summary: Media Vision library for Tizen Native API
Version: 0.8.12
-Release: 0
+Release: 1
Group: Multimedia/Framework
License: Apache-2.0 and BSD-3-Clause
Source0: %{name}-%{version}.tar.gz