From: Tae-Young Chung Date: Wed, 13 May 2020 07:45:12 +0000 (+0900) Subject: [MediaVision] Fix wrong key string value (#1602) X-Git-Tag: accepted/tizen/unified/20210219.040944~741 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36931242174dfd82a5c2df5453b1f6fc931b64c7;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [MediaVision] Fix wrong key string value (#1602) * [MediaVision] Fix wrong key string value Wrong key string value of MV_INFERENCE_TARGET_DEVICE. In NativeACR, MV_INFERENCE_TARGET_DEVICE_TYPE is added. This patch fix it. Signed-off-by: Tae-Young Chung * [MediaVision] Fix _keyTargetDevice to _keyTargetDeviceType Signed-off-by: Tae-Young Chung --- diff --git a/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs index f0401a5..3909f9c 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs @@ -46,7 +46,7 @@ namespace Tizen.Multimedia.Vision private const string _keyModelStdValue = "MV_INFERENCE_MODEL_STD_VALUE"; private const string _keyBackendType = "MV_INFERENCE_BACKEND_TYPE"; private const string _keyTargetType = "MV_INFERENCE_TARGET_TYPE"; - private const string _keyTargetDevice = "MV_INFERENCE_TARGET_DEVICE"; + private const string _keyTargetDeviceType = "MV_INFERENCE_TARGET_DEVICE_TYPE"; private const string _keyInputTensorWidth = "MV_INFERENCE_INPUT_TENSOR_WIDTH"; private const string _keyInputTensorHeight = "MV_INFERENCE_INPUT_TENSOR_HEIGHT"; private const string _keyInputTensorChannels = "MV_INFERENCE_INPUT_TENSOR_CHANNELS"; @@ -353,13 +353,13 @@ namespace Tizen.Multimedia.Vision { get { - return (InferenceTargetDevice)GetInt(_keyTargetDevice); + return (InferenceTargetDevice)GetInt(_keyTargetDeviceType); } set { ValidationUtil.ValidateEnum(typeof(InferenceTargetDevice), value, nameof(Device)); - Set(_keyTargetDevice, (int)value); + Set(_keyTargetDeviceType, (int)value); } }