From ac3b6c65523c941b5058dba1e9fa5c852ef8d085 Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 30 Dec 2002 01:34:20 +0000 Subject: - optional slice height for -vo gl (example: -vo gl:32) based on patch by Dmitry Baryshkov - default height changed from 1 to 4, seems to be more optimal and works fast on both g400max & gf4ti4200 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8655 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl.c | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index 170c8d3c54..965fe9017a 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -58,6 +58,8 @@ static uint32_t image_bytes; static uint32_t texture_width; static uint32_t texture_height; +static int slice_height=1; + static void resize(int x,int y){ printf("[gl] Resize: %dx%d\n",x,y); glViewport( 0, 0, x, y ); @@ -286,13 +288,13 @@ static uint32_t draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y yuv2rgb(ImageData, src[0], src[1], src[2], w,h, dstride, stride[0],stride[1]); - for(i=0;i