[NE] Remove 'first_buffer' in configure functions.
authorDongju Chae <dongju.chae@samsung.com>
Wed, 17 Jul 2019 10:08:10 +0000 (19:08 +0900)
committer함명주/On-Device Lab(SR)/Principal Engineer/삼성전자 <myungjoo.ham@samsung.com>
Thu, 18 Jul 2019 10:51:42 +0000 (19:51 +0900)
This commit removes buffer arguments in configure functions.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
core/npu-engine/src/ne-comm.h
core/npu-engine/src/ne-handler.c
core/npu-engine/src/ne-inf.c
core/npu-engine/src/ne-inf.h

index c4892dc..d036e33 100644 (file)
@@ -62,11 +62,9 @@ typedef struct {
    * @param[in] m the model to be activated
    * @param[in] cb The callback to be called when the output is ready
    * @param[in] cb_data The private data to be given to the callback.
-   * @param[in] current_buffer The buffer with the input loaded. For internal-input (cam/mic) mode, this is the first input buffer for the internal input services. (TBD)
    * @return 0 if ok. errno if error.
    */
-  int (*setOpMode) (npu_input_opmode op, bool force, model *m, output_ready cb, 
-                    void *cb_data, buffer *current_buffer);
+  int (*setOpMode) (npu_input_opmode op, bool force, model *m, output_ready cb, void *cb_data);
 
   /**
    * @brief get the next input buffer
index deee56d..9077ee3 100644 (file)
@@ -347,12 +347,10 @@ n2_cb (buffer *buf, uint64_t offset, uint64_t size, void *data)
  * @param[in] m the model to be activated
  * @param[in] cb The callback to be called when the output is ready
  * @param[in] cb_data The private data to be given to the callback.
- * @param[in] current_buffer The buffer with the input loaded. For internal-input (cam/mic) mode, this is the first input buffer for the internal input services. (TBD)
  * @return 0 if ok. errno if error.
  */
 static int 
-handler_set_op_mode (npu_input_opmode op, bool force, model* m, output_ready cb, 
-                     void *cb_data, buffer *current_buffer)
+handler_set_op_mode (npu_input_opmode op, bool force, model* m, output_ready cb, void *cb_data)
 {
   HANDLER_LOCK ();
 
@@ -360,7 +358,7 @@ handler_set_op_mode (npu_input_opmode op, bool force, model* m, output_ready cb,
 
   HANDLER_UNLOCK ();
 
-  return setOpMode (op, force, m, n2_cb, cb_data, current_buffer);
+  return setOpMode (op, force, m, n2_cb, cb_data);
 }
 
 /**
index b26f236..31f85fd 100644 (file)
@@ -104,7 +104,7 @@ out:
 }
 
 /** @brief Start the configured N4 instance. For more detail, refer to the header */
-int n4_configure(n4_opmode op, submodel *m, output_ready cb, void *cb_data, buffer *first_buffer) {
+int n4_configure(n4_opmode op, submodel *m, output_ready cb, void *cb_data) {
   return 0;
 }
 
index 6d92191..dee11d0 100644 (file)
@@ -61,10 +61,9 @@ extern int n4_stop(n4_opmode op, stop_condition syncmode);
  * @param[in] m
  * @param[in] cb
  * @param[in] cb_data
- * @param[in/out] first_buffer
  * @return 0 if success, otherwise negative error numbers.
  */
-extern int n4_configure(n4_opmode op, submodel *m, output_ready cb, void *cb_data, buffer *first_buffer);
+extern int n4_configure(n4_opmode op, submodel *m, output_ready cb, void *cb_data);
 
 /**
  * @brief Allows to enter host input data.