Revision 7b5d7b9e

View differences:

libswscale/swscale.c
153 153
    )
154 154

  
155 155
#define RGB2YUV_SHIFT 15
156
#define BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5))
157
#define BV ((int)(-0.071*(1<<RGB2YUV_SHIFT)+0.5))
158
#define BU ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
159
#define GY ((int)( 0.504*(1<<RGB2YUV_SHIFT)+0.5))
160
#define GV ((int)(-0.368*(1<<RGB2YUV_SHIFT)+0.5))
161
#define GU ((int)(-0.291*(1<<RGB2YUV_SHIFT)+0.5))
162
#define RY ((int)( 0.257*(1<<RGB2YUV_SHIFT)+0.5))
163
#define RV ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
164
#define RU ((int)(-0.148*(1<<RGB2YUV_SHIFT)+0.5))
156
#define BY ( (int)(0.114*219/255*(1<<RGB2YUV_SHIFT)+0.5))
157
#define BV (-(int)(0.081*224/255*(1<<RGB2YUV_SHIFT)+0.5))
158
#define BU ( (int)(0.500*224/255*(1<<RGB2YUV_SHIFT)+0.5))
159
#define GY ( (int)(0.587*219/255*(1<<RGB2YUV_SHIFT)+0.5))
160
#define GV (-(int)(0.419*224/255*(1<<RGB2YUV_SHIFT)+0.5))
161
#define GU (-(int)(0.331*224/255*(1<<RGB2YUV_SHIFT)+0.5))
162
#define RY ( (int)(0.299*219/255*(1<<RGB2YUV_SHIFT)+0.5))
163
#define RV ( (int)(0.500*224/255*(1<<RGB2YUV_SHIFT)+0.5))
164
#define RU (-(int)(0.169*224/255*(1<<RGB2YUV_SHIFT)+0.5))
165 165

  
166 166
extern const int32_t Inverse_Table_6_9[8][4];
167 167

  

Also available in: Unified diff