Mercurial > mplayer.hg
comparison libvo/vo_x11.c @ 2519:6f3fa9bc3b27
yv12 to yv12 scaler
someone who knows a bit about vo_odivx could add support for it ...
author | michael |
---|---|
date | Sun, 28 Oct 2001 18:30:59 +0000 |
parents | 50037e53d0bc |
children | 71934dc06490 |
comparison
equal
deleted
inserted
replaced
2518:a3f658d3c98c | 2519:6f3fa9bc3b27 |
---|---|
482 | 482 |
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 uint8_t *dst[3] = {ImageData, NULL, NULL}; |
488 ImageData, image_width*((bpp+7)/8), image_width, ( depth == 24 ) ? bpp : depth, | 488 SwScale_YV12slice(src,stride,y,h, |
489 dst, image_width*((bpp+7)/8), image_width, ( depth == 24 ) ? bpp : depth, | |
489 scale_xinc, scale_yinc); | 490 scale_xinc, scale_yinc); |
490 } else { | 491 } else { |
491 uint8_t *dst=ImageData + ( image_width * y + x ) * ( bpp/8 ); | 492 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] ); | 493 yuv2rgb( dst,src[0],src[1],src[2],w,h,image_width*( bpp/8 ),stride[0],stride[1] ); |
493 } | 494 } |