RGB2YUV_SHIFT 129 libswscale/rgb2rgb.c #define BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 130 libswscale/rgb2rgb.c #define BV ((int)(-0.071*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 131 libswscale/rgb2rgb.c #define BU ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 132 libswscale/rgb2rgb.c #define GY ((int)( 0.504*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 133 libswscale/rgb2rgb.c #define GV ((int)(-0.368*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 134 libswscale/rgb2rgb.c #define GU ((int)(-0.291*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 135 libswscale/rgb2rgb.c #define RY ((int)( 0.257*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 136 libswscale/rgb2rgb.c #define RV ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 137 libswscale/rgb2rgb.c #define RU ((int)(-0.148*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 2390 libswscale/rgb2rgb_template.c unsigned int Y = ((RY*r + GY*g + BY*b)>>RGB2YUV_SHIFT) + 16; RGB2YUV_SHIFT 2391 libswscale/rgb2rgb_template.c unsigned int V = ((RV*r + GV*g + BV*b)>>RGB2YUV_SHIFT) + 128; RGB2YUV_SHIFT 2392 libswscale/rgb2rgb_template.c unsigned int U = ((RU*r + GU*g + BU*b)>>RGB2YUV_SHIFT) + 128; RGB2YUV_SHIFT 2402 libswscale/rgb2rgb_template.c Y = ((RY*r + GY*g + BY*b)>>RGB2YUV_SHIFT) + 16; RGB2YUV_SHIFT 2414 libswscale/rgb2rgb_template.c unsigned int Y = ((RY*r + GY*g + BY*b)>>RGB2YUV_SHIFT) + 16; RGB2YUV_SHIFT 2422 libswscale/rgb2rgb_template.c Y = ((RY*r + GY*g + BY*b)>>RGB2YUV_SHIFT) + 16; RGB2YUV_SHIFT 167 libswscale/swscale.c #define BY ( (int)(0.114*219/255*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 168 libswscale/swscale.c #define BV (-(int)(0.081*224/255*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 169 libswscale/swscale.c #define BU ( (int)(0.500*224/255*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 170 libswscale/swscale.c #define GY ( (int)(0.587*219/255*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 171 libswscale/swscale.c #define GV (-(int)(0.419*224/255*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 172 libswscale/swscale.c #define GU (-(int)(0.331*224/255*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 173 libswscale/swscale.c #define RY ( (int)(0.299*219/255*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 174 libswscale/swscale.c #define RV ( (int)(0.500*224/255*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 175 libswscale/swscale.c #define RU (-(int)(0.169*224/255*(1<<RGB2YUV_SHIFT)+0.5)) RGB2YUV_SHIFT 2764 libswscale/swscale.c y= av_clip_uint8((RY*r + GY*g + BY*b + ( 33<<(RGB2YUV_SHIFT-1)))>>RGB2YUV_SHIFT); RGB2YUV_SHIFT 2765 libswscale/swscale.c u= av_clip_uint8((RU*r + GU*g + BU*b + (257<<(RGB2YUV_SHIFT-1)))>>RGB2YUV_SHIFT); RGB2YUV_SHIFT 2766 libswscale/swscale.c v= av_clip_uint8((RV*r + GV*g + BV*b + (257<<(RGB2YUV_SHIFT-1)))>>RGB2YUV_SHIFT); RGB2YUV_SHIFT 1638 libswscale/swscale_template.c BGR2Y(uint32_t, bgr32ToY,16, 0, 0, 0x00FF, 0xFF00, 0x00FF, RY<< 8, GY , BY<< 8, RGB2YUV_SHIFT+8) RGB2YUV_SHIFT 1639 libswscale/swscale_template.c BGR2Y(uint32_t, rgb32ToY, 0, 0,16, 0x00FF, 0xFF00, 0x00FF, RY<< 8, GY , BY<< 8, RGB2YUV_SHIFT+8) RGB2YUV_SHIFT 1640 libswscale/swscale_template.c BGR2Y(uint16_t, bgr16ToY, 0, 0, 0, 0x001F, 0x07E0, 0xF800, RY<<11, GY<<5, BY , RGB2YUV_SHIFT+8) RGB2YUV_SHIFT 1641 libswscale/swscale_template.c BGR2Y(uint16_t, bgr15ToY, 0, 0, 0, 0x001F, 0x03E0, 0x7C00, RY<<10, GY<<5, BY , RGB2YUV_SHIFT+7) RGB2YUV_SHIFT 1642 libswscale/swscale_template.c BGR2Y(uint16_t, rgb16ToY, 0, 0, 0, 0xF800, 0x07E0, 0x001F, RY , GY<<5, BY<<11, RGB2YUV_SHIFT+8) RGB2YUV_SHIFT 1643 libswscale/swscale_template.c BGR2Y(uint16_t, rgb15ToY, 0, 0, 0, 0x7C00, 0x03E0, 0x001F, RY , GY<<5, BY<<10, RGB2YUV_SHIFT+7) RGB2YUV_SHIFT 1678 libswscale/swscale_template.c BGR2UV(uint32_t, bgr32ToUV,16, 0, 0, 0xFF000000, 0xFF0000, 0xFF00, 0x00FF, RU<< 8, GU , BU<< 8, RV<< 8, GV , BV<< 8, RGB2YUV_SHIFT+8) RGB2YUV_SHIFT 1679 libswscale/swscale_template.c BGR2UV(uint32_t, rgb32ToUV, 0, 0,16, 0xFF000000, 0x00FF, 0xFF00, 0xFF0000, RU<< 8, GU , BU<< 8, RV<< 8, GV , BV<< 8, RGB2YUV_SHIFT+8) RGB2YUV_SHIFT 1680 libswscale/swscale_template.c BGR2UV(uint16_t, bgr16ToUV, 0, 0, 0, 0, 0x001F, 0x07E0, 0xF800, RU<<11, GU<<5, BU , RV<<11, GV<<5, BV , RGB2YUV_SHIFT+8) RGB2YUV_SHIFT 1681 libswscale/swscale_template.c BGR2UV(uint16_t, bgr15ToUV, 0, 0, 0, 0, 0x001F, 0x03E0, 0x7C00, RU<<10, GU<<5, BU , RV<<10, GV<<5, BV , RGB2YUV_SHIFT+7) RGB2YUV_SHIFT 1682 libswscale/swscale_template.c BGR2UV(uint16_t, rgb16ToUV, 0, 0, 0, 0, 0xF800, 0x07E0, 0x001F, RU , GU<<5, BU<<11, RV , GV<<5, BV<<11, RGB2YUV_SHIFT+8) RGB2YUV_SHIFT 1683 libswscale/swscale_template.c BGR2UV(uint16_t, rgb15ToUV, 0, 0, 0, 0, 0x7C00, 0x03E0, 0x001F, RU , GU<<5, BU<<10, RV , GV<<5, BV<<10, RGB2YUV_SHIFT+7) RGB2YUV_SHIFT 1810 libswscale/swscale_template.c dst[i]= ((RY*r + GY*g + BY*b + (33<<(RGB2YUV_SHIFT-1)))>>RGB2YUV_SHIFT); RGB2YUV_SHIFT 1827 libswscale/swscale_template.c dstU[i]= (RU*r + GU*g + BU*b + (257<<(RGB2YUV_SHIFT-1)))>>RGB2YUV_SHIFT; RGB2YUV_SHIFT 1828 libswscale/swscale_template.c dstV[i]= (RV*r + GV*g + BV*b + (257<<(RGB2YUV_SHIFT-1)))>>RGB2YUV_SHIFT; RGB2YUV_SHIFT 1843 libswscale/swscale_template.c dstU[i]= (RU*r + GU*g + BU*b + (257<<RGB2YUV_SHIFT))>>(RGB2YUV_SHIFT+1); RGB2YUV_SHIFT 1844 libswscale/swscale_template.c dstV[i]= (RV*r + GV*g + BV*b + (257<<RGB2YUV_SHIFT))>>(RGB2YUV_SHIFT+1); RGB2YUV_SHIFT 1861 libswscale/swscale_template.c dst[i]= ((RY*r + GY*g + BY*b + (33<<(RGB2YUV_SHIFT-1)))>>RGB2YUV_SHIFT); RGB2YUV_SHIFT 1880 libswscale/swscale_template.c dstU[i]= (RU*r + GU*g + BU*b + (257<<(RGB2YUV_SHIFT-1)))>>RGB2YUV_SHIFT; RGB2YUV_SHIFT 1881 libswscale/swscale_template.c dstV[i]= (RV*r + GV*g + BV*b + (257<<(RGB2YUV_SHIFT-1)))>>RGB2YUV_SHIFT; RGB2YUV_SHIFT 1896 libswscale/swscale_template.c dstU[i]= (RU*r + GU*g + BU*b + (257<<RGB2YUV_SHIFT))>>(RGB2YUV_SHIFT+1); RGB2YUV_SHIFT 1897 libswscale/swscale_template.c dstV[i]= (RV*r + GV*g + BV*b + (257<<RGB2YUV_SHIFT))>>(RGB2YUV_SHIFT+1);