[FFmpeg-cvslog] avfilter/vf_colorlevels: beautify define
Paul B Mahol
git at videolan.org
Tue Feb 2 18:55:23 EET 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Feb 2 16:12:34 2021 +0100| [62e24a5d80697488a3e466c96f2f666405a7ef80] | committer: Paul B Mahol
avfilter/vf_colorlevels: beautify define
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=62e24a5d80697488a3e466c96f2f666405a7ef80
---
libavfilter/vf_colorlevels.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/libavfilter/vf_colorlevels.c b/libavfilter/vf_colorlevels.c
index 6ed0c06004..b4d8106133 100644
--- a/libavfilter/vf_colorlevels.c
+++ b/libavfilter/vf_colorlevels.c
@@ -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)
{
More information about the ffmpeg-cvslog
mailing list