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

index 6ed0c0600404c25ef9a1da0d54f391549658de71..b4d81061330dc4fe552424bee77e88b065a6d8ba 100644 (file)
@@ -120,22 +120,22 @@ typedef struct ThreadData {
     int omin;
 } ThreadData;
 
-#define LOAD_COMMON\
-    ColorLevelsContext *s = ctx->priv;\
-    const ThreadData *td = arg;\
-\
-    int process_h = td->h;\
-    const int slice_start = (process_h *  jobnr   ) / nb_jobs;\
-    const int slice_end   = (process_h * (jobnr+1)) / nb_jobs;\
-    int x, y;\
-    const uint8_t *srcrow = td->srcrow;\
-    uint8_t *dstrow = td->dstrow;\
-    const int step = s->step;\
-    const uint8_t offset = td->offset;\
-\
-    int imin = td->imin;\
-    int omin = td->omin;\
-    double coeff = td->coeff;\
+#define LOAD_COMMON                                             \
+    ColorLevelsContext *s = ctx->priv;                          \
+    const ThreadData *td = arg;                                 \
+                                                                \
+    int process_h = td->h;                                      \
+    const int slice_start = (process_h *  jobnr   ) / nb_jobs;  \
+    const int slice_end   = (process_h * (jobnr+1)) / nb_jobs;  \
+    int x, y;                                                   \
+    const uint8_t *srcrow = td->srcrow;                         \
+    uint8_t *dstrow = td->dstrow;                               \
+    const int step = s->step;                                   \
+    const uint8_t offset = td->offset;                          \
+                                                                \
+    int imin = td->imin;                                        \
+    int omin = td->omin;                                        \
+    double coeff = td->coeff;
 
 static int colorlevel_slice_8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 {