summaryrefslogtreecommitdiff
path: root/libavfilter/dnn_interface.h
diff options
context:
space:
mode:
authorSergey Lavrushkin <dualfal@gmail.com>2018-07-27 19:34:02 +0300
committerPedro Arthur <bygrandao@gmail.com>2018-08-07 11:58:34 -0300
commit9d87897ba84a3b639a4c3afeb4ec6d21bc306a92 (patch)
tree468eb81a3f45374685ea5f388067d6f43a4d4f97 /libavfilter/dnn_interface.h
parent4eb63efbdaea6d36ad94f1bb0dd129b7f7aaa899 (diff)
downloadffmpeg-9d87897ba84a3b639a4c3afeb4ec6d21bc306a92.tar.gz
libavfilter: Code style fixes for pointers in DNN module and sr filter.
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
Diffstat (limited to 'libavfilter/dnn_interface.h')
-rw-r--r--libavfilter/dnn_interface.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavfilter/dnn_interface.h b/libavfilter/dnn_interface.h
index 6b820d1d5b..a69717ae62 100644
--- a/libavfilter/dnn_interface.h
+++ b/libavfilter/dnn_interface.h
@@ -33,31 +33,31 @@ typedef enum {DNN_NATIVE, DNN_TF} DNNBackendType;
typedef enum {DNN_SRCNN, DNN_ESPCN} DNNDefaultModel;
typedef struct DNNData{
- float* data;
+ float *data;
int width, height, channels;
} DNNData;
typedef struct DNNModel{
// Stores model that can be different for different backends.
- void* model;
+ void *model;
// Sets model input and output, while allocating additional memory for intermediate calculations.
// Should be called at least once before model execution.
- DNNReturnType (*set_input_output)(void* model, DNNData* input, DNNData* output);
+ DNNReturnType (*set_input_output)(void *model, DNNData *input, DNNData *output);
} DNNModel;
// Stores pointers to functions for loading, executing, freeing DNN models for one of the backends.
typedef struct DNNModule{
// Loads model and parameters from given file. Returns NULL if it is not possible.
- DNNModel* (*load_model)(const char* model_filename);
+ DNNModel *(*load_model)(const char *model_filename);
// Loads one of the default models
- DNNModel* (*load_default_model)(DNNDefaultModel model_type);
+ DNNModel *(*load_default_model)(DNNDefaultModel model_type);
// Executes model with specified input and output. Returns DNN_ERROR otherwise.
- DNNReturnType (*execute_model)(const DNNModel* model);
+ DNNReturnType (*execute_model)(const DNNModel *model);
// Frees memory allocated for model.
- void (*free_model)(DNNModel** model);
+ void (*free_model)(DNNModel **model);
} DNNModule;
// Initializes DNNModule depending on chosen backend.
-DNNModule* ff_get_dnn_module(DNNBackendType backend_type);
+DNNModule *ff_get_dnn_module(DNNBackendType backend_type);
#endif