diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-08-23 18:50:53 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-08-29 11:31:32 +0200 |
commit | a6b650118543e1580e872896d8976042b7c32d01 (patch) | |
tree | 0b788c4e45c5013338a39c93f27123adb44663cf /libavcodec/ppc/hpeldsp_altivec.c | |
parent | 67e6a9f558fbf7a72137abd0034a3f11249ab8bb (diff) | |
download | ffmpeg-a6b650118543e1580e872896d8976042b7c32d01.tar.gz |
ppc: cosmetics: Consistently format CPU flag detection invocations
Diffstat (limited to 'libavcodec/ppc/hpeldsp_altivec.c')
-rw-r--r-- | libavcodec/ppc/hpeldsp_altivec.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/libavcodec/ppc/hpeldsp_altivec.c b/libavcodec/ppc/hpeldsp_altivec.c index cbec12a071..d40c5d8cce 100644 --- a/libavcodec/ppc/hpeldsp_altivec.c +++ b/libavcodec/ppc/hpeldsp_altivec.c @@ -449,18 +449,19 @@ static void avg_pixels8_xy2_altivec(uint8_t *block, const uint8_t *pixels, ptrdi av_cold void ff_hpeldsp_init_ppc(HpelDSPContext *c, int flags) { #if HAVE_ALTIVEC - if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) { - c->avg_pixels_tab[0][0] = ff_avg_pixels16_altivec; - c->avg_pixels_tab[1][0] = avg_pixels8_altivec; - c->avg_pixels_tab[1][3] = avg_pixels8_xy2_altivec; - - c->put_pixels_tab[0][0] = ff_put_pixels16_altivec; - c->put_pixels_tab[1][3] = put_pixels8_xy2_altivec; - c->put_pixels_tab[0][3] = put_pixels16_xy2_altivec; - - c->put_no_rnd_pixels_tab[0][0] = ff_put_pixels16_altivec; - c->put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels8_xy2_altivec; - c->put_no_rnd_pixels_tab[0][3] = put_no_rnd_pixels16_xy2_altivec; - } + if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC)) + return; + + c->avg_pixels_tab[0][0] = ff_avg_pixels16_altivec; + c->avg_pixels_tab[1][0] = avg_pixels8_altivec; + c->avg_pixels_tab[1][3] = avg_pixels8_xy2_altivec; + + c->put_pixels_tab[0][0] = ff_put_pixels16_altivec; + c->put_pixels_tab[1][3] = put_pixels8_xy2_altivec; + c->put_pixels_tab[0][3] = put_pixels16_xy2_altivec; + + c->put_no_rnd_pixels_tab[0][0] = ff_put_pixels16_altivec; + c->put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels8_xy2_altivec; + c->put_no_rnd_pixels_tab[0][3] = put_no_rnd_pixels16_xy2_altivec; #endif /* HAVE_ALTIVEC */ } |