diff options
author | wm4 <wm4@nowhere> | 2016-01-25 10:43:35 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-25 10:43:35 +0100 |
commit | 3a015b9ec7186a41c91f6d0a565aea237806c8f4 (patch) | |
tree | 2b72d13262e0377c1a4cdc01aeaea717e21b735d /video/out/opengl/video.c | |
parent | 3c4f13c23a0363bcfd9e78650795f8352056f7f2 (diff) | |
download | mpv-3a015b9ec7186a41c91f6d0a565aea237806c8f4.tar.bz2 mpv-3a015b9ec7186a41c91f6d0a565aea237806c8f4.tar.xz |
video: remove some useless old RGB formats
Some VOs had support for these - remove them.
Typically, these formats will have only some use in cases where using
RGB software conversion with libswscale is faster than letting the
VO/GPU do it (i.e. almost never). For the sake of testing this case,
keep IMGFMT_RGB565. This is the least messy format, because it has no
padding/alpha bits with unknown semantics.
Note that decoding to these formats still works. We'll let libswscale
repack the data to whatever the VO in use can take.
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r-- | video/out/opengl/video.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 3f38388e0f..3c61a4e878 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -231,9 +231,6 @@ struct fmt_entry { // Very special formats, for which OpenGL happens to have direct support static const struct fmt_entry mp_to_gl_formats[] = { - {IMGFMT_BGR555, GL_RGBA, GL_RGBA, GL_UNSIGNED_SHORT_1_5_5_5_REV}, - {IMGFMT_BGR565, GL_RGB, GL_RGB, GL_UNSIGNED_SHORT_5_6_5_REV}, - {IMGFMT_RGB555, GL_RGBA, GL_BGRA, GL_UNSIGNED_SHORT_1_5_5_5_REV}, {IMGFMT_RGB565, GL_RGB, GL_RGB, GL_UNSIGNED_SHORT_5_6_5}, {0}, }; |