From a0e2f7113b33395595308229afe410aa21ec568f Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 28 Mar 2013 21:44:33 +0100 Subject: gl_video: add some alpha FBO formats --- DOCS/man/en/vo.rst | 3 ++- video/out/gl_video.c | 6 +++++- 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} -- cgit v1.2.3