diff options
author | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-17 16:10:41 +0000 |
---|---|---|
committer | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-17 16:10:41 +0000 |
commit | 40f7462e04ce35daeddd49beb9c6e7a7fd3ecc00 (patch) | |
tree | 93879098619c7d5850026a624167b854a02b024f | |
parent | 4ef53938759d1d02827bf9f3dba17dbb9c13be4e (diff) |
working draw_slice stuff
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2953 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vesa_lvo.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/libvo/vesa_lvo.c b/libvo/vesa_lvo.c index 2b61ab84ba..e9643d5243 100644 --- a/libvo/vesa_lvo.c +++ b/libvo/vesa_lvo.c @@ -34,7 +34,7 @@ static uint8_t *lvo_mem = NULL; static uint8_t next_frame; static mga_vid_config_t mga_vid_config; static unsigned image_bpp,image_height,image_width; - +extern int verbose; #define PIXEL_SIZE() ((video_mode_info.BitsPerPixel+7)/8) #define SCREEN_LINE_SIZE(pixel_size) (video_mode_info.XResolution*(pixel_size) ) @@ -162,7 +162,7 @@ uint32_t vlvo_draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y src+=stride[2]; dest += bespitch2; } -#else +#elsif 0 /* vo_xv stuff: slightly better for YV12 on radeon_vid */ uint8_t *src; uint8_t *dst; @@ -201,6 +201,18 @@ uint32_t vlvo_draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y src+=stride[1]; dst+=image_width/2; } +#else + uint8_t *src; + uint8_t *dst; + dst = lvo_mem + image_width * y + x; + src = image[0]; + w <<= 1; + while(h--) { + memcpy(dst, src, w); + src += stride[0]; + dst += stride[0]; + } + #endif return 0; } @@ -235,5 +247,6 @@ void vlvo_draw_osd(void) uint32_t vlvo_query_info(uint32_t format) { + if(verbose) printf("vesa_lvo: query_format was called: %x (%s)\n",format,vo_format_name(format)); return 1; } |