diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-17 14:45:03 -0500 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-18 19:52:40 +0100 |
commit | 9a1ced321bb900acc68cae07f4141d5f257cadd5 (patch) | |
tree | e5934a2fe41ab65224edff23766b8f8e35f31fc6 /libavcodec/ppc/vc1dsp_altivec.c | |
parent | 6c0d9369d881b143628fdc24b105a4a2c60d67c2 (diff) | |
download | ffmpeg-9a1ced321bb900acc68cae07f4141d5f257cadd5.tar.gz |
dsputil: move VC1-specific stuff into VC1DSPContext.
(cherry picked from commit 12802ec0601c3bd7b9c7a2503518e28fd5e7d744)
Diffstat (limited to 'libavcodec/ppc/vc1dsp_altivec.c')
-rw-r--r-- | libavcodec/ppc/vc1dsp_altivec.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/ppc/vc1dsp_altivec.c b/libavcodec/ppc/vc1dsp_altivec.c index 5ffe9a5479..95774389a5 100644 --- a/libavcodec/ppc/vc1dsp_altivec.c +++ b/libavcodec/ppc/vc1dsp_altivec.c @@ -322,7 +322,11 @@ static void vc1_inv_trans_8x4_altivec(uint8_t *dest, int stride, DCTELEM *block) } -void vc1dsp_init_altivec(DSPContext* dsp, AVCodecContext *avctx) { +void ff_vc1dsp_init_altivec(VC1DSPContext* dsp) +{ + if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC)) + return; + dsp->vc1_inv_trans_8x8 = vc1_inv_trans_8x8_altivec; dsp->vc1_inv_trans_8x4 = vc1_inv_trans_8x4_altivec; } |