Go to the documentation of this file.
27 #ifndef AVFILTER_DNN_DNN_BACKEND_NATIVE_H
28 #define AVFILTER_DNN_DNN_BACKEND_NATIVE_H
30 #include "../dnn_interface.h"
static FilteringContext * filter_ctx
int32_t ff_calculate_operand_dims_count(const DnnOperand *oprd)
int8_t isNHWC
NHWC if 1, otherwise NCHW.
This structure describes decoded (raw) audio or video data.
DNNLayerType
the enum value of DNNLayerType should not be changed, the same values are used in convert_from_tensor...
Linear double-ended data structure.
DNNOperandType type
input/output/intermediate operand of the network
DNNModel * ff_dnn_load_model_native(const char *model_filename, DNNFunctionType func_type, const char *options, AVFilterContext *filter_ctx)
char name[128]
to avoid possible memory leak, do not use char *name
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.
Describe the class of an AVClass context structure.
int32_t dims[4]
there are two memory layouts, NHWC or NCHW, so we use dims, dims[0] is Number.
const OptionDef options[]
int32_t output_operand_index
int32_t input_operand_indexes[4]
a layer can have multiple inputs and one output.
int32_t ff_calculate_operand_data_length(const DnnOperand *oprd)
int ff_dnn_execute_model_native(const DNNModel *model, DNNExecBaseParams *exec_params)
int ff_dnn_flush_native(const DNNModel *model)
DNNAsyncStatusType ff_dnn_get_result_native(const DNNModel *model, AVFrame **in, AVFrame **out)
void ff_dnn_free_model_native(DNNModel **model)