diff options
author | Mark Thompson <sw@jkqxz.net> | 2021-01-21 21:39:55 +0000 |
---|---|---|
committer | Guo, Yejun <yejun.guo@intel.com> | 2021-01-22 15:03:09 +0800 |
commit | bb96824510aad2ac4cf0bff545c85af7a256ff92 (patch) | |
tree | 82f3c909445b317f48d930d27f1ccd6408ff6ffe /libavfilter/dnn/dnn_backend_native.c | |
parent | 2c424d963039a7d50b5b93f0db5efd70101d8e44 (diff) |
dnn: Add ff_ prefix to unnamespaced globals
Reviewed-By: Guo, Yejun <yejun.guo@intel.com>
Diffstat (limited to 'libavfilter/dnn/dnn_backend_native.c')
-rw-r--r-- | libavfilter/dnn/dnn_backend_native.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/dnn/dnn_backend_native.c b/libavfilter/dnn/dnn_backend_native.c index be43081170..1f89ee4110 100644 --- a/libavfilter/dnn/dnn_backend_native.c +++ b/libavfilter/dnn/dnn_backend_native.c @@ -208,7 +208,7 @@ DNNModel *ff_dnn_load_model_native(const char *model_filename, const char *optio } native_model->layers[layer].type = layer_type; - parsed_size = layer_funcs[layer_type].pf_load(&native_model->layers[layer], model_file_context, file_size, native_model->operands_num); + parsed_size = ff_layer_funcs[layer_type].pf_load(&native_model->layers[layer], model_file_context, file_size, native_model->operands_num); if (!parsed_size) { goto fail; } @@ -300,7 +300,7 @@ static DNNReturnType execute_model_native(const DNNModel *model, const char *inp oprd->dims[2] = in_frame->width; av_freep(&oprd->data); - oprd->length = calculate_operand_data_length(oprd); + oprd->length = ff_calculate_operand_data_length(oprd); if (oprd->length <= 0) { av_log(ctx, AV_LOG_ERROR, "The input data length overflow\n"); return DNN_ERROR; @@ -333,7 +333,7 @@ static DNNReturnType execute_model_native(const DNNModel *model, const char *inp for (layer = 0; layer < native_model->layers_num; ++layer){ DNNLayerType layer_type = native_model->layers[layer].type; - if (layer_funcs[layer_type].pf_exec(native_model->operands, + if (ff_layer_funcs[layer_type].pf_exec(native_model->operands, native_model->layers[layer].input_operand_indexes, native_model->layers[layer].output_operand_index, native_model->layers[layer].params, @@ -398,7 +398,7 @@ DNNReturnType ff_dnn_execute_model_native(const DNNModel *model, const char *inp return execute_model_native(model, input_name, in_frame, output_names, nb_output, out_frame, 1); } -int32_t calculate_operand_dims_count(const DnnOperand *oprd) +int32_t ff_calculate_operand_dims_count(const DnnOperand *oprd) { int32_t result = 1; for (int i = 0; i < 4; ++i) @@ -407,7 +407,7 @@ int32_t calculate_operand_dims_count(const DnnOperand *oprd) return result; } -int32_t calculate_operand_data_length(const DnnOperand* oprd) +int32_t ff_calculate_operand_data_length(const DnnOperand* oprd) { // currently, we just support DNN_FLOAT uint64_t len = sizeof(float); |