Mercurial > mplayer.hg
comparison postproc/swscale.c @ 9188:da162a0d9ae9
10l found by (Dominik Mierzejewski <dominik at rangers dot eu dot org>)
author | michael |
---|---|
date | Sat, 01 Feb 2003 00:48:33 +0000 |
parents | 898e5270a46e |
children | 0d86fe21b281 |
comparison
equal
deleted
inserted
replaced
9187:31ab9f9f634e | 9188:da162a0d9ae9 |
---|---|
585 case IMGFMT_BGR4:\ | 585 case IMGFMT_BGR4:\ |
586 {\ | 586 {\ |
587 const uint8_t * const d64= dither_8x8_73 [y&7];\ | 587 const uint8_t * const d64= dither_8x8_73 [y&7];\ |
588 const uint8_t * const d128=dither_8x8_220[y&7];\ | 588 const uint8_t * const d128=dither_8x8_220[y&7];\ |
589 func(uint8_t)\ | 589 func(uint8_t)\ |
590 ((uint8_t*)dest)[i]= r[Y1+d128[(i2+0)&7]] + g[Y1+d64[(i2+0)&7]] + b[Y1+d128[(i2+0)&7]];\ | 590 ((uint8_t*)dest)[i]= r[Y1+d128[(i2+0)&7]] + g[Y1+d64[(i2+0)&7]] + b[Y1+d128[(i2+0)&7]]\ |
591 + ((r[Y2+d128[(i2+1)&7]] + g[Y2+d64[(i2+1)&7]] + b[Y2+d128[(i2+1)&7]])<<4);\ | 591 + ((r[Y2+d128[(i2+1)&7]] + g[Y2+d64[(i2+1)&7]] + b[Y2+d128[(i2+1)&7]])<<4);\ |
592 }\ | 592 }\ |
593 }\ | 593 }\ |
594 break;\ | 594 break;\ |
595 case IMGFMT_RG4B:\ | 595 case IMGFMT_RG4B:\ |
760 case IMGFMT_BGR4: | 760 case IMGFMT_BGR4: |
761 { | 761 { |
762 const uint8_t * const d64= dither_8x8_73 [y&7]; | 762 const uint8_t * const d64= dither_8x8_73 [y&7]; |
763 const uint8_t * const d128=dither_8x8_220[y&7]; | 763 const uint8_t * const d128=dither_8x8_220[y&7]; |
764 YSCALE_YUV_2_RGBX_C(uint8_t) | 764 YSCALE_YUV_2_RGBX_C(uint8_t) |
765 ((uint8_t*)dest)[i]= r[Y1+d128[(i2+0)&7]] + g[Y1+d64[(i2+0)&7]] + b[Y1+d128[(i2+0)&7]]; | 765 ((uint8_t*)dest)[i]= r[Y1+d128[(i2+0)&7]] + g[Y1+d64[(i2+0)&7]] + b[Y1+d128[(i2+0)&7]] |
766 +((r[Y2+d128[(i2+1)&7]] + g[Y2+d64[(i2+1)&7]] + b[Y2+d128[(i2+1)&7]])<<4); | 766 +((r[Y2+d128[(i2+1)&7]] + g[Y2+d64[(i2+1)&7]] + b[Y2+d128[(i2+1)&7]])<<4); |
767 } | 767 } |
768 } | 768 } |
769 break; | 769 break; |
770 case IMGFMT_RG4B: | 770 case IMGFMT_RG4B: |