From e05564919d802e6b291d341e6d01342211b25ee7 Mon Sep 17 00:00:00 2001 From: nick Date: Fri, 16 Nov 2001 18:43:25 +0000 Subject: [PATCH] Xv stuff git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2925 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vesa_lvo.c | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/libvo/vesa_lvo.c b/libvo/vesa_lvo.c index 5f0f790c14..2b61ab84ba 100644 --- a/libvo/vesa_lvo.c +++ b/libvo/vesa_lvo.c @@ -125,9 +125,11 @@ void vlvo_term( void ) uint32_t vlvo_draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y) { +#if 0 +/* original vo_mga stuff */ uint8_t *src; uint8_t *dest; - uint32_t bespitch,bespitch2; + uint32_t bespitch,bespitch2,srcpitch; int i; bespitch = (mga_vid_config.src_width + (WIDTH_ALIGN-1)) & ~(WIDTH_ALIGN-1); @@ -160,7 +162,47 @@ uint32_t vlvo_draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y src+=stride[2]; dest += bespitch2; } +#else +/* vo_xv stuff: slightly better for YV12 on radeon_vid */ + uint8_t *src; + uint8_t *dst; + int i; + dst = lvo_mem + image_width * y + x; + src = image[0]; + if(w==stride[0] && w==image_width) memcpy(dst,src,w*h); + else + for(i=0;i