comparison libswscale/swscale_template.c @ 23665:88b417d972ab

comment grammar fixes
author diego
date Thu, 28 Jun 2007 11:18:16 +0000
parents f85d8e62735d
children 5159b5f8784e
comparison
equal deleted inserted replaced
23664:f19f12214991 23665:88b417d972ab
1511 RENAME(yuv2packed2)(c, buf0, buf0, uvbuf0, uvbuf1, dest, dstW, 0, uvalpha, y); 1511 RENAME(yuv2packed2)(c, buf0, buf0, uvbuf0, uvbuf1, dest, dstW, 0, uvalpha, y);
1512 return; 1512 return;
1513 } 1513 }
1514 1514
1515 #ifdef HAVE_MMX 1515 #ifdef HAVE_MMX
1516 if ( uvalpha < 2048 ) // note this is not correct (shifts chrominance by 0.5 pixels) but its a bit faster 1516 if ( uvalpha < 2048 ) // note this is not correct (shifts chrominance by 0.5 pixels) but it is a bit faster
1517 { 1517 {
1518 switch(dstFormat) 1518 switch(dstFormat)
1519 { 1519 {
1520 case PIX_FMT_RGB32: 1520 case PIX_FMT_RGB32:
1521 asm volatile( 1521 asm volatile(
2541 RENAME(palToY)(formatConvBuffer, src, srcW, pal); 2541 RENAME(palToY)(formatConvBuffer, src, srcW, pal);
2542 src= formatConvBuffer; 2542 src= formatConvBuffer;
2543 } 2543 }
2544 2544
2545 #ifdef HAVE_MMX 2545 #ifdef HAVE_MMX
2546 // use the new MMX scaler if the mmx2 can't be used (its faster than the x86asm one) 2546 // use the new MMX scaler if the mmx2 can't be used (it is faster than the x86 ASM one)
2547 if (!(flags&SWS_FAST_BILINEAR) || (!canMMX2BeUsed)) 2547 if (!(flags&SWS_FAST_BILINEAR) || (!canMMX2BeUsed))
2548 #else 2548 #else
2549 if (!(flags&SWS_FAST_BILINEAR)) 2549 if (!(flags&SWS_FAST_BILINEAR))
2550 #endif 2550 #endif
2551 { 2551 {
2758 src1= formatConvBuffer; 2758 src1= formatConvBuffer;
2759 src2= formatConvBuffer+2048; 2759 src2= formatConvBuffer+2048;
2760 } 2760 }
2761 2761
2762 #ifdef HAVE_MMX 2762 #ifdef HAVE_MMX
2763 // use the new MMX scaler if the mmx2 can't be used (its faster than the x86asm one) 2763 // use the new MMX scaler if the mmx2 can't be used (it is faster than the x86 ASM one)
2764 if (!(flags&SWS_FAST_BILINEAR) || (!canMMX2BeUsed)) 2764 if (!(flags&SWS_FAST_BILINEAR) || (!canMMX2BeUsed))
2765 #else 2765 #else
2766 if (!(flags&SWS_FAST_BILINEAR)) 2766 if (!(flags&SWS_FAST_BILINEAR))
2767 #endif 2767 #endif
2768 { 2768 {