diff options
author | wm4 <wm4@nowhere> | 2017-06-30 16:57:17 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-06-30 17:07:55 +0200 |
commit | 0c0a06140c8460115d5ce357a8adfc4d8c1bae69 (patch) | |
tree | 4a776f3152fa74ed81a0a2397d629edfd8ccdfba /video/out/opengl/hwdec_vaegl.c | |
parent | 91583fccac85880ad2199f50463c095560791d56 (diff) | |
download | mpv-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_vaegl.c')
-rw-r--r-- | video/out/opengl/hwdec_vaegl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/video/out/opengl/hwdec_vaegl.c b/video/out/opengl/hwdec_vaegl.c index 0d2f1b1a17..8306541586 100644 --- a/video/out/opengl/hwdec_vaegl.c +++ b/video/out/opengl/hwdec_vaegl.c @@ -381,8 +381,6 @@ static int map_frame(struct gl_hwdec *hw, struct mp_image *hw_image, if (va_image->format.fourcc == VA_FOURCC_YV12) MPSWAP(struct gl_hwdec_plane, out_frame->planes[1], out_frame->planes[2]); - snprintf(out_frame->swizzle, sizeof(out_frame->swizzle), "%s", desc.swizzle); - return 0; err: |