aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale_internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-11-09 20:45:33 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-11-10 00:33:12 +0100
commitd736b52a045c5a51d5dce0da3905619b51b878d9 (patch)
treea760e072f6c7024bb1674e8afc984d70609c9907 /libswscale/swscale_internal.h
parent226d35c84591f1901c2a13819031549909faa1f5 (diff)
downloadffmpeg-d736b52a045c5a51d5dce0da3905619b51b878d9.tar.gz
swscale: Drop is9_OR_10BPS() use, its name is not correct
Found-by: Luca Barbato Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r--libswscale/swscale_internal.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 54cd85cce3..a892a4f97c 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -652,15 +652,13 @@ static av_always_inline int is16BPS(enum AVPixelFormat pix_fmt)
return desc->comp[0].depth == 16;
}
-static av_always_inline int is9_OR_10BPS(enum AVPixelFormat pix_fmt)
+static av_always_inline int isNBPS(enum AVPixelFormat pix_fmt)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
av_assert0(desc);
return desc->comp[0].depth >= 9 && desc->comp[0].depth <= 14;
}
-#define isNBPS(x) is9_OR_10BPS(x)
-
static av_always_inline int isBE(enum AVPixelFormat pix_fmt)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);