diff options
author | wm4 <wm4@nowhere> | 2015-12-19 16:11:28 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-12-19 16:11:34 +0100 |
commit | 47f2f554a3734078dabac2e740c22ad403e6a2c4 (patch) | |
tree | cc80a52f57949b9c7813a2cc6a5797cc2365110b /video/mp_image.c | |
parent | a0519f1d188e3d3be8f0e78a71868d7cbf1cc11d (diff) | |
download | mpv-47f2f554a3734078dabac2e740c22ad403e6a2c4.tar.bz2 mpv-47f2f554a3734078dabac2e740c22ad403e6a2c4.tar.xz |
vo_opengl: handle alpha with odd bit widths too
Since alpha isn't pulled through the colormatrix (maybe it should?), we
reject alpha formats with odd sizes, such as yuva444p10.
But the awful tex_mul path in vo_opengl does this anyway (at some points
even explicitly), which means there will be a subtle difference in
handling of 16 bit yuv alpha formats. Make it consistent and always
apply the range adjustment to the alpha component. This also means odd
sizes like 10 bit are supported now.
This assumes alpha uses the same "shifted" range as the yuv color
channels for depths larger than 8 bit. I'm not sure whether this is
actually the case.
Diffstat (limited to 'video/mp_image.c')
0 files changed, 0 insertions, 0 deletions