Revision a898cdc9 libswscale/rgb2rgb.c

View differences:

libswscale/rgb2rgb.c
275 275
    long num_pixels = src_size >> 2;
276 276
    for (i=0; i<num_pixels; i++)
277 277
    {
278
        #ifdef WORDS_BIGENDIAN
278
        #if HAVE_BIGENDIAN
279 279
            /* RGB32 (= A,B,G,R) -> BGR24 (= B,G,R) */
280 280
            dst[3*i + 0] = src[4*i + 1];
281 281
            dst[3*i + 1] = src[4*i + 2];
......
293 293
    long i;
294 294
    for (i=0; 3*i<src_size; i++)
295 295
    {
296
        #ifdef WORDS_BIGENDIAN
296
        #if HAVE_BIGENDIAN
297 297
            /* RGB24 (= R,G,B) -> BGR32 (= A,R,G,B) */
298 298
            dst[4*i + 0] = 255;
299 299
            dst[4*i + 1] = src[3*i + 0];
......
318 318
    {
319 319
        register uint16_t bgr;
320 320
        bgr = *s++;
321
        #ifdef WORDS_BIGENDIAN
321
        #if HAVE_BIGENDIAN
322 322
            *d++ = 255;
323 323
            *d++ = (bgr&0x1F)<<3;
324 324
            *d++ = (bgr&0x7E0)>>3;
......
382 382
    {
383 383
        register uint16_t bgr;
384 384
        bgr = *s++;
385
        #ifdef WORDS_BIGENDIAN
385
        #if HAVE_BIGENDIAN
386 386
            *d++ = 255;
387 387
            *d++ = (bgr&0x1F)<<3;
388 388
            *d++ = (bgr&0x3E0)>>2;

Also available in: Unified diff