summaryrefslogtreecommitdiffstats
path: root/video/img_format.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-10 17:38:54 +0100
committerwm4 <wm4@nowhere>2020-02-10 17:38:54 +0100
commita841fe9484c203ca3492d8a5f88f60f8534c853b (patch)
tree864986e4100aefe521ed496c8b9208595262496f /video/img_format.h
parentcca02e51efd9e1b1e6c9b6002ff51dc076d30b8b (diff)
downloadmpv-a841fe9484c203ca3492d8a5f88f60f8534c853b.tar.bz2
mpv-a841fe9484c203ca3492d8a5f88f60f8534c853b.tar.xz
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.
Diffstat (limited to 'video/img_format.h')
-rw-r--r--video/img_format.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/img_format.h b/video/img_format.h
index 2df16ef095..61d9e02107 100644
--- a/video/img_format.h
+++ b/video/img_format.h
@@ -151,6 +151,10 @@ enum mp_imgfmt {
IMGFMT_Y8,
IMGFMT_Y16,
+ // Planar gray/alpha.
+ IMGFMT_YAP8,
+ IMGFMT_YAP16,
+
// Packed YUV formats (components are byte-accessed)
IMGFMT_UYVY, // U Y0 V Y1