Mercurial > mplayer.hg
comparison postproc/swscale_template.c @ 9434:d2da6447daac
1000l
author | michael |
---|---|
date | Sat, 15 Feb 2003 17:29:01 +0000 |
parents | 53f03173e48f |
children | eff727517e6b |
comparison
equal
deleted
inserted
replaced
9433:53f03173e48f | 9434:d2da6447daac |
---|---|
1694 { | 1694 { |
1695 int b= src[i*3+0]; | 1695 int b= src[i*3+0]; |
1696 int g= src[i*3+1]; | 1696 int g= src[i*3+1]; |
1697 int r= src[i*3+2]; | 1697 int r= src[i*3+2]; |
1698 | 1698 |
1699 dst[i]= ((RY*r + GY*g + BY*b + (33<<(RGB2YUV_SHIFT-1)) )>>RGB2YUV_SHIFT) | 1699 dst[i]= ((RY*r + GY*g + BY*b + (33<<(RGB2YUV_SHIFT-1)) )>>RGB2YUV_SHIFT); |
1700 } | 1700 } |
1701 #endif | 1701 #endif |
1702 } | 1702 } |
1703 | 1703 |
1704 static inline void RENAME(bgr24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) | 1704 static inline void RENAME(bgr24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) |