summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-28 21:44:33 +0100
committerwm4 <wm4@nowhere>2013-03-28 21:46:17 +0100
commita0e2f7113b33395595308229afe410aa21ec568f (patch)
tree7355cf245748dd98b78d9d8764a8109389fcc21e
parent8099cbe9dd64f48050918242e088a1f998c77a15 (diff)
downloadmpv-a0e2f7113b33395595308229afe410aa21ec568f.tar.bz2
mpv-a0e2f7113b33395595308229afe410aa21ec568f.tar.xz
gl_video: add some alpha FBO formats
-rw-r--r--DOCS/man/en/vo.rst3
-rw-r--r--video/out/gl_video.c6
2 files changed, 7 insertions, 2 deletions
diff --git a/DOCS/man/en/vo.rst b/DOCS/man/en/vo.rst
index dcfcb05278..f3336afef6 100644
--- a/DOCS/man/en/vo.rst
+++ b/DOCS/man/en/vo.rst
@@ -398,7 +398,8 @@ opengl
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
+ fmt can be one of: rgb, rgba, rgb8, rgb10, 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 961249f1cf..5b98e42d56 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -251,7 +251,11 @@ const struct m_sub_options gl_video_conf = {
{"rgb10", GL_RGB10},
{"rgb16", GL_RGB16},
{"rgb16f", GL_RGB16F},
- {"rgb32f", GL_RGB32F})),
+ {"rgb32f", GL_RGB32F},
+ {"rgba12", GL_RGBA12},
+ {"rgba16", GL_RGBA16},
+ {"rgba16f", GL_RGBA16F},
+ {"rgba32f", GL_RGBA32F})),
OPT_INTRANGE("dither-depth", dither_depth, 0, -1, 16),
OPT_FLAG("alpha", enable_alpha, 0),
{0}