diff options
author | wm4 <wm4@nowhere> | 2015-05-05 14:41:33 +0200 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-05-07 10:47:51 +0900 |
commit | bdbbf4ae484817503d90a9e62448ea1b236f9c56 (patch) | |
tree | c0acf594590b92bd0bedaf2d7af1989386cf825a | |
parent | 774e9ef261157b51e1aec18f51730469cc1e853b (diff) | |
download | mpv-bdbbf4ae484817503d90a9e62448ea1b236f9c56.tar.bz2 mpv-bdbbf4ae484817503d90a9e62448ea1b236f9c56.tar.xz |
vo_opengl: change default FBO format
Reduces (but likely does not remove) the danger of rounding intermediate
values down to 8 bit. This is important for cscale, or any other
processing that might store raw YUV values in framebuffers.
Fixes #1918.
(cherry picked from commit cf210c4ffc6d008dd2bdd7c5d4d031ecdcf05fb7)
-rw-r--r-- | DOCS/man/vo.rst | 4 | ||||
-rw-r--r-- | video/out/gl_video.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/DOCS/man/vo.rst b/DOCS/man/vo.rst index b398d4f57d..28e54f0584 100644 --- a/DOCS/man/vo.rst +++ b/DOCS/man/vo.rst @@ -586,7 +586,7 @@ Available video output drivers are: always used, and typically only when using extended scalers.) ``fmt`` can be one of: rgb, rgba, rgb8, rgb10, rgb10_a2, rgb16, rgb16f, rgb32f, rgba12, rgba16, rgba16f, rgba32f. - Default: rgba. + Default: rgba16. ``gamma=<0.1..2.0>`` Set a gamma value (default: 1.0). If gamma is adjusted in other ways @@ -744,7 +744,7 @@ Available video output drivers are: This is equivalent to:: - --vo=opengl:scale=spline36:cscale=spline36:dscale=mitchell:dither-depth=auto:fbo-format=rgba16:fancy-downscaling:sigmoid-upscaling + --vo=opengl:scale=spline36:cscale=spline36:dscale=mitchell:dither-depth=auto:fancy-downscaling:sigmoid-upscaling Note that some cheaper LCDs do dithering that gravely interferes with ``opengl``'s dithering. Disabling dithering with ``dither-depth=no`` helps. diff --git a/video/out/gl_video.c b/video/out/gl_video.c index b1976d6521..4ffb432372 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -321,7 +321,7 @@ const struct gl_video_opts gl_video_opts_def = { .npot = 1, .dither_depth = -1, .dither_size = 6, - .fbo_format = GL_RGBA, + .fbo_format = GL_RGBA16, .sigmoid_center = 0.75, .sigmoid_slope = 6.5, .scaler = { |