diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-10-30 23:17:24 +0400 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-10-31 15:14:21 +0400 |
commit | 003bd88d99619922729e37d7bcddbcdf66be04b3 (patch) | |
tree | e6cf33844596f8e0efefbb2ed740f56475723241 /libavfilter | |
parent | 1b3fdd9731012a4ae2d5b3ee5460c910d808da8e (diff) |
lavfi/drawbox: reindent after previous commit
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_drawbox.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libavfilter/vf_drawbox.c b/libavfilter/vf_drawbox.c index ef1bc32ca5..79d68f47d8 100644 --- a/libavfilter/vf_drawbox.c +++ b/libavfilter/vf_drawbox.c @@ -144,17 +144,17 @@ static int draw_slice(AVFilterLink *inlink, int y0, int h, int slice_dir) (x - xb < 3) || (xb + drawbox->w - x < 4)) row[0][x] = 0xff - row[0][x]; } else { - for (x = FFMAX(xb, 0); x < (xb + drawbox->w) && x < picref->video->w; x++) { - double alpha = (double)drawbox->yuv_color[A] / 255; - - if ((y - yb < 3) || (yb + drawbox->h - y < 4) || - (x - xb < 3) || (xb + drawbox->w - x < 4)) { - row[0][x ] = (1 - alpha) * row[0][x ] + alpha * drawbox->yuv_color[Y]; - row[1][x >> drawbox->hsub] = (1 - alpha) * row[1][x >> drawbox->hsub] + alpha * drawbox->yuv_color[U]; - row[2][x >> drawbox->hsub] = (1 - alpha) * row[2][x >> drawbox->hsub] + alpha * drawbox->yuv_color[V]; + for (x = FFMAX(xb, 0); x < (xb + drawbox->w) && x < picref->video->w; x++) { + double alpha = (double)drawbox->yuv_color[A] / 255; + + if ((y - yb < 3) || (yb + drawbox->h - y < 4) || + (x - xb < 3) || (xb + drawbox->w - x < 4)) { + row[0][x ] = (1 - alpha) * row[0][x ] + alpha * drawbox->yuv_color[Y]; + row[1][x >> drawbox->hsub] = (1 - alpha) * row[1][x >> drawbox->hsub] + alpha * drawbox->yuv_color[U]; + row[2][x >> drawbox->hsub] = (1 - alpha) * row[2][x >> drawbox->hsub] + alpha * drawbox->yuv_color[V]; + } } } - } } return ff_draw_slice(inlink->dst->outputs[0], y0, h, 1); |