From a841fe9484c203ca3492d8a5f88f60f8534c853b Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 10 Feb 2020 17:38:54 +0100 Subject: img_format: add gray/alpha planar formats The zimg wrapper "needs" these formats as intermediary when repacking the normal gray/alpha packed format. The packed format is used by the png decoder and encoder, and is thus interesting. Unfortunately, mpv-only formats are a mess right now, because all the existing code is focused around using the FFmpeg metadata for pixel formats. This should be improved, but not now, so make the mess worse. This commit doesn't add support for it to the zimg wrapper yet. --- test/ref/img_formats.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test') diff --git a/test/ref/img_formats.txt b/test/ref/img_formats.txt index f73b83bdd5..73b0efc91b 100644 --- a/test/ref/img_formats.txt +++ b/test/ref/img_formats.txt @@ -1039,6 +1039,20 @@ ya8: [GENERIC] ctype=uint AVD: name=ya8 chroma=0:0 flags=0x80 [alpha] 0: p=0 st=2 o=0 sh=0 d=8 1: p=0 st=2 o=1 sh=0 d=8 +yap16: ctype=uint + Legacy desc: [ba][yuvp][yuv][le] + planes=2, chroma=0:0 align=1:1 bits=16 cbits=16 + {2/16/[0:0] 2/16/[0:0] 0/0/[0:0] 0/0/[0:0] } + Regular: planes=2 compbytes=2 bitpad=0 chroma=1x1 ctype=uint + 0: {1} + 1: {4} +yap8: ctype=uint + Legacy desc: [ba][yuvp][yuv][le] + planes=2, chroma=0:0 align=1:1 bits=8 cbits=8 + {1/8/[0:0] 1/8/[0:0] 0/0/[0:0] 0/0/[0:0] } + Regular: planes=2 compbytes=1 bitpad=0 chroma=1x1 ctype=uint + 0: {1} + 1: {4} yuv410p: [GENERIC] ctype=uint Legacy desc: [ba][yuvp][yuv][le][be] planes=3, chroma=2:2 align=4:4 bits=8 cbits=8 -- cgit v1.2.3