[FFmpeg-cvslog] swscale: Add test for isSemiPlanarYUV to pixdesc_query

Philip Langdale git at videolan.org
Sun May 12 18:07:24 EEST 2019


ffmpeg | branch: master | Philip Langdale <philipl at overt.org> | Sat May 11 10:12:47 2019 -0700| [4fa4f1d7a9499032b8fcef8ed075294baf868be7] | committer: Philip Langdale

swscale: Add test for isSemiPlanarYUV to pixdesc_query

Lauri had asked me what the semi planar formats were and that reminded
me that we could add it to pixdesc_query so we know exactly what the
list is.

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

 libswscale/tests/pixdesc_query.c |  1 +
 tests/ref/fate/sws-pixdesc-query | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/libswscale/tests/pixdesc_query.c b/libswscale/tests/pixdesc_query.c
index a5585c4314..f6dd8bae68 100644
--- a/libswscale/tests/pixdesc_query.c
+++ b/libswscale/tests/pixdesc_query.c
@@ -32,6 +32,7 @@ static const struct {
     {"isBE",        isBE},
     {"isYUV",       isYUV},
     {"isPlanarYUV", isPlanarYUV},
+    {"isSemiPlanarYUV", isSemiPlanarYUV},
     {"isRGB",       isRGB},
     {"Gray",        isGray},
     {"RGBinInt",    isRGBinInt},
diff --git a/tests/ref/fate/sws-pixdesc-query b/tests/ref/fate/sws-pixdesc-query
index bc8147e3c7..e23492293e 100644
--- a/tests/ref/fate/sws-pixdesc-query
+++ b/tests/ref/fate/sws-pixdesc-query
@@ -347,6 +347,19 @@ isPlanarYUV:
   yuvj440p
   yuvj444p
 
+isSemiPlanarYUV:
+  nv12
+  nv16
+  nv20be
+  nv20le
+  nv21
+  nv24
+  nv42
+  p010be
+  p010le
+  p016be
+  p016le
+
 isRGB:
   0bgr
   0rgb



More information about the ffmpeg-cvslog mailing list