History

dnn_backend_native_layer_conv2d.c: correct struct name with CamelCase

Guo, Yejun committed 5 years ago

Commit a76fa0c1 parent d4f40c11 file · +9 −9Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/dnn/dnn_backend_native_layer_conv2d.c+9−9
@@ -26,19 +26,19 @@ · 25 unmodified lines
2626 #define CLAMP_TO_EDGE(x, w) ((x) < 0 ? 0 : ((x) >= (w) ? (w - 1) : (x)))
2727
2828 //struct to pass parameters
29−typedef struct thread_common_param{
29+typedef struct ThreadCommonParam{
3030 DnnOperand *operands;
3131 const int32_t *input_operand_indexes;
3232 int32_t output_operand_index;
3333 const void *parameters;
3434 NativeContext *ctx;
3535 float *output_data;
36−} thread_common_param;
36+} ThreadCommonParam;
3737
38−typedef struct thread_param{
39− thread_common_param *thread_common_param;
38+typedef struct ThreadParam{
39+ ThreadCommonParam *thread_common_param;
4040 int thread_start, thread_end;
41−} thread_param;
41+} ThreadParam;
4242
4343 int dnn_load_layer_conv2d(Layer *layer, AVIOContext *model_file_context, int file_size, int operands_num)
4444 {
@@ -108,8 +108,8 @@ int dnn_load_layer_conv2d(Layer *layer, AVIOContext *model_file_context, int fil · 63 unmodified lines
108108 static void * dnn_execute_layer_conv2d_thread(void *threadarg)
109109 {
110110 //pass parameters
111− thread_param *thread_param = (struct thread_param *)threadarg;
112− thread_common_param *thread_common_param = thread_param->thread_common_param;
111+ ThreadParam *thread_param = threadarg;
112+ ThreadCommonParam *thread_common_param = thread_param->thread_common_param;
113113 DnnOperand *operands = thread_common_param->operands;
114114 int32_t input_operand_index = thread_common_param->input_operand_indexes[0];
115115 int height = operands[input_operand_index].dims[1];
@@ -190,8 +190,8 @@ int dnn_execute_layer_conv2d(DnnOperand *operands, const int32_t *input_operand_ · 74 unmodified lines
190190 pthread_t *thread_id = av_malloc(thread_num * sizeof(pthread_t));
191191 int thread_stride;
192192 #endif
193− thread_param **thread_param = av_malloc(thread_num * sizeof(*thread_param));
194− thread_common_param thread_common_param;
193+ ThreadParam **thread_param = av_malloc(thread_num * sizeof(*thread_param));
194+ ThreadCommonParam thread_common_param;
195195 const ConvolutionalParams *conv_params = (const ConvolutionalParams *)(parameters);
196196 int height = operands[input_operand_indexes[0]].dims[1];
197197 int width = operands[input_operand_indexes[0]].dims[2];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t