diff options
author | wm4 <wm4@nowhere> | 2016-05-13 22:31:27 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-13 22:35:42 +0200 |
commit | 3858d37b61995d7462bb5592173af1c24c6af167 (patch) | |
tree | 7551821405cb6ae1b1abd892ad2308fc3e1cfeb3 /options/m_property.c | |
parent | 09e07e92c59d30a0a468a1035d19f50aca07caa9 (diff) | |
download | mpv-3858d37b61995d7462bb5592173af1c24c6af167.tar.bz2 mpv-3858d37b61995d7462bb5592173af1c24c6af167.tar.xz |
vo_opengl: partially fix 0bgr format support
Fixes broken colors with --vf=format=0bgr (but only if deband is
disabled).
0bgr means the first byte is padding, while the following three bytes
are bgr. From the vo_opengl perspective, it has 4 physical components
with 3 logical components. copy_img_tex() simply copied 3 components
from the physical representation, which means the last component (r) was
sliced off.
Fix this by not using p->color_swizzle for packed formats, and instead
let packed formats set the per-plane swizzle in texplane.swizzle. The
latter applies the swizzle as part of operation in copy_img_tex(), which
essentially moves physical to logical representations.
Unfortunately, debanding (and thus with opengl-hq defaults) is still
broken.
Diffstat (limited to 'options/m_property.c')
0 files changed, 0 insertions, 0 deletions