[FFmpeg-cvslog] swscale: remove unused is{RGB,BGR}inBytes

Clément Bœsch git at videolan.org
Mon Mar 20 09:06:25 EET 2017


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sun Mar 19 23:36:29 2017 +0100| [d6635daded80d68b0cda767a8a19af4b6a41701f] | committer: Clément Bœsch

swscale: remove unused is{RGB,BGR}inBytes

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d6635daded80d68b0cda767a8a19af4b6a41701f
---

 libswscale/swscale_internal.h    | 19 -------------------
 libswscale/tests/pixdesc_query.c |  4 ----
 tests/ref/fate/sws-pixdesc-query | 18 ------------------
 3 files changed, 41 deletions(-)

diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index ea5df26..d567422 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -741,25 +741,6 @@ static av_always_inline int isGray(enum AVPixelFormat pix_fmt)
      (x) == AV_PIX_FMT_MONOWHITE   \
     )
 
-#define isRGBinBytes(x) (           \
-           (x) == AV_PIX_FMT_RGB48BE     \
-        || (x) == AV_PIX_FMT_RGB48LE     \
-        || (x) == AV_PIX_FMT_RGBA64BE    \
-        || (x) == AV_PIX_FMT_RGBA64LE    \
-        || (x) == AV_PIX_FMT_RGBA        \
-        || (x) == AV_PIX_FMT_ARGB        \
-        || (x) == AV_PIX_FMT_RGB24       \
-    )
-#define isBGRinBytes(x) (           \
-           (x) == AV_PIX_FMT_BGR48BE     \
-        || (x) == AV_PIX_FMT_BGR48LE     \
-        || (x) == AV_PIX_FMT_BGRA64BE    \
-        || (x) == AV_PIX_FMT_BGRA64LE    \
-        || (x) == AV_PIX_FMT_BGRA        \
-        || (x) == AV_PIX_FMT_ABGR        \
-        || (x) == AV_PIX_FMT_BGR24       \
-    )
-
 static av_always_inline int isBayer(enum AVPixelFormat pix_fmt)
 {
     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
diff --git a/libswscale/tests/pixdesc_query.c b/libswscale/tests/pixdesc_query.c
index bc49809..9591b04 100644
--- a/libswscale/tests/pixdesc_query.c
+++ b/libswscale/tests/pixdesc_query.c
@@ -36,8 +36,6 @@ DECLARE_WRAPPER(isRGB)
 DECLARE_WRAPPER(isGray)
 DECLARE_WRAPPER(isRGBinInt)
 DECLARE_WRAPPER(isBGRinInt)
-DECLARE_WRAPPER(isRGBinBytes)
-DECLARE_WRAPPER(isBGRinBytes)
 DECLARE_WRAPPER(isBayer)
 DECLARE_WRAPPER(isAnyRGB)
 DECLARE_WRAPPER(isALPHA)
@@ -60,8 +58,6 @@ static const struct {
     {"Gray",        isGray_func},
     {"RGBinInt",    isRGBinInt_func},
     {"BGRinInt",    isBGRinInt_func},
-    {"RGBinBytes",  isRGBinBytes_func},
-    {"BGRinBytes",  isBGRinBytes_func},
     {"Bayer",       isBayer_func},
     {"AnyRGB",      isAnyRGB_func},
     {"ALPHA",       isALPHA_func},
diff --git a/tests/ref/fate/sws-pixdesc-query b/tests/ref/fate/sws-pixdesc-query
index d23b4f5..e262a0c 100644
--- a/tests/ref/fate/sws-pixdesc-query
+++ b/tests/ref/fate/sws-pixdesc-query
@@ -440,24 +440,6 @@ BGRinInt:
   bgra64be
   bgra64le
 
-RGBinBytes:
-  rgb24
-  argb
-  rgba
-  rgb48be
-  rgb48le
-  rgba64be
-  rgba64le
-
-BGRinBytes:
-  bgr24
-  abgr
-  bgra
-  bgr48be
-  bgr48le
-  bgra64be
-  bgra64le
-
 Bayer:
   bayer_bggr8
   bayer_rggb8



More information about the ffmpeg-cvslog mailing list