summaryrefslogtreecommitdiffstats
path: root/video/fmt-conversion.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-14 11:19:04 +0100
committerwm4 <wm4@nowhere>2012-11-14 11:50:02 +0100
commite5f7976000af0fb8da5fd0c3a01cfd44e6e64516 (patch)
treed0745e2f279e2f7e9702d89cbf6e0e6bf58de3f5 /video/fmt-conversion.c
parenta86ec729868e9bd5777f5800527e5cd9bf79fe85 (diff)
downloadmpv-e5f7976000af0fb8da5fd0c3a01cfd44e6e64516.tar.bz2
mpv-e5f7976000af0fb8da5fd0c3a01cfd44e6e64516.tar.xz
video: add IMGFMT_Y16/PIX_FMT_GRAY16
This pixel format is sometimes used with yuv4mpeg. vo_direct3d used its own IMGFMT_Y16 internally for some reason. vo_opengl, vo_opengl_old, and vo_direct3d should be able to display this pixel format natively.
Diffstat (limited to 'video/fmt-conversion.c')
-rw-r--r--video/fmt-conversion.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/fmt-conversion.c b/video/fmt-conversion.c
index 6ce5140d58..736af8701c 100644
--- a/video/fmt-conversion.c
+++ b/video/fmt-conversion.c
@@ -62,6 +62,8 @@ static const struct {
{IMGFMT_NV21, PIX_FMT_NV21},
{IMGFMT_Y800, PIX_FMT_GRAY8},
{IMGFMT_Y8, PIX_FMT_GRAY8},
+ {IMGFMT_Y16LE, PIX_FMT_GRAY16LE},
+ {IMGFMT_Y16BE, PIX_FMT_GRAY16BE},
{IMGFMT_YVU9, PIX_FMT_YUV410P},
{IMGFMT_IF09, PIX_FMT_YUV410P},
{IMGFMT_YV12, PIX_FMT_YUV420P},