From: Dongju Chae Date: Wed, 17 Jul 2019 10:08:10 +0000 (+0900) Subject: [NE] Remove 'first_buffer' in configure functions. X-Git-Tag: accepted/tizen/unified/20220103.130045~772 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f0e3f5fc0e4c47306e8a6d2ac2bf1ce20af7ede;p=platform%2Fadaptation%2Fnpu%2Ftrix-engine.git [NE] Remove 'first_buffer' in configure functions. This commit removes buffer arguments in configure functions. Signed-off-by: Dongju Chae --- diff --git a/core/npu-engine/src/ne-comm.h b/core/npu-engine/src/ne-comm.h index c4892dc..d036e33 100644 --- a/core/npu-engine/src/ne-comm.h +++ b/core/npu-engine/src/ne-comm.h @@ -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 diff --git a/core/npu-engine/src/ne-handler.c b/core/npu-engine/src/ne-handler.c index deee56d..9077ee3 100644 --- a/core/npu-engine/src/ne-handler.c +++ b/core/npu-engine/src/ne-handler.c @@ -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); } /** diff --git a/core/npu-engine/src/ne-inf.c b/core/npu-engine/src/ne-inf.c index b26f236..31f85fd 100644 --- a/core/npu-engine/src/ne-inf.c +++ b/core/npu-engine/src/ne-inf.c @@ -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; } diff --git a/core/npu-engine/src/ne-inf.h b/core/npu-engine/src/ne-inf.h index 6d92191..dee11d0 100644 --- a/core/npu-engine/src/ne-inf.h +++ b/core/npu-engine/src/ne-inf.h @@ -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.