aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-29 16:15:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-29 16:15:54 +0200
commitf896f92337e71cc7dd3d4d2c37c8b04435e37d15 (patch)
tree8a2c51883ffef3d25214de87dafb22d4dc4f501e
parente1c3e6277f095a258a3676263202a595c044f57b (diff)
parent67e6a9f558fbf7a72137abd0034a3f11249ab8bb (diff)
downloadffmpeg-f896f92337e71cc7dd3d4d2c37c8b04435e37d15.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: cosmetics: Place arch initialization calls in alphabetical order Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/dsputil.c21
-rw-r--r--libavcodec/rv40dsp.c4
-rw-r--r--libavcodec/vc1dsp.c4
-rw-r--r--libavcodec/vorbisdsp.c8
-rw-r--r--libavcodec/vp8dsp.c4
-rw-r--r--libswscale/yuv2rgb.c12
6 files changed, 30 insertions, 23 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index fe2df12c49..0161347cc4 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -2915,13 +2915,20 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
}
- if (ARCH_X86) ff_dsputil_init_x86 (c, avctx);
- if (ARCH_ARM) ff_dsputil_init_arm (c, avctx);
- if (HAVE_VIS) ff_dsputil_init_vis (c, avctx);
- if (ARCH_ALPHA) ff_dsputil_init_alpha (c, avctx);
- if (ARCH_PPC) ff_dsputil_init_ppc (c, avctx);
- if (ARCH_SH4) ff_dsputil_init_sh4 (c, avctx);
- if (ARCH_BFIN) ff_dsputil_init_bfin (c, avctx);
+ if (ARCH_ALPHA)
+ ff_dsputil_init_alpha(c, avctx);
+ if (ARCH_ARM)
+ ff_dsputil_init_arm(c, avctx);
+ if (ARCH_BFIN)
+ ff_dsputil_init_bfin(c, avctx);
+ if (ARCH_PPC)
+ ff_dsputil_init_ppc(c, avctx);
+ if (ARCH_SH4)
+ ff_dsputil_init_sh4(c, avctx);
+ if (HAVE_VIS)
+ ff_dsputil_init_vis(c, avctx);
+ if (ARCH_X86)
+ ff_dsputil_init_x86(c, avctx);
ff_init_scantable_permutation(c->idct_permutation,
c->idct_permutation_type);
diff --git a/libavcodec/rv40dsp.c b/libavcodec/rv40dsp.c
index ad985f87c6..bdd9a3e3e6 100644
--- a/libavcodec/rv40dsp.c
+++ b/libavcodec/rv40dsp.c
@@ -619,8 +619,8 @@ av_cold void ff_rv40dsp_init(RV34DSPContext *c)
c->rv40_loop_filter_strength[0] = rv40_h_loop_filter_strength;
c->rv40_loop_filter_strength[1] = rv40_v_loop_filter_strength;
- if (ARCH_X86)
- ff_rv40dsp_init_x86(c);
if (ARCH_ARM)
ff_rv40dsp_init_arm(c);
+ if (ARCH_X86)
+ ff_rv40dsp_init_x86(c);
}
diff --git a/libavcodec/vc1dsp.c b/libavcodec/vc1dsp.c
index 39e94418fa..aab9d1aa6d 100644
--- a/libavcodec/vc1dsp.c
+++ b/libavcodec/vc1dsp.c
@@ -888,8 +888,8 @@ av_cold void ff_vc1dsp_init(VC1DSPContext* dsp) {
dsp->sprite_v_double_twoscale = sprite_v_double_twoscale_c;
#endif
- if (ARCH_X86)
- ff_vc1dsp_init_x86(dsp);
if (ARCH_PPC)
ff_vc1dsp_init_ppc(dsp);
+ if (ARCH_X86)
+ ff_vc1dsp_init_x86(dsp);
}
diff --git a/libavcodec/vorbisdsp.c b/libavcodec/vorbisdsp.c
index 5842cfd1da..784375697e 100644
--- a/libavcodec/vorbisdsp.c
+++ b/libavcodec/vorbisdsp.c
@@ -25,10 +25,10 @@ av_cold void ff_vorbisdsp_init(VorbisDSPContext *dsp)
{
dsp->vorbis_inverse_coupling = ff_vorbis_inverse_coupling;
- if (ARCH_X86)
- ff_vorbisdsp_init_x86(dsp);
- if (ARCH_PPC)
- ff_vorbisdsp_init_ppc(dsp);
if (ARCH_ARM)
ff_vorbisdsp_init_arm(dsp);
+ if (ARCH_PPC)
+ ff_vorbisdsp_init_ppc(dsp);
+ if (ARCH_X86)
+ ff_vorbisdsp_init_x86(dsp);
}
diff --git a/libavcodec/vp8dsp.c b/libavcodec/vp8dsp.c
index 39d8038155..3ead24e613 100644
--- a/libavcodec/vp8dsp.c
+++ b/libavcodec/vp8dsp.c
@@ -521,10 +521,10 @@ av_cold void ff_vp8dsp_init(VP8DSPContext *dsp)
VP8_BILINEAR_MC_FUNC(1, 8);
VP8_BILINEAR_MC_FUNC(2, 4);
- if (ARCH_X86)
- ff_vp8dsp_init_x86(dsp);
if (ARCH_ARM)
ff_vp8dsp_init_arm(dsp);
if (ARCH_PPC)
ff_vp8dsp_init_ppc(dsp);
+ if (ARCH_X86)
+ ff_vp8dsp_init_x86(dsp);
}
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 0045e2b370..3a80eca2e1 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -601,14 +601,14 @@ SwsFunc ff_yuv2rgb_get_func_ptr(SwsContext *c)
{
SwsFunc t = NULL;
- if (ARCH_X86)
- t = ff_yuv2rgb_init_x86(c);
- else if (HAVE_VIS)
- t = ff_yuv2rgb_init_vis(c);
- else if (ARCH_BFIN)
+ if (ARCH_BFIN)
t = ff_yuv2rgb_init_bfin(c);
- else if (ARCH_PPC)
+ if (ARCH_PPC)
t = ff_yuv2rgb_init_ppc(c);
+ if (HAVE_VIS)
+ t = ff_yuv2rgb_init_vis(c);
+ if (ARCH_X86)
+ t = ff_yuv2rgb_init_x86(c);
if (t)
return t;