aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/tests/pixfmt_best.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2019-05-06 20:39:39 -0700
committerPhilip Langdale <philipl@overt.org>2019-05-12 07:51:02 -0700
commit5de4f1d871d60886b9630531fa8c34cad13cc9dd (patch)
tree811d11d729903ee3659592a006ed0087633fbf38 /libavutil/tests/pixfmt_best.c
parent7c6f2bfdb25ccadf6ba82dc72eaad1b692122d9a (diff)
downloadffmpeg-5de4f1d871d60886b9630531fa8c34cad13cc9dd.tar.gz
avutil: Add NV24 and NV42 pixel formats
These are the 4:4:4 variants of the semi-planar NV12/NV21 formats. These formats are not used much, so we've never had a reason to add them until now. VDPAU recently added support HEVC 4:4:4 content and when you use the OpenGL interop, the returned surfaces are in NV24 format, so we need the pixel format for media players, even if there's no direct use within ffmpeg. Separately, there are apparently webcams that use NV24, but I've never seen one.
Diffstat (limited to 'libavutil/tests/pixfmt_best.c')
-rw-r--r--libavutil/tests/pixfmt_best.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/tests/pixfmt_best.c b/libavutil/tests/pixfmt_best.c
index e98fcc19a5..53f7264207 100644
--- a/libavutil/tests/pixfmt_best.c
+++ b/libavutil/tests/pixfmt_best.c
@@ -76,6 +76,7 @@ int main(void)
TEST(AV_PIX_FMT_P010, AV_PIX_FMT_YUV420P10);
TEST(AV_PIX_FMT_P016, AV_PIX_FMT_YUV420P16);
TEST(AV_PIX_FMT_NV16, AV_PIX_FMT_YUV422P);
+ TEST(AV_PIX_FMT_NV24, AV_PIX_FMT_YUV444P);
TEST(AV_PIX_FMT_YUYV422, AV_PIX_FMT_YUV422P);
TEST(AV_PIX_FMT_UYVY422, AV_PIX_FMT_YUV422P);
TEST(AV_PIX_FMT_BGR565, AV_PIX_FMT_RGB565);