diff options
author | wm4 <wm4@nowhere> | 2012-11-14 11:19:04 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-14 11:50:02 +0100 |
commit | e5f7976000af0fb8da5fd0c3a01cfd44e6e64516 (patch) | |
tree | d0745e2f279e2f7e9702d89cbf6e0e6bf58de3f5 /video/mp_image.c | |
parent | a86ec729868e9bd5777f5800527e5cd9bf79fe85 (diff) | |
download | mpv-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/mp_image.c')
-rw-r--r-- | video/mp_image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/mp_image.c b/video/mp_image.c index e910830a8b..73164fdc59 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -193,6 +193,8 @@ void mp_image_setfmt(mp_image_t* mpi,unsigned int out_fmt){ return; case IMGFMT_Y800: case IMGFMT_Y8: + case IMGFMT_Y16LE: + case IMGFMT_Y16BE: /* they're planar ones, but for easier handling use them as packed */ mpi->flags&=~MP_IMGFLAG_PLANAR; mpi->num_planes=1; |