[MediaVision] Fix wrong key string value (#1602)
authorTae-Young Chung <taeyoung1484@gmail.com>
Wed, 13 May 2020 07:45:12 +0000 (16:45 +0900)
committerGitHub <noreply@github.com>
Wed, 13 May 2020 07:45:12 +0000 (16:45 +0900)
* [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 <ty83.chung@samsung.com>
* [MediaVision] Fix _keyTargetDevice to _keyTargetDeviceType

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs

index f0401a5ec881a555878c6e2716fa21532ff9ac0d..3909f9cb76500d054e27b43ec40d5a519e66409a 100755 (executable)
@@ -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);
             }
         }