summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2019-05-11 10:12:47 -0700
committerPhilip Langdale <philipl@overt.org>2019-05-12 07:51:02 -0700
commit4fa4f1d7a9499032b8fcef8ed075294baf868be7 (patch)
treeadf7bcd958a34c92c51fa7d2118308cac6d7caaa
parentcd483180356c8f206f32393acc52a85c5b76758b (diff)
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.
-rw-r--r--libswscale/tests/pixdesc_query.c1
-rw-r--r--tests/ref/fate/sws-pixdesc-query13
2 files changed, 14 insertions, 0 deletions
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