summaryrefslogtreecommitdiff
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2016-09-27 18:13:37 +0200
committerLuca Barbato <lu_zero@gentoo.org>2016-09-27 18:48:30 +0200
commit2b5b1e1e9b89063d352e2efed014f9d761b85032 (patch)
tree05ae95e7dbb8048c4ddedb50cd7941dcaa5e2d34 /libswscale/swscale.c
parente87a501e7d03ac68b58520108fe24ad9d0b36765 (diff)
swscale: Rename is9_OR_10 to match what it does
It is used to select functions that work with 9-15bits.
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r--libswscale/swscale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 142c79c14a..987a3bb820 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -386,7 +386,7 @@ static int swscale(SwsContext *c, const uint8_t *src[],
yuv2anyX_fn yuv2anyX = c->yuv2anyX;
const int chrSrcSliceY = srcSliceY >> c->chrSrcVSubSample;
const int chrSrcSliceH = AV_CEIL_RSHIFT(srcSliceH, c->chrSrcVSubSample);
- int should_dither = is9_OR_10BPS(c->srcFormat) ||
+ int should_dither = is9_15BPS(c->srcFormat) ||
is16BPS(c->srcFormat);
int lastDstY;
@@ -696,7 +696,7 @@ static int swscale(SwsContext *c, const uint8_t *src[],
if (is16BPS(c->dstFormat))
length *= 2;
- if (is9_OR_10BPS(dstFormat)) {
+ if (is9_15BPS(dstFormat)) {
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(dstFormat);
fill_plane9or10(dst[3], dstStride[3], length, height, lastDstY,
255, desc->comp[3].depth, isBE(dstFormat));