Go to the documentation of this file.
34 #ifndef __NNS_TENSOR_FILTER_CUSTOM_H__
35 #define __NNS_TENSOR_FILTER_CUSTOM_H__
NNS_custom_exit_func exitfunc
int(* NNS_custom_set_input_dimension)(void *private_data, const GstTensorFilterProperties *prop, const GstTensorsInfo *in_info, GstTensorsInfo *out_info)
Set input dim by framework. Let custom plugin set output dim accordingly.
Internal meta data exchange format for a other/tensors instance.
NNS_custom_get_input_dimension getInputDim
GstTensorSrcIIOChannelProperties * prop
DTYPE_UNSIGNED ( .
The unit of each data tensors. It will be used as an input/output tensor of other/tensors.
void(* NNS_custom_exit_func)(void *private_data, const GstTensorFilterProperties *prop)
A function that is called after calling other functions, when it's ready to close.
NNS_custom_init_func initfunc
int(* NNS_custom_get_input_dimension)(void *private_data, const GstTensorFilterProperties *prop, GstTensorsInfo *info)
Get input tensor type.
int(* NNS_custom_allocate_invoke)(void *private_data, const GstTensorFilterProperties *prop, const GstTensorMemory *input, GstTensorMemory *output)
Invoke the "main function". Without allocating output buffer. (fill in the given output buffer)
int(* NNS_custom_get_output_dimension)(void *private_data, const GstTensorFilterProperties *prop, GstTensorsInfo *info)
Get output tensor type.
NNStreamer_custom_class * NNStreamer_custom
A custom filter MUST define NNStreamer_custom. This object represents the custom filter itself.
Mandatory APIs for NNStreamer Filter sub-plugins (No External Dependencies)
Common header file for NNStreamer, the GStreamer plugin for neural networks.
GstTensorFilter's properties for NN framework (internal data structure)
int(* NNS_custom_invoke)(void *private_data, const GstTensorFilterProperties *prop, const GstTensorMemory *input, GstTensorMemory *output)
Invoke the "main function". Without allocating output buffer. (fill in the given output buffer)
NNS_custom_get_output_dimension getOutputDim
NNS_custom_allocate_invoke allocate_invoke
void *(* NNS_custom_init_func)(const GstTensorFilterProperties *prop)
A function that is called before calling other functions.
NNS_custom_destroy_notify destroy_notify
void(* NNS_custom_destroy_notify)(void *data)
It's a post-processing method about the used data pointer if it has been allocated at custom filter.
NNS_custom_set_input_dimension setInputDim