mv_maching_learning: deprecate MLAPI and MAX types 41/268741/9
authorInki Dae <inki.dae@samsung.com>
Fri, 31 Dec 2021 01:50:53 +0000 (10:50 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 5 Jan 2022 06:00:03 +0000 (06:00 +0000)
[Version] : 0.11.0-0
[Issue type] : cleanup

Deprecated MV_INFERENCE_BACKEND_MLAPI and MV_INFERENCE_BACKEND_MAX types.
MV_INFERENCE_BACKEND_MLAPI is not backend type but other API framework,
and another may break the binary compatibility when adding a new enumeration
value because MAX value is different from one of the binary
So drop these two types.

Change-Id: I391cd0d4b713e3d35fe263f1567f4cea3df60630
Signed-off-by: Inki Dae <inki.dae@samsung.com>
include/mv_inference_type.h
mv_machine_learning/mv_inference/inference/src/mv_inference_open.cpp
packaging/capi-media-vision.spec

index 5a6572d..1794b83 100644 (file)
@@ -48,7 +48,7 @@ extern "C" {
  *                             run efficiently without modification on Embedded hardware.
  *                             (https://developer.arm.com/ip-products/processors/machine-learning/arm-nn)
  * #MV_INFERENCE_BACKEND_MLAPI Samsung-introduced open source ML single API framework of NNStreamer, which
- *                             runs various NN models via tensor filters of NNStreamer.
+ *                             runs various NN models via tensor filters of NNStreamer. (Deprecated since 7.0)
  *                             (https://github.com/nnstreamer/nnstreamer)
  * #MV_INFERENCE_BACKEND_ONE Samsung-introduced open source inference engine called On-device Neural Engine, which
  *                           performs inference of a given NN model on various devices such as CPU, GPU, DSP and NPU.
@@ -63,11 +63,11 @@ typedef enum {
     MV_INFERENCE_BACKEND_OPENCV,    /**< OpenCV */
     MV_INFERENCE_BACKEND_TFLITE,    /**< TensorFlow-Lite */
     MV_INFERENCE_BACKEND_ARMNN,     /**< ARMNN (Since 6.0) */
-    MV_INFERENCE_BACKEND_MLAPI,     /**< ML Single API of NNStreamer (Since 6.0) */
+    MV_INFERENCE_BACKEND_MLAPI,     /**< @deprecated ML Single API of NNStreamer (Deprecated since 7.0) */
     MV_INFERENCE_BACKEND_ONE,       /**< On-device Neural Engine (Since 6.0) */
     MV_INFERENCE_BACKEND_NNTRAINER, /**< NNTrainer (Since 7.0) */
     MV_INFERENCE_BACKEND_SNPE,      /**< SNPE Engine (Since 7.0) */
-    MV_INFERENCE_BACKEND_MAX        /**< Backend MAX */
+    MV_INFERENCE_BACKEND_MAX        /**< @deprecated Backend MAX (Deprecated since 7.0) */
 } mv_inference_backend_type_e;
 
 /**
index a9fd490..5faa3ad 100644 (file)
@@ -125,6 +125,8 @@ static bool IsValidBackendType(const int backend_type)
 
 static bool IsConfigFilePathRequired(const int target_device_type, const int backend_type)
 {
+       LOGW("DEPRECATION WARNING : MV_INFERENCE_BACKEND_MLAPI type is deprecated and will be removed from next release.");
+
        // In case of MV_INFERENCE_TARGET_DEVICE_CUSTOM via MLAPI backend, config file path is required.
        return (backend_type == MV_INFERENCE_BACKEND_MLAPI &&
                        target_device_type & MV_INFERENCE_TARGET_DEVICE_CUSTOM);
index 00147d8..50fcffc 100644 (file)
@@ -1,6 +1,6 @@
 Name:        capi-media-vision
 Summary:     Media Vision library for Tizen Native API
-Version:     0.10.0
+Version:     0.11.0
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0 and BSD-3-Clause