]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_colorlevels: typedef ThreadData struct
authorPaul B Mahol <onemda@gmail.com>
Tue, 2 Feb 2021 15:08:18 +0000 (16:08 +0100)
committerPaul B Mahol <onemda@gmail.com>
Tue, 2 Feb 2021 16:53:29 +0000 (17:53 +0100)
libavfilter/vf_colorlevels.c

index c03e288e4ac58ba1d3a91fde74d90a471bbf4139..6ed0c0600404c25ef9a1da0d54f391549658de71 100644 (file)
@@ -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;