Skip to content

Commit

Permalink
swscale: Add test for isSemiPlanarYUV to pixdesc_query
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
philipl committed May 12, 2019
1 parent cd48318 commit 4fa4f1d
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions libswscale/tests/pixdesc_query.c
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@ static const struct {
{"isBE", isBE},
{"isYUV", isYUV},
{"isPlanarYUV", isPlanarYUV},
{"isSemiPlanarYUV", isSemiPlanarYUV},
{"isRGB", isRGB},
{"Gray", isGray},
{"RGBinInt", isRGBinInt},
13 changes: 13 additions & 0 deletions tests/ref/fate/sws-pixdesc-query
Original file line number Diff line number Diff line change
@@ -347,6 +347,19 @@ isPlanarYUV:
yuvj440p
yuvj444p

isSemiPlanarYUV:
nv12
nv16
nv20be
nv20le
nv21
nv24
nv42
p010be
p010le
p016be
p016le

isRGB:
0bgr
0rgb

0 comments on commit 4fa4f1d

Please sign in to comment.