diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-28 22:54:08 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-28 22:54:08 +0000 |
commit | acad91a5d2ad335ab6d88a52019128f08fe86fb9 (patch) | |
tree | 6febf7665d06e3bd3474c2f7b563561db61dd659 | |
parent | 7c047631b14b628123a53c094a9baaf8b1df41a6 (diff) |
Set -vo gl slice-height default to 0, the current default of 4 seems
to never be much faster, but there were multiple reports where it
was a lot slower (mostly those where gl2 was faster).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23898 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | DOCS/man/en/mplayer.1 | 2 | ||||
-rw-r--r-- | libvo/vo_gl.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1 index 4192c15946..24172907f6 100644 --- a/DOCS/man/en/mplayer.1 +++ b/DOCS/man/en/mplayer.1 @@ -3506,7 +3506,7 @@ Slower but in some cases more correct output (default: disabled). Enables support for more (RGB and BGR) color formats (default: enabled). Needs OpenGL version >= 1.2. .IPs slice-height=<0\-...> -Number of lines copied to texture in one piece (default: 4). +Number of lines copied to texture in one piece (default: 0). 0 for whole image. .br .I NOTE: diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index cac6e55079..3007b93021 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -808,7 +808,7 @@ static int preinit(const char *arg) use_rectangle = 0; use_glFinish = 0; swap_interval = 1; - slice_height = -1; + slice_height = 0; custom_prog = NULL; custom_tex = NULL; custom_tlin = 1; @@ -868,8 +868,6 @@ static int preinit(const char *arg) gl_target = GL_TEXTURE_RECTANGLE; else gl_target = GL_TEXTURE_2D; - if (slice_height == -1) - slice_height = use_yuv ? 16 : 4; yuvconvtype = use_yuv | lscale << YUV_LUM_SCALER_SHIFT | cscale << YUV_CHROM_SCALER_SHIFT; if (many_fmts) mp_msg (MSGT_VO, MSGL_INFO, "[gl] using extended formats. " |