diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-02-02 16:08:18 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-02-02 17:53:29 +0100 |
commit | a7e826b9e13e7cc3c145a61d0aa599e6381dd12d (patch) | |
tree | 6a51c73cecb09524a3ff05ea9f1dd9d7250ade38 | |
parent | 85bdf1891769f9ae5d9c70b5cd851a6f662b623c (diff) |
avfilter/vf_colorlevels: typedef ThreadData struct
-rw-r--r-- | libavfilter/vf_colorlevels.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/vf_colorlevels.c b/libavfilter/vf_colorlevels.c index c03e288e4a..6ed0c06004 100644 --- a/libavfilter/vf_colorlevels.c +++ b/libavfilter/vf_colorlevels.c @@ -105,7 +105,7 @@ static int config_input(AVFilterLink *inlink) return 0; } -struct thread_data { +typedef struct ThreadData { const uint8_t *srcrow; uint8_t *dstrow; int dst_linesize; @@ -118,11 +118,11 @@ struct thread_data { int imin; int omin; -}; +} ThreadData; #define LOAD_COMMON\ ColorLevelsContext *s = ctx->priv;\ - const struct thread_data *td = arg;\ + const ThreadData *td = arg;\ \ int process_h = td->h;\ const int slice_start = (process_h * jobnr ) / nb_jobs;\ @@ -199,7 +199,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) int omin = lrint(r->out_min * UINT8_MAX); int omax = lrint(r->out_max * UINT8_MAX); double coeff; - struct thread_data td; + ThreadData td; if (imin < 0) { imin = UINT8_MAX; @@ -251,7 +251,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) int omin = lrint(r->out_min * UINT16_MAX); int omax = lrint(r->out_max * UINT16_MAX); double coeff; - struct thread_data td; + ThreadData td; if (imin < 0) { imin = UINT16_MAX; |