summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-23 17:46:57 +0200
committerwm4 <wm4@nowhere>2013-10-23 17:46:57 +0200
commit68531e23a1026253aa85e4ac84b8dd6898a0462e (patch)
treed6f363f179d3b077e6868a044a55e3458c24762d
parente60b8f181dec744af25c3a52fb88f600cd1b63ea (diff)
downloadmpv-68531e23a1026253aa85e4ac84b8dd6898a0462e.tar.bz2
mpv-68531e23a1026253aa85e4ac84b8dd6898a0462e.tar.xz
gl_video: add RGB10_A2 FBO format
Maybe this can be the default in the future, but I'm not sure yet.
-rw-r--r--DOCS/man/en/vo.rst4
-rw-r--r--video/out/gl_video.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/DOCS/man/en/vo.rst b/DOCS/man/en/vo.rst
index b472d26e0e..27141982c0 100644
--- a/DOCS/man/en/vo.rst
+++ b/DOCS/man/en/vo.rst
@@ -422,8 +422,8 @@ Available video output drivers are:
Selects the internal format of textures used for FBOs. The format can
influence performance and quality of the video output. (FBOs are not
always used, and typically only when using extended scalers.)
- ``fmt`` can be one of: rgb, rgba, rgb8, rgb10, rgb16, rgb16f, rgb32f,
- rgba12, rgba16, rgba16f, rgba32f.
+ ``fmt`` can be one of: rgb, rgba, rgb8, rgb10, rgb10_a2, rgb16, rgb16f,
+ rgb32f, rgba12, rgba16, rgba16f, rgba32f.
Default: rgb.
``gamma``
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 3bab03c8aa..8bab6a5c4c 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -304,6 +304,7 @@ const struct m_sub_options gl_video_conf = {
{"rgba", GL_RGBA},
{"rgb8", GL_RGB8},
{"rgb10", GL_RGB10},
+ {"rgb10_a2", GL_RGB10_A2},
{"rgb16", GL_RGB16},
{"rgb16f", GL_RGB16F},
{"rgb32f", GL_RGB32F},