[FFmpeg-cvslog] avfilter/vf_colorlevels: typedef ThreadData struct

Paul B Mahol git at videolan.org
Tue Feb 2 18:55:21 EET 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Feb  2 16:08:18 2021 +0100| [a7e826b9e13e7cc3c145a61d0aa599e6381dd12d] | committer: Paul B Mahol

avfilter/vf_colorlevels: typedef ThreadData struct

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a7e826b9e13e7cc3c145a61d0aa599e6381dd12d
---

 libavfilter/vf_colorlevels.c | 10 +++++-----
 1 file 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;



More information about the ffmpeg-cvslog mailing list