diff options
author | Philip Langdale <philipl@overt.org> | 2016-11-19 13:57:23 -0800 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-11-22 20:19:58 +0100 |
commit | 585c5c34f1195007beb012668aa9a22cb47b1f37 (patch) | |
tree | 216b2254833461835c15638beacda26e9e3edb4a /video/img_format.h | |
parent | 5087816a7431caf27a5a8a9e00d0004d8322cdaa (diff) | |
download | mpv-585c5c34f1195007beb012668aa9a22cb47b1f37.tar.bz2 mpv-585c5c34f1195007beb012668aa9a22cb47b1f37.tar.xz |
vo_opengl: hwdec_cuda: Support P016 output surfaces
The latest 375.xx nvidia drivers add support for P016 output
surfaces. In combination with an ffmpeg change to return those
surfaces, we can display them.
The bulk of the work is related to knowing which format you're
dealing with at the right time. Once you know, it's straight forward.
Diffstat (limited to 'video/img_format.h')
-rw-r--r-- | video/img_format.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/video/img_format.h b/video/img_format.h index a91dcf865c..ee731aa51c 100644 --- a/video/img_format.h +++ b/video/img_format.h @@ -151,8 +151,10 @@ enum mp_imgfmt { IMGFMT_NV12, IMGFMT_NV21, - // Like IMGFMT_NV12, but with 16 bits per component + // Like IMGFMT_NV12, but with 10 bits per component (and 6 bits of padding) IMGFMT_P010, + // Like IMGFMT_NV12, but with 16 bits per component + IMGFMT_P016, // RGB/BGR Formats |