diff mbox

[FFmpeg-devel,3/3] swscale: Add test for isSemiPlanarYUV to pixdesc_query

Message ID 20190511183157.27909-4-philipl@overt.org
State Accepted
Commit 4fa4f1d7a9499032b8fcef8ed075294baf868be7
Headers show

Commit Message

Philip Langdale May 11, 2019, 6:31 p.m. UTC
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.

Signed-off-by: Philip Langdale <philipl@overt.org>
---
 libswscale/tests/pixdesc_query.c |  1 +
 tests/ref/fate/sws-pixdesc-query | 13 +++++++++++++
 2 files changed, 14 insertions(+)

Comments

Michael Niedermayer May 12, 2019, 10:56 a.m. UTC | #1
On Sat, May 11, 2019 at 11:31:57AM -0700, Philip Langdale wrote:
> 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.
> 
> Signed-off-by: Philip Langdale <philipl@overt.org>
> ---
>  libswscale/tests/pixdesc_query.c |  1 +
>  tests/ref/fate/sws-pixdesc-query | 13 +++++++++++++
>  2 files changed, 14 insertions(+)

LGTM

thx

[...]
diff mbox

Patch

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