Mercurial > mplayer.hg
comparison libvo/vo_x11.c @ 4554:16fdb694cf13
swScale internally uses yuv2rgb now if possible
author | michael |
---|---|
date | Wed, 06 Feb 2002 20:52:14 +0000 |
parents | fc978c8eff3b |
children | 5fbfd8545c3b |
comparison
equal
deleted
inserted
replaced
4553:bab3aac84143 | 4554:16fdb694cf13 |
---|---|
499 dstStride[2]=(image_width*((bpp+7)/8)+1)>>1; | 499 dstStride[2]=(image_width*((bpp+7)/8)+1)>>1; |
500 dst[0]=ImageData; | 500 dst[0]=ImageData; |
501 dst[1]= | 501 dst[1]= |
502 dst[2]=NULL; | 502 dst[2]=NULL; |
503 | 503 |
504 swScale(swsContext,src,stride,y,h,dst, dstStride); | 504 swsContext->swScale(swsContext,src,stride,y,h,dst, dstStride); |
505 } else { | 505 } else { |
506 uint8_t *dst=ImageData + ( image_width * y + x ) * ( bpp/8 ); | 506 uint8_t *dst=ImageData + ( image_width * y + x ) * ( bpp/8 ); |
507 if(image_format==IMGFMT_YV12) | 507 if(image_format==IMGFMT_YV12) |
508 yuv2rgb( dst,src[0],src[1],src[2],w,h,image_width*( bpp/8 ),stride[0],stride[1] ); | 508 yuv2rgb( dst,src[0],src[1],src[2],w,h,image_width*( bpp/8 ),stride[0],stride[1] ); |
509 else /* I420 & IYUV */ | 509 else /* I420 & IYUV */ |