summaryrefslogtreecommitdiff
path: root/libswscale/swscale_unscaled.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_unscaled.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_unscaled.c')
-rw-r--r--libswscale/swscale_unscaled.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index 0e6be515ea..fbdc2affe1 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -813,7 +813,7 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[],
int val = (plane == 3) ? 255 : 128;
if (is16BPS(c->dstFormat))
length *= 2;
- if (is9_OR_10BPS(c->dstFormat)) {
+ if (is9_15BPS(c->dstFormat)) {
fill_plane9or10(dst[plane], dstStride[plane],
length, height, y, val,
desc_dst->comp[plane].depth,
@@ -822,7 +822,7 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[],
fillPlane(dst[plane], dstStride[plane], length, height, y,
val);
} else {
- if (is9_OR_10BPS(c->srcFormat)) {
+ if (is9_15BPS(c->srcFormat)) {
const int src_depth = desc_src->comp[plane].depth;
const int dst_depth = desc_dst->comp[plane].depth;
const uint16_t *srcPtr2 = (const uint16_t *) srcPtr;
@@ -862,7 +862,7 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[],
COPY9_OR_10TO16(AV_RL16, AV_WL16);
}
}
- } else if (is9_OR_10BPS(c->dstFormat)) {
+ } else if (is9_15BPS(c->dstFormat)) {
uint16_t *dstPtr2 = (uint16_t *) dstPtr;
#define COPY9_OR_10TO9_OR_10(loop) \
for (i = 0; i < height; i++) { \
@@ -914,7 +914,7 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[],
COPY9_OR_10TO8(AV_RL16);
}
}
- } else if (is9_OR_10BPS(c->dstFormat)) {
+ } else if (is9_15BPS(c->dstFormat)) {
const int dst_depth = desc_dst->comp[plane].depth;
uint16_t *dstPtr2 = (uint16_t *) dstPtr;