void ff_sws_init_swScale_altivec(SwsContext *c)

{

    enum PixelFormat dstFormat = c->dstFormat;



    if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))

        return;



    c->hScale       = hScale_altivec_real;

    if (!is16BPS(dstFormat) && !is9_OR_10BPS(dstFormat)) {

        c->yuv2yuvX     = yuv2yuvX_altivec_real;

    }



    /* The following list of supported dstFormat values should

     * match what's found in the body of ff_yuv2packedX_altivec() */

    if (!(c->flags & (SWS_BITEXACT | SWS_FULL_CHR_H_INT)) && !c->alpPixBuf &&

        (c->dstFormat==PIX_FMT_ABGR  || c->dstFormat==PIX_FMT_BGRA  ||

         c->dstFormat==PIX_FMT_BGR24 || c->dstFormat==PIX_FMT_RGB24 ||

         c->dstFormat==PIX_FMT_RGBA  || c->dstFormat==PIX_FMT_ARGB)) {

            c->yuv2packedX  = ff_yuv2packedX_altivec;

        }

}

void ff_sws_init_swScale_altivec(SwsContext *c)

{

    enum PixelFormat dstFormat = c->dstFormat;



    if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))

        return;



    c->hScale       = hScale_altivec_real;

    if (!is16BPS(dstFormat) && !is9_OR_10BPS(dstFormat)) {

        c->yuv2yuvX     = yuv2yuvX_altivec_real;

    }



    



    if (!(c->flags & (SWS_BITEXACT | SWS_FULL_CHR_H_INT)) && !c->alpPixBuf &&

        (c->dstFormat==PIX_FMT_ABGR  || c->dstFormat==PIX_FMT_BGRA  ||

         c->dstFormat==PIX_FMT_BGR24 || c->dstFormat==PIX_FMT_RGB24 ||

         c->dstFormat==PIX_FMT_RGBA  || c->dstFormat==PIX_FMT_ARGB)) {

            c->yuv2packedX  = ff_yuv2packedX_altivec;

        }

}

void FUNC_0(SwsContext *VAR_0)

{

    enum PixelFormat VAR_1 = VAR_0->VAR_1;



    if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))

        return;



    VAR_0->hScale       = hScale_altivec_real;

    if (!is16BPS(VAR_1) && !is9_OR_10BPS(VAR_1)) {

        VAR_0->yuv2yuvX     = yuv2yuvX_altivec_real;

    }



    



    if (!(VAR_0->flags & (SWS_BITEXACT | SWS_FULL_CHR_H_INT)) && !VAR_0->alpPixBuf &&

        (VAR_0->VAR_1==PIX_FMT_ABGR  || VAR_0->VAR_1==PIX_FMT_BGRA  ||

         VAR_0->VAR_1==PIX_FMT_BGR24 || VAR_0->VAR_1==PIX_FMT_RGB24 ||

         VAR_0->VAR_1==PIX_FMT_RGBA  || VAR_0->VAR_1==PIX_FMT_ARGB)) {

            VAR_0->yuv2packedX  = ff_yuv2packedX_altivec;

        }

}

void FUNC_0(SwsContext *VAR_0)
{ enum PixelFormat VAR_1 = VAR_0->VAR_1; if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
return; VAR_0->hScale       = hScale_altivec_real; if (!is16BPS(VAR_1) && !is9_OR_10BPS(VAR_1)) { VAR_0->yuv2yuvX     = yuv2yuvX_altivec_real; } if (!(VAR_0->flags & (SWS_BITEXACT | SWS_FULL_CHR_H_INT)) && !VAR_0->alpPixBuf &&
(VAR_0->VAR_1==PIX_FMT_ABGR  || VAR_0->VAR_1==PIX_FMT_BGRA  ||
VAR_0->VAR_1==PIX_FMT_BGR24 || VAR_0->VAR_1==PIX_FMT_RGB24 ||
VAR_0->VAR_1==PIX_FMT_RGBA  || VAR_0->VAR_1==PIX_FMT_ARGB)) { VAR_0->yuv2packedX  = ff_yuv2packedX_altivec; } }