Mercurial > mplayer.hg
comparison libvo/vo_x11.c @ 2325:50037e53d0bc
15bpp fix for swscale
author | michael |
---|---|
date | Sat, 20 Oct 2001 23:58:23 +0000 |
parents | 9ee34c6950e0 |
children | 6f3fa9bc3b27 |
comparison
equal
deleted
inserted
replaced
2324:0e4210657f0e | 2325:50037e53d0bc |
---|---|
483 static uint32_t draw_slice( uint8_t *src[],int stride[],int w,int h,int x,int y ) | 483 static uint32_t draw_slice( uint8_t *src[],int stride[],int w,int h,int x,int y ) |
484 { | 484 { |
485 | 485 |
486 if(scale_xinc){ | 486 if(scale_xinc){ |
487 SwScale_YV12slice_brg24(src,stride,y,h, | 487 SwScale_YV12slice_brg24(src,stride,y,h, |
488 ImageData, image_width*((bpp+7)/8), image_width, bpp, | 488 ImageData, image_width*((bpp+7)/8), image_width, ( depth == 24 ) ? bpp : depth, |
489 scale_xinc, scale_yinc); | 489 scale_xinc, scale_yinc); |
490 } else { | 490 } else { |
491 uint8_t *dst=ImageData + ( image_width * y + x ) * ( bpp/8 ); | 491 uint8_t *dst=ImageData + ( image_width * y + x ) * ( bpp/8 ); |
492 yuv2rgb( dst,src[0],src[1],src[2],w,h,image_width*( bpp/8 ),stride[0],stride[1] ); | 492 yuv2rgb( dst,src[0],src[1],src[2],w,h,image_width*( bpp/8 ),stride[0],stride[1] ); |
493 } | 493 } |