]> git.sesse.net Git - ffmpeg/commitdiff
swscale: Add test for isSemiPlanarYUV to pixdesc_query
authorPhilip Langdale <philipl@overt.org>
Sat, 11 May 2019 17:12:47 +0000 (10:12 -0700)
committerPhilip Langdale <philipl@overt.org>
Sun, 12 May 2019 14:51:02 +0000 (07:51 -0700)
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.

libswscale/tests/pixdesc_query.c
tests/ref/fate/sws-pixdesc-query

index a5585c43149c83dd0b5f533b9ea94619d29dcb58..f6dd8bae681170a50aacd91de8cac322f26bf0d8 100644 (file)
@@ -32,6 +32,7 @@ static const struct {
     {"isBE",        isBE},
     {"isYUV",       isYUV},
     {"isPlanarYUV", isPlanarYUV},
+    {"isSemiPlanarYUV", isSemiPlanarYUV},
     {"isRGB",       isRGB},
     {"Gray",        isGray},
     {"RGBinInt",    isRGBinInt},
index bc8147e3c770d7be492a3800e9a5d377878a3b33..e23492293e91fca30205013ce505279925d1d5b8 100644 (file)
@@ -347,6 +347,19 @@ isPlanarYUV:
   yuvj440p
   yuvj444p
 
+isSemiPlanarYUV:
+  nv12
+  nv16
+  nv20be
+  nv20le
+  nv21
+  nv24
+  nv42
+  p010be
+  p010le
+  p016be
+  p016le
+
 isRGB:
   0bgr
   0rgb