# HG changeset patch # User michael # Date 1034538411 0 # Node ID f2c843e36dc9e2f77d75efb0396283eac2629e54 # Parent 619fd5403fd09ee3d26513dfab81ea74d513c921 fixing yuy2 upscaling (use -sws 0 for the faster but uglier variant) diff -r 619fd5403fd0 -r f2c843e36dc9 postproc/swscale.c --- a/postproc/swscale.c Sun Oct 13 18:35:15 2002 +0000 +++ b/postproc/swscale.c Sun Oct 13 19:46:51 2002 +0000 @@ -2047,16 +2047,6 @@ vo_format_name(srcFormat), vo_format_name(dstFormat)); return c; } - /* yv12_to_yuy2 */ - if((srcFormat == IMGFMT_YV12||srcFormat==IMGFMT_I420)&&dstFormat == IMGFMT_YUY2) - { - c->swScale= PlanarToYuy2Wrapper; - - if(flags&SWS_PRINT_INFO) - MSG_INFO("SwScaler: using unscaled %s -> %s special converter\n", - vo_format_name(srcFormat), vo_format_name(dstFormat)); - return c; - } /* yuv2bgr */ if((srcFormat==IMGFMT_YV12 || srcFormat==IMGFMT_I420) && isBGR(dstFormat)) { @@ -2121,6 +2111,17 @@ && (isBGR(dstFormat) || isRGB(dstFormat)) && needsDither) c->swScale= rgb2rgbWrapper; + + /* yv12_to_yuy2 */ + if((srcFormat == IMGFMT_YV12||srcFormat==IMGFMT_I420)&&dstFormat == IMGFMT_YUY2) + { + c->swScale= PlanarToYuy2Wrapper; + + if(flags&SWS_PRINT_INFO) + MSG_INFO("SwScaler: using unscaled %s -> %s special converter\n", + vo_format_name(srcFormat), vo_format_name(dstFormat)); + return c; + } } if(c->swScale){