diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-10-11 18:29:03 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-14 10:56:20 +0200 |
commit | 036fff7e43f5a8d608587daa053970b702d424c0 (patch) | |
tree | 63acd52f721889e3aa9625c65829312ab3cbc0f3 | |
parent | 8a0d45a92eb31b2e4ea2fe8a10fb9817a0b0e63f (diff) | |
download | ffmpeg-036fff7e43f5a8d608587daa053970b702d424c0.tar.gz |
avfilter/vf_geq: reindent
-rw-r--r-- | libavfilter/vf_geq.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libavfilter/vf_geq.c b/libavfilter/vf_geq.c index 39083c149b..e3267e331f 100644 --- a/libavfilter/vf_geq.c +++ b/libavfilter/vf_geq.c @@ -102,22 +102,22 @@ static inline double getpix(void *priv, double x, double y, int plane) return 0; if (geq->interpolation == INTERP_BILINEAR) { - xi = x = av_clipd(x, 0, w - 2); - yi = y = av_clipd(y, 0, h - 2); + xi = x = av_clipd(x, 0, w - 2); + yi = y = av_clipd(y, 0, h - 2); - x -= xi; - y -= yi; + x -= xi; + y -= yi; - if (geq->bps > 8) { - const uint16_t *src16 = (const uint16_t*)src; - linesize /= 2; + if (geq->bps > 8) { + const uint16_t *src16 = (const uint16_t*)src; + linesize /= 2; - return (1-y)*((1-x)*src16[xi + yi * linesize] + x*src16[xi + 1 + yi * linesize]) - + y *((1-x)*src16[xi + (yi+1) * linesize] + x*src16[xi + 1 + (yi+1) * linesize]); - } else { - return (1-y)*((1-x)*src[xi + yi * linesize] + x*src[xi + 1 + yi * linesize]) - + y *((1-x)*src[xi + (yi+1) * linesize] + x*src[xi + 1 + (yi+1) * linesize]); - } + return (1-y)*((1-x)*src16[xi + yi * linesize] + x*src16[xi + 1 + yi * linesize]) + + y *((1-x)*src16[xi + (yi+1) * linesize] + x*src16[xi + 1 + (yi+1) * linesize]); + } else { + return (1-y)*((1-x)*src[xi + yi * linesize] + x*src[xi + 1 + yi * linesize]) + + y *((1-x)*src[xi + (yi+1) * linesize] + x*src[xi + 1 + (yi+1) * linesize]); + } } else { xi = av_clipd(x, 0, w - 1); yi = av_clipd(y, 0, h - 1); |