Commit 48662747 authored by James Zern's avatar James Zern
Browse files

simplify vp9_loop_filter_worker signature

use the type names directly in the function declaration rather than
(void *arg1, void *arg2)

Change-Id: I36bfc9c886310ce370bf0ca7c679ebd6e95109cc
parent f853117b
...@@ -1247,9 +1247,8 @@ void vp9_loop_filter_frame(YV12_BUFFER_CONFIG *frame, ...@@ -1247,9 +1247,8 @@ void vp9_loop_filter_frame(YV12_BUFFER_CONFIG *frame,
y_only); y_only);
} }
int vp9_loop_filter_worker(void *arg1, void *arg2) { int vp9_loop_filter_worker(LFWorkerData *const lf_data, void *unused) {
LFWorkerData *const lf_data = (LFWorkerData*)arg1; (void)unused;
(void)arg2;
vp9_loop_filter_rows(lf_data->frame_buffer, lf_data->cm, lf_data->planes, vp9_loop_filter_rows(lf_data->frame_buffer, lf_data->cm, lf_data->planes,
lf_data->start, lf_data->stop, lf_data->y_only); lf_data->start, lf_data->stop, lf_data->y_only);
return 1; return 1;
......
...@@ -129,8 +129,8 @@ typedef struct LoopFilterWorkerData { ...@@ -129,8 +129,8 @@ typedef struct LoopFilterWorkerData {
int num_lf_workers; int num_lf_workers;
} LFWorkerData; } LFWorkerData;
// Operates on the rows described by LFWorkerData passed as 'arg1'. // Operates on the rows described by 'lf_data'.
int vp9_loop_filter_worker(void *arg1, void *arg2); int vp9_loop_filter_worker(LFWorkerData *const lf_data, void *unused);
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment