case IMGFMT_RGB24: case IMGFMT_BGR32:
SwsFunc yuv2rgb_init_altivec (SwsContext *c){  if (!(c->flags & SWS_CPU_CAPS_ALTIVEC))        return NULL;  /*    and this seems not to matter too much I tried a bunch of     videos with abnormal widths and mplayer crashes else where.    mplayer -vo x11 -rawvideo on:w=350:h=240 raw-350x240.eyuv     boom with X11 bad match.      */  if ((c->srcW & 0xf) != 0)    return NULL;  switch (c->srcFormat) {  case IMGFMT_YVU9:  case IMGFMT_IF09:  case IMGFMT_YV12:  case IMGFMT_I420:  case IMGFMT_IYUV:  case IMGFMT_CLPL:  case IMGFMT_Y800:  case IMGFMT_Y8:  case IMGFMT_NV12:  case IMGFMT_NV21:    if ((c->srcH & 0x1) != 0)      return NULL;    switch(c->dstFormat){    case IMGFMT_RGB24:      MSG_WARN("ALTIVEC: Color Space RGB24\n");      return altivec_yuv2_rgb24;    case IMGFMT_BGR24:      MSG_WARN("ALTIVEC: Color Space BGR24\n");      return altivec_yuv2_bgr24;    case IMGFMT_RGB32:      MSG_WARN("ALTIVEC: Color Space ARGB32\n");      return altivec_yuv2_argb32;    case IMGFMT_BGR32:      MSG_WARN("ALTIVEC: Color Space BGRA32\n");      //      return profile_altivec_bgra32;      return altivec_yuv2_bgra32;    default: return NULL;    }    break;  case IMGFMT_UYVY:    switch(c->dstFormat){    case IMGFMT_RGB32:      MSG_WARN("ALTIVEC: Color Space UYVY -> RGB32\n");      return altivec_uyvy_rgb32;    case IMGFMT_RGB24:    case IMGFMT_BGR32:    default: return NULL;    }    break;  }  return NULL;}