Revision 116758a3 libswscale/swscale_template.c

View differences:

libswscale/swscale_template.c
2215 2215

  
2216 2216
//FIXME all pal and rgb srcFormats could do this convertion as well
2217 2217
//FIXME all scalers more complex than bilinear could do half of this transform
2218
static void RENAME(chrRangeToJpeg)(uint16_t *dst, int width)
2218
static void RENAME(chrRangeToJpeg)(int16_t *dst, int width)
2219 2219
{
2220 2220
    int i;
2221 2221
    for (i = 0; i < width; i++) {
......
2223 2223
        dst[i+VOFW] = (FFMIN(dst[i+VOFW],30775)*4663 - 9289992)>>12; //-264
2224 2224
    }
2225 2225
}
2226
static void RENAME(chrRangeFromJpeg)(uint16_t *dst, int width)
2226
static void RENAME(chrRangeFromJpeg)(int16_t *dst, int width)
2227 2227
{
2228 2228
    int i;
2229 2229
    for (i = 0; i < width; i++) {
......
2231 2231
        dst[i+VOFW] = (dst[i+VOFW]*1799 + 4081085)>>11; //1469
2232 2232
    }
2233 2233
}
2234
static void RENAME(lumRangeToJpeg)(uint16_t *dst, int width)
2234
static void RENAME(lumRangeToJpeg)(int16_t *dst, int width)
2235 2235
{
2236 2236
    int i;
2237 2237
    for (i = 0; i < width; i++)
2238 2238
        dst[i] = (FFMIN(dst[i],30189)*19077 - 39057361)>>14;
2239 2239
}
2240
static void RENAME(lumRangeFromJpeg)(uint16_t *dst, int width)
2240
static void RENAME(lumRangeFromJpeg)(int16_t *dst, int width)
2241 2241
{
2242 2242
    int i;
2243 2243
    for (i = 0; i < width; i++)

Also available in: Unified diff