27 #ifndef AVFILTER_DNN_DNN_BACKEND_NATIVE_H
28 #define AVFILTER_DNN_DNN_BACKEND_NATIVE_H
30 #include "../dnn_interface.h"
134 const char **output_names, uint32_t nb_output,
AVFrame *out_frame);
void ff_dnn_free_model_native(DNNModel **model)
DNNLayerType
the enum value of DNNLayerType should not be changed, the same values are used in convert_from_tensor...
int32_t ff_calculate_operand_dims_count(const DnnOperand *oprd)
DNNReturnType ff_dnn_execute_model_native(const DNNModel *model, const char *input_name, AVFrame *in_frame, const char **output_names, uint32_t nb_output, AVFrame *out_frame)
DNNModel * ff_dnn_load_model_native(const char *model_filename, DNNFunctionType func_type, const char *options, AVFilterContext *filter_ctx)
int32_t ff_calculate_operand_data_length(const DnnOperand *oprd)
const OptionDef options[]
Describe the class of an AVClass context structure.
This structure describes decoded (raw) audio or video data.
void * data
data pointer with data length in bytes.
DNNDataType data_type
support different kinds of data type such as float, half float, int8 etc, first support float now.
char name[128]
to avoid possible memory leak, do not use char *name
DNNOperandType type
input/output/intermediate operand of the network
int8_t isNHWC
NHWC if 1, otherwise NCHW.
int32_t dims[4]
there are two memory layouts, NHWC or NCHW, so we use dims, dims[0] is Number.
int32_t input_operand_indexes[4]
a layer can have multiple inputs and one output.
int32_t output_operand_index
static FilteringContext * filter_ctx