This commit removes buffer arguments in configure functions.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
* @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
* @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 ();
HANDLER_UNLOCK ();
- return setOpMode (op, force, m, n2_cb, cb_data, current_buffer);
+ return setOpMode (op, force, m, n2_cb, cb_data);
}
/**
}
/** @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;
}
* @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.