summaryrefslogtreecommitdiff
path: root/postproc/swscale_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-02-21 19:41:50 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-02-21 19:41:50 +0000
commit2ba1bff05909fee700cc4b97a9eaaa68b58d880f (patch)
tree233f81defa7ea353371fdf96f198ac01698f6201 /postproc/swscale_template.c
parentdf3c183a7b90e70ae6bfae2a6efdb5aaf220fb88 (diff)
101++
Originally committed as revision 4795 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/swscale_template.c')
-rw-r--r--postproc/swscale_template.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c
index a14bc97d54..aca4d1f0fa 100644
--- a/postproc/swscale_template.c
+++ b/postproc/swscale_template.c
@@ -992,10 +992,10 @@ FULL_YSCALEYUV2RGB
#else
if(dstFormat==IMGFMT_BGR32)
{
+ int i;
#ifdef WORDS_BIGENDIAN
dest++;
#endif
- int i;
for(i=0;i<dstW;i++){
// vertical linear interpolation && yuv2rgb in a single step:
int Y=yuvtab_2568[((buf0[i]*yalpha1+buf1[i]*yalpha)>>19)];
@@ -1118,10 +1118,10 @@ FULL_YSCALEYUV2RGB
#else
if(dstFormat==IMGFMT_BGR32)
{
+ int i;
#ifdef WORDS_BIGENDIAN
dest++;
#endif
- int i;
for(i=0; i<dstW-1; i+=2){
// vertical linear interpolation && yuv2rgb in a single step:
int Y1=yuvtab_2568[((buf0[i]*yalpha1+buf1[i]*yalpha)>>19)];
@@ -1399,10 +1399,10 @@ static inline void RENAME(yuv2rgb1)(uint16_t *buf0, uint16_t *uvbuf0, uint16_t *
if(dstFormat==IMGFMT_BGR32)
{
+ int i;
#ifdef WORDS_BIGENDIAN
dest++;
#endif
- int i;
for(i=0; i<dstW-1; i+=2){
// vertical linear interpolation && yuv2rgb in a single step:
int Y1=yuvtab_2568[buf0[i]>>7];