Revision 986b6f8f

View differences:

libswscale/yuv2rgb.c
508 508
        switch (c->dstFormat) {
509 509
        case PIX_FMT_RGB32:
510 510
            if (CONFIG_SWSCALE_ALPHA && c->srcFormat == PIX_FMT_YUVA420P){
511
                if (HAVE_7REGS) return yuva420_rgb32_MMX2;
511
#if HAVE_7REGS
512
                return yuva420_rgb32_MMX2;
513
#else
514
                break;
515
#endif
512 516
            }else return yuv420_rgb32_MMX2;
513 517
        case PIX_FMT_BGR24:  return yuv420_rgb24_MMX2;
514 518
        case PIX_FMT_RGB565: return yuv420_rgb16_MMX2;
......
519 523
        switch (c->dstFormat) {
520 524
        case PIX_FMT_RGB32:
521 525
            if (CONFIG_SWSCALE_ALPHA && c->srcFormat == PIX_FMT_YUVA420P){
522
                if (HAVE_7REGS) return yuva420_rgb32_MMX;
526
#if HAVE_7REGS
527
                return yuva420_rgb32_MMX;
528
#else
529
                break;
530
#endif
523 531
            }else return yuv420_rgb32_MMX;
524 532
        case PIX_FMT_BGR24:  return yuv420_rgb24_MMX;
525 533
        case PIX_FMT_RGB565: return yuv420_rgb16_MMX;
libswscale/yuv2rgb_template.c
465 465
    YUV2RGB_OPERANDS
466 466
}
467 467

  
468
#if HAVE_7REGS
468 469
static inline int RENAME(yuva420_rgb32)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
469 470
                                        int srcSliceH, uint8_t* dst[], int dstStride[]){
470 471
    int y, h_size;
......
480 481
    YUV2RGB_ENDLOOP(4)
481 482
    YUV2RGB_OPERANDS_ALPHA
482 483
}
484
#endif

Also available in: Unified diff