summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/formats.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-30 18:01:29 +0200
committerwm4 <wm4@nowhere>2017-06-30 18:01:29 +0200
commit1ad036a2ef068928640eeda7352e5e70379e2119 (patch)
tree1844cee1f4021c727b8fb2207548f74bbba29382 /video/out/opengl/formats.c
parent6eb0bbe312c8422f3180b530126e1dfebb47295e (diff)
downloadmpv-1ad036a2ef068928640eeda7352e5e70379e2119.tar.bz2
mpv-1ad036a2ef068928640eeda7352e5e70379e2119.tar.xz
video: get rid of swapped packed YUV
Another legacy annoyance. The only place where packed YUV is still important is slightly older Apple hardware or drivers, which require it for efficient hardware decoding.
Diffstat (limited to 'video/out/opengl/formats.c')
-rw-r--r--video/out/opengl/formats.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/video/out/opengl/formats.c b/video/out/opengl/formats.c
index 5678e0f75f..2cbc130170 100644
--- a/video/out/opengl/formats.c
+++ b/video/out/opengl/formats.c
@@ -90,8 +90,6 @@ static const struct gl_format gl_formats[] = {
GL_UNSIGNED_SHORT_5_6_5, F_TF | F_GL2 | F_GL3},
{GL_RGB, GL_RGB_422_APPLE,
GL_UNSIGNED_SHORT_8_8_APPLE, F_TF | F_APPL},
- {GL_RGB, GL_RGB_422_APPLE,
- GL_UNSIGNED_SHORT_8_8_REV_APPLE, F_TF | F_APPL},
{0}
};
@@ -324,11 +322,9 @@ bool gl_get_imgfmt_desc(GL *gl, int imgfmt, struct gl_imgfmt_desc *out)
res.chroma_w = res.chroma_h = 1;
goto supported;
}
- if (imgfmt == IMGFMT_UYVY || imgfmt == IMGFMT_YUYV) {
+ if (imgfmt == IMGFMT_UYVY) {
res.num_planes = 1;
- res.planes[0] = gl_find_gl_type_format(gl, imgfmt == IMGFMT_UYVY
- ? GL_UNSIGNED_SHORT_8_8_APPLE
- : GL_UNSIGNED_SHORT_8_8_REV_APPLE);
+ res.planes[0] = gl_find_gl_type_format(gl, GL_UNSIGNED_SHORT_8_8_APPLE);
if (!res.planes[0])
return false;
res.components[0][0] = 3;