summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/hwdec.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-30 16:57:17 +0200
committerwm4 <wm4@nowhere>2017-06-30 17:07:55 +0200
commit0c0a06140c8460115d5ce357a8adfc4d8c1bae69 (patch)
tree4a776f3152fa74ed81a0a2397d629edfd8ccdfba /video/out/opengl/hwdec.h
parent91583fccac85880ad2199f50463c095560791d56 (diff)
downloadmpv-0c0a06140c8460115d5ce357a8adfc4d8c1bae69.tar.bz2
mpv-0c0a06140c8460115d5ce357a8adfc4d8c1bae69.tar.xz
vo_opengl: restructure format setup
Instead of setting up a weird swizzle (which is linked to how the internal renderer code works, rather than the generic format code), add per-component mapping to gl_imgfmt_desc. The renderer still computes the weird swizzle, but at least it's confined to itself. Also, it appears the hwdec backends don't need this anymore. It's really nice that the messy init_format() goes away too.
Diffstat (limited to 'video/out/opengl/hwdec.h')
-rw-r--r--video/out/opengl/hwdec.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/video/out/opengl/hwdec.h b/video/out/opengl/hwdec.h
index 962bd7b1bd..92875d915e 100644
--- a/video/out/opengl/hwdec.h
+++ b/video/out/opengl/hwdec.h
@@ -32,7 +32,6 @@ struct gl_hwdec_plane {
struct gl_hwdec_frame {
struct gl_hwdec_plane planes[4];
bool vdpau_fields;
- char swizzle[5]; // optional component swizzle (4 components if set)
};
struct gl_hwdec_driver {